:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --teal: #14b8a6;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --panel: #ffffff;
  --shadow: 0 22px 55px rgba(15, 23, 42, .13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 45%, #f8fbff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(236, 254, 255, .96), rgba(239, 246, 255, .96), rgba(240, 253, 250, .96));
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.nav-shell {
  max-width: 1240px;
  height: 70px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 12px 24px rgba(6, 182, 212, .3);
}

.brand-text {
  font-size: 22px;
  color: #0f172a;
}

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

.nav-link {
  position: relative;
  padding: 10px 14px;
  color: #334155;
  font-weight: 700;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-dark);
  background: rgba(6, 182, 212, .1);
}

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

.top-search input,
.mobile-search input,
.filter-search input,
.filter-selects select {
  border: 1px solid rgba(8, 145, 178, .22);
  background: rgba(255, 255, 255, .9);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  color: #0f172a;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-search input:focus,
.filter-selects select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, .15);
}

.top-search input {
  width: 220px;
}

.top-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.text-link {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.top-search button,
.mobile-search button,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  padding: 11px 18px;
  box-shadow: 0 12px 25px rgba(6, 182, 212, .24);
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary-btn:hover,
.top-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(6, 182, 212, .32);
}

.ghost-btn {
  padding: 11px 18px;
  color: #e0faff;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}

.text-link {
  color: var(--cyan-dark);
  background: transparent;
  font-weight: 900;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(6, 182, 212, .12);
  color: #0f172a;
  font-size: 23px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(8, 145, 178, .14);
  padding: 14px 22px 18px;
  background: #fff;
}

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

.mobile-search input {
  flex: 1;
}

.mobile-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 46px;
  align-items: center;
  padding: 88px max(24px, calc((100vw - 1240px) / 2)) 82px;
  background-size: cover;
  background-position: center;
  transition: opacity .65s ease, visibility .65s ease, transform 1s ease;
  transform: scale(1.03);
}

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

.hero-copy {
  max-width: 760px;
  color: #fff;
  animation: fadeUp .7s ease both;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #facc15;
  background: rgba(250, 204, 21, .12);
  border: 1px solid rgba(250, 204, 21, .28);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--cyan-dark);
  background: rgba(6, 182, 212, .09);
  border-color: rgba(6, 182, 212, .18);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -.055em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, .36);
}

.hero p {
  max-width: 710px;
  margin: 0;
  color: #dbeafe;
  font-size: 20px;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta {
  margin: 22px 0 26px;
}

.hero-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #ecfeff;
  background: rgba(6, 182, 212, .22);
  border: 1px solid rgba(125, 211, 252, .26);
  font-weight: 800;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-poster {
  display: block;
  align-self: center;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 255, 255, .22);
  transform: rotate(2deg);
  transition: transform .28s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

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

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 34px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

.hero-controls button,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}

.hero-controls button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 28px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  transition: width .25s ease, background .25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--cyan);
}

.intro-strip,
.content-section,
.page-main,
.detail-main {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 34px;
  margin-bottom: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  box-shadow: var(--shadow);
}

.intro-strip h2,
.section-head h2,
.page-hero h1,
.detail-article h2,
.side-card h2 {
  margin: 0;
  letter-spacing: -.035em;
}

.intro-strip h2 {
  font-size: 32px;
}

.intro-strip p {
  margin: 6px 0 0;
  color: var(--muted);
}

.content-section {
  padding-top: 54px;
  padding-bottom: 18px;
}

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

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(28px, 3vw, 42px);
}

.compact-head h2 {
  font-size: 30px;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
  border: 1px solid rgba(226, 232, 240, .92);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, .28);
  box-shadow: 0 24px 50px rgba(15, 23, 42, .16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #ecfeff, #e0f2fe);
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}

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

.score-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.score-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 16px;
}

.card-meta {
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 3px 8px;
}

.card-body h2,
.rank-copy h2 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.rank-copy h2 a:hover,
.detail-article a:hover {
  color: var(--cyan-dark);
}

.card-body p,
.rank-copy p,
.category-card p,
.detail-article p,
.side-card dd,
.page-hero p {
  color: var(--muted);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  font-size: 14px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--cyan-dark);
  background: rgba(6, 182, 212, .09);
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 6px;
  padding: 18px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .15);
  transition: transform .25s ease, box-shadow .25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, .22);
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  font-size: 13px;
  color: #dbeafe;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 34px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(226, 232, 240, .92);
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.rank-no {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

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

.rank-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-copy h2 {
  font-size: 18px;
}

.rank-copy p {
  margin: 0;
  font-size: 14px;
}

.expanded-rank .rank-item {
  grid-template-columns: 48px 96px minmax(0, 1fr) auto;
}

.page-main,
.detail-main {
  padding-top: 34px;
  padding-bottom: 70px;
}

.page-hero {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 32px;
  color: #fff;
  padding: 48px;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.small-hero {
  color: #0f172a;
  background: linear-gradient(135deg, #ecfeff, #eff6ff 52%, #f0fdfa);
}

.small-hero .eyebrow {
  color: var(--cyan-dark);
  border-color: rgba(6, 182, 212, .18);
  background: rgba(6, 182, 212, .1);
}

.page-hero h1 {
  max-width: 820px;
  margin-top: 14px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.08;
}

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

.page-hero:not(.small-hero) p {
  color: #e0f2fe;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .07);
}

.filter-search {
  flex: 1;
}

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

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

.empty-state {
  display: none;
  margin-bottom: 22px;
  padding: 28px;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #cbd5e1;
}

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

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

.category-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
}

.category-cover {
  overflow: hidden;
  border-radius: 18px;
}

.category-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-card h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 12px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a {
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--cyan-dark);
  background: rgba(6, 182, 212, .09);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--cyan-dark);
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  gap: 28px;
  align-items: stretch;
}

.player-panel,
.watch-info,
.detail-article,
.side-card {
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .92);
  box-shadow: var(--shadow);
}

.player-panel {
  overflow: hidden;
  padding: 14px;
  background: #020617;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, .1), rgba(2, 6, 23, .78));
  cursor: pointer;
  transition: opacity .22s ease, visibility .22s ease;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 18px 45px rgba(6, 182, 212, .35);
  font-size: 34px;
  text-indent: 5px;
}

.cover-title {
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

.watch-info {
  padding: 28px;
}

.watch-info h1 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
}

.watch-info p {
  color: var(--muted);
  margin: 0 0 18px;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-meta span {
  color: #0f172a;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 28px;
}

.detail-article,
.side-card {
  padding: 28px;
}

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

.detail-article h2:not(:first-child) {
  margin-top: 28px;
}

.detail-article p {
  margin: 0;
  font-size: 17px;
}

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

.side-card dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

.side-card dt {
  color: #0f172a;
  font-weight: 900;
}

.side-card dd {
  margin: 0;
}

.side-card a {
  color: var(--cyan-dark);
  font-weight: 900;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a 52%, #111827);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 22px 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

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

.site-footer p {
  max-width: 430px;
  color: #94a3b8;
}

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

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px 26px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, .18);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .top-search {
    display: none;
  }

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

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

  .hero-slide,
  .watch-layout,
  .detail-content-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }
}

@media (max-width: 800px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-shell {
    height: 64px;
  }

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

  .hero {
    min-height: 590px;
  }

  .hero-slide {
    padding: 74px 20px 84px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .intro-strip,
  .section-head,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .category-card,
  .rank-item,
  .expanded-rank .rank-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .rank-no,
  .rank-item .text-link {
    display: none;
  }

  .category-cover {
    align-self: start;
  }

  .page-hero {
    min-height: 260px;
    padding: 30px;
    border-radius: 24px;
  }
}

@media (max-width: 560px) {
  .movie-grid,
  .large-grid,
  .category-grid,
  .category-card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .filter-selects {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn,
  .filter-selects select {
    width: 100%;
    text-align: center;
  }

  .hero-controls {
    right: 20px;
    bottom: 22px;
  }

  .hero-dots {
    bottom: 28px;
  }

  .intro-strip,
  .content-section,
  .page-main,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .player-panel,
  .watch-info,
  .detail-article,
  .side-card {
    border-radius: 20px;
  }
}
