
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --teal: #0f766e;
  --cyan: #0891b2;
  --green: #16a34a;
  --amber: #d97706;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

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

.logo-text strong {
  font-size: 20px;
  color: var(--text);
}

.logo-text em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

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

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

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.45), transparent 28%), linear-gradient(135deg, #0f766e 0%, #2563eb 54%, #1e3a8a 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px), linear-gradient(30deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  padding: 88px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.hero-intro h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: #67e8f9;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-search {
  display: flex;
  max-width: 560px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 14px 16px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-search button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 14px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-search button,
.primary-button {
  color: var(--primary);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.primary-button.dark {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.secondary-button.light {
  color: var(--primary);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.hero-search button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.13);
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.32);
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.82)), linear-gradient(90deg, rgba(2, 6, 23, 0.84), transparent 68%);
}

.hero-copy {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 34px;
  max-width: 580px;
}

.hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.hero-copy p {
  margin: 0 0 18px;
  color: #dbeafe;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 700;
}

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

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

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

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

.section-block.light {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: #ffffff;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-heading h2,
.section-copy h2,
.content-card h2,
.side-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

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

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.stats-panel article,
.category-card,
.movie-card,
.category-overview-card,
.content-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.stats-panel article {
  padding: 26px;
}

.stats-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.stats-panel p {
  margin: 0;
  color: var(--muted);
}

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

.category-card {
  padding: 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

.category-card h3,
.movie-card h3,
.category-overview-card h2,
.overview-title {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 850;
}

.category-card p,
.movie-card p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
}

.category-card strong,
.text-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 800;
}

.category-samples {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #475569;
}

.catalog-tools {
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  outline: none;
  color: var(--text);
  background: var(--bg);
}

.search-box input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #334155;
  background: #e2e8f0;
  font-weight: 800;
  cursor: pointer;
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card.is-hidden {
  display: none;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.cover-type,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: auto;
  right: 12px;
  min-width: 30px;
  text-align: center;
  background: linear-gradient(135deg, #f97316, #e11d48);
}

.movie-card-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

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

.movie-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.movie-card h3 a:hover,
.overview-title:hover,
.ranking-list a:hover strong {
  color: var(--primary);
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.movie-card.compact .movie-cover {
  aspect-ratio: auto;
  min-height: 210px;
}

.movie-card.compact .movie-card-body {
  align-content: center;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 36px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
}

.empty-state.is-visible {
  display: block;
}

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  gap: 38px;
  align-items: start;
}

.section-copy {
  position: sticky;
  top: 98px;
  padding: 34px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  box-shadow: var(--shadow);
}

.section-copy h2,
.section-copy p {
  color: #ffffff;
}

.section-copy .primary-button {
  margin-top: 24px;
}

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

.ranking-list li a {
  display: grid;
  grid-template-columns: 40px 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-list span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

.ranking-list img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface-soft);
}

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

.ranking-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.breadcrumb,
.detail-hero,
.watch-section,
.content-layout {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.page-hero {
  margin-top: 32px;
  padding: 72px;
  border-radius: 32px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.32), transparent 26%), linear-gradient(135deg, #0f766e, #2563eb 58%, #172554);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #e0f2fe;
  font-size: 18px;
}

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

.category-overview-card {
  padding: 26px;
  display: grid;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.category-overview-card li a {
  color: #475569;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 750;
}

.detail-hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  padding: 28px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

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

.detail-summary h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-line {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 720;
}

.detail-one-line {
  margin: 0 0 22px;
  color: #334155;
  font-size: 18px;
}

.tag-list.large span {
  font-size: 13px;
  padding: 7px 11px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.watch-section {
  padding: 70px 0 34px;
}

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

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

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

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

.play-symbol {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 34px;
  color: var(--primary);
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.24);
}

.player-overlay strong {
  font-size: 24px;
}

.player-overlay em {
  color: #dbeafe;
  font-style: normal;
}

.player-message {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.88);
}

.player-shell.has-error .player-message {
  display: block;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  padding: 36px 0 12px;
}

.content-card,
.side-card {
  padding: 30px;
}

.content-card p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 17px;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

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

.side-card dd {
  margin: -8px 0 0;
  color: var(--text);
}

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

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

.site-footer {
  margin-top: 50px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
}

.footer-logo strong,
.site-footer h2 {
  color: #ffffff;
}

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

.site-footer p {
  margin: 12px 0 0;
  color: #94a3b8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 1080px) {
  .hero-inner,
  .split-block,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 58px;
  }

  .hero-carousel {
    min-height: 480px;
  }

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

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

  .section-copy {
    position: static;
  }

  .detail-hero {
    grid-template-columns: 260px 1fr;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    height: 64px;
  }

  .main-nav {
    display: none;
  }

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

  .logo-text strong {
    font-size: 17px;
  }

  .logo-text em {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 46px 0 52px;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-carousel {
    min-height: 420px;
    border-radius: 24px;
  }

  .hero-copy {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
  }

  .stats-panel,
  .category-grid,
  .overview-grid,
  .movie-grid,
  .related-grid,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .movie-card.compact .movie-cover {
    min-height: auto;
    aspect-ratio: 3 / 4;
  }

  .page-hero {
    padding: 38px 24px;
    border-radius: 24px;
  }

  .detail-hero {
    padding: 18px;
  }

  .detail-poster img {
    min-height: auto;
  }

  .watch-section {
    padding-top: 44px;
  }

  .player-shell {
    border-radius: 22px;
  }

  .content-card,
  .side-card {
    padding: 22px;
  }

  .ranking-list li a {
    grid-template-columns: 32px 58px 1fr;
  }

  .ranking-list img {
    width: 58px;
    height: 78px;
  }
}
