:root {
  --brand: #d97706;
  --brand-dark: #b45309;
  --brand-soft: #fef3c7;
  --brand-light: #fffbeb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3d89a;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 46%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.09);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

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

.main-nav a {
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand);
}

.header-search {
  width: min(310px, 32vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.06);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 8px 12px;
  color: #111827;
  background: transparent;
}

.header-search button,
.btn-primary,
.btn-secondary,
.btn-ghost,
.filter-button,
.page-button,
.play-main-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button {
  padding: 8px 14px;
  color: #fff;
  background: var(--brand);
}

.header-search button:hover,
.btn-primary:hover,
.play-main-button:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.24);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--brand-dark);
  background: #fff7ed;
}

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

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

.mobile-nav,
.mobile-search {
  display: grid;
  gap: 10px;
}

.mobile-nav a {
  padding: 11px 0;
  border-bottom: 1px solid rgba(245, 158, 11, 0.14);
  color: #374151;
  font-weight: 700;
}

.mobile-search {
  grid-template-columns: 1fr auto;
  margin-top: 14px;
}

.mobile-search input,
.filter-input,
.filter-select {
  border: 1px solid rgba(245, 158, 11, 0.28);
  outline: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.mobile-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: #fff;
  background: var(--brand);
}

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.56), rgba(17, 24, 39, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-panel {
  max-width: 680px;
  color: #fff;
}

.hero-kicker,
.badge,
.rank-badge,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-kicker {
  padding: 7px 13px;
  margin-bottom: 16px;
  background: var(--brand);
  font-size: 14px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
}

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

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  color: #111827;
  background: #fff;
}

.btn-ghost {
  color: var(--brand-dark);
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(680px, 100%);
}

.hero-mini-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-mini-card img {
  width: 58px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 12px;
}

.hero-mini-card strong {
  display: block;
  line-height: 1.25;
}

.hero-mini-card span {
  color: #fde68a;
  font-size: 13px;
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
}

.hero-control:hover {
  background: rgba(245, 158, 11, 0.88);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

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

.section {
  padding: 60px 0;
}

.section-soft {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.75), rgba(255, 237, 213, 0.82));
}

.section-muted {
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.98), #ffffff);
}

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

.section-eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
}

.section-title,
.page-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-desc,
.page-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow);
}

.movie-cover {
  position: relative;
  height: 285px;
  overflow: hidden;
  background: #f3f4f6;
}

.movie-grid.compact .movie-cover {
  height: 240px;
}

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

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

.cover-fade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-fade {
  opacity: 1;
}

.play-symbol {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.badge {
  padding: 5px 9px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
}

.card-badge-left {
  position: absolute;
  top: 12px;
  left: 12px;
}

.card-badge-right {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.card-body {
  padding: 17px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 900;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 11px;
}

.meta-pill {
  padding: 4px 9px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
}

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

.horizontal-list {
  display: grid;
  gap: 16px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.horizontal-card img {
  width: 160px;
  height: 118px;
  object-fit: cover;
}

.horizontal-card-body {
  padding: 17px 17px 17px 0;
}

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

.category-card {
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 9px;
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.category-tab {
  padding: 10px 16px;
  border-radius: 999px;
  color: #78350f;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.24);
  font-weight: 900;
}

.category-tab:hover,
.category-tab.active {
  color: #fff;
  background: var(--brand);
}

.page-hero {
  padding: 58px 0 30px;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34%), linear-gradient(180deg, #fffbeb, #fff);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb span {
  color: #9ca3af;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
  gap: 12px;
  padding: 16px;
  margin-bottom: 26px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.filter-button {
  padding: 0 20px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.15);
  box-shadow: 0 7px 20px rgba(17, 24, 39, 0.05);
}

.rank-badge {
  width: 46px;
  height: 46px;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.rank-item img {
  width: 92px;
  height: 66px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-item h2,
.rank-item h3 {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 900;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 900;
}

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

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

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.72));
  z-index: 3;
}

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

.play-main-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 26px;
  color: #fff;
  background: var(--brand);
  font-size: 18px;
  font-weight: 950;
}

.detail-card,
.side-card {
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

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

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.detail-card p {
  margin: 0 0 14px;
  color: #374151;
  font-size: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.tag {
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 13px;
  font-weight: 800;
}

.side-card {
  padding: 18px;
  position: sticky;
  top: 92px;
}

.side-cover {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 16px;
}

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

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

.related-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: #fffbeb;
}

.related-item img {
  width: 70px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: block;
  line-height: 1.24;
}

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

.site-footer {
  padding: 46px 0;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
}

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

.footer-logo {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.site-footer p {
  max-width: 560px;
  margin: 12px 0 0;
  color: #9ca3af;
}

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

.footer-links h3 {
  margin: 0 0 8px;
  color: #fff;
}

.footer-links a {
  color: #d1d5db;
}

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

.no-results {
  display: none;
  padding: 50px 20px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.no-results.is-visible {
  display: block;
}

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

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

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

  .side-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .logo {
    font-size: 21px;
  }

  .hero {
    height: 680px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.62));
  }

  .hero-content {
    align-items: end;
    padding-bottom: 78px;
  }

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

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

  .hero-control {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .hero-prev {
    left: 16px;
  }

  .hero-next {
    right: 16px;
  }

  .section-head,
  .footer-grid {
    display: grid;
  }

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

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

  .rank-link {
    grid-column: 3;
    width: max-content;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .movie-cover,
  .movie-grid.compact .movie-cover {
    height: 210px;
  }

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 16px;
  }

  .horizontal-card {
    grid-template-columns: 110px 1fr;
  }

  .horizontal-card img {
    width: 110px;
    height: 112px;
  }

  .horizontal-card-body {
    padding: 12px 12px 12px 0;
  }

  .detail-card {
    padding: 20px;
  }

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

  .rank-item img,
  .rank-link {
    display: none;
  }
}
