:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(30, 41, 59, 0.74);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --shadow: 0 22px 70px rgba(2, 6, 23, 0.44);
  color-scheme: dark;
}

* {
  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.12), transparent 34%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 46%, #0f172a 100%);
  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,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(51, 65, 85, 0.86);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111827;
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.26);
  font-size: 15px;
}

.brand-text {
  color: #ffffff;
  font-size: 20px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--amber-soft);
  color: #fbbf24;
}

.quick-search {
  margin-left: auto;
  display: flex;
  width: min(380px, 34vw);
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.quick-search input,
.mobile-search input,
.search-band-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #f8fafc;
  background: transparent;
}

.quick-search input {
  padding: 11px 16px;
}

.quick-search button,
.mobile-search button,
.search-band-form button {
  border: 0;
  color: #111827;
  background: #f59e0b;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.82);
  cursor: pointer;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  background: #f8fafc;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  padding: 14px 16px 18px;
  background: #0f172a;
}

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

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.56);
}

.mobile-search {
  display: flex;
  min-height: 44px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  overflow: hidden;
}

.mobile-search input {
  padding: 0 14px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.78) 38%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.72) 34%, transparent 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: end;
  gap: 44px;
  padding: 94px 0 92px;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 670px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.75;
}

.hero-tags,
.detail-meta,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-cloud span {
  padding: 7px 10px;
  border-radius: 10px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 850;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.movie-card:hover,
.category-tile:hover,
.rank-item:hover,
.ranking-card:hover {
  transform: translateY(-2px);
}

.primary-button {
  min-height: 48px;
  padding: 0 22px;
  color: #111827;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.26);
}

.ghost-button,
.section-more {
  min-height: 46px;
  padding: 0 18px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(203, 213, 225, 0.22);
}

.hero-poster {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-controls button {
  width: 36px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-controls button.active {
  background: #f59e0b;
}

.hero-rail {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 5;
  display: grid;
  gap: 10px;
  width: 360px;
}

.hero-rail a {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(12px);
}

.hero-rail a.active {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.13);
}

.hero-rail img {
  width: 64px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-rail strong,
.hero-rail em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-rail strong {
  color: #ffffff;
  font-size: 14px;
}

.hero-rail em {
  margin-top: 4px;
  color: #94a3b8;
  font-style: normal;
  font-size: 12px;
}

.search-band,
.content-section,
.detail-wrap,
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: center;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: rgba(30, 41, 59, 0.48);
  box-shadow: var(--shadow);
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.detail-text h1,
.detail-text h2,
.side-card h2,
.footer-links h2,
.category-block h2 {
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.search-band p,
.section-heading p,
.page-hero p,
.category-block p,
.footer-brand p,
.card-desc,
.ranking-card small {
  color: var(--subtle);
  line-height: 1.7;
}

.search-band-form {
  display: flex;
  min-height: 56px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  overflow: hidden;
}

.search-band-form input {
  padding: 0 18px;
}

.search-band-form button {
  padding: 0 24px;
}

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

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

.compact-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.category-block h2 {
  font-size: clamp(26px, 3vw, 38px);
}

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

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}

.search-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.54);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(30, 41, 59, 0.82);
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1e293b;
}

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

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

.card-badge,
.card-play {
  position: absolute;
  z-index: 2;
}

.card-badge {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.74);
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.card-play {
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: #f59e0b;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: scale(1);
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.card-body strong {
  min-height: 42px;
  color: #ffffff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: #94a3b8;
  font-size: 13px;
}

.card-desc {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.category-tile,
.category-block,
.side-card,
.player-card,
.detail-text,
.filter-panel,
.rank-list,
.ranking-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(30, 41, 59, 0.54);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
}

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.category-tile span {
  color: #fbbf24;
  font-weight: 850;
}

.category-tile strong {
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.5;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.split-layout .content-section {
  width: auto;
  padding: 0;
  margin: 0;
}

.rank-list {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 70px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  background: rgba(15, 23, 42, 0.48);
}

.rank-no {
  color: #fbbf24;
  font-weight: 900;
  font-size: 18px;
  text-align: center;
}

.rank-item img {
  width: 70px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  color: #ffffff;
}

.rank-copy em {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  margin-top: 34px;
  padding: 48px;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at 90% 0%, rgba(245, 158, 11, 0.16), transparent 32%),
    rgba(30, 41, 59, 0.56);
  box-shadow: var(--shadow);
}

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

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 17px;
}

.category-block {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding: 24px;
  border-radius: 28px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(160px, 0.42fr));
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.empty-state {
  padding: 22px;
  margin-bottom: 22px;
  border-radius: 18px;
  color: #f8fafc;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.ranking-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 15px;
  align-items: center;
  min-height: 126px;
  padding: 16px 16px 16px 58px;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

.ranking-card img {
  width: 82px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-number {
  position: absolute;
  left: 16px;
  top: 20px;
  color: rgba(251, 191, 36, 0.82);
  font-weight: 950;
}

.ranking-card strong,
.ranking-card em,
.ranking-card small {
  display: block;
}

.ranking-card strong {
  color: #ffffff;
  line-height: 1.35;
}

.ranking-card em {
  margin: 7px 0;
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
}

.detail-wrap {
  padding-top: 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: #94a3b8;
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #020617;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.player-cover-bg {
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.player-cover-shade {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.28));
}

.player-cover-button {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: #f59e0b;
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.3);
  font-size: 28px;
}

.detail-text,
.side-card {
  padding: 24px;
  border-radius: 24px;
}

.detail-text h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
}

.detail-text h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 24px;
}

.detail-text p {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.9;
}

.tag-cloud {
  margin: 16px 0 4px;
}

.side-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

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

.side-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px 14px;
  margin: 18px 0 0;
}

.side-card dt {
  color: #94a3b8;
}

.side-card dd {
  margin: 0;
  color: #f8fafc;
}

.site-footer {
  margin-top: 74px;
  border-top: 1px solid rgba(51, 65, 85, 0.86);
  background: rgba(15, 23, 42, 0.84);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.8fr 0.8fr;
  gap: 36px;
  padding: 42px 0;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links h2 {
  font-size: 16px;
  margin-bottom: 4px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: #64748b;
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 84px;
  }

  .hero-poster {
    display: none;
  }

  .search-band,
  .split-layout,
  .detail-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .nav-shell,
  .search-band,
  .content-section,
  .detail-wrap,
  .page-hero,
  .category-block,
  .footer-shell,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    min-height: 590px;
  }

  .hero-content {
    width: min(100% - 24px, 1180px);
    padding-bottom: 76px;
  }

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

  .hero-summary {
    font-size: 15px;
  }

  .hero-controls {
    width: min(100% - 24px, 1180px);
  }

  .search-band,
  .page-hero,
  .category-block,
  .detail-text,
  .side-card {
    padding: 20px;
    border-radius: 22px;
  }

  .search-band-form {
    display: grid;
  }

  .search-band-form button {
    min-height: 48px;
  }

  .section-heading,
  .category-block-head {
    align-items: start;
    flex-direction: column;
  }

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

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

  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    grid-template-columns: 70px 1fr;
    padding-left: 48px;
  }

  .ranking-card img {
    width: 70px;
    height: 92px;
  }

  .side-card dl {
    grid-template-columns: 1fr;
  }
}
