:root {
  color-scheme: light;
  --brand: #ea580c;
  --brand-dark: #dc2626;
  --brand-soft: #ffedd5;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #ffffff;
  --panel-soft: #f9fafb;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0, #ffffff 420px, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.25);
}

.nav-wrap {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: 15px;
}

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

.main-nav a {
  color: rgba(255, 255, 255, 0.93);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: #ffedd5;
  transform: translateY(-1px);
}

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

.top-search input,
.mobile-search input,
.local-tools input,
.local-tools select,
.search-hero input {
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.top-search input {
  width: 230px;
}

.top-search button,
.mobile-search button,
.search-hero button,
.primary-btn,
.secondary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-search button,
.search-hero button,
.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, #f97316, #dc2626);
  box-shadow: 0 12px 25px rgba(234, 88, 12, 0.3);
}

.secondary-btn {
  color: var(--brand-dark);
  background: #fff;
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.top-search button:hover,
.mobile-search button:hover,
.search-hero button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 26px;
}

.mobile-panel {
  display: none;
  padding: 0 22px 18px;
  background: rgba(153, 27, 27, 0.2);
}

.mobile-panel a {
  display: block;
  color: #fff;
  padding: 11px 0;
  font-weight: 700;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: radial-gradient(circle at 20% 12%, rgba(251, 146, 60, 0.62), transparent 34%), linear-gradient(135deg, #7f1d1d 0%, #c2410c 45%, #111827 100%);
  color: #fff;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.72));
  pointer-events: none;
}

.hero-track {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  min-height: 650px;
  margin: 0 auto;
  padding: 72px 22px 78px;
  display: grid;
  align-items: center;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.78fr);
  gap: 44px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.55s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: #ffedd5;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin-top: 8px;
  font-size: clamp(30px, 5vw, 58px);
}

.hero-copy p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  background: var(--brand-soft);
  color: #9a3412;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff7ed;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 490px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38);
  transform: rotate(1deg);
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

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

.hero-poster-card small {
  color: rgba(255, 255, 255, 0.76);
}

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

.hero-dots button {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dots button.is-active {
  background: #fff;
}

.section {
  padding: 62px 0;
}

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

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

.section-head h1,
.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  font-weight: 1000;
  letter-spacing: -0.03em;
}

.section-head p,
.page-title p,
.detail-title p {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.more-link {
  color: var(--brand);
  font-weight: 900;
}

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

.category-tile {
  min-height: 160px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 146, 60, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 55px rgba(234, 88, 12, 0.18);
}

.category-tile strong {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316, #7f1d1d);
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.74));
  opacity: 0.92;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #dc2626);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 9px;
  color: var(--muted);
  font-size: 13px;
}

.movie-info p {
  min-height: 48px;
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.5fr);
  gap: 24px;
}

.rank-panel,
.glass-panel,
.detail-panel,
.local-tools,
.search-box-panel {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 235, 0.86);
}

.rank-panel {
  padding: 20px;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  background: #fff7ed;
}

.compact-card img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong,
.compact-card small {
  display: block;
}

.compact-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.list-rank,
.list-dot {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #dc2626);
  font-weight: 1000;
}

.list-dot {
  font-size: 12px;
}

.page-title {
  padding: 58px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
}

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

.local-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  padding: 16px;
  margin-bottom: 24px;
}

.local-tools input,
.local-tools select,
.search-hero input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.rank-table {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 82px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.78);
}

.rank-row:hover {
  border-color: rgba(249, 115, 22, 0.55);
}

.rank-row img {
  width: 82px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-row h2 {
  margin: 0 0 7px;
  font-size: 19px;
}

.rank-row p {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
}

.rank-score {
  color: #9a3412;
  font-weight: 900;
}

.detail-hero {
  padding: 42px 0 26px;
  background: radial-gradient(circle at 20% 15%, rgba(251, 146, 60, 0.18), transparent 30%), linear-gradient(180deg, #fff7ed, #fff);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #f97316, #7f1d1d);
}

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

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

.detail-title .detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 900;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #030712;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.22);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #030712;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at 50% 45%, rgba(249, 115, 22, 0.25), rgba(3, 7, 18, 0.68));
}

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

.play-symbol {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, #dc2626);
  box-shadow: 0 20px 45px rgba(220, 38, 38, 0.38);
  font-size: 28px;
}

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

.detail-panel {
  padding: 28px;
}

.detail-panel h2 {
  margin: 0 0 15px;
  font-size: 26px;
}

.detail-panel p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 2;
  font-size: 16px;
}

.search-hero {
  padding: 58px 0 34px;
}

.search-box-panel {
  padding: 22px;
  margin-top: 20px;
}

.search-box-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.empty-state {
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  margin-top: 46px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #7f1d1d);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 36px;
}

.footer-inner p {
  max-width: 520px;
  line-height: 1.8;
  color: #cbd5e1;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 22px;
  text-align: center;
  color: #cbd5e1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .main-nav,
  .top-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

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

  .hero-slide,
  .detail-hero-grid,
  .rank-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 720px) {
  .nav-wrap {
    height: 62px;
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .container,
  .hero-track,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-slider,
  .hero-track {
    min-height: auto;
  }

  .hero-track {
    padding-top: 44px;
    padding-bottom: 70px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 360px;
  }

  .category-grid,
  .movie-grid,
  .footer-inner,
  .local-tools,
  .search-box-panel form {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 68px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }

  .rank-row img {
    width: 68px;
    height: 92px;
  }
}
