
:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --rose-500: #f43f5e;
  --blue-500: #3b82f6;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.14);
  --shadow-strong: 0 26px 70px rgba(15, 23, 42, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 44%, #f8fafc 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(120, 53, 15, 0.98));
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.35);
}

.brand-text,
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fde68a, #fed7aa, #fff7ed);
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-panel input {
  border: 0;
  outline: 0;
  color: var(--slate-800);
  background: #ffffff;
}

.header-search input {
  width: 210px;
  padding: 10px 14px;
  border-radius: 999px;
}

.header-search button,
.mobile-search button,
.large-search button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.26);
}

.header-search button {
  padding: 10px 16px;
}

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

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

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.mobile-link.small {
  font-size: 14px;
}

.mobile-search {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.mobile-search input {
  border-radius: 14px;
  padding: 12px 14px;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: white;
  background: radial-gradient(circle at 15% 25%, rgba(245, 158, 11, 0.24), transparent 26%), linear-gradient(135deg, #0f172a 0%, #1e293b 44%, #7c2d12 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 30px 30px, #ffffff 2px, transparent 0);
  background-size: 64px 64px;
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.22;
}

.hero-glow.one {
  top: 40px;
  left: -80px;
  background: #f59e0b;
}

.hero-glow.two {
  right: -70px;
  bottom: 60px;
  background: #fb7185;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 42px;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.46s ease, transform 0.46s ease, visibility 0.46s ease;
  position: absolute;
  inset: 0;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-eyebrow,
.page-kicker {
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 14px 0 10px;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #fde68a, #ffedd5, #ffffff);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
}

.hero-text {
  max-width: 660px;
  margin: 0 0 22px;
  color: rgba(226, 232, 240, 0.94);
  font-size: 19px;
  line-height: 1.85;
}

.hero-tags,
.detail-meta,
.movie-meta,
.filter-chips,
.tag-list,
.footer-links,
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.movie-tags,
.tag-list a,
.quick-tags a {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

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

.primary-button,
.ghost-button,
.section-more {
  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;
}

.primary-button {
  color: white;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.34);
}

.primary-button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-media {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: perspective(1000px) rotateY(-4deg);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.68), transparent 54%);
}

.hero-media:hover img {
  transform: scale(1.06);
}

.hero-play,
.play-chip {
  position: absolute;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.34);
}

.hero-play {
  z-index: 2;
  left: 28px;
  bottom: 28px;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  font-size: 26px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  position: absolute;
  left: 0;
  bottom: -18px;
}

.hero-dot {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.26);
}

.hero-dot.active {
  width: 54px;
  background: linear-gradient(90deg, #fbbf24, #f97316);
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 34px;
}

.hero-quick-links a {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  color: var(--slate-800);
  font-weight: 900;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--slate-500);
}

.section-more {
  color: #ffffff;
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700));
  min-width: max-content;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-600));
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 62%);
  transition: opacity 0.22s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.type-badge {
  right: 12px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.rank-badge {
  left: 12px;
  min-width: 34px;
  text-align: center;
  background: linear-gradient(90deg, var(--rose-500), #fb7185);
}

.play-chip {
  z-index: 3;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 0 0 10px;
  color: var(--slate-800);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.3;
}

.movie-info h3 a:hover {
  color: var(--orange-500);
}

.movie-info p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  justify-content: space-between;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-tags {
  margin-top: 12px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #b45309;
  background: #fffbeb;
}

.compact .movie-info {
  padding: 14px;
}

.compact .movie-info h3 {
  font-size: 17px;
}

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

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

.category-card {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: var(--radius-xl);
  color: white;
  background: linear-gradient(135deg, var(--slate-800), #78350f);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-thumb-row {
  display: flex;
  margin-bottom: 16px;
}

.category-thumb-row img {
  width: 34%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.22);
}

.category-thumb-row img + img {
  margin-left: -18px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.category-card span {
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

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

.search-panel,
.side-card,
.detail-card,
.filter-panel {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-panel {
  position: sticky;
  top: 96px;
  padding: 28px;
}

.search-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
}

.search-panel p {
  margin: 0 0 20px;
  color: var(--slate-600);
  line-height: 1.7;
}

.large-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.large-search input {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

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

.quick-tags {
  margin-top: 18px;
}

.quick-tags a {
  color: #9a3412;
  background: #fff7ed;
}

.page-hero {
  color: white;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700), #92400e);
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 780px;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.detail-layout .breadcrumb {
  color: var(--slate-500);
  margin: 0 0 18px;
}

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

.filter-panel {
  padding: 18px;
  margin-bottom: 26px;
}

.filter-panel input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px #dbe3ee;
}

.filter-chips {
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--slate-600);
  background: var(--slate-100);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: white;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  transform: translateY(-1px);
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.22));
}

.player-overlay span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 28px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.36);
}

.player-overlay strong {
  font-size: 20px;
}

.player-box.is-playing .player-overlay {
  display: none;
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-title-row {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.detail-title-row h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 950;
  color: var(--slate-800);
  line-height: 1.15;
}

.detail-meta {
  margin: 20px 0;
}

.detail-meta span {
  color: #9a3412;
  background: #fff7ed;
}

.detail-card p {
  color: var(--slate-700);
  line-height: 1.95;
  font-size: 17px;
  text-align: justify;
}

.detail-card .one-line {
  padding: 18px;
  border-radius: 18px;
  color: #7c2d12;
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
  font-weight: 700;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  color: var(--slate-800);
  font-weight: 900;
}

.tag-list a {
  color: #1d4ed8;
  background: #eff6ff;
}

.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.side-card {
  padding: 20px;
}

.poster-card img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.poster-card h2 {
  margin-top: 18px;
}

.poster-card p {
  color: var(--slate-600);
  line-height: 1.7;
}

.side-related {
  display: grid;
  gap: 16px;
}

.side-related .movie-card {
  box-shadow: none;
  border: 1px solid #e2e8f0;
}

.site-footer {
  margin-top: 40px;
  color: white;
  background: linear-gradient(135deg, var(--slate-900), #111827);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  gap: 16px;
}

.footer-inner p {
  max-width: 760px;
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.75;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
}

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

[data-card].hidden {
  display: none;
}

@media (max-width: 1100px) {
  .movie-grid.three-cols,
  .movie-grid.four-cols,
  .category-grid,
  .category-grid.large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .search-panel,
  .detail-side {
    position: static;
  }
}

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

  .menu-button {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-slider {
    min-height: 0;
  }

  .hero-slide,
  .hero-slide.active {
    position: relative;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-slide:not(.active) {
    display: none;
  }

  .hero-media,
  .hero-media img {
    min-height: 320px;
    transform: none;
  }

  .hero-dots {
    position: static;
    margin-top: 24px;
  }

  .movie-grid.three-cols,
  .movie-grid.four-cols,
  .category-grid,
  .category-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
  }

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

  .hero-shell {
    padding-top: 44px;
  }

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

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

  .hero-media,
  .hero-media img {
    min-height: 240px;
    border-radius: 22px;
  }

  .content-section {
    padding: 38px 0;
  }

  .section-heading {
    display: grid;
    gap: 14px;
  }

  .movie-grid.three-cols,
  .movie-grid.four-cols,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .large-search,
  .mobile-search {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .side-card,
  .filter-panel,
  .search-panel {
    padding: 18px;
  }

  .detail-title-row {
    display: grid;
  }
}
