:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --teal: #0d9488;
  --cyan: #0891b2;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 26px 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;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

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

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

.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.85);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.28);
}

.logo-text {
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #334155;
  font-weight: 650;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--teal);
}

.search-box {
  position: relative;
  width: min(270px, 28vw);
}

.search-box input,
.filter-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--text);
  outline: none;
  padding: 11px 45px 11px 18px;
  font-size: 14px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.search-box input:focus,
.filter-input:focus {
  background: #ffffff;
  border-color: rgba(13, 148, 136, 0.55);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.search-box button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 20px 20px;
  background: #ffffff;
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #334155;
  font-weight: 650;
}

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

.main-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 58px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  margin: 26px auto 44px;
  border-radius: 34px;
  background: radial-gradient(circle at 20% 0%, rgba(20, 184, 166, 0.32), transparent 38%), linear-gradient(135deg, #0f172a, #0f766e 55%, #0891b2);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero-slide {
  display: none;
  min-height: 590px;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: 34px;
  padding: 54px;
}

.hero-slide.active {
  display: grid;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ccfbf1;
  font-weight: 750;
  font-size: 14px;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 720px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.78;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 13px;
  font-weight: 750;
}

.hero .pill {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  min-height: 46px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 34px rgba(8, 145, 178, 0.30);
}

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

.btn-ghost {
  background: #ffffff;
  color: #0f766e;
  border: 1px solid var(--line);
}

.hero-poster {
  position: relative;
  aspect-ratio: 0.72;
  max-height: 520px;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px rgba(2, 6, 23, 0.35);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.72));
}

.hero-poster strong {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  z-index: 2;
  font-size: 26px;
  line-height: 1.18;
}

.hero-dots {
  position: absolute;
  left: 54px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.active {
  width: 36px;
  border-radius: 999px;
  background: #ffffff;
}

.section {
  margin: 42px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 148, 136, 0.40);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.70;
  background: #e2e8f0;
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 14px 14px 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.card-title a:hover {
  color: var(--teal);
}

.card-line {
  min-height: 42px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

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

.category-card {
  min-height: 160px;
  border-radius: 26px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 148, 136, 0.42);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.page-hero {
  margin: 26px 0 34px;
  border-radius: 32px;
  padding: 46px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 0%, rgba(45, 212, 191, 0.35), transparent 34%), linear-gradient(135deg, #0f172a, #0f766e 58%, #0891b2);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  line-height: 1.76;
  font-size: 17px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.filter-row form {
  width: min(420px, 100%);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 86px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 0.72;
  border-radius: 16px;
  overflow: hidden;
  background: #e2e8f0;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 7px;
  font-size: 20px;
}

.rank-title a:hover {
  color: var(--teal);
}

.rank-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

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

.player-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.video-wrap {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.70));
}

.play-layer.hidden {
  display: none;
}

.play-button {
  border: 0;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 31px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 18px 50px rgba(8, 145, 178, 0.45);
}

.detail-card {
  border-radius: 30px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

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

.breadcrumb a:hover {
  color: var(--teal);
}

.detail-title {
  margin: 20px 0 14px;
  font-size: clamp(33px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.article-block {
  margin-top: 26px;
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.article-block p {
  color: #334155;
  line-height: 1.88;
  font-size: 16px;
}

.side-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #e2e8f0;
  box-shadow: var(--shadow-soft);
}

.side-poster img {
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
}

.side-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.side-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.side-item img {
  width: 58px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
}

.side-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.35;
}

.side-item span {
  color: #64748b;
  font-size: 12px;
}

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

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 24px;
}

.footer-inner p {
  margin: 0;
  line-height: 1.72;
  color: #94a3b8;
}

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

.footer-links a {
  color: #cbd5e1;
}

@media (max-width: 1120px) {
  .grid,
  .grid-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 34px 26px 84px;
  }

  .hero-poster {
    max-height: none;
    transform: none;
  }

  .hero-dots {
    left: 28px;
  }

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

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

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

@media (max-width: 640px) {
  .header-inner {
    padding: 13px 16px;
  }

  .logo {
    font-size: 21px;
  }

  .main-wrap {
    padding: 0 14px 38px;
  }

  .hero {
    margin-top: 16px;
    border-radius: 24px;
  }

  .hero,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 30px 18px 74px;
  }

  .grid,
  .grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 48px 66px 1fr;
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }

  .detail-card {
    padding: 20px;
  }

  .play-button {
    width: 70px;
    height: 70px;
  }
}
