:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --soft: #e2e8f0;
  --line: #e5e7eb;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --cyan: #0891b2;
  --orange: #ea580c;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 58%, #f1f5f9 100%);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.22);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334155;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 23px 0;
}

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

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

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

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  background: #ffffff;
}

.site-search input {
  width: 220px;
  border: 0;
  outline: 0;
  padding: 8px 8px 8px 14px;
  color: #0f172a;
  background: transparent;
}

.search-button,
.pill-button,
.ghost-button,
.menu-toggle,
.filter-button {
  border: 0;
  cursor: pointer;
}

.search-button,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #ffffff;
  font-weight: 800;
  padding: 10px 18px;
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-button:hover,
.pill-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(13, 148, 136, 0.26);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.35), transparent 32%), linear-gradient(135deg, #0f766e 0%, #0891b2 48%, #1d4ed8 100%);
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.28;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.22) 54%, rgba(15, 23, 42, 0.55));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 42px;
  padding: 54px 0;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #dffdfa;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-lead {
  margin: 0 0 16px;
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 800;
  color: #ecfeff;
}

.hero-text {
  margin: 0 0 28px;
  max-width: 630px;
  color: #dbeafe;
  font-size: 17px;
}

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

.hero-stage {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-card {
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(18px);
}

.hero-poster {
  position: relative;
  height: 330px;
  overflow: hidden;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.92));
}

.hero-card-body {
  position: relative;
  margin-top: -86px;
  padding: 0 28px 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.badge.light {
  background: #ecfeff;
  color: #0f766e;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
}

.hero-card p {
  margin: 0 0 18px;
  color: #e0f2fe;
}

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

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

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

.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(180deg, #f1f5f9, #f8fafc);
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-weight: 900;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-frame.tall {
  aspect-ratio: 4 / 3;
}

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

.movie-card-link:hover img {
  transform: scale(1.07);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.78));
}

.poster-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.68);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.category-tile {
  display: block;
  min-height: 166px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #ecfeff);
  border: 1px solid rgba(13, 148, 136, 0.12);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.category-tile p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.category-count {
  color: var(--teal-dark);
  font-weight: 900;
}

.page-hero {
  padding: 58px 0;
  color: #ffffff;
  background: radial-gradient(circle at 22% 20%, rgba(45, 212, 191, 0.34), transparent 30%), linear-gradient(135deg, #0f766e, #0891b2 58%, #1d4ed8);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #ccfbf1;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.12;
}

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

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-panel input {
  flex: 1 1 260px;
  min-width: 0;
  border: 1px solid var(--soft);
  border-radius: 999px;
  padding: 12px 16px;
  outline: 0;
}

.filter-panel input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.filter-button {
  border-radius: 999px;
  padding: 10px 14px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover {
  background: #ccfbf1;
  color: #0f766e;
}

.result-line {
  margin-left: auto;
  color: var(--muted);
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 180px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), #f97316);
  font-size: 20px;
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #e2e8f0;
}

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

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

.rank-info {
  margin: 0;
  color: var(--muted);
}

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

.panel {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

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

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #020617;
  cursor: pointer;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.play-circle {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 20px 50px rgba(8, 145, 178, 0.44);
  font-size: 32px;
  padding-left: 5px;
  transition: transform 0.2s ease;
}

.player-cover:hover .play-circle {
  transform: scale(1.08);
}

.detail-content {
  padding: 28px;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-meta span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  font-size: 14px;
}

.detail-meta span:first-child {
  background: #ccfbf1;
  color: #0f766e;
}

.article-section {
  margin-top: 24px;
}

.article-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.article-section p {
  margin: 0 0 12px;
  color: #334155;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tags a:hover {
  background: #ccfbf1;
  color: #0f766e;
}

.sidebar {
  position: sticky;
  top: 92px;
  padding: 20px;
}

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

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

.related-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 8px;
  transition: background 0.18s ease;
}

.related-card:hover {
  background: #f8fafc;
}

.related-card img {
  width: 112px;
  height: 72px;
  object-fit: cover;
  border-radius: 13px;
}

.related-card strong {
  display: block;
  line-height: 1.35;
}

.related-card span {
  color: var(--muted);
  font-size: 13px;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-grid p,
.footer-grid a {
  color: #94a3b8;
}

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

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

.copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}

.hide-card {
  display: none !important;
}

.no-results {
  display: none;
  padding: 34px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow);
}

.no-results.is-visible {
  display: block;
}

@media (max-width: 1080px) {
  .site-search input {
    width: 170px;
  }

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

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

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 840px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
  }

  .main-nav a::after {
    display: none;
  }

  .header-actions {
    order: 4;
    width: 100%;
  }

  .site-search {
    width: 100%;
  }

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 42px 0 58px;
  }

  .hero-stage {
    min-height: 500px;
  }

  .rank-item {
    grid-template-columns: 46px 110px minmax(0, 1fr);
  }

  .rank-item .pill-button {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

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

  .grid.cards,
  .grid.large-cards,
  .grid.category-cards,
  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    display: block;
  }

  .hero-card-body {
    padding: 0 18px 22px;
  }

  .hero-poster {
    height: 280px;
  }

  .filter-panel {
    align-items: stretch;
  }

  .filter-panel input,
  .result-line {
    flex-basis: 100%;
  }

  .rank-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-thumb {
    display: none;
  }

  .detail-content {
    padding: 20px;
  }

  .related-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .related-card img {
    width: 96px;
    height: 64px;
  }

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