
:root {
  --color-bg: #fff7ed;
  --color-panel: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-line: #eadfd2;
  --color-primary: #f97316;
  --color-primary-dark: #9a3412;
  --color-secondary: #f59e0b;
  --shadow-soft: 0 18px 48px rgba(124, 45, 18, 0.12);
  --shadow-card: 0 12px 32px rgba(31, 41, 55, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 40%, #f9fafb 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 8px;
  clip: auto;
  background: #ffffff;
  color: #111827;
  padding: 10px 14px;
  z-index: 9999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f 0%, #92400e 45%, #7c2d12 100%);
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.30);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #7c2d12;
  background: linear-gradient(135deg, #fde68a, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.brand-text {
  font-size: 1.25rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  min-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 14px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button {
  border: 0;
  color: #78350f;
  background: #ffffff;
  padding: 10px 16px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #78350f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at 20% 25%, rgba(251, 191, 36, 0.42), transparent 28%), linear-gradient(120deg, #78350f, #9a3412 50%, #431407);
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: blur(2px) saturate(1.18);
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(67, 20, 7, 0.92) 0%, rgba(120, 53, 15, 0.82) 44%, rgba(67, 20, 7, 0.56) 100%),
    radial-gradient(circle at 74% 24%, rgba(255, 237, 213, 0.24), transparent 25%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  min-height: 620px;
  gap: 60px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.eyebrow,
.eyebrow-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow strong {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(2.8rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1.75;
}

.hero-tags,
.movie-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span,
.tag-list a {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.82rem;
  color: #7c2d12;
  background: #ffedd5;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #7c2d12;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
  background: #ffedd5;
}

.btn-glass,
.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.btn-ghost {
  color: #7c2d12;
  border-color: #fed7aa;
  background: #fff7ed;
}

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.46);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 72px 0;
}

.section-white {
  background: #ffffff;
}

.section-muted {
  background: #f9fafb;
}

.category-band {
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

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

.section-heading.slim {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

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

.section-more {
  color: var(--color-primary-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(234, 223, 210, 0.9);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fed7aa;
  box-shadow: 0 20px 52px rgba(124, 45, 18, 0.18);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 10px 16px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffffff;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 8px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 0.78rem;
}

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

.movie-meta-line,
.movie-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-card h3 {
  min-height: 3.1em;
  margin: 10px 0 8px;
  font-size: 1.04rem;
  line-height: 1.45;
}

.movie-card h3 a:hover,
.compact-card h3 a:hover,
.ranking-title:hover {
  color: var(--color-primary);
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 12px;
  overflow: hidden;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags {
  min-height: 28px;
  margin-bottom: 14px;
}

.movie-tags span {
  padding: 4px 8px;
  font-size: 0.74rem;
}

.movie-stats {
  color: #6b7280;
  font-weight: 700;
}

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

.category-card {
  display: grid;
  min-height: 170px;
  align-content: end;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: -30% -30% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card:hover,
.type-pill:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(31, 41, 55, 0.18);
}

.category-card span {
  position: relative;
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.category-card strong {
  position: relative;
  font-size: 1.5rem;
}

.category-card em,
.category-card small {
  position: relative;
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
}

.color-red { background: linear-gradient(135deg, #ef4444, #f97316); }
.color-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.color-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.color-green { background: linear-gradient(135deg, #059669, #10b981); }
.color-purple { background: linear-gradient(135deg, #7c3aed, #c026d3); }

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

.type-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.type-pill strong {
  font-size: 1.2rem;
}

.type-pill span {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
}

.ranking-panel,
.sidebar-card,
.prose-card,
.content-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-panel {
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 96px;
}

.ranking-panel h2,
.sidebar-card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.ranking-panel p {
  margin: 0 0 18px;
  color: var(--color-muted);
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.compact-card:not(:has(.rank-num)) {
  grid-template-columns: 76px minmax(0, 1fr);
}

.rank-num,
.ranking-index {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  font-weight: 900;
  font-size: 0.82rem;
}

.compact-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #ffedd5;
}

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

.compact-card h3 {
  margin: 0 0 5px;
  overflow: hidden;
  display: -webkit-box;
  font-size: 0.95rem;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(120deg, #78350f, #ea580c 54%, #7c2d12);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.22), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(251, 191, 36, 0.24), transparent 26%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.page-hero p {
  max-width: 800px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.75;
}

.page-hero span {
  color: #fde68a;
  font-weight: 800;
}

.blue-hero {
  background: linear-gradient(120deg, #1d4ed8, #0891b2 54%, #0f172a);
}

.dark-hero {
  background: linear-gradient(120deg, #111827, #374151 54%, #030712);
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(150px, 0.7fr)) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #fff7ed;
}

.filter-panel label,
.search-panel label {
  display: grid;
  gap: 6px;
  color: #92400e;
  font-weight: 800;
  font-size: 0.85rem;
}

.filter-panel input,
.filter-panel select,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  outline: 0;
  padding: 0 14px;
  color: #1f2937;
  background: #ffffff;
}

.filter-count {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 44px;
}

.pagination-link,
.pagination-gap {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #ffffff;
  color: #78350f;
  font-weight: 800;
}

.pagination-link.is-active {
  color: #ffffff;
  background: #f97316;
  border-color: #f97316;
}

.pagination-link.is-disabled {
  color: #cbd5e1;
  pointer-events: none;
}

.region-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.region-chip {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 9px 13px;
  background: #ffffff;
  color: #92400e;
  font-weight: 800;
}

.region-chip em {
  color: var(--color-muted);
  font-style: normal;
}

.ranking-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ranking-block {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.ranking-title {
  color: #1f2937;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-hero .search-panel {
  max-width: 980px;
  margin: 28px 0 0;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
}

.search-summary {
  margin-bottom: 22px;
  color: var(--color-muted);
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  color: #ffffff;
  background: linear-gradient(120deg, #431407, #9a3412 55%, #111827);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: blur(2px) saturate(1.2);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(67, 20, 7, 0.94), rgba(67, 20, 7, 0.68), rgba(17, 24, 39, 0.86));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: 460px;
  padding: 42px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fde68a;
}

.detail-title-block {
  max-width: 860px;
}

.badge {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 7px 13px;
  color: #7c2d12;
  background: #fed7aa;
  font-weight: 900;
}

.detail-title-block h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-title-block p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.12rem;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.detail-section {
  background: #f9fafb;
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.hls-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  transition: opacity 0.25s ease;
}

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

.player-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffffff;
  font-size: 2rem;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  font-size: 1.05rem;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

.content-card,
.prose-card {
  margin-top: 24px;
  padding: 28px;
}

.content-card h2,
.prose-card h2 {
  margin: 30px 0 12px;
  color: #111827;
  font-size: 1.55rem;
}

.content-card h2:first-child,
.prose-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.prose-card p,
.prose-card details {
  color: #4b5563;
  line-height: 1.86;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

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

.info-grid div {
  display: grid;
  gap: 6px;
  border-radius: 16px;
  padding: 14px;
  background: #fff7ed;
}

.info-grid strong {
  color: #92400e;
  font-size: 0.82rem;
}

.info-grid span {
  color: #1f2937;
  font-weight: 800;
}

.tag-list {
  margin: 18px 0;
}

blockquote {
  margin: 0;
  border-left: 4px solid var(--color-primary);
  border-radius: 16px;
  padding: 18px 20px;
  color: #4b5563;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  line-height: 1.86;
}

.prev-next {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
}

.prev-next a {
  color: #92400e;
  font-weight: 800;
}

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

.sidebar-card {
  padding: 22px;
}

.sticky-card {
  position: sticky;
  top: 96px;
}

.prose-card {
  max-width: 900px;
  margin: 0 auto;
}

.prose-card details {
  margin: 14px 0;
  border-radius: 16px;
  padding: 16px 18px;
  background: #f9fafb;
}

.prose-card summary {
  color: #111827;
  font-weight: 900;
  cursor: pointer;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.feature-list div {
  display: grid;
  gap: 8px;
  border-radius: 18px;
  padding: 18px;
  background: #fff7ed;
}

.feature-list strong {
  color: #92400e;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
  padding: 52px 0;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer p {
  margin: 12px 0 0;
  color: #9ca3af;
  line-height: 1.7;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
}

.footer-bottom p {
  margin: 0;
}

.is-liked {
  background: #f97316;
  color: #ffffff;
}

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

  .hero-content,
  .home-split,
  .detail-layout,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .sticky-card {
    position: static;
  }

  .hero-poster {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 0;
  }

  .header-search {
    order: 5;
    width: 100%;
    min-width: 0;
  }

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

  .section-heading {
    display: grid;
  }

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

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

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

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

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

  .hero-copy h1 {
    font-size: 2.6rem;
  }

  .hero-copy p,
  .page-hero p,
  .detail-title-block p {
    font-size: 1rem;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .type-grid,
  .footer-grid,
  .feature-list,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .ranking-row span:nth-of-type(2),
  .ranking-row span:nth-of-type(3) {
    display: none;
  }

  .content-card,
  .prose-card,
  .sidebar-card,
  .ranking-panel {
    padding: 20px;
    border-radius: 18px;
  }
}
