:root {
  color-scheme: light;
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  --amber-400: #fbbf24;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 26px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f7fff9 0%, #ffffff 28%, #f8fafc 100%);
  color: var(--slate-900);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--white);
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.96), rgba(5, 150, 105, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(4, 120, 87, 0.26);
  backdrop-filter: blur(14px);
}

.nav-container {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--emerald-900);
  background: linear-gradient(135deg, #ffffff, var(--emerald-100));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 10px 22px rgba(0, 0, 0, 0.16);
}

.logo-text {
  font-size: 1.18rem;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav-link {
  padding: 9px 15px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.nav-link:hover,
.nav-link-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.header-search {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 260px;
  height: 42px;
  padding: 0 42px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  outline: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  transition: background var(--transition), box-shadow var(--transition), width var(--transition);
}

.header-search input::placeholder {
  color: var(--emerald-100);
}

.header-search input:focus {
  width: 320px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(167, 243, 208, 0.25);
}

.header-search span {
  position: absolute;
  right: 15px;
  color: var(--emerald-100);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

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

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mobile-cats a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.14);
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: var(--white);
  background: var(--emerald-950);
}

.hero-slides {
  position: relative;
  min-height: 600px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(16, 185, 129, 0.36), transparent 32%),
    radial-gradient(circle at 72% 62%, rgba(251, 191, 36, 0.20), transparent 30%),
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 74px 0 112px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--emerald-600);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.channel-hero .eyebrow,
.sub-hero .eyebrow,
.detail-copy .eyebrow {
  color: var(--emerald-100);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
  margin: 24px 0 0;
  max-width: 690px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.9;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags a,
.tag-row span,
.filter-button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 13px;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
  box-shadow: 0 16px 28px rgba(4, 120, 87, 0.30);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(4, 120, 87, 0.36);
}

.primary-button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.23);
  transform: translateY(-2px);
}

.ghost-button.dark {
  color: var(--emerald-900);
  border-color: var(--emerald-200);
  background: rgba(255, 255, 255, 0.72);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  transform: perspective(900px) rotateY(-7deg);
  transition: transform 500ms ease;
}

.hero-poster:hover {
  transform: perspective(900px) rotateY(0deg) translateY(-8px);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--emerald-800);
  background: rgba(255, 255, 255, 0.88);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-controls button,
.hero-dot {
  border: 0;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width var(--transition), background var(--transition);
}

.hero-dot.is-active {
  width: 32px;
  background: var(--white);
}

.hero-thumb-row {
  position: absolute;
  right: max(20px, calc((100% - 1240px) / 2));
  bottom: 30px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-thumb {
  width: 132px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(15, 23, 42, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: transform var(--transition), background var(--transition);
}

.hero-thumb:hover,
.hero-thumb.is-active {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.20);
}

.hero-thumb img {
  width: 38px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-thumb span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  font-weight: 800;
}

.section {
  padding: 58px 0;
}

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

.section-heading.centered {
  display: block;
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.section-heading h2,
.compact-heading h2,
.info-panel h2,
.story-card h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading p,
.sub-hero p,
.channel-hero p,
.story-card p,
.category-card-wide p,
.intro-search p {
  color: var(--gray-500);
  line-height: 1.85;
}

.text-link {
  color: var(--emerald-700);
  font-weight: 900;
}

.text-link:hover {
  color: var(--emerald-500);
}

.large-search {
  width: min(820px, 100%);
  margin: 0 auto;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--emerald-100);
  box-shadow: var(--shadow-soft);
}

.large-search.inline-search {
  margin: 0 0 18px;
  width: 100%;
}

.large-search input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 22px;
  border: 0;
  outline: none;
  color: var(--slate-900);
}

.large-search button {
  min-width: 108px;
  border: 0;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
}

.filter-button {
  border: 1px solid var(--emerald-100);
  padding: 8px 15px;
  color: var(--emerald-800);
  background: var(--white);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  border-color: var(--emerald-600);
  background: var(--emerald-600);
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-tile:hover,
.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.category-tile img,
.category-overlay {
  position: absolute;
  inset: 0;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 500ms ease;
}

.category-tile:hover img {
  transform: scale(1.12);
}

.category-overlay {
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.04), rgba(6, 78, 59, 0.92));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 1.25rem;
  font-weight: 950;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.55;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.movie-card.is-hidden {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ecfdf5, #f8fafc);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.62));
  opacity: 0;
  transition: opacity var(--transition);
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--emerald-800);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.78);
  transition: opacity var(--transition), transform var(--transition);
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--emerald-950);
  font-weight: 950;
  background: linear-gradient(135deg, #fff7ed, #fbbf24);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.20);
}

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

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--emerald-700);
  font-size: 0.78rem;
  font-weight: 900;
}

.movie-card h3 {
  margin: 9px 0 7px;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.movie-card h3 a:hover {
  color: var(--emerald-700);
}

.movie-card p {
  min-height: 48px;
  margin: 0;
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.65;
}

.tag-row {
  margin-top: 13px;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--emerald-700);
  font-size: 0.76rem;
  background: #ecfdf5;
}

.rank-panel,
.info-panel,
.story-card,
.player-card,
.category-card-wide {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.rank-panel {
  padding: 22px;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

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

.compact-heading {
  margin-bottom: 16px;
}

.compact-heading h2 {
  font-size: 1.36rem;
}

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

.small-card {
  display: grid;
  grid-template-columns: auto 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background var(--transition), transform var(--transition);
}

.small-card:hover {
  transform: translateX(3px);
  background: #ecfdf5;
}

.small-card img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--gray-100);
}

.small-card strong,
.small-card em {
  display: block;
}

.small-card strong {
  margin-bottom: 5px;
  font-size: 0.94rem;
  line-height: 1.35;
}

.small-card em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.45;
}

.small-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 950;
  background: var(--emerald-600);
}

.sub-hero {
  padding: 72px 0 20px;
}

.sub-hero h1,
.channel-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.sub-hero .eyebrow {
  color: var(--emerald-600);
}

.sub-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.category-wide-grid {
  display: grid;
  gap: 22px;
}

.category-card-wide {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 26px;
  padding: 22px;
  align-items: center;
}

.category-cover-set {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-height: 210px;
}

.category-cover-set img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: 18px;
}

.channel-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.30), transparent 34%),
    linear-gradient(135deg, var(--emerald-950), var(--emerald-800));
}

.channel-inner {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 40px;
  padding: 66px 0;
}

.channel-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--emerald-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.62));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--white);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

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

.detail-copy p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.85;
}

.detail-tags {
  margin-top: 20px;
}

.detail-tags a {
  padding: 7px 12px;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.player-card {
  overflow: hidden;
  padding: 0;
  background: var(--slate-950);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
  text-align: center;
  transition: opacity var(--transition), visibility var(--transition);
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--emerald-800);
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.32);
}

.player-cover strong {
  font-size: 1.35rem;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.36);
}

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

.story-card p {
  margin: 16px 0 0;
  color: var(--gray-700);
  font-size: 1.02rem;
}

.related-section {
  margin-top: 32px;
}

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

.info-panel {
  padding: 22px;
}

.info-panel ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.info-panel li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.info-panel li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-panel span {
  color: var(--gray-500);
}

.info-panel strong {
  color: var(--slate-900);
  text-align: right;
}

.sticky-search {
  position: sticky;
  top: 88px;
  z-index: 5;
}

.site-footer {
  margin-top: 30px;
  padding: 46px 0;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, var(--slate-950), var(--emerald-950));
}

.footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 34px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1.28rem;
  font-weight: 950;
}

.footer-inner p {
  max-width: 680px;
  margin: 0;
  line-height: 1.8;
}

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

.footer-links a {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1100px) {
  .hero-content,
  .channel-inner,
  .content-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .hero-thumb-row {
    display: none;
  }

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

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

  .side-column,
  .detail-side {
    display: block;
  }

  .sticky-panel,
  .sticky-search {
    position: static;
  }
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

  .mobile-link {
    justify-content: flex-start;
    padding: 12px 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
  }

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

  .hero-content {
    display: flex;
    padding: 70px 0 92px;
  }

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

  .category-card-wide,
  .detail-head-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-cover-set {
    min-height: 150px;
  }

  .category-cover-set img {
    min-height: 150px;
  }

  .detail-poster {
    width: min(230px, 80vw);
  }
}

@media (max-width: 560px) {
  .shell,
  .nav-container,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .nav-container {
    min-height: 64px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .hero-copy h1,
  .sub-hero h1,
  .channel-hero h1,
  .detail-copy h1 {
    font-size: 2.35rem;
  }

  .hero-copy p,
  .detail-copy p {
    font-size: 0.98rem;
  }

  .hero-controls {
    bottom: 22px;
  }

  .section {
    padding: 40px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading .text-link {
    display: inline-flex;
    margin-top: 12px;
  }

  .large-search {
    border-radius: 18px;
    flex-direction: column;
  }

  .large-search input,
  .large-search button {
    width: 100%;
  }

  .large-search button {
    min-height: 48px;
  }

  .category-grid,
  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .movie-card p {
    min-height: auto;
  }

  .small-card {
    grid-template-columns: auto 52px 1fr;
  }

  .small-card img {
    width: 52px;
    height: 70px;
  }

  .story-card,
  .rank-panel,
  .info-panel {
    padding: 20px;
  }
}
