:root {
  --bg-main: #0f172a;
  --bg-soft: #111827;
  --bg-card: #1e293b;
  --bg-card-strong: #0b1222;
  --text-main: #ffffff;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --amber: #f59e0b;
  --orange: #ea580c;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-card: 0 22px 55px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.12), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(234, 88, 12, 0.10), transparent 30%),
    linear-gradient(180deg, #0f172a 0%, #111827 45%, #0f172a 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
  transition: transform 0.28s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-3deg);
}

.logo-text {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-soft);
  font-weight: 700;
}

.primary-nav a {
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: #fbbf24;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.header-search input,
.filter-search input {
  width: 100%;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search input::placeholder,
.filter-search input::placeholder {
  color: #94a3b8;
}

.icon-button,
.header-search button,
.slider-control,
.player-start {
  border: 0;
}

.header-search button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mobile-panel a {
  padding: 12px 14px;
  color: var(--text-soft);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
}

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

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

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

.hero-media {
  position: absolute;
  inset: 0;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.50), rgba(15, 23, 42, 0.10));
}

.hero-content {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 90px 0 110px;
}

.hero-copy {
  width: min(670px, 100%);
}

.hero-kickers,
.meta-row,
.tag-row,
.card-meta,
.breadcrumbs,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.pill-hot {
  background: #f59e0b;
  border-color: #f59e0b;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 630px;
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: 19px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.btn-primary {
  padding: 14px 28px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.22);
}

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

.hero-dot {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 44px;
  background: #f59e0b;
}

.main-section {
  padding: 58px 0;
}

.main-section.soft {
  background: rgba(30, 41, 59, 0.30);
}

.section-head {
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-title h2,
.section-title h1 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.section-title p {
  margin: 0;
  color: var(--text-muted);
}

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

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.movie-card__poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #334155;
}

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

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 45%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.movie-card:hover .movie-card__poster::after {
  opacity: 1;
}

.movie-card__year,
.movie-card__type,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.movie-card__year {
  top: 12px;
  right: 12px;
}

.movie-card__type {
  left: 12px;
  bottom: 12px;
  background: rgba(245, 158, 11, 0.92);
}

.movie-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: #f59e0b;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

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

.movie-card__body {
  padding: 16px;
}

.movie-card h3 {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: #fbbf24;
}

.movie-card p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta span {
  padding: 3px 8px;
  color: #cbd5e1;
  font-size: 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.scroller-wrap {
  position: relative;
}

.movie-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.movie-scroller::-webkit-scrollbar {
  display: none;
}

.movie-scroller .movie-card {
  flex: 0 0 210px;
}

.slider-buttons {
  display: flex;
  gap: 8px;
}

.slider-control {
  width: 40px;
  height: 40px;
  color: #ffffff;
  border-radius: 12px;
  background: #334155;
  transition: background 0.2s ease;
}

.slider-control:hover {
  background: #475569;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(234, 88, 12, 0.10)),
    #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.42);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--text-soft);
}

.category-card span {
  color: #fbbf24;
  font-weight: 850;
}

.page-hero {
  padding: 72px 0 42px;
  background:
    radial-gradient(circle at 16% 10%, rgba(245, 158, 11, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.35));
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fbbf24;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.52);
}

.filter-search {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.55);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.72);
}

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.13);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.35);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  background: #334155;
}

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

.rank-badge {
  left: 8px;
  top: 8px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

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

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 42px;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.08);
  transform: scale(1.08);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.94));
}

.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: end;
}

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

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

.detail-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-copy .lead {
  max-width: 780px;
  margin: 0 0 18px;
  color: #d1d5db;
  font-size: 18px;
}

.detail-meta span,
.tag-row span {
  padding: 5px 10px;
  color: #e2e8f0;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.player-section {
  padding: 44px 0 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(2, 6, 23, 0.62) 42%, rgba(2, 6, 23, 0.82));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: #ffffff;
  font-size: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.30);
}

.player-title {
  font-size: 22px;
  font-weight: 900;
}

.content-card {
  padding: 28px;
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: var(--text-soft);
}

.content-stack {
  display: grid;
  gap: 18px;
}

.search-results {
  min-height: 220px;
}

.empty-state {
  padding: 38px;
  color: var(--text-muted);
  text-align: center;
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.58);
}

.site-footer {
  margin-top: 34px;
  padding: 44px 0 28px;
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 26px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: #94a3b8;
  font-size: 14px;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

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

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

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

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

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

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

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

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

  .header-row {
    min-height: 66px;
  }

  .logo {
    font-size: 21px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

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

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

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

  .main-section {
    padding: 42px 0;
  }

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

  .movie-card__body {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    font-size: 13px;
  }

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

  .rank-item {
    grid-template-columns: 84px 1fr;
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }

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

  .detail-poster {
    width: 180px;
  }

  .content-card {
    padding: 22px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
