:root {
  color-scheme: dark;
  --bg: #0c0c0c;
  --panel: #191919;
  --muted: #999;
  --red: #e50914;
  --line: #ffffff16;
  --gutter: clamp(20px, 5vw, 96px);
  --header-height: 78px;
  --card-space: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #f5f5f5;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  color: inherit;
  background: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--red);
  outline-offset: 4px;
}
button,
input,
select {
  min-height: 44px;
}
img {
  max-width: 100%;
  object-fit: cover;
}
p {
  line-height: 1.75;
  color: #b6b6bb;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.skip {
  position: fixed;
  top: -80px;
  left: 10px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
  background: var(--red);
  padding: 14px;
}

 .brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  padding-top: 3px;
  height: 38px; 
  width: auto;
  object-fit: contain;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 21px;
  border-radius: 5px;
  background: #ffffff1a;
  font-weight: 600;
  transition: background 0.2s;
}
.btn:hover {
  background: #ffffff30;
}
.btn.primary {
  background: var(--red);
  color: white;
}
.btn.primary:hover {
  background: #bc0912;
}
.btn.light {
  background: #f5f5f5;
  color: #141414;
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.icon:hover {
  background: #ffffff12;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pill {
  font-size: 10px;
  background: #ffffff15;
  border: 1px solid #ffffff1f;
  border-radius: 3px;
  padding: 4px 7px;
}
.green {
  color: #6bd6a0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.empty {
  border: 1px dashed #ffffff20;
  padding: 28px;
  border-radius: 8px;
  color: #999;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}
.section-heading h2 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.5px;
}
.section-heading a {
  font-size: 12px;
  color: #999;
}
.section-heading small {
  color: var(--red);
  font-size: 10px;
  letter-spacing: 2px;
  margin-right: 12px;
}
/* HEADER */
#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  min-height: 78px;
  padding: 14px 5%;
  display: flex;
  align-items: center;
  background: linear-gradient(#000b, transparent);
  transition: background 0.25s;
  padding-inline: var(--gutter);
  gap: clamp(18px, 3vw, 36px);
}
#header.scrolled,
#header.solid {
  background: #0b0b0bee;
  backdrop-filter: blur(16px);
}
nav {
  display: flex;
  gap: 26px;
}
nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  color: #aaa;
}
nav a.active {
  color: #fff;
  position: relative;
}
nav a.active:after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
}
.user-area {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-area .btn {
  font-size: 12px;
  padding: 0 18px;
  min-height: 44px;
}
.avatar {
  background: #70252a;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  display: grid;
  place-items: center;
}
/* HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center; 
  isolation: isolate;
  margin: calc(var(--header-height) + 14px) var(--gutter) 45px;
  height: max(650px, 75svh); 
  border-radius: 16px;
  border: none;
  padding: 60px 4% 130px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
}
.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  animation: reveal 0.6s ease;
  border-radius: 0; 
}
.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 16px;
  background:
    linear-gradient(90deg, #0b0b0bf2 0%, #0b0b0b80 43%, #0b0b0b05 80%),
    linear-gradient(0deg, #0b0b0b 0%, transparent 50%, #0003);
}
.hero:after {
  content: '';
  position: absolute;
  z-index: -4;
  inset: -40px;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.5);
  opacity: 0.35;
  border-radius: 30px;
  pointer-events: none;
}
.hero-copy {
  max-width: 560px;
  min-width: 0;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ddd;
  margin-bottom: 25px;
}
.hero .eyebrow:before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--red);
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(68px, 8.2vw, 124px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 1px;
  margin: 0 0 24px;
  max-width: 550px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-tagline {
  font-size: 17px;
  color: #eee;
  font-weight: 500;
  margin-bottom: 12px;
}
.hero-description {
  max-width: 480px;
  font-size: 13px;
  line-height: 1.85;
  margin: 20px 0 27px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: #bbb;
}
.meta .rating {
  color: #f5c267;
}
.hero-controls {
  position: absolute;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  left: 4%;
  right: 4%;
}
.dot {
  min-height: 44px;
  width: 25px;
  position: relative;
  padding: 0;
}
.dot:after {
  content: '';
  height: 3px;
  background: #ffffff50;
  position: absolute;
  left: 0;
  right: 0;
  top: 21px;
}
.dot.current:after {
  background: var(--red);
}
.hero-count {
  font-size: 10px;
  color: #999;
  margin-left: 14px;
  letter-spacing: 2px;
}
.hero-arrows {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.hero-arrows .icon {
  border: 1px solid #ffffff35;
  border-radius: 4px;
}
.hero-note {
  position: absolute;
  bottom: 15px;
  color: #ffffff50;
  font-size: 9px;
  letter-spacing: 1px;
  right: 4%;
}
.content {
  padding: 0 5%;
  padding-inline: var(--gutter);
}
.home-content {
  position: relative;
  margin-top: -25px;
}
.shelf {
  margin-bottom: 45px;
}
.shelf-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.shelf-nav-arrows {
  display: flex;
  gap: 4px;
}
.shelf-nav-arrows .icon {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
}
.shelf-nav-arrows .icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.rail {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  gap: 24px;
  padding: var(--card-space);
  margin: -8px calc(-1 * var(--card-space)) 0;
  scroll-padding-inline: var(--card-space);
}
.rail::-webkit-scrollbar {
  display: none;
}
.card {
  position: relative;
  flex: 0 0 140px;
  min-width: 0;
  scroll-snap-align: start;
  margin: 0;
  padding-top: 0;
  padding-bottom: 4px;
}
.poster-link {
  display: block;
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 6px;
  background: #242424;
  transition:
    transform 0.25s,
    border-color 0.25s;
  transform-origin: center;
}
.poster-link:hover,
.poster-link:focus-visible {
  transform: scale(1.05);
  z-index: 2;
}
.poster-link:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 25%, #000b);
}
.poster-link img {
  width: 100%;
  height: 100%;
  filter: saturate(0.65);
}
.poster-art {
  position: absolute;
  z-index: 1;
  inset: auto 12px 24px;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 0 2px 15px #000;
}
.poster-link .poster-kicker {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 4px;
  height: 15px !important; 
  width: auto !important; 
  object-fit: contain;
}
.card-info {
  padding: 12px 0 0;
  padding-top: 18px;
}
.card-info h3 {
  font-size: 13.5px;
  margin: 0 0 7px;
  font-weight: 500;
}
.card-info span {
  font-size: 10px;
  color: #777;
}
.card-rating {
  color: #d0b674 !important;
  float: right;
}
.rank-card {
  flex-basis: 220px;
  padding-left: 45px;
}
.rank {
  position: absolute;
  left: 0;
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: 126px;
  line-height: 0.9;
  color: #101010;
  text-shadow: 
    -2px -2px 0 #6b0d12,
     2px -2px 0 #6b0d12,
    -2px  2px 0 #6b0d12,
     2px  2px 0 #6b0d12,
    -2px  0   0 #6b0d12,
     2px  0   0 #6b0d12,
     0   -2px 0 #6b0d12,
     0    2px 0 #6b0d12;
  z-index: 3;
  letter-spacing: -8px;
  pointer-events: none;
  bottom: 51px;
  transition: translate 0.3s ease-out, transform 0.3s ease-out;
}

.card:has(.poster-link:hover) .rank {
  translate: -15px 0;
  animation: pulo-continuo 0.9s infinite ease-in-out;
  animation-delay: 0.2s;
}

@keyframes pulo-continuo {
  0%, 100% {
    transform: translate(-0px, 0); 
  }
  50% {
    transform: translate(-0px, -8px); 
  }
}

.rank-card .poster-link {
  aspect-ratio: 2/3;
  border: 2px solid transparent;
}
.wide-card {
  flex-basis: 280px;
}
.wide-card .poster-link {
  aspect-ratio: 16/9;
}
.wide-card .poster-art {
  font-size: 25px;
  bottom: 20px;
}
 .progress {
  height: 4px;
  background: #ffffff20;
  width: calc(100% - 24px);
  margin-inline: auto; 
  margin-top: 8px;

  border-radius: 4px;
  overflow: hidden;

  position: relative;
  z-index: 4;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 4px;
}
.editorial {

  margin: 10px 0 45px;
  padding: 28px 30px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.editorial h2 {
  font-size: 22px;
  margin: 8px 0;
}
.editorial p {
  font-size: 12px;
  margin: 0;
}
.editorial .eyebrow {
  color: #9b9797;
}
/* CATALOG */
.page {
  min-height: 75vh;
  padding: calc(var(--header-height) + 48px) var(--gutter) 60px;
}
.page h1 {
  font-size: 38px;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}
.catalog-controls {
  position: sticky;
  z-index: 10;
  background: #0b0b0bf5;
  padding: 18px 0 22px;
  backdrop-filter: blur(15px);
  top: var(--header-height);
  border: 0;
  margin: 0;
}
.filter-line {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 0 18px;
  border-radius: 5px;
  color: #999;
}
.tabs button.active {
  background: #272727;
  color: white;
}
.search-field {
  flex: 1;
  min-width: 170px;
}
.field,
input,
select,
textarea {
  color: #eee;
  background: #1b1b1b;
  border: 1px solid #ffffff1c;
  border-radius: 5px;
  padding: 12px;
  max-width: 100%;
}
select {
  min-width: 135px;
}
.result-count {
  font-size: 12px;
  color: #999;
  margin-top: 18px;
  display: block;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
  padding-block: var(--card-space);
  overflow: visible;
}
.grid .card {
  width: auto;
}
.grid .poster-link {
  aspect-ratio: 2/3;
}
/* CONTENT */
.detail-hero {
  min-height: 620px;
  height: auto;
}
.details {
  padding: 0 5% 60px;
  padding-inline: var(--gutter);
}
.detail-tabs {
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.detail-tabs button {
  border-radius: 0;
  padding: 18px 24px;
}
.detail-tabs button.active {
  background: transparent;
  border-bottom: 2px solid var(--red);
}
.details-text {
  max-width: 800px;
}
.cast {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cast span {
  padding: 15px;
  background: var(--panel);
  border-radius: 5px;
}
.episode {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  width: 100%;
  text-align: left;
}
.episode img {
  width: 170px;
  aspect-ratio: 16/9;
  border-radius: 5px;
}
.episode h3 {
  font-size: 15px;
}
.episode p {
  font-size: 12px;
  margin: 0;
}
.legal {
  max-width: 850px;
}
.legal h2 {
  font-size: 20px;
  margin-top: 32px;
}
/* ADMIN & DIALOGS */
dialog {
  width: min(480px, calc(100% - 32px));
  max-height: 90vh;
  padding: 30px;
  background: #171717;
  color: #fff;
  border: 1px solid #ffffff20;
  border-radius: 12px;
}
dialog::backdrop {
  background: #000c;
  backdrop-filter: blur(7px);
}
dialog h2 {
  font-size: 23px;
}
dialog .close {
  position: absolute;
  top: 8px;
  right: 8px;
}
dialog form,
.admin-form {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #bbb;
}
dialog .btn {
  width: 100%;
}
.form-note {
  font-size: 11px;
  color: #999;
}
.error {
  color: #ff868c;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
td,
th {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
th {
  color: #888;
}
.admin-form {
  max-width: 760px;
}
.admin-form textarea {
  min-height: 110px;
}
.admin-episodes {
  margin: 24px 0;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #eee;
  color: #111;
  padding: 14px 22px;
  border-radius: 7px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: 90%;
  font-size: 12px;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* FOOTER */
#footer {
  margin: 20px 5% 0;
  padding: 38px 0 26px;
  border-top: 1px solid var(--line);
  margin-inline: var(--gutter);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-top p {
  font-size: 11px;
  margin: 9px 0;
}
.footer-links {
  display: flex;
  gap: 25px;
  font-size: 11px;
  color: #999;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 27px;
  padding-top: 22px;
  font-size: 10px;
  color: #666;
}
.footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
@keyframes reveal {
  from {
    opacity: 0.4;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
#header nav a {
  flex: 0 0 auto;
  padding-inline: 0;
}
.hero .actions {
  gap: 12px;
}
.hero .actions .btn {
  padding-inline: 18px;
}

.rank-card .poster-link:hover,
.rank-card .poster-link:focus-visible {
  border-color: #e50914;
}
#content-details {
  scroll-margin-top: calc(var(--header-height) + 24px);
}
.admin-search {
  max-width: 480px;
  margin: 24px 0 12px;
}
.legal a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
/* UTILITIES */
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.modal-action {
  margin-top: 12px;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 500px; 
  height: auto;
  max-height: 140px; 
  object-fit: contain;
  object-position: left center; 
  margin: 0 0 20px 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6)); 
}
.accent-eyebrow {
  color: #b15e63;
}
.page-title {
  margin-top: 20px;
}
.spaced-top {
  margin-top: 24px;
}
.season-field {
  max-width: 200px;
}
.account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* HEADER SEARCH */
.header-search {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  z-index: 2;
}
#search-toggle {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
}
#quick-form {
  position: absolute;
  right: 0;
  top: 50%;
  width: var(--search-width, 280px);
  height: 44px;
  margin: 0;
  transform: translateY(-50%) scaleX(0.85);
  transform-origin: right center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}
.quick-search {
  display: block;
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 10px 48px 10px 14px;
  background: #171717;
  border: 1px solid #666;
  border-radius: 6px;
}
.header-search.is-open #quick-form {
  transform: translateY(-50%) scaleX(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.header-search.is-open .quick-search:focus-visible {
  outline-offset: 1px;
  outline: 2px solid var(--red);
}

/* PLAYER */
.player-page {
  background: #000;
}
.player-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100svh;
  min-height: 320px;
  background: #000;
}
.player-toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 16px;
  background: #101010;
}
.player-toolbar h1 {
  min-width: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.player-toolbar h1 span {
  display: block;
  color: #999;
  font-size: 12px;
  font-weight: 400;
}
.player-back {
  flex-shrink: 0;
  font-size: 12px;
}
.immersive-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #000;
}
.player-status {
  padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
  background: #101010;
}
.player-status p {
  margin: 0;
  font-size: 11px;
}
.player-status #retry-video {
  margin-top: 10px;
}
.player-unavailable {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px var(--gutter);
}

@media (min-width: 700px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .card {
    flex-basis: 185px;
  }
  .rank-card {
    flex-basis: 225px;
  }
}

@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
     #header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--header-height);
    padding: 12px var(--gutter);
  }
   .brand img {
    padding-top: 2px;
    height: 35px; 
   }
  nav {
    gap: 14px;
  }
  nav a {
    font-size: 11px;
  }
  .user-area .btn {
    padding: 0 10px;
    font-size: 10px;
    padding-inline: 9px;
    min-height: 44px;
  }
  .user-area .login-link {
    display: inline-flex;
  }
  .hero {
    margin: 0;
    border-radius: 0;
    border: none;
    height: auto;
    align-items: center;
    min-height: 760px;
    padding: calc(var(--header-height) + 4px) var(--gutter) 155px;
  }
  .hero-controls {
    left: var(--gutter);
    right: var(--gutter);
    bottom: 5px;
  }
  .hero-note {
    right: var(--gutter);
    bottom: 24px;
  }
  .hero h1 {
    font-size: clamp(58px, 12vw, 76px);
  }
  .hero-logo {
    max-width: 320px;
    max-height: 90px;
    margin-bottom: 16px;
  }
  .hero:before {
    background:
      linear-gradient(90deg, #0b0b0bcc, #0b0b0b22),
      linear-gradient(0deg, #0b0b0b 0%, #0b0b0b55 65%, #0002);
  }
  .hero:after {
    display: none;
  }
  .hero-media, .hero-image, .hero:before {
    border-radius: 0;
    border: none;
  }
  .hero-description {
    font-size: 12px;
    max-width: 340px;
  }
  .hero-tagline {
    font-size: 15px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-controls {
    bottom: 65px;
    gap: 5px;
  }
  .hero .eyebrow {
    font-size: 8px;
    line-height: 1.8;
    letter-spacing: 2px;
  }
  .hero-note {
    bottom: 24px;
    left: var(--gutter);
    font-size: 8px;
    line-height: 1.5;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .section-heading small {
    display: none;
  }
  .rank-card {
    flex-basis: 190px;
  }
  .rank {
    font-size: 108px;
    bottom: 70px;
  }
  .editorial {
    padding: 22px;
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .page {
    padding-top: calc(var(--header-height) + 48px);
  }
  .page h1 {
    font-size: 30px;
  }
  .catalog-controls {
    top: var(--header-height);
  }
  .filter-line select {
    flex: 1;
    min-width: 100px;
  }
  .tabs {
    width: 100%;
  }
  .tabs button {
    padding: 0 13px;
  }
  .detail-hero {
    min-height: 640px;
    padding-bottom: 60px;
  }
  .episode {
    gap: 12px;
  }
  .episode img {
    width: 105px;
  }
  .episode p {
    display: none;
  }
  .grid .poster-art {
    font-size: 27px;
  }
  :root {
    --header-height: 78px;
    --card-space: 14px;
  }
  #header nav a {
    min-height: 44px;
  }
  .user-area .icon {
    width: 44px;
    min-width: 44px;
  }
  .user-area .brand {
    flex-shrink: 0;
  }
  .hero .eyebrow:before {
    flex-shrink: 0;
  }
  .hero .actions .btn {
    font-size: 12px;
    min-height: 46px;
    padding-inline: 15px;
  }
  .hero-count {
    margin-left: 6px;
    white-space: nowrap;
  }
  .hero-arrows {
    gap: 4px;
  }
  .hero-arrows .icon {
    width: 44px;
    flex-shrink: 0;
  }
  .dot {
    width: 20px;
    flex-shrink: 1;
  }
  .rail {
    gap: 20px;
  }
  .grid {
    gap: 28px 18px;
  }
  .card-info {
    padding-top: 16px;
  }
  .section-heading {
    align-items: center;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .player-toolbar {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }
  .player-toolbar h1 {
    font-size: 15px;
  }
  .player-back {
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 360px) {

  .hero:not(.detail-hero) {
    padding-bottom: 184px;
  }

  #header {
    column-gap: 6px;
  }
  .brand {
    font-size: 23px;
  }
  .user-area .btn {
    padding-inline: 6px;
  }
  .hero-controls {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .hero-arrows {
    margin-left: auto;
  }
  .hero-count {
    font-size: 9px;
  }
}

.import-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.import-panel progress { width: 100%; height: 18px; accent-color: #e50914; }
.import-counts { display: flex; gap: 24px; flex-wrap: wrap; margin: 24px 0; }
.import-counts dd { margin: 8px 0; font-size: 2rem; font-weight: 700; }
#import-errors { overflow-wrap: anywhere; line-height: 1.8; }
.import-panel input { width: 100%; min-width: 0; }
