:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-card-2: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --brand: #f59e0b;
  --brand-2: #f97316;
  --brand-3: #fbbf24;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
    linear-gradient(180deg, #0f172a 0%, #020617 40%, #000 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

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

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

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

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

.brand-text strong {
  font-size: 21px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde68a, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: #d1d5db;
  transition: 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: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(249, 115, 22, 0.95));
}

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

.header-search input,
.mobile-search input,
.local-search {
  width: 220px;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(15, 23, 42, 0.9);
  padding: 10px 12px;
}

.header-search input:focus,
.mobile-search input:focus,
.local-search:focus {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.header-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.filter-button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
}

.header-search button,
.mobile-search button {
  padding: 10px 14px;
}

.menu-toggle {
  display: none;
  color: #fff;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 12px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

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

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

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 12px 16px 18px;
}

.mobile-search input {
  width: 100%;
}

.hero {
  position: relative;
  background: #020617;
}

.hero-frame {
  position: relative;
  height: 640px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 780px;
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: #dbe4ef;
  font-size: clamp(16px, 2vw, 21px);
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 700;
}

.primary-button:hover,
.header-search button:hover,
.mobile-search button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.secondary-button {
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.secondary-button:hover {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.18);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  cursor: pointer;
  font-size: 34px;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dots button.active {
  width: 36px;
  background: var(--brand);
}

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

.content-band {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.40), rgba(15, 23, 42, 0.25));
  border-block: 1px solid var(--line);
}

.compact-section {
  padding-block: 48px;
}

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

.section-heading-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.2);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

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

.section-link {
  color: #fbbf24;
  font-weight: 700;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 22px 70px rgba(245, 158, 11, 0.12);
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 44% 1fr;
}

.card-image {
  position: relative;
  display: block;
  min-height: 172px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.movie-card-wide .card-image {
  min-height: 100%;
  aspect-ratio: auto;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: 0.2s ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  color: #fff;
  background: rgba(245, 158, 11, 0.95);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(245, 158, 11, 0.96);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: 0.22s ease;
}

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

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: #fbbf24;
}

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

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

.card-tags {
  margin-top: 14px;
}

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

.category-tile {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), transparent 50%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  transition: 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.45);
}

.category-name {
  font-size: 20px;
  font-weight: 900;
}

.category-intro {
  color: var(--muted);
  font-size: 13px;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 16px;
}

.category-thumbs img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

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

.rank-row,
.ranking-card {
  display: grid;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.74);
}

.rank-row {
  grid-template-columns: 64px 120px 1fr;
  padding: 12px;
}

.ranking-card {
  grid-template-columns: 80px 148px 1fr;
  padding: 16px;
}

.rank-index,
.ranking-number {
  color: #fbbf24;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-cover img,
.ranking-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.rank-title,
.ranking-info h2 {
  margin: 0;
  color: #fff;
  font-weight: 900;
}

.rank-row p,
.ranking-info p {
  margin: 5px 0;
  color: var(--muted);
}

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

.sub-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(34px, 6vw, 72px);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.23), transparent 34rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(2, 6, 23, 0.98));
  box-shadow: var(--shadow);
}

.sub-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbe4ef;
  font-size: 18px;
}

.category-overview-list {
  display: grid;
  gap: 26px;
}

.category-overview-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 26px;
}

.category-overview-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.category-overview-head a {
  color: #fbbf24;
  font-weight: 800;
}

.filter-panel {
  padding-top: 36px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.simple-toolbar {
  grid-template-columns: 1fr;
}

.local-search {
  width: 100%;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-button {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.96);
  border: 1px solid var(--line);
  padding: 9px 12px;
}

.filter-button:hover,
.filter-button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  color: var(--muted);
  text-align: center;
}

.empty-state.show {
  display: block;
}

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

.breadcrumb a {
  color: #fbbf24;
}

.detail-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.player-section,
.detail-content,
.side-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.player-section {
  overflow: hidden;
}

.video-shell {
  position: relative;
  min-height: 280px;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: 0.22s ease;
}

.play-overlay span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.35);
  font-size: 32px;
}

.play-overlay strong {
  font-size: 18px;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  color: #fecaca;
  text-align: center;
  pointer-events: none;
}

.detail-content {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 38px);
}

.detail-content h1 {
  margin: 18px 0 10px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
  color: var(--muted-2);
}

.detail-meta span {
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.88);
  padding: 6px 11px;
}

.detail-content section {
  margin-top: 28px;
}

.detail-content h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.detail-content p {
  margin: 0;
  color: #d7dee9;
  font-size: 17px;
}

.detail-poster {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.side-card {
  margin-top: 18px;
  padding: 20px;
}

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

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

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

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

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), #000);
}

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

.footer-brand {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
  color: var(--muted);
  font-size: 13px;
}

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
  }

  .side-card {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
    width: min(100% - 24px, 1280px);
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

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

  .hero-frame {
    height: 560px;
  }

  .hero-control {
    display: none;
  }

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

  .wide-grid,
  .poster-grid,
  .large-grid,
  .mini-poster-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row,
  .ranking-card {
    grid-template-columns: 46px 96px 1fr;
    gap: 10px;
  }

  .ranking-info p,
  .rank-row p {
    display: none;
  }

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

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

  .footer-grid {
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .poster-grid,
  .large-grid,
  .mini-poster-grid,
  .category-grid,
  .wide-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-row,
  .ranking-card {
    grid-template-columns: 42px 86px 1fr;
  }

  .card-image {
    min-height: 210px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .sub-hero {
    width: min(100% - 24px, 1280px);
    border-radius: 22px;
  }
}
