:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --deep: #020617;
  --slate: #0f172a;
  --teal: #14b8a6;
  --cyan: #22d3ee;
  --line: #e2e8f0;
  --shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef6f8 45%, #f8fafc 100%);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  box-shadow: 0 16px 35px rgba(2, 6, 23, 0.26);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  color: #042f2e;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.35);
}

.brand-text {
  font-size: clamp(20px, 2vw, 28px);
}

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

.desktop-links a,
.mobile-panel a {
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-links a:hover,
.desktop-links a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: #5eead4;
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.big-search input,
.hero-search-card input {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  color: var(--text);
  min-width: 210px;
  background: #fff;
}

.nav-search button,
.mobile-search button,
.big-search button,
.hero-search-card button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #042f2e;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.hero-search-card button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.28);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #e2e8f0;
}

.mobile-panel {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  width: min(1220px, calc(100% - 32px));
  margin: 28px auto 0;
}

.hero-stage {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--deep);
  box-shadow: var(--shadow);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.56) 48%, rgba(2, 6, 23, 0.28)), linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 58%);
}

.hero-content {
  position: absolute;
  left: clamp(28px, 5vw, 72px);
  bottom: clamp(42px, 8vw, 90px);
  width: min(760px, calc(100% - 56px));
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow,
.watch-head .eyebrow,
.ranking-hero .eyebrow {
  color: #67e8f9;
}

.hero h1,
.page-hero h1,
.watch-head h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-summary,
.page-hero p,
.watch-head p {
  max-width: 760px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

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

.hero-tags span,
.detail-tags a,
.quick-tags a,
.tag-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  background: #ccfbf1;
}

.hero-tags span {
  color: #ecfeff;
  background: rgba(20, 184, 166, 0.28);
  border: 1px solid rgba(94, 234, 212, 0.32);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
}

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

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.ghost-button.dark {
  color: var(--slate);
  border-color: var(--line);
  background: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: clamp(28px, 5vw, 72px);
  bottom: 26px;
  display: flex;
  gap: 10px;
}

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

.hero-dots button.active {
  background: #5eead4;
}

.hero-side {
  display: grid;
  gap: 18px;
  align-self: stretch;
}

.hero-search-card,
.feature-panel,
.ranking-panel,
.detail-main,
.detail-aside,
.category-card,
.empty-state {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.hero-search-card {
  padding: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(236, 254, 255, 0.92));
}

.hero-search-card h2 {
  margin: 0 0 18px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.hero-search-card form,
.big-search {
  display: flex;
  gap: 10px;
}

.hero-search-card input,
.big-search input {
  flex: 1;
  min-width: 0;
}

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

.hero-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 800;
  font-size: 13px;
}

.hero-thumb-list {
  display: grid;
  gap: 12px;
}

.hero-thumb,
.compact-card,
.ranking-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-thumb:hover,
.compact-card:hover,
.ranking-list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.hero-thumb img,
.compact-card img,
.ranking-list img {
  width: 72px;
  height: 88px;
  border-radius: 13px;
  object-fit: cover;
}

.hero-thumb span,
.compact-card strong,
.rank-title {
  display: block;
  color: #0f172a;
  font-weight: 900;
}

.compact-card em,
.ranking-list em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.home-section,
.page-shell,
.detail-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 52px auto;
}

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

.section-head h2,
.page-hero h1,
.detail-main h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.section-head.mini h2 {
  font-size: 28px;
}

.text-link {
  color: #0f766e;
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  height: 276px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-dot,
.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #042f2e;
  background: rgba(94, 234, 212, 0.94);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 16px 32px rgba(20, 184, 166, 0.32);
}

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

.card-year,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.card-year {
  right: 12px;
  color: #ecfeff;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  left: 12px;
  color: #042f2e;
  background: linear-gradient(135deg, #fef08a, #5eead4);
}

.movie-card-body {
  padding: 17px;
}

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.movie-card-body h3 a:hover {
  color: #0f766e;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.movie-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f1f5f9;
}

.tag-line span {
  padding: 5px 9px;
  font-size: 11px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 26px;
}

.feature-panel,
.ranking-panel {
  padding: 32px;
}

.feature-panel {
  color: #e2e8f0;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.26), transparent 35%), linear-gradient(145deg, #0f172a, #020617);
}

.feature-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.feature-panel p {
  color: #cbd5e1;
  line-height: 1.75;
}

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

.ranking-list a {
  grid-template-columns: 42px 66px 1fr auto;
}

.ranking-list img {
  width: 66px;
  height: 82px;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #042f2e;
  font-weight: 900;
  background: #99f6e4;
}

.category-strip {
  margin-top: 32px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(207, 250, 254, 0.6));
}

.page-shell {
  margin-top: 38px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #0f766e;
}

.breadcrumb.light {
  color: #bae6fd;
}

.page-hero,
.watch-head {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(34px, 6vw, 72px);
  background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.2), transparent 32%), linear-gradient(145deg, #0f172a, #020617);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero p {
  color: #cbd5e1;
}

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

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

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-covers {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 8px;
  height: 220px;
  padding: 12px 12px 0;
}

.category-covers img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.category-card-body p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.quick-tags {
  margin-top: 22px;
}

.category-grid,
.ranking-grid,
.search-grid {
  margin-top: 30px;
}

.search-tools {
  width: min(1220px, calc(100% - 32px));
  margin: -26px auto 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.search-tools button {
  border: 1px solid #ccfbf1;
  border-radius: 999px;
  padding: 10px 14px;
  color: #0f766e;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.search-tools button.active {
  color: #042f2e;
  background: #99f6e4;
}

.empty-state {
  width: min(760px, calc(100% - 32px));
  margin: 40px auto;
  padding: 40px;
  text-align: center;
}

.watch-head {
  border-radius: 0;
  padding-top: 58px;
  padding-bottom: 120px;
}

.watch-head-inner,
.player-section,
.detail-shell {
  width: min(1220px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.player-section {
  margin-top: -84px;
  position: relative;
  z-index: 2;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 26px 58px rgba(2, 6, 23, 0.35);
  aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover,
.player-cover img,
.player-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  background: #000;
}

.player-cover {
  z-index: 3;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #020617;
}

.player-cover[hidden] {
  display: none;
}

.player-cover img {
  object-fit: cover;
}

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

.player-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  font-size: 22px;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.detail-main,
.detail-aside {
  padding: clamp(22px, 4vw, 36px);
}

.detail-main h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 28px;
}

.detail-main p {
  margin: 0 0 30px;
  color: #334155;
  line-height: 1.95;
  font-size: 16px;
}

.detail-poster {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: var(--soft-shadow);
}

.detail-list {
  display: grid;
  gap: 13px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.detail-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-list strong {
  color: var(--text);
  line-height: 1.45;
}

.related-section {
  margin-top: 10px;
}

.site-footer {
  margin-top: 70px;
  padding: 48px 0 24px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 38px;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.site-footer p {
  max-width: 560px;
  line-height: 1.75;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

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

.copyright {
  width: min(1220px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  color: #94a3b8;
  font-size: 13px;
}

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

  .menu-button {
    display: block;
  }

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

  .mobile-search input {
    flex: 1;
    min-width: 0;
  }

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

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

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

@media (max-width: 860px) {
  .hero,
  .hero-stage {
    min-height: 620px;
  }

  .hero-side,
  .split-section,
  .detail-shell,
  .footer-inner,
  .category-overview {
    grid-template-columns: 1fr;
  }

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .ranking-list em {
    display: none;
  }

  .detail-aside {
    order: -1;
  }
}

@media (max-width: 560px) {
  .site-nav,
  .mobile-panel,
  .hero,
  .home-section,
  .page-shell,
  .detail-shell,
  .player-section,
  .watch-head-inner,
  .footer-inner,
  .copyright,
  .search-tools {
    width: min(100% - 20px, 1220px);
  }

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

  .hero,
  .hero-stage {
    min-height: 560px;
  }

  .hero-content {
    left: 20px;
    bottom: 60px;
    width: calc(100% - 40px);
  }

  .hero-arrow {
    display: none;
  }

  .hero-search-card form,
  .big-search,
  .mobile-search {
    flex-direction: column;
  }

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

  .movie-poster {
    height: 330px;
  }

  .category-covers {
    height: 170px;
  }

  .watch-head {
    padding-bottom: 100px;
  }

  .player-box {
    border-radius: 18px;
  }
}
