* {
  box-sizing: border-box;
}

:root {
  --bg: #f7f7f9;
  --card: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --dark: #0b1020;
  --dark-2: #111827;
  --orange: #f97316;
  --orange-2: #ef4444;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, .12);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 44%, #f3f4f6 100%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(17, 24, 39, .98), rgba(31, 41, 55, .96), rgba(17, 24, 39, .98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 10px 25px rgba(249, 115, 22, .35);
  font-size: 14px;
}

.brand-name {
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(249, 115, 22, .18);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.mobile-menu.is-open {
  display: grid;
  gap: 6px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: opacity .7s ease, transform 1.2s ease;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, #f9fafb);
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #fff;
  animation: fadeUp .75s ease both;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 16px 0 12px;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 1.02;
  letter-spacing: -.06em;
}

.hero-copy h3 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 42px);
  color: #fed7aa;
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.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 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 12px 28px rgba(239, 68, 68, .28);
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--ink);
  background: #f3f4f6;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

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

.quick-search {
  margin-top: -52px;
  position: relative;
  z-index: 6;
}

.quick-search-panel,
.filter-panel {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search-panel h2,
.section-heading h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.quick-search-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.quick-search-form,
.search-panel,
.inline-filter {
  display: flex;
  gap: 12px;
}

.quick-search-form input,
.filter-panel input,
.filter-panel select,
.inline-filter input,
.inline-filter select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.quick-search-form input,
.filter-panel input,
.inline-filter input {
  flex: 1;
}

.quick-search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.inline-filter input:focus,
.inline-filter select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
}

.quick-search-form button {
  min-width: 108px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  font-weight: 800;
  cursor: pointer;
}

.section {
  padding: 78px 0;
}

.section-white {
  background: #fff;
}

.section-warm {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.section-dark {
  background: linear-gradient(135deg, #111827, #020617);
  color: #fff;
}

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

.section-heading h2 {
  margin: 8px 0 0;
}

.section-heading.invert h2,
.section-heading.invert .section-link {
  color: #fff;
}

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

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

.category-tile,
.overview-card a {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}

.category-tile:hover,
.overview-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, .18);
}

.category-tile::before,
.overview-card a::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}

.tile-0,
.tile-6 {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.tile-1,
.tile-7 {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.tile-2,
.tile-8 {
  background: linear-gradient(135deg, #16a34a, #14b8a6);
}

.tile-3,
.tile-9 {
  background: linear-gradient(135deg, #db2777, #f97316);
}

.tile-4,
.tile-10 {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
}

.tile-5,
.tile-11 {
  background: linear-gradient(135deg, #111827, #374151);
}

.tile-icon,
.overview-mark {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .18);
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong,
.overview-card h2 {
  font-size: 24px;
}

.category-tile em,
.overview-card p {
  color: rgba(255, 255, 255, .88);
  font-style: normal;
  line-height: 1.65;
}

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

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

.movie-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
}

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

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, .92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  font-weight: 900;
}

.card-content {
  padding: 14px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.card-content h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.card-content h3 a:hover {
  color: var(--orange);
}

.card-content p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span,
.tag-cloud a {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.movie-card-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 12px;
}

.movie-card-list .card-poster {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.movie-card-list .card-content {
  padding: 4px 4px 4px 0;
}

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

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-main {
  background: var(--bg);
}

.page-hero {
  padding: 60px 0;
  color: #fff;
}

.dark-page-hero {
  background: linear-gradient(135deg, #111827, #020617);
}

.orange-page-hero {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(38px, 6vw, 60px);
  letter-spacing: -.05em;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 18px;
}

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

.filter-panel {
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}

.search-panel {
  grid-template-columns: 1fr 220px 180px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 14px;
  font-weight: 800;
}

.pill-link.active,
.pill-link:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
}

.inline-filter {
  align-items: center;
}

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

.player-section {
  padding: 34px 0;
  background: #000;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(249, 115, 22, .18), rgba(0, 0, 0, .36));
  cursor: pointer;
  transition: opacity .25s ease, visibility .25s ease;
}

.play-overlay span {
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
  font-size: 34px;
  padding-left: 5px;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.detail-main h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -.04em;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.text-card,
.cover-card,
.related-card {
  margin-top: 20px;
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.text-card h2,
.related-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.text-card p {
  margin: 0 0 14px;
  color: #374151;
  line-height: 1.9;
}

.text-card .lead-text {
  color: #111827;
  font-weight: 800;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-side {
  min-width: 0;
}

.cover-card,
.related-card {
  position: sticky;
  top: 92px;
}

.related-card {
  top: 450px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: #111827;
}

.cover-card strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
}

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

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

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

.related-item img {
  width: 104px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.related-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.related-item em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.related-item:hover strong {
  color: var(--orange);
}

.full-link {
  display: block;
  margin-top: 18px;
  text-align: center;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 28px;
  padding: 54px 0 34px;
}

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

.footer-grid p,
.footer-grid li {
  color: #9ca3af;
  line-height: 1.75;
  font-size: 14px;
}

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

.footer-grid a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #6b7280;
  font-size: 13px;
}

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

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

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

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

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

  .detail-grid,
  .split-layout,
  .quick-search-panel,
  .search-panel {
    grid-template-columns: 1fr;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero-slider {
    height: 580px;
  }

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

  .section {
    padding: 54px 0;
  }

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

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

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

  .movie-card-list {
    grid-template-columns: 128px 1fr;
  }

  .detail-side .cover-card,
  .detail-side .related-card {
    position: static;
  }

  .footer-bottom,
  .inline-filter,
  .quick-search-form {
    flex-direction: column;
  }
}

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

  .brand-name {
    font-size: 18px;
  }

  .hero-slider {
    height: 620px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 42px;
  }

  .hero-copy h3 {
    font-size: 25px;
  }

  .quick-search-panel,
  .filter-panel,
  .text-card,
  .cover-card,
  .related-card {
    padding: 18px;
    border-radius: 18px;
  }

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

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

  .movie-card-list {
    grid-template-columns: 1fr;
  }

  .movie-card-list .card-poster {
    aspect-ratio: 2 / 3;
  }

  .search-panel {
    display: grid;
  }

  .related-item {
    grid-template-columns: 92px 1fr;
  }
}
