:root {
  color-scheme: light;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --cyan-500: #06b6d4;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 46px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1200px;
}

* {
  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;
  color: var(--slate-800);
  background: linear-gradient(135deg, var(--slate-50) 0%, var(--blue-50) 48%, var(--slate-100) 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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-shell {
  width: min(100% - 32px, var(--container));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  background: rgba(59, 130, 246, 0.18);
  filter: blur(14px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand:hover .brand-mark::after {
  opacity: 1;
}

.brand-play {
  position: relative;
  z-index: 1;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--white);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--slate-500);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: var(--slate-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--blue-600);
  background: var(--blue-50);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: var(--slate-700);
  background: transparent;
}

.menu-button span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 12px;
  padding: 10px;
  border-top: 1px solid var(--slate-200);
}

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

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

.hero-carousel {
  position: relative;
  height: min(74vh, 640px);
  min-height: 520px;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide.is-active img {
  animation: heroZoom 6s ease forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.62) 42%, rgba(2, 6, 23, 0.24) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.1) 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding: 0 0 74px;
}

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

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-600);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-label {
  padding: 9px 14px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(191, 219, 254, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  color: var(--white);
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

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

.hero-meta span {
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button,
.section-link,
.quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.quick-links a:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: max(18px, calc((100% - var(--container)) / 2 - 74px));
}

.hero-next {
  right: max(18px, calc((100% - var(--container)) / 2 - 74px));
}

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

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

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

.quick-search-block,
.content-section,
.detail-shell {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.quick-search-block {
  margin-top: -42px;
  position: relative;
  z-index: 10;
}

.quick-search-inner {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.quick-search-inner h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  color: var(--slate-900);
}

.quick-search-inner p {
  margin: 8px 0 18px;
  color: var(--slate-600);
  line-height: 1.7;
}

.quick-links a {
  color: var(--blue-700);
  background: var(--blue-50);
}

.content-section {
  padding: 48px 0 8px;
}

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

.section-heading h2 {
  margin: 8px 0 8px;
  color: var(--slate-900);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.section-link {
  flex: 0 0 auto;
  color: var(--blue-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.channel-card,
.category-overview-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.channel-card::after,
.category-main-link::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -52px;
  top: -54px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.16));
}

.channel-card:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.24);
}

.channel-card span,
.category-main-link span {
  display: block;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: var(--blue-600);
  font-size: 18px;
  font-weight: 850;
}

.channel-card strong,
.category-main-link strong {
  display: block;
  position: relative;
  z-index: 1;
  color: var(--slate-700);
  font-size: 14px;
  line-height: 1.65;
}

.channel-card em {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-100), var(--slate-100));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.76), transparent 52%);
  opacity: 0.88;
}

.watch-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
}

.watch-chip {
  left: 14px;
  bottom: 14px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.9);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.movie-card:hover .watch-chip {
  transform: translateY(0);
  opacity: 1;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.24);
}

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

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

.movie-card-body h3 a:hover {
  color: var(--blue-600);
}

.movie-meta,
.movie-one-line {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.55;
}

.movie-one-line {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 9px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--slate-600);
}

.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: var(--blue-700);
  background: var(--blue-50);
  font-size: 12px;
  font-weight: 750;
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

.movie-card-compact .movie-card-body h3 {
  font-size: 16px;
}

.movie-card-compact .tag-row span:nth-child(n + 4) {
  display: none;
}

.inline-search {
  margin: -4px 0 22px;
}

.inline-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inline-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.filter-panel {
  margin-bottom: 26px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow: var(--shadow-sm);
}

.filter-head {
  margin-bottom: 18px;
}

.filter-head h2 {
  margin: 0 0 6px;
  color: var(--slate-900);
  font-size: 24px;
}

.filter-head p {
  margin: 0;
  color: var(--slate-600);
}

.filter-controls {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
}

.filter-controls label {
  display: grid;
  gap: 7px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 750;
}

.empty-state {
  display: none;
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 14px;
  color: var(--slate-600);
  background: var(--slate-100);
}

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

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

.page-hero {
  width: min(100% - 32px, var(--container));
  margin: 28px auto 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.38), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.92));
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.small-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 42px;
}

.small-hero h1 {
  max-width: 820px;
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.small-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

.compact-actions {
  margin-top: 22px;
}

.category-overview-card {
  padding: 0;
}

.category-main-link {
  position: relative;
  display: block;
  min-height: 150px;
  padding: 22px;
}

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 22px;
}

.category-sample-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-size: 13px;
}

.category-sample-links a:hover {
  color: var(--blue-700);
  background: var(--blue-50);
}

.detail-shell {
  padding-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--slate-500);
  font-size: 14px;
}

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

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

.player-panel,
.detail-info-card,
.detail-text-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow: var(--shadow-sm);
}

.player-panel {
  overflow: hidden;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.player-box video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18), rgba(0, 0, 0, 0.64));
}

.big-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.42);
  transform: translate(-50%, -50%);
}

.big-play-button i {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid var(--white);
}

.detail-title-block {
  padding: 24px;
}

.detail-title-block h1 {
  margin: 10px 0 10px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.detail-title-block p {
  margin: 0;
  color: var(--slate-600);
  font-size: 17px;
  line-height: 1.8;
}

.detail-info-card {
  overflow: hidden;
}

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

.detail-info-body {
  padding: 20px;
}

.detail-info-body h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 24px;
}

.detail-info-body dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-info-body dl div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
}

.detail-info-body dt {
  color: var(--slate-500);
}

.detail-info-body dd {
  margin: 0;
  color: var(--slate-800);
  font-weight: 700;
}

.detail-content-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.detail-text-card {
  padding: 26px;
}

.detail-text-card h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: 26px;
}

.detail-text-card p {
  margin: 0 0 14px;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.9;
}

.detail-text-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 54px;
  color: var(--slate-300);
  background: var(--slate-900);
}

.footer-shell {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 44px 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 24px;
  font-weight: 850;
}

.footer-shell p {
  max-width: 480px;
  margin: 0;
  color: var(--slate-400);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--slate-300);
  background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(37, 99, 235, 0.42);
}

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

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.08);
  }
}

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

  .menu-button {
    display: inline-flex;
  }

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

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

  .detail-info-card {
    display: grid;
    grid-template-columns: 240px 1fr;
  }

  .detail-info-card > img {
    height: 100%;
  }

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

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

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

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

  .brand-text small {
    display: none;
  }

  .hero-carousel {
    min-height: 560px;
    height: 72vh;
  }

  .hero-content {
    padding-bottom: 80px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-meta span {
    font-size: 13px;
  }

  .hero-control {
    top: auto;
    bottom: 24px;
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .quick-search-block {
    margin-top: -28px;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    margin-top: 14px;
  }

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

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

  .movie-card-body h3 {
    font-size: 16px;
  }

  .tag-row span:nth-child(n + 4) {
    display: none;
  }

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

  .small-hero {
    min-height: 230px;
    padding: 30px 22px;
  }

  .detail-info-card {
    display: block;
  }

  .detail-title-block,
  .detail-text-card {
    padding: 20px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .compact-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions,
  .quick-links {
    display: grid;
  }

  .primary-button,
  .ghost-button,
  .quick-links a {
    width: 100%;
  }
}
