:root {
  --bg: #f8fafc;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --dark: #111827;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  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", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(234, 88, 12, 0.22);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

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

.brand-text {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  gap: 10px;
  flex-direction: column;
}

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

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  min-height: 650px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.18)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, #0f172a 85%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  padding: 80px 0 120px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 800;
}

.hero-content .eyebrow,
.detail-info .eyebrow,
.page-hero .eyebrow {
  color: #fed7aa;
}

.hero-content h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 8px 35px rgba(0, 0, 0, 0.36);
}

.hero-summary {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 26px);
}

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

.hero-meta span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  color: #ffffff;
}

.hero-actions,
.detail-info .primary-button {
  margin-top: 34px;
}

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

.primary-button {
  background: linear-gradient(90deg, var(--orange), var(--amber));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.01);
}

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

.full-width {
  width: 100%;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  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: 34px;
  background: #ffffff;
}

.hero-search {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
}

.hero-search-form {
  display: flex;
  max-width: 720px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.hero-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 16px 22px;
  outline: none;
  background: transparent;
}

.hero-search-form button {
  border: 0;
  padding: 0 28px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  font-weight: 800;
  cursor: pointer;
}

.section {
  padding: 68px 0;
}

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

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

.compact-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.panel-heading h2,
.content-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 900;
}

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

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  height: 265px;
  overflow: hidden;
  background: linear-gradient(135deg, #fdba74, #f59e0b);
}

.movie-card-compact .poster-link {
  height: 220px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

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

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

.movie-meta,
.movie-one-line,
.category-card-large p,
.content-card p,
.site-footer p,
.page-hero p,
.player-note {
  color: var(--muted);
}

.movie-meta {
  margin: 8px 0;
  font-size: 13px;
}

.movie-one-line {
  min-height: 44px;
  margin: 0 0 12px;
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

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

.category-tile {
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 20px;
  padding: 20px;
  color: #ffffff;
  background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.82)), var(--tile-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.category-tile strong {
  font-size: 24px;
}

.category-tile span,
.category-tile em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.86);
}

.ranking-panel,
.content-card,
.player-shell,
.category-card-large,
.listing-tools {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-panel {
  padding: 26px;
}

.ranking-panel ol {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.ranking-panel li + li {
  border-top: 1px solid var(--line);
}

.ranking-panel li a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 12px;
  padding: 13px 0;
  align-items: center;
}

.ranking-panel li b {
  grid-row: span 2;
  color: var(--orange-dark);
  font-size: 20px;
}

.ranking-panel li span {
  font-weight: 850;
}

.ranking-panel li em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  position: relative;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #431407);
}

.page-hero {
  padding: 58px 0;
}

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

.rank-hero {
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.6), transparent 35%), linear-gradient(135deg, #111827, #7c2d12);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

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

.breadcrumb em {
  font-style: normal;
  opacity: 0.65;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 18px;
}

.category-cover {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 18px;
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)), var(--tile-image);
  background-size: cover;
  background-position: center;
}

.category-cover span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.9);
  font-weight: 800;
}

.category-card-large h2 {
  margin: 10px 0 8px;
}

.listing-tools {
  padding: 22px;
  margin-bottom: 28px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-pill {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 8px 13px;
  color: #c2410c;
  background: #fff7ed;
  cursor: pointer;
  font-weight: 800;
}

.filter-pill.is-active {
  color: #ffffff;
  border-color: var(--orange);
  background: var(--orange);
}

.result-count {
  margin: 12px 0 0;
  color: var(--muted);
}

.listing-grid .movie-card.is-hidden {
  display: none;
}

.detail-hero {
  min-height: 590px;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.28)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 46px 0 90px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.36);
  background: linear-gradient(135deg, #fdba74, #f59e0b);
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 950;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 840px;
  margin: 24px 0;
}

.meta-list div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.meta-list dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.meta-list dd {
  margin: 3px 0 0;
  color: #ffffff;
  font-weight: 850;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.86);
}

.player-shell {
  overflow: hidden;
  padding: 18px;
  background: #0f172a;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.player-start strong {
  font-size: 24px;
}

.player-start em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

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

.player-note {
  margin: 12px 4px 0;
  color: rgba(255, 255, 255, 0.72);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.content-card {
  padding: 28px;
}

.content-card p:last-child {
  margin-bottom: 0;
  color: #374151;
  font-size: 17px;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 0;
}

.prev-next a {
  flex: 1;
  padding: 16px 18px;
  border-radius: 16px;
  color: #c2410c;
  background: #fff7ed;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  padding: 46px 0;
  color: #d1d5db;
  background: #111827;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #fb923c;
}

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

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

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

  .split-section {
    grid-template-columns: 1fr;
  }

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

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

  .brand-text {
    font-size: 19px;
  }

  .hero-carousel,
  .hero-slide,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 70px 0 128px;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .ghost-button {
    margin-left: 0;
  }

  .hero-search-form {
    border-radius: 20px;
  }

  .hero-search-form input {
    padding: 14px;
  }

  .hero-search-form button {
    padding: 0 18px;
  }

  .section {
    padding: 44px 0;
  }

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

  .feature-grid,
  .movie-grid,
  .category-grid,
  .category-list-large,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .poster-link,
  .movie-card-compact .poster-link {
    height: 300px;
  }

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

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

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

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

  .prev-next {
    flex-direction: column;
  }

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

@media (max-width: 460px) {
  .feature-grid,
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .poster-link,
  .movie-card-compact .poster-link {
    height: 260px;
  }

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

img.is-missing-image {
  opacity: 0;
}
