:root {
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --yellow-700: #a16207;
  --white: #ffffff;
  --black: #000000;
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.12), 0 2px 4px -2px rgb(15 23 42 / 0.12);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.14), 0 4px 6px -4px rgb(15 23 42 / 0.14);
  --shadow-2xl: 0 25px 50px -12px rgb(15 23 42 / 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), var(--white));
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--slate-900);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.82;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: 0 0 24px rgb(34 211 238 / 0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cyan-400);
}

.header-search {
  position: relative;
  width: 250px;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--white);
  background: var(--slate-800);
  border-radius: 12px;
  padding: 10px 14px 10px 40px;
}

.header-search::before {
  content: "⌕";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
}

.mobile-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgb(148 163 184 / 0.2);
  padding: 14px 0 20px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #e2e8f0;
}

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

.header-search-mobile {
  position: relative;
  margin-top: 10px;
}

.header-search-mobile input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--white);
  background: var(--slate-800);
  border-radius: 12px;
  padding: 11px 14px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
}

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

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.84), rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-copy {
  max-width: 700px;
  display: grid;
  gap: 22px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--cyan-500);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgb(6 182 212 / 0.32);
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 28px rgb(0 0 0 / 0.4);
}

.hero p {
  margin: 0;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: #cbd5e1;
  font-size: 14px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  padding: 7px 12px;
  backdrop-filter: blur(12px);
}

.rating-pill {
  color: var(--yellow-400);
  background: rgb(250 204 21 / 0.12);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--cyan-500);
  box-shadow: 0 16px 32px rgb(6 182 212 / 0.3);
}

.btn-primary:hover {
  background: var(--cyan-600);
}

.btn-ghost {
  color: var(--white);
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.22);
}

.btn-light {
  color: var(--cyan-700);
  background: var(--cyan-50);
}

.hero-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgb(0 0 0 / 0.5);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgb(0 0 0 / 0.72);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.54);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

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

.page-shell {
  padding: 44px 0 70px;
}

.section-stack {
  display: grid;
  gap: 58px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
}

.section-title::before {
  content: "";
  width: 7px;
  height: 32px;
  border-radius: 999px;
  background: var(--cyan-500);
}

.section-subtitle {
  margin: 10px 0 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.panel {
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(100deg, var(--slate-100), var(--cyan-50));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7);
}

.panel-dark {
  border-radius: 24px;
  padding: 28px;
  color: var(--white);
  background: var(--slate-900);
  box-shadow: var(--shadow-lg);
}

.panel-dark .section-title,
.panel-dark .section-subtitle {
  color: var(--white);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

.poster {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--slate-200);
}

.poster-small {
  height: 190px;
}

.poster-large {
  height: 320px;
}

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

.card-link:hover .poster img {
  transform: scale(1.1);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.78), rgb(0 0 0 / 0.28), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-link:hover .poster::after {
  opacity: 1;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgb(6 182 212 / 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 17px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.card-link:hover h3 {
  color: var(--cyan-600);
}

.card-body p {
  min-height: 44px;
  margin: 7px 0 0;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--slate-500);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--cyan-50);
  color: var(--cyan-700);
  padding: 5px 9px;
  font-size: 12px;
  white-space: nowrap;
}

.star {
  color: var(--yellow-500);
  font-weight: 800;
}

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

.category-tile {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(135deg, var(--white), var(--cyan-50));
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.category-tile h2,
.category-tile h3 {
  margin: 0;
  font-size: 24px;
  color: var(--slate-800);
}

.category-tile p {
  color: var(--slate-600);
  line-height: 1.7;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto;
  gap: 12px;
  margin: 24px 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--slate-700);
  outline: none;
  background: var(--white);
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgb(34 211 238 / 0.18);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--slate-600);
  font-size: 14px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--black);
  box-shadow: var(--shadow-2xl);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: var(--white);
  background: var(--black);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(6 182 212 / 0.94);
  box-shadow: 0 18px 46px rgb(6 182 212 / 0.36);
  transform: translate(-50%, -50%);
  font-size: 34px;
  padding-left: 4px;
}

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

.content-box,
.side-box {
  border-radius: 22px;
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.content-box h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  color: var(--slate-800);
}

.info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.info-line span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 13px;
}

.info-line .score {
  color: var(--yellow-700);
  background: #fef9c3;
  font-weight: 800;
}

.article-section {
  border-top: 1px solid var(--slate-200);
  padding-top: 22px;
  margin-top: 22px;
}

.article-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--slate-800);
}

.article-section p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list a,
.tag-list span {
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.tag-list a:hover {
  background: var(--cyan-100);
  color: var(--cyan-700);
}

.side-box {
  position: sticky;
  top: 92px;
}

.side-box h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 104px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item p {
  margin: 4px 0 0;
  color: var(--slate-500);
  font-size: 12px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 64px 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-radius: 18px;
  padding: 16px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.rank-number {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--cyan-700);
  background: var(--cyan-50);
  font-size: 22px;
  font-weight: 900;
}

.ranking-item img {
  width: 150px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-item h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.ranking-item p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.6;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.empty-state {
  border-radius: 22px;
  padding: 36px;
  text-align: center;
  color: var(--slate-600);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.site-footer {
  margin-top: 60px;
  padding: 44px 0;
  color: #cbd5e1;
  background: var(--slate-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer p,
.site-footer li {
  line-height: 1.8;
  color: #cbd5e1;
}

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

.site-footer a:hover {
  color: var(--cyan-400);
}

@media (max-width: 1050px) {
  .grid-6,
  .grid-4,
  .search-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .side-box {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 620px;
  }

  .hero-layer {
    background: linear-gradient(0deg, rgb(0 0 0 / 0.86), rgb(0 0 0 / 0.42));
  }

  .hero-control {
    display: none;
  }

  .grid-6,
  .grid-4,
  .grid-3,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .ranking-item .btn {
    grid-column: 2 / 4;
  }

  .ranking-item img {
    width: 96px;
    height: 70px;
  }

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

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

  .brand {
    font-size: 19px;
  }

  .hero {
    min-height: 580px;
  }

  .hero-copy {
    gap: 16px;
  }

  .grid-6,
  .grid-4,
  .grid-3,
  .search-results,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster,
  .poster-small,
  .poster-large {
    height: 300px;
  }

  .panel,
  .panel-dark,
  .content-box,
  .side-box {
    padding: 20px;
  }
}
