:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #ef4444;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --paper: #ffffff;
  --dark: #111827;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #ffffff 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

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

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-text {
  font-size: 22px;
}

.logo-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 700;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: #fff;
  padding: 11px 14px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.quick-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.filter-panel button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-search button,
.mobile-search button,
.primary-button,
.filter-panel button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  padding: 11px 18px;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.24);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  backdrop-filter: blur(10px);
}

.quick-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
}

.icon-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: #fff3e8;
  cursor: pointer;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-link {
  border-radius: 14px;
  padding: 10px 12px;
  color: #374151;
  font-weight: 800;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--orange-dark);
  background: #fff7ed;
}

.page-shell {
  padding: 36px 0 76px;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 58px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.84)), linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.08));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #fff;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #ffedd5;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 900;
}

.hero-kicker {
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
}

.tag-row span,
.detail-tags span {
  color: var(--orange-dark);
  background: #ffedd5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.55);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(10px);
}

.hero-control:hover {
  background: rgba(17, 24, 39, 0.78);
  transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.section {
  margin-top: 64px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.section-heading p,
.lead {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-link {
  flex: 0 0 auto;
  color: var(--orange-dark);
  font-weight: 900;
}

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

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 24px 44px rgba(17, 24, 39, 0.14);
  transform: translateY(-7px);
}

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

.movie-card--large .movie-poster {
  aspect-ratio: 16 / 10;
}

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

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

.movie-poster::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.72));
}

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 900;
}

.movie-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  padding: 24px;
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.22);
}

.category-tile:nth-child(3n + 2) {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #111827, #7c3aed);
}

.category-tile::after {
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-tile strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.category-tile p,
.category-tile span {
  position: relative;
  z-index: 1;
}

.category-tile p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.category-tile span {
  font-weight: 900;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.detail-side,
.info-card,
.filter-panel {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.ranking-panel,
.detail-side,
.info-card {
  padding: 22px;
}

.ranking-panel h2,
.detail-side h2,
.info-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-link {
  display: grid;
  grid-template-columns: 38px 76px 1fr;
  gap: 12px;
  align-items: center;
}

.ranking-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 13px;
  font-weight: 900;
}

.ranking-link img {
  width: 76px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-link strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-link span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 18px;
}

.filter-panel input {
  min-width: min(360px, 100%);
  flex: 1;
}

.empty-state {
  display: none;
  border: 1px dashed #fdba74;
  border-radius: 18px;
  color: var(--orange-dark);
  background: #fff7ed;
  padding: 18px;
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 36px;
  border-radius: 28px;
  color: #fff;
  background: radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.6), transparent 36%), linear-gradient(135deg, #111827, #1f2937 56%, #7f1d1d);
  padding: 34px;
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

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

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-info p {
  margin: 0 0 18px;
  color: #e5e7eb;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.detail-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 7px 12px;
  font-weight: 900;
}

.player-section {
  margin-bottom: 36px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-shell.is-playing .player-overlay {
  visibility: hidden;
  opacity: 0;
}

.player-play-button {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  cursor: pointer;
  font-size: 30px;
  box-shadow: 0 22px 42px rgba(239, 68, 68, 0.34);
}

.player-bar {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
}

.player-bar button {
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(17, 24, 39, 0.68);
  padding: 8px 12px;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.player-message {
  position: absolute;
  top: 16px;
  left: 16px;
  display: none;
  max-width: calc(100% - 32px);
  border-radius: 12px;
  color: #fff;
  background: rgba(185, 28, 28, 0.88);
  padding: 10px 12px;
  font-weight: 800;
}

.player-message.is-visible {
  display: block;
}

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

.prose-card {
  display: grid;
  gap: 18px;
}

.info-card p {
  margin: 0;
  color: #374151;
}

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

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

.side-item img {
  width: 76px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.side-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.side-item span {
  color: var(--muted);
  font-size: 13px;
}

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

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

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

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

  .icon-button {
    display: grid;
    place-items: center;
  }

  .header-shell {
    min-height: 64px;
  }

  .hero-slider {
    min-height: 520px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 34px 24px 58px;
  }

  .hero-control {
    display: none;
  }

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

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

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

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

@media (max-width: 520px) {
  .header-shell,
  .footer-shell,
  .page-shell {
    width: min(100% - 22px, 1180px);
  }

  .logo-text {
    font-size: 18px;
  }

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

  .hero-slider {
    min-height: 500px;
  }

  .movie-grid,
  .movie-grid--large,
  .movie-grid--compact,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card--compact {
    display: grid;
    grid-template-columns: 112px 1fr;
  }

  .movie-card--compact .movie-poster {
    height: 100%;
    min-height: 154px;
  }

  .ranking-link {
    grid-template-columns: 34px 62px 1fr;
  }

  .ranking-link img,
  .side-item img {
    width: 62px;
    height: 46px;
  }

  .side-item {
    grid-template-columns: 62px 1fr;
  }

  .player-play-button {
    width: 70px;
    height: 70px;
  }

  .player-bar {
    justify-content: center;
  }
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 42px;
  padding: 48px 0;
}

.footer-brand p {
  max-width: 560px;
  color: #9ca3af;
}

.footer-logo {
  color: #fff;
  font-size: 22px;
}

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

.footer-columns h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-columns ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-columns a {
  color: #9ca3af;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 0 24px;
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 820px) {
  .footer-shell,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
