:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --orange: #f97316;
  --orange-2: #fb923c;
  --gold: #facc15;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  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;
  color: #fff;
  background: linear-gradient(90deg, #1e293b 0%, #334155 48%, #1e293b 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.26);
}

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

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

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #111827;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.35);
}

.logo:hover,
.nav-link:hover,
.footer-link:hover {
  color: var(--orange-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
}

.nav-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(310px, 32vw);
}

.header-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.header-search button,
.menu-toggle {
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  background: var(--orange);
}

.header-search button {
  padding: 10px 14px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: saturate(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.22) 100%), linear-gradient(0deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.12) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 44px;
  padding: 58px 0 92px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(251, 146, 60, 0.38);
  border-radius: 999px;
  padding: 8px 13px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  margin: 20px 0 14px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-text {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

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

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

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.32);
}

.btn-dark {
  color: #fff;
  background: #111827;
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-light {
  color: #111827;
  background: #fff;
  border: 1px solid var(--line);
}

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

.hero-card {
  position: relative;
  border-radius: 28px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.hero-card img {
  aspect-ratio: 4 / 5.1;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, #334155, #0f172a);
}

.hero-card-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  border-radius: 20px;
  padding: 16px;
  color: #fff;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(14px);
}

.hero-card-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.hero-thumbs {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.hero-thumb {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 10px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  background: rgba(15, 23, 42, 0.52);
  text-align: left;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.hero-thumb.is-active {
  color: #fff;
  border-color: rgba(251, 146, 60, 0.68);
  background: rgba(249, 115, 22, 0.22);
}

.hero-thumb span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, #1e293b 0%, #334155 45%, #111827 100%);
  padding: 64px 0;
}

.page-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 900;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.section {
  padding: 54px 0;
}

.section-alt {
  background: #fff;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -45px;
  top: -45px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.22);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 850;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.category-card .btn {
  position: relative;
  z-index: 1;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.78);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #334155, #0f172a);
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: rgba(250, 204, 21, 0.94);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
  padding: 15px;
}

.card-title {
  display: block;
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
}

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

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

.card-line {
  margin: 11px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 750;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  font-weight: 900;
}

.rank-item img {
  width: 74px;
  height: 102px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #334155, #0f172a);
}

.rank-info strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px;
  gap: 12px;
  margin: 26px 0;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.detail-wrap {
  color: #fff;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 34%), linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #111827 100%);
  padding: 38px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin-bottom: 24px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 30px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #111827;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.12));
}

.player-overlay span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.36);
  font-size: 34px;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-info {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.detail-poster {
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #334155, #0f172a);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 900;
}

.detail-info p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.article-section {
  padding: 46px 0;
}

.prose-box {
  border-radius: 24px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.prose-box h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 900;
}

.prose-box p {
  color: #334155;
  line-height: 1.9;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 24px;
}

.side-panel {
  border-radius: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.side-panel h2,
.side-panel h3 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 900;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  color: #334155;
}

.link-list a:hover {
  color: #9a3412;
  background: #ffedd5;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #111827;
  padding: 46px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer p {
  line-height: 1.75;
}

.footer-link {
  display: block;
  margin: 9px 0;
  transition: color 0.2s ease;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-content,
  .detail-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: 760px;
    padding-top: 40px;
  }

  .hero-card {
    max-width: 360px;
  }

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

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

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

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

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

  .hero-slider,
  .hero-content {
    min-height: 720px;
  }

  .hero-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero-thumb {
    padding: 8px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: block;
  }

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

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

  .rank-item img {
    width: 64px;
    height: 90px;
  }

  .card-body {
    padding: 12px;
  }
}
