:root {
  --bg: #fff7ed;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --panel: rgba(255, 255, 255, 0.92);
  --dark: #0f172a;
  --dark-2: #1e293b;
  --orange: #f97316;
  --red: #ef4444;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 36rem),
    linear-gradient(135deg, #f8fafc 0%, #fff7ed 48%, #fffbeb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #0f172a, #1e293b 52%, #0f172a);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.24);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.nav-link {
  position: relative;
  padding: 22px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.84);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 75vh;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-position: center;
  background-size: cover;
  filter: blur(22px);
  transform: scale(1.12);
  opacity: 0.58;
  transition: background-image 0.65s ease;
}

.hero-shade {
  background:
    radial-gradient(circle at 12% 25%, rgba(249, 115, 22, 0.28), transparent 28rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.54));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 75vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 42px;
  padding: 58px 0 68px;
}

.hero-copy {
  max-width: 740px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #fb923c, #ef4444, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.3vw, 25px);
  line-height: 1.65;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.28);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.hero-panel {
  position: relative;
  align-self: center;
}

.hero-card {
  display: none;
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.hero-card.is-active {
  display: block;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 26px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);
}

.hero-card h2 {
  margin: 8px 0;
  font-size: 25px;
  line-height: 1.2;
}

.hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #fff;
}

.search-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 0;
  position: relative;
  z-index: 4;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-form input,
.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.search-form input:focus,
.filter-row input:focus,
.filter-row select:focus {
  border-color: rgba(249, 115, 22, 0.56);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-results {
  display: none;
  margin-top: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.search-results.is-visible {
  display: grid;
}

.search-result {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.search-result img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #e2e8f0;
}

.search-result strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.25;
}

.search-result span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-header.center {
  display: block;
  text-align: center;
}

.section h1,
.section h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-subtitle,
.page-hero p,
.section-header p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover img {
  transform: scale(1.08);
}

.card-year,
.card-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-year {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.76);
}

.card-play {
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 20px);
  padding: 8px 13px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, 0);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
}

.card-body h3 a:hover {
  color: var(--orange);
}

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span,
.detail-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  min-height: 186px;
  padding: 24px;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #334155);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
}

.category-card::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -72px;
  top: -70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.64), rgba(239, 68, 68, 0.18));
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p,
.category-card a {
  position: relative;
}

.category-card p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.category-card a {
  display: inline-flex;
  margin-top: 6px;
  color: #fed7aa;
  font-weight: 800;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.42), transparent 24rem),
    linear-gradient(135deg, #0f172a, #1e293b 62%, #111827);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 64px;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: #fff;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-item img {
  width: 78px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
  background: #e2e8f0;
}

.rank-item h2,
.rank-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.43fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border-radius: 30px;
  background: #e2e8f0;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-content {
  min-width: 0;
}

.detail-content h1 {
  margin: 0 0 15px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.detail-lead {
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.content-panel {
  margin-top: 24px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-panel p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
}

.player-box {
  position: relative;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.28));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.player-start {
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 46px rgba(239, 68, 68, 0.42);
  font-size: 24px;
  cursor: pointer;
}

.next-prev {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.next-prev a {
  flex: 1 1 220px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  color: var(--muted);
}

.next-prev strong {
  display: block;
  color: var(--ink);
  margin-top: 4px;
}

.no-match {
  display: none;
  padding: 24px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
}

.no-match.is-visible {
  display: block;
}

.site-footer {
  margin-top: 80px;
  color: #fff;
  background: linear-gradient(90deg, #1e293b, #0f172a, #1e293b);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 36px;
}

.footer-grid p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #fdba74;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links a:hover {
  color: #fdba74;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero-inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 440px;
  }

  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rank-item {
    grid-template-columns: 46px 72px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 2 / -1;
  }

  .detail-poster {
    position: relative;
    top: auto;
    max-width: 360px;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .section,
  .page-hero-inner,
  .detail-shell,
  .search-panel,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero-inner {
    width: min(100% - 24px, 1180px);
    min-height: auto;
    padding: 46px 0 86px;
  }

  .hero-title {
    font-size: 44px;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-grid,
  .footer-grid,
  .filter-row,
  .search-form {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: block;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .card-body p {
    font-size: 12px;
  }

  .content-panel {
    padding: 18px;
  }
}
