:root {
  --color-teal: #0d9488;
  --color-cyan: #0891b2;
  --color-blue: #2563eb;
  --color-amber: #f59e0b;
  --color-rose: #e11d48;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--color-slate-800);
  background: linear-gradient(180deg, var(--color-slate-50), var(--color-slate-100));
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--color-teal), var(--color-cyan));
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.24);
}

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

.navbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.nav-links a {
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #fde68a;
  opacity: 1;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 0 14px;
}

.mobile-panel a {
  display: block;
  padding: 12px 16px;
  color: #ffffff;
  border-radius: 12px;
  font-weight: 650;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #0d9488 0%, #0891b2 48%, #2563eb 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.26;
  pointer-events: none;
}

.hero::before {
  top: 30px;
  left: 8%;
  background: #ffffff;
}

.hero::after {
  right: 6%;
  bottom: 20px;
  background: #fbbf24;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: 42px;
  padding: 64px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  color: #dffcff;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 720px;
  color: #d9f8ff;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

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

.btn-primary {
  color: #0f766e;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.22);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-chips a,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-chips a:hover,
.filter-chip:hover,
.filter-chip.is-active {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.hero-carousel {
  position: relative;
  min-height: 420px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
  background: rgba(15, 23, 42, 0.22);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.80));
}

.hero-slide-content {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 3;
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
}

.hero-slide-content p {
  margin: 0;
  color: #dbeafe;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.slide-meta span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.50);
  font-size: 13px;
  font-weight: 700;
}

.hero-dots {
  position: absolute;
  left: 26px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 9px;
  transform: translateY(42px);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.main-content {
  padding: 48px 0 60px;
}

.section {
  margin-bottom: 54px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  color: var(--color-slate-800);
  letter-spacing: -0.02em;
}

.section-link {
  color: var(--color-teal);
  font-weight: 800;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.poster.wide {
  aspect-ratio: 16 / 9;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.70));
}

.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
}

.card-play span {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--color-teal);
  background: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--color-teal);
  font-size: 12px;
  font-weight: 800;
}

.badge.hot {
  background: var(--color-rose);
}

.badge.score {
  left: auto;
  right: 12px;
  background: rgba(15, 23, 42, 0.70);
}

.card-body {
  padding: 14px;
}

.card-title {
  margin: 0 0 6px;
  color: var(--color-slate-800);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

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

.card-meta,
.card-desc {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.card-desc {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  display: block;
  padding: 24px;
  min-height: 160px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-teal), var(--color-cyan));
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(8, 145, 178, 0.22);
}

.category-tile h2,
.category-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #dffcff;
}

.page-hero {
  padding: 58px 0;
  color: #ffffff;
  background: linear-gradient(115deg, var(--color-teal), var(--color-cyan), var(--color-blue));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #e0f2fe;
  font-weight: 700;
}

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

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

.filter-input,
.filter-select {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--color-slate-800);
  background: #ffffff;
  outline: 0;
}

.filter-input {
  flex: 1 1 260px;
}

.filter-select {
  flex: 0 1 180px;
}

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

.filter-chip {
  color: var(--color-teal);
  background: #ccfbf1;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  background: var(--color-teal);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.15);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-teal), var(--color-cyan));
  font-weight: 900;
}

.ranking-poster {
  width: 92px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #ccfbf1;
}

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

.ranking-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 850;
}

.ranking-desc {
  margin: 0;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-score {
  color: var(--color-amber);
  font-size: 20px;
  font-weight: 900;
}

.detail-shell {
  padding: 34px 0 60px;
}

.detail-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.74));
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

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

.play-button {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--color-teal);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.34);
  cursor: pointer;
  font-size: 34px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.play-button:hover {
  transform: scale(1.06);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.40);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  background: #ccfbf1;
  box-shadow: var(--shadow-card);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.detail-info p {
  color: #475569;
  font-size: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.tag-list span,
.tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 800;
}

.article-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.article-block p {
  margin: 0;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0 30px;
}

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

.footer-grid p,
.footer-grid li {
  margin: 0;
  color: #cbd5e1;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}

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

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 480px;
  }

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

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

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

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-inner {
    min-height: auto;
    padding: 42px 0;
  }

  .hero-carousel {
    min-height: 390px;
    border-radius: 24px;
  }

  .hero-actions,
  .hero-chips {
    gap: 10px;
  }

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

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

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

  .ranking-score {
    grid-column: 3;
  }

  .ranking-poster {
    width: 74px;
  }

  .detail-body {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .detail-poster {
    max-width: 240px;
  }

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

@media (max-width: 460px) {
  .logo {
    font-size: 18px;
  }

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

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

  .card-body {
    padding: 11px;
  }

  .card-title {
    font-size: 14px;
  }
}
