:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3e8d0;
  --primary: #d97706;
  --primary-dark: #b45309;
  --primary-soft: #fef3c7;
  --danger: #ef4444;
  --shadow: 0 20px 45px rgba(120, 72, 9, 0.12);
  --shadow-small: 0 12px 30px rgba(120, 72, 9, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #f97316);
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--primary-soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--primary-dark);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-small);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.home-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fff1f2 100%);
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 70px;
}

.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.22;
  animation: floatGlow 9s ease-in-out infinite;
}

.hero-glow.one {
  top: 70px;
  left: 5%;
  background: #f59e0b;
}

.hero-glow.two {
  right: 7%;
  top: 170px;
  background: #fb7185;
  animation-delay: 1.4s;
}

.hero-glow.three {
  bottom: 30px;
  left: 42%;
  background: #f97316;
  animation-delay: 2.5s;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -22px, 0) scale(1.08);
  }
}

.hero-slide {
  display: none;
  min-height: 510px;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 430px);
  gap: 46px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  color: #111827;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(42px, 7vw, 78px);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  margin: 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 11px;
  color: #92400e;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 12px;
  font-weight: 700;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.secondary-btn,
.watch-link,
.quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.primary-btn,
.secondary-btn {
  min-height: 50px;
  padding: 0 24px;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #f97316);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.26);
}

.secondary-btn {
  color: var(--primary-dark);
  background: #fff;
  border: 2px solid #f59e0b;
}

.primary-btn:hover,
.secondary-btn:hover,
.watch-link:hover,
.quick-links a:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 520px;
  background: #111827;
  isolation: isolate;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-poster img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-small);
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: #fcd34d;
}

.hero-dot.is-active {
  width: 30px;
  background: var(--primary);
}

.quick-section,
.content-section,
.player-section,
.text-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-section {
  padding: 64px 0 34px;
}

.content-section {
  padding: 56px 0;
}

.content-section.soft {
  width: 100%;
  max-width: none;
  padding: 70px max(16px, calc((100% - 1180px) / 2));
  background: #fff;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading.center {
  display: block;
  text-align: center;
  max-width: 780px;
  margin: 0 auto 26px;
}

.section-heading span {
  display: block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-heading a {
  color: var(--primary-dark);
  font-weight: 800;
}

.quick-links,
.category-grid,
.category-overview-grid,
.movie-grid {
  display: grid;
  gap: 18px;
}

.quick-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-links a {
  min-height: 62px;
  color: #92400e;
  background: #fff;
  border: 1px solid #fde68a;
  box-shadow: var(--shadow-small);
}

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

.category-tile,
.category-overview-card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-small);
}

.category-tile {
  padding: 22px;
  min-height: 180px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-main-link span {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p,
.category-main-link p,
.movie-card p {
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(120, 72, 9, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.05);
}

.quality-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.quality-badge {
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  background: rgba(17, 24, 39, 0.74);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.card-body {
  padding: 16px;
}

.card-meta,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-body h3 {
  margin: 9px 0 7px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

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

.card-body p {
  min-height: 58px;
  margin: 0 0 12px;
  font-size: 14px;
}

.tag-row {
  margin-bottom: 14px;
}

.watch-link {
  min-height: 36px;
  padding: 0 14px;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
}

.score {
  color: var(--primary-dark);
  font-weight: 900;
}

.inline-search {
  margin-bottom: 22px;
}

.inline-search input,
.search-fields input,
.search-fields select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #fde68a;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.inline-search input:focus,
.search-fields input:focus,
.search-fields select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb 52%, #fff1f2);
  box-shadow: var(--shadow-small);
}

.page-hero {
  padding: 74px;
}

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.18);
  filter: blur(20px);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.with-search {
  padding-top: 34px;
}

.search-panel {
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-small);
}

.search-title {
  margin-bottom: 14px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.search-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
}

.search-fields label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

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

.category-overview-card {
  padding: 24px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.category-main-link {
  display: block;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 46px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #111827;
}

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

.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.detail-copy {
  position: relative;
  z-index: 1;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 12px;
}

.large-tags span {
  min-height: 34px;
  padding-inline: 13px;
}

.compact-actions {
  margin-top: 22px;
}

.player-section {
  padding: 54px 0 26px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(
    circle,
    rgba(217, 119, 6, 0.22),
    rgba(2, 6, 23, 0.82)
  );
  cursor: pointer;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #f97316);
  box-shadow: 0 18px 35px rgba(217, 119, 6, 0.35);
  font-size: 30px;
  padding-left: 4px;
}

.player-cover strong {
  font-size: 20px;
}

.text-panel {
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-small);
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
}

.text-panel h2:not(:first-child) {
  margin-top: 28px;
}

.text-panel p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.related-section {
  padding-top: 48px;
}

.site-footer {
  margin-top: 36px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #d1d5db;
}

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

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 680px;
}

.footer-brand strong {
  color: #fff;
  font-size: 24px;
}

.footer-brand p {
  margin: 8px 0 0;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 28px 0;
}

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

.copyright {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-poster {
    max-width: 480px;
    min-height: auto;
  }

  .hero-poster img {
    height: 520px;
  }

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

@media (max-width: 820px) {
  .home-hero {
    min-height: auto;
  }

  .hero-stage {
    padding: 42px 0 86px;
  }

  .hero-slide {
    min-height: auto;
    gap: 28px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 42px;
  }

  .hero-poster img {
    height: 420px;
  }

  .hero-controls {
    bottom: 24px;
  }

  .quick-links,
  .category-grid,
  .movie-grid,
  .category-overview-grid,
  .all-grid,
  .search-fields {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-flex;
    margin-top: 12px;
  }

  .page-hero,
  .detail-hero {
    padding: 32px;
    border-radius: 26px;
  }

  .detail-poster {
    max-width: 360px;
  }
}

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .quick-links,
  .category-grid,
  .movie-grid,
  .category-overview-grid,
  .all-grid,
  .search-fields {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-poster img {
    height: 380px;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .page-hero,
  .detail-hero,
  .text-panel {
    padding: 24px;
  }
}
