:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.74);
  --bg-card-solid: #111827;
  --line: rgba(245, 158, 11, 0.22);
  --line-soft: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --amber-2: #f97316;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 10%, rgba(249, 115, 22, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
}

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

.brand-text strong,
.footer-logo {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link {
  color: var(--soft);
  font-weight: 650;
  transition: color 0.2s ease;
}

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

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

.top-search input,
.mobile-search input,
.hero-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.76);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input {
  width: 250px;
  padding: 10px 14px;
  border-radius: 999px;
}

.top-search button,
.mobile-search button,
.hero-search button,
.large-search button,
.primary-btn,
.text-btn {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: white;
  font-weight: 750;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.22);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.large-search button:hover,
.primary-btn:hover,
.text-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #fbbf24;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-link {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--soft);
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fbbf24;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 4px;
}

.mobile-search input {
  min-width: 0;
  padding: 11px 13px;
  border-radius: 12px;
}

.hero {
  position: relative;
  height: min(720px, 70vh);
  min-height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.08)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.56) 40%, transparent 78%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 92px;
  width: min(640px, calc(100% - 48px));
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.93);
  color: white;
  font-size: 14px;
  font-weight: 750;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  color: white;
  font-size: clamp(34px, 5.2vw, 66px);
  line-height: 1.04;
  font-weight: 860;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.44);
}

.hero-content p,
.page-hero p,
.detail-intro p {
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
  max-width: 720px;
}

.hero-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.hero-meta span,
.meta-line span,
.detail-tags span,
.tag-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 5px 10px;
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.54);
  color: white;
  font-weight: 720;
  padding: 10px 18px;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-dots {
  position: absolute;
  right: max(22px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(240px, 560px) auto;
  gap: 10px;
  width: min(760px, calc(100% - 44px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(12px);
}

.hero-search input {
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
}

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

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

.section-heading h2,
.detail-block h2,
.detail-side h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: #fbbf24;
  font-weight: 740;
  white-space: nowrap;
}

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(30, 41, 59, 0.86);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.movie-card:not(.card-wide) .poster-wrap {
  aspect-ratio: 3 / 4;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.25s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.8), transparent 56%);
  opacity: 0.82;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%) scale(0.9);
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.88);
  color: white;
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.28);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.score-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(2, 6, 23, 0.75);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.card-body strong {
  color: white;
  font-size: 18px;
  line-height: 1.25;
}

.card-body em {
  min-height: 44px;
  color: var(--muted);
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  margin-top: 0;
  gap: 6px;
}

.meta-line span,
.tag-line span {
  font-size: 12px;
  padding: 4px 8px;
}

.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.rank-list,
.rank-page-list {
  display: grid;
  gap: 12px;
}

.rank-row,
.rank-page-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.68);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rank-row {
  grid-template-columns: 56px 1fr auto;
  padding: 14px 16px;
}

.rank-row:hover,
.rank-page-row:hover {
  border-color: rgba(245, 158, 11, 0.44);
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-2px);
}

.rank-num,
.rank-page-num {
  color: #fbbf24;
  font-weight: 900;
  font-size: 20px;
}

.rank-name {
  color: white;
  font-weight: 760;
}

.rank-tags {
  color: var(--muted);
  font-size: 13px;
}

.rank-score {
  color: #fed7aa;
  font-weight: 800;
}

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

.category-card,
.category-overview-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card {
  display: grid;
  padding: 14px;
  gap: 12px;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.45);
}

.category-thumbs,
.category-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.category-thumbs img,
.category-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.category-card strong,
.category-overview-card h2 {
  color: white;
  font-size: 20px;
}

.category-card em,
.category-overview-card p {
  color: var(--muted);
  font-style: normal;
}

.page-hero,
.detail-hero {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 36px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.86)),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.18), transparent 28rem);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: clamp(34px, 6vw, 76px);
}

.compact-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
}

.rank-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.inline-links a {
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  padding: 5px 10px;
  font-size: 13px;
}

.filter-panel,
.large-search {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.large-search {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 720px;
  margin-top: 26px;
  margin-bottom: 0;
  padding: 10px;
}

.filter-panel input,
.filter-panel select,
.large-search input {
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
}

.filter-panel input:focus,
.filter-panel select:focus,
.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.large-search input:focus {
  border-color: rgba(245, 158, 11, 0.66);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.13);
  background: rgba(15, 23, 42, 0.92);
}

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

.breadcrumb a {
  color: #fbbf24;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(24px, 5vw, 58px);
  padding: clamp(24px, 5vw, 56px);
  align-items: center;
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.24));
  color: white;
  cursor: pointer;
  z-index: 2;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 24px 56px rgba(245, 158, 11, 0.32);
  font-size: 30px;
}

.player-cover strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.detail-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.detail-block,
.detail-side {
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 24px;
}

.detail-block p {
  color: #dbe4ef;
  margin: 15px 0 0;
  font-size: 17px;
}

.detail-side {
  position: sticky;
  top: 104px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px 14px;
  margin: 20px 0;
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  color: white;
}

.rank-page-row {
  grid-template-columns: 70px 86px minmax(0, 1fr) auto;
  padding: 12px 16px;
}

.rank-page-row img {
  width: 86px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-page-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.rank-page-info strong {
  color: white;
  font-size: 18px;
}

.rank-page-info em,
.rank-page-info span {
  color: var(--muted);
  font-style: normal;
}

.rank-page-score {
  color: #fed7aa;
  font-weight: 850;
  white-space: nowrap;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--line-soft);
  background: rgba(2, 6, 23, 0.9);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  gap: 20px;
}

.footer-inner p {
  color: var(--muted);
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--soft);
}

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

.copyright {
  font-size: 13px;
}

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

  .desktop-nav {
    margin-left: auto;
  }

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: 66px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero {
    height: 640px;
    min-height: 620px;
  }

  .hero-content {
    bottom: 150px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search button {
    width: 100%;
  }

  .two-columns,
  .wide-grid,
  .feature-grid,
  .category-overview-grid,
  .detail-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .detail-side {
    position: static;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text em {
    display: none;
  }

  .hero-content {
    left: 18px;
    width: calc(100% - 36px);
  }

  .hero-actions {
    display: grid;
  }

  .hero-dots {
    left: 18px;
    right: auto;
    bottom: 110px;
  }

  .section-heading {
    display: grid;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .card-body strong {
    font-size: 16px;
  }

  .card-body em {
    min-height: auto;
    font-size: 14px;
  }

  .rank-row {
    grid-template-columns: 44px 1fr;
  }

  .rank-score {
    grid-column: 2;
  }

  .rank-page-row {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .rank-page-row img {
    width: 72px;
    height: 96px;
  }

  .rank-page-score {
    grid-column: 3;
  }

  .page-hero,
  .detail-hero {
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .card-grid,
  .mini-category-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 680px;
  }
}
