:root {
  --amber: #f59e0b;
  --orange: #f97316;
  --dark: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 28rem),
    #ffffff;
  color: var(--dark);
}

body, input, button, select {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.nav-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--dark);
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.3);
}

.brand-text, .footer-brand {
  font-size: 23px;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input, .filters-inline input, .filters-inline select {
  border: 2px solid #fde68a;
  border-radius: 999px;
  background: #ffffff;
  padding: 11px 16px;
  outline: none;
  color: #374151;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus, .filters-inline input:focus, .filters-inline select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.top-search button, .primary-btn {
  border-radius: 999px;
  padding: 12px 22px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover, .primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.28);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  font-size: 26px;
  color: #d97706;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: #fff7ed;
}

.mobile-nav a {
  display: block;
  padding: 11px 12px;
  color: #92400e;
  font-weight: 700;
}

.container-wide, .container-narrow {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.container-narrow {
  width: min(1080px, calc(100% - 32px));
}

.container-readable {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-track, .hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.45), rgba(17, 24, 39, 0.16)),
    var(--cover-image),
    linear-gradient(135deg, #111827, #92400e);
  background-position: center;
  background-size: cover;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(245, 158, 11, 0.35), transparent 20rem),
    linear-gradient(0deg, rgba(17, 24, 39, 0.76), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding: 120px 0 96px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fffbeb;
  background: rgba(245, 158, 11, 0.28);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.hero-content h1 {
  margin: 18px 0 16px;
  max-width: 780px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 760px;
  color: #f3f4f6;
  font-size: 19px;
  line-height: 1.9;
}

.hero-tags, .tag-row, .detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

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

.hero-tags span, .tag-row span, .detail-meta span {
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span, .detail-meta span {
  background: #fff7ed;
  color: #92400e;
}

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

.hero-actions.centered {
  justify-content: center;
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 11px 20px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.ghost-btn.dark {
  color: #92400e;
  border-color: #fcd34d;
  background: #ffffff;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.hero-prev, .hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.quick-panel {
  margin-top: -54px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-panel h2, .section-head h2, .page-hero h1, .detail-info h1, .rank-hero h1, .feature-panel h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.quick-panel p, .page-hero p, .feature-panel p, .detail-info p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
}

.quick-links a {
  border-radius: 999px;
  padding: 10px 15px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 800;
  border: 1px solid #fed7aa;
}

.section-block {
  padding: 70px 0;
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head a {
  color: #d97706;
  font-weight: 900;
}

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

.category-card, .category-overview-card a {
  display: block;
  min-height: 156px;
  border-radius: var(--radius);
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid #ffedd5;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong, .category-overview-card strong {
  display: block;
  color: #92400e;
  font-size: 21px;
  font-weight: 950;
}

.category-card span, .category-overview-card p {
  display: block;
  margin-top: 10px;
  color: #6b7280;
  line-height: 1.65;
}

.category-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 950;
  margin-bottom: 16px;
}

.highlight-zone {
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.two-col {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.feature-panel {
  position: sticky;
  top: 100px;
  border-radius: 30px;
  padding: 32px;
  min-height: 380px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(253, 186, 116, 0.42), transparent 16rem),
    linear-gradient(135deg, #111827, #92400e 62%, #ea580c);
  box-shadow: var(--shadow);
}

.feature-panel p {
  color: #fffbeb;
}

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid #f3f4f6;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.movie-cover, .compact-cover, .detail-cover {
  background-image:
    linear-gradient(160deg, rgba(17, 24, 39, 0.18), rgba(245, 158, 11, 0.18)),
    var(--cover-image),
    linear-gradient(135deg, #111827, #f59e0b);
  background-position: center;
  background-size: cover;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.play-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.66);
  backdrop-filter: blur(8px);
}

.cover-meta {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.86);
}

.movie-info {
  display: block;
  padding: 16px;
}

.movie-info strong, .compact-body strong {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
}

.movie-info em, .compact-body em {
  display: block;
  margin-top: 4px;
  color: #d97706;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.movie-desc {
  display: -webkit-box;
  min-height: 45px;
  margin-top: 9px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  font-size: 12px;
  padding: 5px 9px;
}

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

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

.compact-card a {
  display: grid;
  grid-template-columns: auto 86px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 102px;
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #ffedd5;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.12);
}

.rank-num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 950;
}

.compact-cover {
  width: 86px;
  height: 64px;
  border-radius: 14px;
}

.compact-body small {
  display: block;
  margin-top: 5px;
  color: #6b7280;
}

.filters-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.filters-inline input {
  min-width: min(420px, 100%);
  flex: 1;
}

.filters-inline select {
  min-width: 150px;
}

.search-wide input {
  min-width: min(520px, 100%);
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  border-radius: 34px;
  text-align: center;
  padding: 72px 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(253, 230, 138, 0.26), transparent 17rem),
    linear-gradient(135deg, #111827, #92400e 60%, #ea580c);
  box-shadow: var(--shadow);
}

.small-hero p, .category-hero p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: #fffbeb;
}

.category-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(253, 230, 138, 0.3), transparent 16rem),
    linear-gradient(135deg, #451a03, #92400e, #f59e0b);
}

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

.rank-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  min-height: 420px;
  border-radius: 34px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.22)),
    var(--cover-image),
    linear-gradient(135deg, #111827, #ea580c);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.rank-hero-inner {
  width: min(760px, calc(100% - 32px));
  padding: 72px 48px;
  color: #ffffff;
}

.rank-hero p {
  color: #fef3c7;
  line-height: 1.85;
  margin: 14px 0 28px;
}

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

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #d97706;
  font-weight: 800;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: stretch;
  border-radius: 34px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-cover {
  min-height: 430px;
  border-radius: 26px;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  margin: 12px 0 8px;
}

.detail-meta {
  margin-top: 18px;
}

.detail-tags {
  margin-top: 18px;
}

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

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

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.18), transparent 16rem),
    rgba(2, 6, 23, 0.28);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.35);
  font-size: 34px;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-text {
  color: #374151;
  line-height: 1.9;
}

.detail-text h2 {
  margin: 36px 0 12px;
  font-size: 30px;
  font-weight: 950;
  color: #111827;
}

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

.site-footer {
  margin-top: 70px;
  border-top: 1px solid #ffedd5;
  background: #fff7ed;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  margin-top: 8px;
  color: #6b7280;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  color: #92400e;
  font-weight: 800;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1120px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .compact-list, .compact-list.columns-list, .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .feature-panel {
    position: relative;
    top: auto;
  }
}

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

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

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

  .nav-inner {
    min-height: 66px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero-carousel, .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 92px;
  }

  .hero-content h1 {
    font-size: 46px;
  }

  .quick-panel {
    grid-template-columns: 1fr;
    margin-top: -36px;
  }

  .category-grid, .category-overview-grid, .movie-grid, .related-grid, .compact-list, .compact-list.columns-list, .ranking-list {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero, .rank-hero {
    border-radius: 24px;
  }

  .rank-hero-inner {
    padding: 54px 24px;
  }

  .detail-hero {
    padding: 16px;
    border-radius: 24px;
  }

  .detail-cover {
    min-height: 300px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
