:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffaf3;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow: 0 18px 45px rgba(249, 115, 22, 0.16);
  --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", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fff7ed 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 25px rgba(251, 146, 60, 0.08);
}

.site-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.34);
}

.logo-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  position: relative;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease;
}

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

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--orange), var(--amber));
  border-radius: 999px;
}

.top-search,
.page-search,
.search-panel {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(251, 146, 60, 0.08);
}

.top-search input,
.page-search input,
.search-panel input {
  width: 250px;
  min-width: 0;
  padding: 12px 16px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.top-search button,
.page-search button,
.search-panel button {
  padding: 12px 18px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  color: var(--orange);
  border: 0;
  background: transparent;
  font-size: 28px;
}

.hero-wrap {
  padding: 28px 0 8px;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: 540px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 28px 60px rgba(124, 45, 18, 0.28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.45), rgba(17, 24, 39, 0.08)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.76), transparent 55%);
}

.hero-content {
  position: absolute;
  bottom: 54px;
  left: clamp(24px, 6vw, 72px);
  width: min(640px, calc(100% - 48px));
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-kicker {
  padding: 8px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 999px;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

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

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

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.hero-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.hero-quick a,
.category-tile,
.category-card-large,
.filter-panel,
.page-hero,
.hot-side,
.detail-content article {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(251, 146, 60, 0.20);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-quick a {
  padding: 18px 20px;
  font-weight: 900;
  text-align: center;
  color: #9a3412;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-quick a:hover,
.category-tile:hover,
.movie-card:hover,
.compact-card:hover {
  transform: translateY(-4px);
}

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

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

.section-title-row h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.detail-content h2,
.hot-side h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
}

.text-link {
  color: var(--orange);
  font-weight: 900;
}

.hot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fff7ed);
}

.poster-link img,
.detail-poster img,
.compact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.64), transparent 52%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(249, 115, 22, 0.96);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-radius: 12px;
}

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

.movie-card h2 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-line,
.movie-one-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-one-line {
  display: -webkit-box;
  min-height: 40px;
  margin-top: 8px;
  overflow: hidden;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  background: #ffedd5;
  border-radius: 999px;
}

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

.hot-side {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.compact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.compact-card img {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: #fed7aa;
}

.compact-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

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

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

.category-tile {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile strong {
  color: #111827;
  font-size: 20px;
}

.category-tile span,
.category-card-large p,
.page-hero p,
.detail-one-line,
.detail-content p {
  color: var(--muted);
  line-height: 1.8;
}

.page-main {
  padding: 30px 0 56px;
}

.page-hero {
  padding: clamp(26px, 5vw, 56px);
  margin-bottom: 28px;
}

.soft-hero {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(255, 247, 237, 0.94), rgba(255, 255, 255, 0.88));
}

.rank-hero {
  color: #fff;
  background: linear-gradient(135deg, #7c2d12, #f97316 54%, #f59e0b);
}

.rank-hero h1,
.rank-hero p,
.rank-hero .eyebrow {
  color: #fff;
}

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

.local-filter {
  flex: 1 1 260px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  outline: 0;
}

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

.filter-chip {
  min-height: 40px;
  padding: 0 14px;
  color: #9a3412;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  cursor: pointer;
}

.filter-chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.category-list {
  padding-bottom: 34px;
}

.category-card-large {
  padding: 26px;
}

.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.category-card-head span {
  font-size: 25px;
  font-weight: 900;
}

.category-card-head strong {
  color: var(--orange);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-samples a {
  padding: 8px 12px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
}

.detail-page {
  padding: 28px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--orange);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
  margin-bottom: 34px;
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 1px solid rgba(251, 146, 60, 0.20);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #fed7aa;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(124, 45, 18, 0.20);
}

.detail-info h1 {
  margin-bottom: 16px;
  font-size: clamp(34px, 6vw, 58px);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta div {
  padding: 14px;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 18px;
}

.detail-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.detail-meta dd {
  margin: 5px 0 0;
  font-weight: 900;
}

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

.player-section h2 {
  margin-bottom: 18px;
}

.video-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111827;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.25);
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #fff;
  border: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.30));
  cursor: pointer;
}

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

.play-ring {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: #fff;
  font-size: 32px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.42);
}

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

.detail-content article {
  padding: 24px;
}

.site-footer {
  margin-top: 48px;
  padding: 42px 0 20px;
  background: linear-gradient(180deg, #fff, #fff7ed);
  border-top: 1px solid #fed7aa;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 30px;
}

.footer-logo {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.footer-links a {
  padding: 8px 12px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  padding-top: 22px;
  margin: 24px auto 0;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid #fed7aa;
}

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

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

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

  .hot-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-nav {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav-panel {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0;
    border-top: 1px solid #fed7aa;
  }

  .nav-panel.open {
    display: flex;
  }

  .top-search {
    grid-column: 1 / -1;
  }

  .top-search input {
    width: 100%;
  }

  .hero-slider {
    height: 470px;
    border-radius: 24px;
  }

  .hero-content {
    bottom: 42px;
  }

  .hero-quick,
  .category-grid,
  .category-grid.large,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster {
    width: min(310px, 100%);
  }

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

@media (max-width: 560px) {
  .shell,
  .hero-slider {
    width: min(100% - 20px, 1180px);
  }

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

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

  .hero-slider {
    height: 430px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-dots {
    right: 22px;
    bottom: 18px;
  }

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

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

  .page-hero {
    padding: 24px;
  }
}
