:root {
  --bg: #fff8ed;
  --bg-strong: #ffedd5;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --ink: #2f2416;
  --muted: #7c6a55;
  --line: rgba(146, 95, 29, 0.18);
  --primary: #d97706;
  --primary-dark: #a94708;
  --primary-soft: #fef3c7;
  --accent: #f97316;
  --shadow: 0 22px 60px rgba(124, 77, 17, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 237, 213, 0.95), transparent 34rem),
    linear-gradient(135deg, #fff8ed 0%, #fffdf8 45%, #fff1da 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.14), transparent 12rem),
    radial-gradient(circle at 90% 2%, rgba(249, 115, 22, 0.12), transparent 16rem);
  z-index: -1;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 244, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(120, 75, 18, 0.08);
}

.header-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.brand {
  font-size: clamp(19px, 2.5vw, 28px);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  color: #6f5b42;
  font-weight: 700;
  font-size: 15px;
  padding: 25px 0;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--primary-dark);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-search {
  width: 250px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.header-search input,
.big-search input,
.filter-bar input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.header-search input {
  flex: 1;
  padding: 8px 8px 8px 14px;
}

.header-search button,
.big-search button {
  border: 0;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 8px 14px;
}

.header-search button:hover,
.big-search button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.3);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  background: var(--primary-soft);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--primary-dark);
}

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

.hero-section {
  position: relative;
  min-height: clamp(600px, 82vh, 860px);
  overflow: hidden;
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
  background: #1f140a;
  box-shadow: var(--shadow);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 20, 6, 0.91) 0%, rgba(34, 20, 6, 0.68) 43%, rgba(34, 20, 6, 0.23) 100%),
    radial-gradient(circle at 78% 36%, rgba(245, 158, 11, 0.36), transparent 20rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  min-height: clamp(600px, 82vh, 860px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 56px;
  padding: 110px 0 82px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.ranking-hero .section-kicker {
  color: #fed7aa;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 18px;
  max-width: 780px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 247, 237, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.34);
}

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

.detail-copy .btn-ghost {
  color: var(--primary-dark);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
  backdrop-filter: blur(18px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #fff;
}

.quick-search {
  margin-top: -38px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.ranking-hero h1,
.related-categories h2 {
  margin: 8px 0 0;
  font-weight: 950;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.quick-search h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.big-search {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.big-search input {
  flex: 1;
  padding: 0 18px;
  font-size: 17px;
}

.big-search button {
  min-height: 48px;
  padding: 0 24px;
}

.section-shell + .section-shell,
.section-shell + .split-layout,
.split-layout + .section-shell {
  margin-top: 64px;
}

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

.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading a,
.text-link {
  color: var(--primary-dark);
  font-weight: 900;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading.compact h2 {
  font-size: 28px;
}

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

.category-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 26px;
  background: #2f2416;
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, rgba(44, 28, 11, 0.88) 72%);
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card span {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  color: rgba(255, 247, 237, 0.82);
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
}

.category-card:hover,
.movie-card:hover,
.channel-overview-card:hover,
.ranking-hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(124, 77, 17, 0.2);
}

.category-card:hover img,
.movie-card:hover img {
  transform: scale(1.06);
}

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

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

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

.dense-grid .movie-card p,
.compact-grid .movie-card p {
  display: none;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(124, 77, 17, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--primary-soft);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-badge,
.rank-chip {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(43, 27, 9, 0.72);
  backdrop-filter: blur(10px);
}

.card-badge {
  left: 12px;
}

.rank-chip {
  right: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  background: rgba(217, 119, 6, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #8a4d0f;
  font-size: 12px;
  font-weight: 800;
  background: #ffedd5;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.ranking-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.ranking-item a {
  display: grid;
  grid-template-columns: 34px 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 248, 237, 0.82);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item a:hover {
  transform: translateX(4px);
  background: #ffedd5;
}

.ranking-number {
  color: var(--primary);
  font-size: 18px;
  font-weight: 950;
}

.ranking-item img {
  width: 52px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ranking-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
}

.ranking-copy small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-item em {
  color: var(--primary-dark);
  font-style: normal;
  font-weight: 950;
}

.page-hero,
.ranking-hero,
.detail-hero {
  margin-top: 44px;
  padding: clamp(34px, 6vw, 64px);
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.soft-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.22), transparent 20rem),
    rgba(255, 255, 255, 0.86);
}

.page-hero h1,
.ranking-hero h1,
.detail-copy h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
}

.page-hero p,
.ranking-hero p,
.detail-copy p {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

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

.channel-overview-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(124, 77, 17, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.channel-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 260px;
}

.channel-cover-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-overview-body {
  padding: 28px;
}

.channel-overview-body h2 {
  margin: 10px 0;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.channel-overview-body p {
  color: var(--muted);
  line-height: 1.8;
}

.filter-panel {
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.sticky-filter {
  position: sticky;
  top: 84px;
  z-index: 20;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}

.filter-bar input {
  width: 280px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 800;
  background: #fff7ed;
}

.filter-buttons button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.related-categories {
  padding: 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
}

.related-categories div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.related-categories a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 900;
  background: #ffedd5;
}

.ranking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.42), transparent 20rem),
    linear-gradient(135deg, #3d2106 0%, #7c2d12 48%, #d97706 100%);
}

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

.ranking-hero-card {
  padding: 12px;
  display: grid;
  gap: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

.ranking-hero-card strong {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.ranking-hero-card span {
  color: #fed7aa;
  font-weight: 800;
}

.ranking-page-layout {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.tall-list {
  max-height: 920px;
  overflow: auto;
  padding-right: 4px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  padding: 10px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--primary-dark);
}

.detail-copy .detail-meta span {
  color: var(--primary-dark);
  border-color: var(--line);
  background: #fff7ed;
}

.large-tags span {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.player-section {
  margin-top: 42px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #111;
  box-shadow: 0 32px 86px rgba(56, 31, 8, 0.32);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  font-size: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

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

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

.detail-article {
  padding: 34px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.detail-article h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.detail-article p {
  color: #5f4b35;
  font-size: 17px;
  line-height: 2;
}

.search-page-form {
  max-width: 760px;
  margin-top: 28px;
}

.search-results-section {
  min-height: 420px;
}

.site-footer {
  margin-top: 80px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 251, 244, 0.86);
}

.footer-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  font-size: 24px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
}

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 900;
  background: #ffedd5;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

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

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .header-shell {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 16px 18px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 100px;
  }

  .hero-poster {
    max-width: 280px;
    transform: none;
  }

  .quick-search,
  .ranking-hero,
  .detail-hero,
  .channel-overview-card {
    grid-template-columns: 1fr;
  }

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

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar input {
    width: 100%;
  }

  .detail-poster,
  .ranking-hero-card {
    max-width: 330px;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .header-shell,
  .footer-shell,
  .hero-content {
    width: min(100% - 22px, var(--max));
  }

  .hero-section {
    min-height: 760px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }

  .hero-content {
    min-height: 760px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .detail-copy h1,
  .ranking-hero h1 {
    font-size: 38px;
  }

  .big-search {
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .big-search input {
    min-height: 46px;
  }

  .category-grid,
  .movie-grid,
  .catalogue-grid,
  .compact-grid,
  .channel-overview-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .ranking-hero,
  .detail-hero,
  .filter-panel,
  .detail-article {
    padding: 22px;
    border-radius: 24px;
  }

  .ranking-item a {
    grid-template-columns: 28px 46px minmax(0, 1fr);
  }

  .ranking-item em {
    grid-column: 3;
  }

  .footer-shell {
    flex-direction: column;
  }
}
