:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fde68a;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-2: #ea580c;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #fff7ed 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #92400e, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 650;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand);
}

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

.mobile-links {
  display: none;
  padding: 0 0 16px;
}

.mobile-links a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #374151;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.45), transparent 35%), linear-gradient(135deg, #111827, #7c2d12);
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 38%, rgba(251, 191, 36, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.58) 48%, rgba(17, 24, 39, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: 72px 0;
  color: #ffffff;
}

.hero-copy {
  width: min(700px, 100%);
}

.hero-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.26);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 13px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(217, 119, 6, 0.34);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

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

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

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

.section {
  padding: 58px 0;
}

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

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

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

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

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

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

.card,
.category-card,
.info-card {
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(146, 64, 14, 0.18);
}

.poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.55), transparent 42%),
    linear-gradient(135deg, #7c2d12, #111827);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 62%);
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 10px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 17px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  font-weight: 850;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
}

.card-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #ffedd5;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  font-weight: 900;
}

.rank-thumb {
  width: 74px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #92400e, #111827);
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 850;
}

.rank-desc {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  border: 1px solid #fed7aa;
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #fdba74;
  border-radius: 14px;
  outline: none;
  padding: 12px 14px;
  color: #374151;
  background: #ffffff;
  font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0;
  background: #111827;
  color: #ffffff;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--detail-bg) center / cover no-repeat;
  opacity: 0.24;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(245, 158, 11, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.72));
}

.detail-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.38);
  background: linear-gradient(135deg, #92400e, #111827);
}

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

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

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-line {
  max-width: 780px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.85;
}

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

.tag-list span {
  border-radius: 999px;
  padding: 7px 11px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 750;
}

.player-box {
  overflow: hidden;
  border-radius: 26px;
  background: #030712;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.18), transparent 35%),
    #030712;
}

.player-stage video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #030712;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.play-button {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  box-shadow: 0 18px 45px rgba(217, 119, 6, 0.36);
  cursor: pointer;
}

.play-button svg {
  margin-left: 5px;
}

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

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

.article {
  border: 1px solid #fed7aa;
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.article h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
}

.article p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.95;
}

.side-card {
  border: 1px solid #fed7aa;
  border-radius: 24px;
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.footer {
  margin-top: 44px;
  background: linear-gradient(90deg, #78350f, #9a3412);
  color: #fffbeb;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  padding: 42px 0;
}

.footer h3,
.footer p {
  margin-top: 0;
}

.footer a,
.footer p {
  color: #fde68a;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(253, 230, 138, 0.26);
  padding: 18px 0;
  color: #fde68a;
  font-size: 14px;
}

.empty-state {
  display: none;
  border: 1px dashed #f59e0b;
  border-radius: 20px;
  padding: 24px;
  color: #92400e;
  background: #fffbeb;
  text-align: center;
}

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

.pagination-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.page-link {
  border-radius: 12px;
  padding: 10px 13px;
  color: #92400e;
  background: #ffedd5;
  font-weight: 800;
}

.page-link.is-current {
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
}

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

  .featured-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

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

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

  .logo {
    font-size: 20px;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

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

  .grid,
  .grid-small,
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

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

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .grid,
  .grid-small,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 34px 64px minmax(0, 1fr);
  }

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