* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --warm: #f97316;
  --warm-dark: #ea580c;
  --amber: #f59e0b;
  --gold: #fef3c7;
  --soft: #fffbeb;
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon,
.footer-brand span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--warm));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong,
.footer-brand strong {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, #b45309, var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--warm-dark);
  background: #ffedd5;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: #ffedd5;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #9a3412;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: linear-gradient(120deg, #fb923c, #f59e0b);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(124, 45, 18, 0.92) 0%, rgba(194, 65, 12, 0.78) 42%, rgba(251, 146, 60, 0.36) 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 110px 0 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 20px 0 10px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h2 {
  max-width: 720px;
  margin: 0 0 12px;
  color: #fef3c7;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 23px);
}

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

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff7ed;
  font-size: 13px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 15px 35px rgba(124, 45, 18, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-light {
  color: var(--warm-dark);
  background: #fff;
}

.btn-warm {
  color: #fff;
  background: #c2410c;
}

.hero-effects {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-effects span {
  position: absolute;
  opacity: 0.18;
  filter: blur(0.2px);
}

.hero-effects span:nth-child(1) {
  top: 9%;
  left: 8%;
  font-size: 80px;
}

.hero-effects span:nth-child(2) {
  top: 24%;
  right: 12%;
  font-size: 60px;
}

.hero-effects span:nth-child(3) {
  bottom: 15%;
  left: 30%;
  font-size: 74px;
}

.hero-effects span:nth-child(4) {
  top: 35%;
  right: 34%;
  font-size: 52px;
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.feature-strip,
.section-white {
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 38px 0;
  text-align: center;
}

.feature-grid div {
  display: grid;
  gap: 5px;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
}

.feature-grid span {
  font-size: 38px;
}

.feature-grid strong {
  font-size: 18px;
}

.feature-grid small,
.poster-body small,
.rank-content small,
.video-teaser small,
.overview-body small,
.category-tile small {
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-heading h2 {
  margin: 0 0 4px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-link,
.pill-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--warm-dark);
  background: #ffedd5;
  font-weight: 800;
}

.section-link {
  padding: 10px 16px;
}

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

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

.poster-card {
  min-width: 0;
}

.poster-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(124, 45, 18, 0.18);
}

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

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

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

.poster-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 44px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.poster-link:hover .poster-hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.34);
}

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--warm);
  font-size: 12px;
  font-weight: 800;
}

.poster-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.poster-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.poster-tags span,
.tag-cloud span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.poster-body strong {
  overflow: hidden;
  font-size: 18px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.poster-link:hover .poster-body strong {
  color: var(--warm-dark);
}

.poster-body small,
.video-teaser small,
.rank-content small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.score-line {
  color: #b45309;
  font-weight: 800;
}

.ranking-band {
  color: #fff;
  background: linear-gradient(90deg, #f97316, #f59e0b);
}

.ranking-band .section-heading p,
.ranking-band .section-link {
  color: #fff7ed;
}

.ranking-band .section-link {
  background: rgba(255, 255, 255, 0.2);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.rank-card {
  min-width: 0;
}

.rank-link {
  display: grid;
  grid-template-columns: auto 84px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 122px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 22px 60px rgba(124, 45, 18, 0.13);
  transition: transform 0.2s ease;
}

.rank-link:hover {
  transform: translateY(-4px) scale(1.01);
}

.rank-number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--warm);
  font-weight: 900;
}

.rank-link img {
  width: 84px;
  height: 104px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rank-content strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-content em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.category-band {
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
}

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

.category-tile,
.overview-card a {
  display: grid;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.category-tile:hover,
.overview-card a:hover {
  transform: translateY(-5px);
}

.category-thumbs,
.overview-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.overview-covers {
  grid-template-columns: repeat(4, 1fr);
}

.category-thumbs img,
.overview-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.category-tile strong,
.overview-body strong {
  font-size: 20px;
}

.video-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-teaser {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.35s ease;
}

.video-teaser:hover .video-thumb img {
  transform: scale(1.05);
}

.play-disc {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 999px;
  color: var(--warm);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
}

.video-teaser strong,
.video-teaser small {
  display: block;
  padding: 0 18px;
}

.video-teaser strong {
  padding-top: 16px;
  font-size: 19px;
}

.video-teaser small {
  padding-bottom: 18px;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  padding: 80px 0;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(120deg, #c2410c, #f97316 50%, #f59e0b);
}

.compact-hero {
  padding: 88px 0;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.search-panel {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin-top: 28px;
}

.search-panel label {
  font-weight: 800;
}

.search-panel input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 18px 46px rgba(124, 45, 18, 0.16);
  outline: none;
}

.search-panel input:focus {
  box-shadow: 0 0 0 4px rgba(255, 237, 213, 0.8), 0 18px 46px rgba(124, 45, 18, 0.16);
}

.inline-search {
  max-width: 520px;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  box-shadow: var(--shadow);
}

.empty-state.show {
  display: block;
}

.detail-wrap {
  padding: 34px 0 76px;
}

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

.breadcrumbs a:hover {
  color: var(--warm-dark);
}

.detail-card {
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 32px;
  padding: 32px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #050505;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.78));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.big-play {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  color: var(--warm);
  background: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
  max-width: 80%;
  overflow: hidden;
  font-size: clamp(20px, 3vw, 32px);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-overlay small {
  color: #ffedd5;
  font-weight: 800;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 12px;
}

.detail-title-row h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
}

.detail-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.pill-link {
  flex: 0 0 auto;
  padding: 9px 14px;
}

.tag-cloud {
  margin-bottom: 28px;
}

.story-block,
.review-block {
  padding: 26px 0;
  border-top: 1px solid #ffedd5;
}

.story-block h2,
.review-block h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.story-block p,
.review-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.review-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  font-weight: 900;
}

.detail-aside {
  min-width: 0;
}

.sticky-panel {
  position: sticky;
  top: 110px;
}

.side-panel {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
}

.info-row span {
  color: var(--muted);
}

.info-row strong {
  text-align: right;
}

.genre-line {
  margin-top: 18px;
  color: #9a3412;
  font-weight: 800;
}

.related-section {
  padding-bottom: 0;
}

.site-footer {
  border-top: 1px solid rgba(251, 146, 60, 0.25);
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.site-footer p {
  color: var(--muted);
}

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

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--warm-dark);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(251, 146, 60, 0.2);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.hidden-by-search {
  display: none !important;
}

@media (max-width: 1100px) {
  .wide-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .menu-toggle {
    display: block;
  }

  .feature-grid,
  .poster-grid,
  .latest-grid,
  .wide-grid,
  .related-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-teaser-grid,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    padding: 20px;
  }

  .sticky-panel {
    position: static;
  }
}

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

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

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

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

  .hero-content {
    padding: 86px 0 120px;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.03em;
  }

  .hero-controls {
    right: 16px;
    left: 16px;
    justify-content: space-between;
  }

  .section {
    padding: 52px 0;
  }

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

  .feature-grid,
  .poster-grid,
  .latest-grid,
  .wide-grid,
  .related-grid,
  .category-grid,
  .overview-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .rank-link {
    grid-template-columns: auto 74px 1fr;
  }

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

  .rank-link img {
    width: 74px;
    height: 94px;
  }

  .page-hero {
    padding: 58px 0;
  }

  .footer-grid {
    padding-top: 36px;
  }
}
