:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #eff6ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-2: #06b6d4;
  --accent: #f97316;
  --green: #16a34a;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link,
.mobile-link {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.header-search input {
  width: 210px;
  padding: 8px 8px 8px 14px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search button,
.btn,
.filter-chip {
  cursor: pointer;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.header-search button {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
}

.header-search button:hover,
.btn:hover,
.filter-chip:hover,
.movie-card:hover,
.category-tile:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #0f172a;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid #e2e8f0;
}

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

.mobile-link {
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: radial-gradient(circle at 14% 12%, rgba(34, 211, 238, 0.32), transparent 30%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 48%, #0891b2 100%);
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.38) 100%), var(--hero-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.68fr);
  align-items: center;
  gap: 54px;
  padding: 72px 0 96px;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.hero h2 {
  font-size: clamp(34px, 5vw, 64px);
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.meta-pills span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: #1e40af;
  background: #dbeafe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 900;
}

.btn.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn.light {
  color: var(--primary);
  background: #ffffff;
}

.hero-poster {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 370px);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: inherit;
  pointer-events: none;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-control.prev {
  left: max(20px, calc((100vw - 1180px) / 2 - 66px));
}

.hero-control.next {
  right: max(20px, calc((100vw - 1180px) / 2 - 66px));
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  background: rgba(255, 255, 255, 0.44);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.main-section,
.page-main {
  padding: 64px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

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

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

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta,
.rank-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-meta a,
.rank-meta a,
.breadcrumb a {
  color: var(--primary);
}

.movie-card h3,
.rank-copy h3 {
  margin: 8px 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p,
.rank-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.movie-card.large {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
}

.movie-card.large .card-poster img {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.movie-card.horizontal .card-poster img {
  height: 100%;
  min-height: 166px;
  aspect-ratio: auto;
}

.scroller {
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.scroller-track {
  display: grid;
  grid-auto-columns: 280px;
  grid-auto-flow: column;
  gap: 22px;
}

.soft-band {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #9333ea, #2563eb);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-tile:nth-child(4n) {
  background: linear-gradient(135deg, #16a34a, #0891b2);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.1;
}

.category-tile span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
}

.category-tile em {
  position: absolute;
  right: 20px;
  bottom: 16px;
  font-style: normal;
  font-weight: 900;
  opacity: 0.8;
}

.rank-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
}

.rank-thumb img {
  width: 92px;
  height: 122px;
  object-fit: cover;
}

.callout {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 28px;
}

.callout .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding-top: 42px;
  padding-bottom: 42px;
}

.callout h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.04em;
}

.callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero {
  padding: 64px 0 34px;
  background: radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.2), transparent 28%), linear-gradient(135deg, #ffffff, #eff6ff);
  border-bottom: 1px solid #e2e8f0;
}

.page-title {
  max-width: 820px;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.filter-input {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  outline: none;
}

.filter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 8px 14px;
  color: #1e40af;
  background: #dbeafe;
  border-radius: 999px;
  font-weight: 900;
}

.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.no-results {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
}

.detail-hero {
  padding: 42px 0 64px;
  color: #ffffff;
  background: radial-gradient(circle at 12% 16%, rgba(34, 211, 238, 0.28), transparent 32%), linear-gradient(135deg, #0f172a, #1e3a8a 62%, #0891b2);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
  gap: 36px;
  align-items: start;
}

.breadcrumb {
  margin-bottom: 18px;
  color: #bfdbfe;
}

.detail-title h1 {
  color: #ffffff;
}

.detail-title p {
  color: #dbeafe;
  font-size: 17px;
}

.player-shell {
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.player-stage {
  position: relative;
  background: #000000;
  cursor: pointer;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.66)), var(--poster);
  background-position: center;
  background-size: cover;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: 0;
  border-radius: 50%;
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.35);
  cursor: pointer;
}

.player-button span {
  margin-left: 5px;
  font-size: 30px;
}

.player-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  color: #e0f2fe;
}

.detail-poster-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

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

.detail-poster-copy {
  padding: 18px;
}

.detail-poster-copy dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 12px;
  margin: 0;
}

.detail-poster-copy dt {
  color: #bfdbfe;
  font-weight: 900;
}

.detail-poster-copy dd {
  margin: 0;
  color: #ffffff;
}

.detail-content {
  padding: 60px 0;
}

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

.article-panel,
.side-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.article-panel {
  padding: 30px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.article-panel p {
  color: #334155;
  font-size: 17px;
}

.side-panel {
  padding: 20px;
}

.side-panel .rank-item {
  grid-template-columns: 42px 70px 1fr;
  padding: 10px;
  box-shadow: none;
}

.side-panel .rank-num {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.side-panel .rank-thumb img {
  width: 70px;
  height: 92px;
}

.side-panel .rank-copy h3 {
  font-size: 15px;
}

.side-panel .rank-copy p,
.side-panel .rank-meta {
  display: none;
}

.hidden-by-filter {
  display: none !important;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0;
}

.site-footer strong {
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  max-width: 600px;
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: center;
}

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

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

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .detail-layout,
  .content-grid,
  .callout .container {
    grid-template-columns: 1fr;
  }

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

  .hero-poster {
    width: min(100%, 310px);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero,
  .hero-track {
    min-height: 760px;
  }

  .hero-content {
    gap: 28px;
    padding: 44px 0 86px;
  }

  .hero-control {
    display: none;
  }

  .main-section,
  .page-main,
  .detail-content {
    padding: 42px 0;
  }

  .section-heading {
    display: block;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.large,
  .movie-card.horizontal {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal .card-poster img {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .rank-item {
    grid-template-columns: 42px 74px 1fr;
    gap: 10px;
  }

  .rank-thumb img {
    width: 74px;
    height: 98px;
  }

  .rank-copy p,
  .rank-meta {
    display: none;
  }

  .article-panel {
    padding: 22px;
  }

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