:root {
  --bg: #000000;
  --panel: #090909;
  --panel-soft: rgba(14, 14, 14, 0.78);
  --panel-strong: rgba(0, 0, 0, 0.88);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f5f5;
  --muted: #a6a6a6;
  --soft: #d7d7d7;
  --accent: #e50914;
  --accent-soft: rgba(229, 9, 20, 0.28);
  --shadow-heavy: 0 30px 90px rgba(0, 0, 0, 0.72);
  --nav-h: 72px;
  --side: clamp(32px, 4vw, 56px);
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --page-top: calc(var(--nav-h) + clamp(38px, 5vw, 58px));
  --page-bottom: clamp(64px, 8vw, 96px);
  --section-gap: clamp(38px, 4.8vw, 58px);
  --panel-gap: clamp(18px, 2.4vw, 28px);
  --content-pad: clamp(20px, 3vw, 42px);
  --row-card-gap: clamp(14px, 1.4vw, 20px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(229, 9, 20, 0.12), transparent 34vw),
    radial-gradient(circle at 12% 18%, rgba(31, 128, 224, 0.08), transparent 32vw),
    linear-gradient(180deg, rgba(5, 5, 5, 0.28), var(--bg) 54vh),
    linear-gradient(180deg, #050505 0, var(--bg) 36vh),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

body.search-open {
  overflow: hidden;
}

::selection {
  background: rgba(229, 9, 20, 0.72);
  color: #ffffff;
}

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

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

img {
  display: block;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.button svg path,
.round-action svg path {
  fill: currentColor;
  stroke: none;
}

.hidden {
  display: none !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: #282828;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* Navigation */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 0 var(--side);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.14) 76%, rgba(0, 0, 0, 0));
  border-bottom: 0;
  transition: background 180ms ease, backdrop-filter 180ms ease, transform 220ms var(--ease);
}

.site-nav.scrolled {
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 0;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  line-height: 1;
}

.brand-logo {
  width: 142px;
  height: auto;
}

.mobile-page-brand {
  display: none;
}

.icon-img {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
}

.button .icon-img,
.round-action .icon-img {
  width: 20px;
  height: 20px;
}

.room-icon-button .icon-img,
.room-pill .icon-img,
.close-button .icon-img,
.search-toggle .icon-img,
.search-close .icon-img,
.search-clear .icon-img {
  width: 20px;
  height: 20px;
}

.row-edge-arrow.right .icon-img {
  transform: rotate(180deg);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 180ms ease;
}

.site-nav.menu-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-nav.menu-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(2, 4, 8, 0.58);
}

.nav-link {
  position: relative;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, transform 160ms var(--ease), box-shadow 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  outline: none;
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--text);
  background: rgba(229, 9, 20, 0.18);
}

.nav-link:active,
.search-toggle:active,
.profile-toggle:active {
  transform: translateY(0) scale(0.98);
}

.nav-button {
  appearance: none;
}

.search-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(2, 4, 8, 0.78);
  color: var(--text);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.search-toggle:hover {
  border-color: rgba(229, 9, 20, 0.54);
  background: rgba(229, 9, 20, 0.16);
  transform: translateY(-1px);
}

.search-toggle:focus-visible {
  border-color: rgba(229, 9, 20, 0.72);
  outline: none;
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.16);
}

.profile-toggle {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  justify-self: end;
  padding: 0 11px 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(2, 4, 8, 0.78);
  color: var(--text);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-toggle:hover {
  border-color: rgba(229, 9, 20, 0.54);
  background: rgba(229, 9, 20, 0.16);
  transform: translateY(-1px);
}

.profile-toggle:focus-visible {
  border-color: rgba(229, 9, 20, 0.72);
  outline: none;
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.16);
}

.profile-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.profile-avatar img,
.profile-tile-avatar img,
.profile-unlock-avatar img,
.profile-picture-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-toggle span:last-child {
  max-width: 92px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
}

.profile-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
}

.profile-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 12%, rgba(31, 128, 224, 0.16), transparent 30%),
    rgba(7, 7, 8, 0.98);
  box-shadow: var(--shadow-heavy);
  animation: modalPop 220ms var(--ease) both;
}

.profile-dialog .close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.profile-head {
  padding: 32px 30px 8px;
  text-align: center;
}

.profile-head h2 {
  font-size: 28px;
  font-weight: 900;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
  padding: 26px 30px 34px;
}

.profile-tile {
  min-height: 156px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: center;
}

.profile-tile:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.07);
}

.profile-tile-avatar,
.profile-unlock-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--profile-color, rgba(255, 255, 255, 0.16));
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
}

.profile-tile-avatar svg {
  width: 28px;
  height: 28px;
}

.profile-tile strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-tile small {
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(245, 159, 0, 0.18);
  color: #ffd43b;
  font-size: 10px;
  font-weight: 900;
}

.profile-tile-action .profile-tile-avatar {
  background: rgba(255, 255, 255, 0.11);
}

.profile-form {
  display: grid;
  gap: 18px;
  padding: 24px 30px 32px;
}

.profile-field {
  display: grid;
  gap: 8px;
  color: #c6ccd6;
  font-size: 12px;
  font-weight: 900;
}

.profile-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0 14px;
}

.profile-field input:focus {
  border-color: rgba(31, 128, 224, 0.72);
  box-shadow: 0 0 0 4px rgba(31, 128, 224, 0.12);
}

.profile-picture-field {
  position: relative;
  min-height: 82px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.profile-picture-field:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.065);
}

.profile-picture-preview {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.profile-picture-preview svg {
  width: 24px;
  height: 24px;
}

.profile-picture-field strong,
.profile-picture-field small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-picture-field strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.profile-picture-field small {
  margin-top: 5px;
  color: #8f98a8;
  font-size: 12px;
  font-weight: 700;
}

.profile-picture-field input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-colors label {
  width: 34px;
  height: 34px;
  position: relative;
}

.profile-colors input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.profile-colors span {
  width: 100%;
  height: 100%;
  display: block;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--profile-color);
}

.profile-colors input:checked + span {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.profile-pin-toggle {
  min-height: 52px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-pin-toggle input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}

.profile-pin-toggle input:checked {
  border-color: #1f80e0;
  background: #1f80e0;
}

.profile-pin-toggle input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  display: block;
  margin: 4px 0 0 3px;
  border: solid #ffffff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.profile-pin-toggle strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.profile-pin-toggle small {
  display: block;
  margin-top: 5px;
  color: #8f98a8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.profile-error {
  padding: 10px 12px;
  border: 1px solid rgba(229, 9, 20, 0.38);
  border-radius: 8px;
  background: rgba(229, 9, 20, 0.12);
  color: #ffd0d3;
  font-size: 13px;
  font-weight: 800;
}

.profile-unlock-avatar {
  justify-self: center;
}

.profile-unlock-name {
  justify-self: center;
  font-size: 18px;
  font-weight: 900;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px var(--side);
}

.search-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(229, 9, 20, 0.2), transparent 34vw),
    rgba(0, 0, 0, 0.66);
  animation: searchScrimIn 180ms ease both;
}

.search-dialog {
  position: relative;
  width: min(720px, calc(100vw - var(--side) * 2));
  max-height: min(720px, calc(100svh - 56px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(18, 20, 25, 0.98), rgba(5, 6, 10, 0.98)),
    rgba(5, 6, 10, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
  color: var(--text);
  isolation: isolate;
  transform-origin: top center;
  animation: searchDialogIn 260ms var(--ease) both;
}

.search-dialog::before {
  content: "";
  position: absolute;
  inset: -1px 18px auto;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.95), transparent);
  pointer-events: none;
}

@keyframes searchScrimIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes searchDialogIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 12px;
  padding: 0 2px;
}

.search-header h2 {
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.search-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.search-filter {
  position: relative;
}

.search-filter-button,
.search-close {
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.search-filter-button:hover,
.search-close:hover {
  border-color: rgba(229, 9, 20, 0.54);
  background: rgba(229, 9, 20, 0.16);
  color: #ffffff;
}

.search-filter-button {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 0 16px;
  font-size: 14px;
  font-weight: 700;
}

.search-filter-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-filter-button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: rgba(255, 255, 255, 0.58);
  transition: transform 180ms var(--ease), color 180ms ease;
}

.search-filter-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.search-close {
  width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-close svg {
  width: 19px;
  height: 19px;
}

.search-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2;
  width: 206px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(10, 12, 17, 0.99);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.62);
  transform-origin: top right;
  animation: searchMenuIn 160ms var(--ease) both;
}

@keyframes searchMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-filter-menu button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  padding: 0 15px;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}

.search-filter-menu button:hover,
.search-filter-menu button.active {
  background: rgba(229, 9, 20, 0.14);
  color: var(--text);
}

.search-form {
  display: block;
}

.search-input-shell {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 15px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.search-input-shell:focus-within {
  border-color: rgba(229, 9, 20, 0.56);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-input-shell > svg,
.search-input-shell > .icon-img {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: #9aa4b5;
}

.search-input-shell input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 19px;
  font-weight: 650;
}

.search-input-shell input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-input-shell input::placeholder {
  color: #9aa4b5;
}

.search-clear {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #8d96a7;
}

.search-clear svg {
  width: 18px;
  height: 18px;
}

.search-surface {
  max-height: min(470px, calc(100svh - 216px));
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(4, 5, 8, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: searchSurfaceIn 180ms var(--ease) both;
}

@keyframes searchSurfaceIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 8px;
  color: #7f8899;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-recent-head button {
  border: 0;
  background: transparent;
  color: #778296;
  font-size: 12px;
}

.search-recent-list {
  display: grid;
  gap: 4px;
  padding: 4px 14px 16px;
}

.search-recent-list button,
.search-result-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.search-recent-list button {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  border-radius: 8px;
  color: #a4acbb;
  font-size: 14px;
  font-weight: 650;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.search-recent-list button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(2px);
}

.search-recent-list svg {
  width: 14px;
  height: 14px;
  color: #657085;
}

.search-result-list {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.search-result-card {
  overflow: hidden;
  border-radius: 12px;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.search-result-card.expanded {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.search-result-item {
  min-height: 90px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  padding: 9px 10px;
  border-radius: 10px;
  transition: background 150ms ease, transform 150ms ease;
}

.search-result-item:hover,
.search-result-card.expanded .search-result-item {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
}

.search-result-poster {
  width: 48px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

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

.search-result-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.search-result-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy small {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #7f8899;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}

.search-result-copy i {
  width: 1px;
  height: 14px;
  flex: 0 0 1px;
  background: rgba(255, 255, 255, 0.15);
}

.search-result-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #d7dce6;
}

.search-result-rating svg {
  width: 13px;
  height: 13px;
  color: #f2c94c;
}

.search-result-rating svg path {
  fill: currentColor;
  stroke: none;
}

.search-result-chevron {
  width: 17px;
  height: 17px;
  justify-self: center;
  color: #647084;
  transition: transform 190ms var(--ease), color 160ms ease;
}

.search-result-card.expanded .search-result-chevron {
  color: #ffffff;
  transform: rotate(180deg);
}

.search-result-dropdown {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 14px;
  transform: translateY(-4px);
  transition: max-height 220ms var(--ease), opacity 170ms ease, padding 220ms var(--ease), transform 220ms var(--ease);
}

.search-result-card.expanded .search-result-dropdown {
  max-height: 190px;
  opacity: 1;
  padding: 0 14px 14px 72px;
  transform: translateY(0);
}

.search-result-dropdown p {
  margin: -2px 0 12px;
  color: #b5bdca;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.45;
}

.search-result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-result-actions .button {
  min-height: 34px;
  padding-inline: 14px;
  gap: 7px;
  font-size: 12px;
}

.search-result-actions .button .icon-img {
  width: 15px;
  height: 15px;
}

.search-loading,
.search-empty {
  padding: 24px 20px;
  color: #9aa4b5;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.icon-button,
.back-button,
.close-button,
.row-arrow,
.round-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.46);
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.icon-button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 999px;
}

.icon-button:hover,
.back-button:hover,
.close-button:hover,
.row-arrow:hover,
.round-action:hover {
  border-color: rgba(229, 9, 20, 0.74);
  color: #ffffff;
  background: rgba(229, 9, 20, 0.18);
}

.genre-panel {
  position: fixed;
  top: var(--browse-panel-top, calc(var(--nav-h) + 8px));
  left: var(--browse-panel-left, var(--side));
  right: auto;
  z-index: 80;
  width: var(--browse-panel-width, min(318px, calc(100vw - 24px)));
  max-height: min(640px, calc(100vh - 96px));
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(7, 8, 9, 0.98);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.7);
  transform-origin: top center;
  animation: panelIn 180ms var(--ease) both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.genre-panel h3 {
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.genre-panel button {
  width: 100%;
  min-height: 36px;
  margin: 0 0 7px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.74);
  text-align: left;
  font-size: 13px;
}

.genre-panel button:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(229, 9, 20, 0.16);
}

/* Hero */
.hero {
  position: relative;
  height: 82vh;
  min-height: 600px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 24%, rgba(229, 9, 20, 0.18), transparent 34vw),
    linear-gradient(135deg, #111318, #050505 52%, #000000);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center top;
  background-size: cover;
  opacity: 0.92;
  transform: scale(1.02);
  transition: background-image 240ms ease, opacity 240ms ease, transform 240ms ease;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.075) translate3d(-1.4%, -0.8%, 0);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.18) 0, rgba(229, 9, 20, 0) 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.58) 38%, rgba(0, 0, 0, 0.1) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.08) 34%, #000 100%);
}

.hero-content {
  position: absolute;
  left: var(--side);
  bottom: 92px;
  z-index: 2;
  width: min(640px, calc(100vw - var(--side) * 2));
}

.hero-content > * {
  animation: contentUp 520ms var(--ease) both;
}

.hero-content > *:nth-child(2) { animation-delay: 60ms; }
.hero-content > *:nth-child(3) { animation-delay: 120ms; }
.hero-content > *:nth-child(4) { animation-delay: 180ms; }
.hero-content > *:nth-child(5) { animation-delay: 240ms; }

@keyframes contentUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  font-size: 64px;
  font-weight: 900;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1.has-title-logo {
  font-size: 0;
  line-height: 1;
}

.hero-title-logo {
  width: auto;
  max-width: min(500px, 76vw);
  max-height: 154px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.72));
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  min-height: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
}

.detail-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.detail-rating svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.detail-rating svg path {
  fill: currentColor;
  stroke: none;
}

.hero-meta i,
.detail-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-overview {
  max-width: 580px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-130%);
  transition: opacity 160ms ease, transform 520ms var(--ease);
}

.button:hover::after {
  opacity: 1;
  transform: translateX(130%);
}

.button > * {
  position: relative;
  z-index: 1;
}

.button:active {
  transform: scale(0.98);
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  background: #ffffff;
  color: #050505;
}

.button-primary:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(229, 9, 20, 0.32);
}

.button-glass {
  border-color: var(--line);
  background: rgba(22, 22, 22, 0.64);
  backdrop-filter: blur(12px);
}

.button-glass:hover {
  border-color: rgba(229, 9, 20, 0.74);
  background: rgba(229, 9, 20, 0.16);
}

.hero-actions .button {
  min-height: 46px;
  padding: 0 28px;
  gap: 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-actions .button::after {
  display: none;
}

.hero-actions .button .icon-img {
  width: 19px;
  height: 19px;
}

#hero-play {
  min-width: 122px;
  background: #f4f7fb;
  color: #070a0f;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

#hero-play:hover {
  background: #ffffff;
  color: #020304;
  border-color: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
  transform: translateY(-1px);
}

#hero-more {
  min-width: 154px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(12, 13, 15, 0.58);
  color: rgba(244, 247, 251, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

#hero-more:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(24, 25, 29, 0.78);
  color: #ffffff;
  transform: translateY(-1px);
}

.hero-dots {
  position: absolute;
  left: var(--side);
  bottom: 42px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 28px;
  height: 3px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.26);
}

.hero-dots button.active {
  width: 52px;
  background: var(--accent);
}

/* Rows and cards */
.rows {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 46px;
  margin-top: -26px;
  padding: 0 0 56px;
}

.media-row {
  position: relative;
  min-height: 294px;
  content-visibility: auto;
  contain-intrinsic-size: 294px;
  animation: rowReveal 520ms var(--ease) both;
}

.home-feed-row:has(.provider-picker.open) {
  z-index: 25;
  content-visibility: visible;
}

@keyframes rowReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.row-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--side);
  margin-bottom: 28px;
}

.media-row h2 {
  position: relative;
  padding: 0 var(--side);
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
}

.row-heading h2 {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.media-row > h2::before,
.row-heading h2::before,
.detail-body h3::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 22px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: -4px;
}

.row-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-tabs {
  display: inline-flex;
  align-items: flex-end;
  gap: 28px;
  min-height: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.row-tabs button {
  position: relative;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
  font-weight: 700;
}

.row-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
}

.row-tabs button.active {
  color: #ffffff;
}

.row-tabs button.active::after {
  background: var(--accent);
}

.provider-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 20;
}

.provider-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 7px 0 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
  font: inherit;
}

.provider-trigger svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  transition: transform 160ms ease;
}

.provider-picker.open .provider-trigger svg {
  transform: rotate(180deg);
}

.provider-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 226px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(12, 16, 18, 0.98);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 160ms ease, transform 180ms var(--ease);
}

.provider-picker.open .provider-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.genre-menu {
  width: 268px;
  max-height: min(520px, 68vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.genre-picker {
  vertical-align: middle;
}

.genre-picker .provider-trigger {
  min-height: 38px;
  gap: 9px;
  padding: 0 10px 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 22px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.genre-picker .provider-trigger:hover,
.genre-picker.open .provider-trigger {
  border-color: rgba(229, 9, 20, 0.54);
  background: rgba(229, 9, 20, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 4px rgba(229, 9, 20, 0.1);
}

.genre-picker .provider-trigger > span:nth-child(2) {
  line-height: 1;
}

.genre-picker .provider-trigger > svg {
  width: 18px;
  height: 18px;
}

.genre-icon-chip {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.genre-icon {
  width: 17px;
  height: 17px;
}

.genre-menu button {
  min-height: 44px;
  gap: 11px;
  padding: 0 10px;
  border-radius: 10px;
}

.genre-menu button:hover .genre-icon-chip,
.genre-menu button.active .genre-icon-chip {
  border-color: rgba(229, 9, 20, 0.42);
  background: rgba(229, 9, 20, 0.18);
  color: #ffffff;
}

.provider-menu button {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.provider-menu button:hover,
.provider-menu button.active {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.provider-menu.genre-menu button {
  min-height: 44px;
  gap: 11px;
  border-radius: 10px;
}

.provider-menu.genre-menu button:hover,
.provider-menu.genre-menu button.active {
  background: rgba(229, 9, 20, 0.14);
}

.provider-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--provider-color);
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
}

.row-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.row-arrow svg {
  width: 18px;
  height: 18px;
}

.row-carousel {
  position: relative;
  --row-arrow-width: 42px;
  --row-arrow-gutter: var(--side);
}

.row-edge-arrow {
  position: absolute;
  top: 4px;
  bottom: 14px;
  z-index: 12;
  width: var(--row-arrow-width);
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.86);
  opacity: 0;
  transform: translateX(0);
  transition: opacity 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.row-carousel:hover .row-edge-arrow {
  opacity: 1;
}

.row-edge-arrow.left {
  left: calc(var(--row-arrow-gutter) / 2 - var(--row-arrow-width) / 2);
}

.row-edge-arrow.right {
  right: calc(var(--row-arrow-gutter) / 2 - var(--row-arrow-width) / 2);
}

.row-edge-arrow:hover {
  color: #ffffff;
  background: rgba(229, 9, 20, 0.88);
  transform: scale(1.02);
}

.row-edge-arrow svg {
  width: 24px;
  height: 24px;
}

.row-scroller,
.mini-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(300px, calc((100% - 48px) / 4), 342px);
  align-items: start;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scroll-padding-inline: var(--side);
  scrollbar-width: none;
  padding: 4px calc(var(--side) + 12px) 14px;
  contain: layout style;
}

.row-scroller::-webkit-scrollbar,
.mini-row::-webkit-scrollbar {
  display: none;
}

.top-ten-row {
  grid-auto-columns: max-content;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
}

.media-card {
  position: relative;
  width: 176px;
  min-width: 0;
  scroll-snap-align: start;
  cursor: pointer;
  outline: none;
  animation: cardRise 420ms var(--ease) both;
}

.landscape-card {
  width: 100%;
}

.landscape-card .poster-frame {
  aspect-ratio: 16 / 9;
}

.landscape-card .card-actions {
  justify-content: flex-start;
  padding-left: 12px;
}

.media-card:nth-child(2n) { animation-delay: 35ms; }
.media-card:nth-child(3n) { animation-delay: 70ms; }
.media-card:nth-child(4n) { animation-delay: 105ms; }

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.media-card:focus-visible .poster-frame {
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.78);
}

.top-ten-card {
  isolation: isolate;
  width: 272px;
  padding-left: 96px;
}

.top-ten-card-double {
  width: 340px;
  padding-left: 164px;
}

.top-ten-card .poster-frame {
  aspect-ratio: 2 / 3;
}

.top-ten-card .card-copy {
  padding-top: 8px;
}

.top-ten-card .card-copy p {
  margin-top: 0;
}

.rank-number {
  position: absolute;
  left: -2px;
  bottom: 44px;
  z-index: 0;
  color: #030303;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 332px;
  font-weight: 900;
  line-height: 0.74;
  pointer-events: none;
  -webkit-text-stroke: 4px rgba(255, 255, 255, 0.64);
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.poster-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #111, #050505);
  contain: layout paint;
  transition: transform 180ms var(--ease), border-color 180ms ease, box-shadow 180ms ease;
}

.remove-card-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  opacity: 0.92;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.remove-card-button svg {
  width: 17px;
  height: 17px;
}

.media-card:hover .remove-card-button,
.media-card:focus-within .remove-card-button,
.remove-card-button:focus-visible {
  opacity: 1;
}

.remove-card-button:hover {
  border-color: rgba(229, 9, 20, 0.78);
  background: rgba(229, 9, 20, 0.8);
}

.poster-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background-image: var(--preview-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.1) contrast(1.08);
  transform: scale(1.06);
  transition: opacity 180ms ease, transform 900ms var(--ease);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.74)),
    linear-gradient(90deg, rgba(229, 9, 20, 0.18), transparent 46%);
  transition: opacity 180ms ease;
}

.media-card:hover .poster-frame {
  transform: translateY(-5px);
  border-color: rgba(229, 9, 20, 0.54);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.58), 0 0 28px rgba(229, 9, 20, 0.18);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease), opacity 180ms ease;
}

.media-card:hover .poster-frame img {
  transform: scale(1.055);
  opacity: 0.78;
}

.media-card:hover .poster-frame::before,
.media-card:focus-within .poster-frame::before {
  opacity: 0.7;
  transform: scale(1.16) translateX(-3%);
}

.media-card:hover .poster-frame::after,
.media-card:focus-within .poster-frame::after {
  opacity: 1;
}

.poster-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  background:
    radial-gradient(circle at 72% 20%, rgba(229, 9, 20, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(23, 23, 23, 0.88), rgba(5, 5, 5, 0.96));
  color: var(--accent);
  font-size: 34px;
  font-weight: 900;
}

.thumbnail-titlecard {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.22));
  transition: opacity 180ms ease, background 180ms ease;
}

.thumbnail-titlecard.has-titlecard-logo {
  opacity: 1;
}

.poster-frame .thumbnail-title-logo {
  width: min(66%, 260px);
  height: auto;
  max-width: 66%;
  max-height: 46%;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.72));
  transition: transform 260ms var(--ease);
}

.landscape-card .poster-frame .thumbnail-title-logo {
  width: min(64%, 240px);
  max-width: 64%;
  max-height: 42%;
}

.media-card:hover .thumbnail-titlecard,
.media-card:focus-within .thumbnail-titlecard {
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.38));
}

.media-card:hover .thumbnail-title-logo,
.media-card:focus-within .thumbnail-title-logo {
  transform: scale(1.045);
}

.card-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 0 8px 12px;
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.84) 100%);
  z-index: 3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 180ms var(--ease);
}

.media-card:hover .card-actions,
.media-card:focus-within .card-actions {
  opacity: 1;
  transform: translateY(0);
}

.round-action {
  width: 48px;
  height: 58px;
  flex: 0 0 48px;
  flex-direction: column;
  gap: 3px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.round-action svg {
  width: 20px;
  height: 20px;
}

.round-action span {
  max-width: 100%;
  overflow: hidden;
  color: currentColor;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-action.primary {
  border-color: transparent;
  background: #ffffff;
  color: #050505;
}

.round-action.primary:hover {
  background: var(--accent);
  color: #ffffff;
}

.card-copy {
  position: relative;
  z-index: 1;
  padding-top: 10px;
}

.card-copy h3 {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-copy p {
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  letter-spacing: 0;
}

.card-rating,
.card-meta-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.card-rating {
  gap: 3px;
  color: rgba(255, 255, 255, 0.72);
}

.card-rating svg {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  color: var(--accent);
}

.card-rating svg path {
  fill: currentColor;
  stroke: none;
}

.card-meta-item {
  position: relative;
  color: #98a0ad;
}

.card-meta-item::before {
  content: "\00B7";
  margin-right: 7px;
  color: #5f6671;
}

.loading-state,
.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 26px var(--side);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Grid */
.grid-view {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 42px) var(--side) 72px;
}

.grid-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.back-button,
.close-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
}

.grid-heading h2 {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 28px 16px;
}

.poster-grid .media-card {
  width: 100%;
}

.account-grid-toolbar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  min-height: 36px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

/* Details */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 12px;
  background: rgba(0, 0, 0, 0.84);
  animation: overlayIn 180ms ease both;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.detail-modal {
  position: relative;
  width: min(1760px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.94);
  box-shadow: var(--shadow-heavy);
  animation: modalPop 240ms var(--ease) both;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.detail-modal .close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 30;
  background: rgba(0, 0, 0, 0.72);
}

.detail-hero {
  position: relative;
  min-height: 430px;
  background-position: center 18%;
  background-size: cover;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), #050505 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.52) 56%, rgba(0, 0, 0, 0.18));
}

.detail-info {
  position: relative;
  z-index: 2;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  padding: 86px 42px 48px;
}

.detail-info > div {
  max-width: 780px;
}

.detail-info h2 {
  margin: 6px 0 18px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.detail-info h2.has-title-logo {
  font-size: 0;
  line-height: 1;
}

.detail-title-logo {
  width: auto;
  max-width: min(560px, 78vw);
  max-height: 176px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.74));
}

.detail-overview {
  max-width: 710px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.58;
}

.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.genre-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.36);
}

.detail-actions,
.episode-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.custom-select {
  position: relative;
  width: min(240px, 100%);
}

.episodes-section {
  --episode-panel-width: min(720px, 100%);
}

.episodes-section .custom-select,
.episodes-section .episode-search-control {
  width: var(--episode-panel-width, min(360px, 100%));
  max-width: 100%;
}

.episodes-section .episode-search-control {
  flex: 0 1 var(--episode-panel-width, min(360px, 100%));
  display: grid;
}

.episode-search-shell {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.68);
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.episode-search-shell:focus-within {
  border-color: rgba(229, 9, 20, 0.72);
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.12);
}

.episode-search-shell > .icon-img {
  width: 18px;
  height: 18px;
  opacity: 0.78;
}

.episode-search-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.episode-search-shell input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.episode-search-shell input::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

.episode-search-clear {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.episode-search-clear:hover {
  background: rgba(229, 9, 20, 0.18);
  color: #ffffff;
}

.episode-search-clear .icon-img {
  width: 16px;
  height: 16px;
}

.episode-search-status {
  width: var(--episode-panel-width, 100%);
  flex: 0 1 var(--episode-panel-width, 100%);
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.episodes-section h3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.episodes-section h3::before {
  width: 5px;
  height: 36px;
  flex: 0 0 5px;
  content: "";
  border-radius: 999px;
  background: var(--accent);
}

.episode-list {
  width: var(--episode-panel-width, min(980px, 100%));
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.episode-card {
  width: 100%;
  min-width: 0;
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) 34px;
  align-items: center;
  gap: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(7, 9, 12, 0.86);
  color: var(--text);
  text-align: left;
  transition: border-color 170ms ease, background 170ms ease, transform 170ms var(--ease), box-shadow 170ms ease;
}

.episode-card:hover,
.episode-card:focus-visible,
.episode-card.active {
  border-color: rgba(229, 9, 20, 0.54);
  background: rgba(13, 15, 19, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
  outline: none;
}

.episode-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: #11151b;
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.episode-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.54));
  pointer-events: none;
}

.episode-thumb strong {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.episode-card-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.episode-card-copy span,
.episode-card-copy small,
.episode-card-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-card-copy span {
  color: rgba(255, 255, 255, 0.94);
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.episode-card-copy small {
  color: #9aa6ba;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.episode-card-copy em {
  display: -webkit-box;
  color: rgba(224, 229, 238, 0.68);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.episode-card-action {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.58);
}

.episode-card-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 160ms ease, transform 160ms var(--ease);
}

.episode-card:hover .episode-card-action svg,
.episode-card:focus-visible .episode-card-action svg,
.episode-card.active .episode-card-action svg {
  color: #ffffff;
  transform: translateX(2px);
}

.custom-select-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.custom-select-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.custom-select-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-button svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  transition: transform 180ms var(--ease);
}

.custom-select.open .custom-select-button svg {
  transform: rotate(180deg);
}

.custom-select-button:focus-visible,
.custom-select.open .custom-select-button {
  border-color: rgba(229, 9, 20, 0.72);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.12);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 230px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.68);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.985);
  transition: opacity 150ms ease, transform 170ms var(--ease);
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.custom-select-menu button {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  text-align: left;
  font-size: 13px;
}

.custom-select-menu button:hover,
.custom-select-menu button[aria-selected="true"] {
  background: rgba(229, 9, 20, 0.18);
  color: #ffffff;
}

.custom-select-menu button:disabled {
  cursor: default;
  color: rgba(255, 255, 255, 0.44);
}

.custom-select-menu button:disabled:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.44);
}

.detail-actions {
  align-items: center;
  margin-top: 30px;
}

.detail-actions .button {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
}

.detail-actions .watch-later-icon {
  width: 54px;
  flex: 0 0 54px;
  padding: 0;
}

.detail-history-remove {
  gap: 9px;
}

.detail-history-remove .icon-img {
  width: 18px;
  height: 18px;
}

.watch-later-action.saved {
  border-color: rgba(229, 9, 20, 0.62);
  background: rgba(229, 9, 20, 0.18);
  color: #ffffff;
}

.detail-body {
  display: grid;
  gap: 44px;
  padding: 0 42px 42px;
  background: #050505;
}

.detail-body h3 {
  margin-bottom: 24px;
  font-size: 25px;
  font-weight: 900;
}

.cast-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
}

.cast-list button {
  min-width: 0;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(8, 10, 12, 0.92);
  color: inherit;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms var(--ease);
}

.cast-list img,
.cast-list span {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.cast-list button:hover,
.cast-list button:focus-visible {
  border-color: rgba(229, 9, 20, 0.55);
  background: rgba(229, 9, 20, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.cast-list strong,
.cast-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cast-list strong {
  font-size: 15px;
  font-weight: 900;
}

.cast-list small {
  margin-top: 4px;
  color: #9fb0d2;
  font-size: 13px;
}

.cast-list button:hover strong,
.cast-list button:focus-visible strong {
  color: var(--accent);
}

.detail-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px 16px;
}

.detail-recommendation-grid .media-card {
  width: 100%;
}

.mini-row {
  grid-auto-columns: 148px;
  padding: 2px 0 12px;
}

.mini-row .media-card {
  width: 148px;
}

/* Player */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #000000;
  animation: overlayIn 160ms ease both;
}

.player-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.player-topbar > * {
  pointer-events: auto;
}

.player-topbar h2 {
  max-width: min(720px, 56vw);
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-topbar p:not(.eyebrow) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.player-server-list {
  max-width: min(540px, 42vw);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  padding: 3px;
  scrollbar-width: none;
}

.player-server-list::-webkit-scrollbar {
  display: none;
}

.player-server-list button,
.player-server-list a {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.82);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.player-server-list button.active,
.player-server-list button:hover,
.player-server-list a:hover {
  border-color: rgba(229, 9, 20, 0.72);
  background: rgba(229, 9, 20, 0.82);
  color: #ffffff;
}

#player-frame {
  position: absolute;
  inset: 78px 0 0;
  width: 100%;
  height: calc(100% - 78px);
  border: 0;
  background: #000;
}

.player-pause-info {
  position: absolute;
  left: clamp(22px, 4vw, 52px);
  bottom: clamp(88px, 11vh, 132px);
  z-index: 3;
  width: min(500px, calc(100vw - 44px));
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms var(--ease);
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.92);
}

.player-pause-info.visible {
  opacity: 1;
  transform: translateY(0);
}

.player-pause-logo {
  width: auto;
  max-width: min(340px, 72vw);
  max-height: 112px;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.78));
}

.player-pause-title-text {
  display: block;
  max-width: 100%;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 950;
  line-height: 0.96;
}

.player-pause-meta {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.player-pause-info h3 {
  margin-top: 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 950;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-pause-description {
  display: -webkit-box;
  max-width: min(500px, 100%);
  margin-top: 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.player-overlay.cinema-player .player-topbar {
  z-index: 4;
  min-height: 0;
  height: 0;
  display: block;
  padding: 0;
  background: transparent;
}

.player-overlay.cinema-player .player-topbar > div:first-child,
.player-overlay.cinema-player .player-server-list.hidden {
  display: none !important;
}

.player-overlay.cinema-player .player-server-list {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
  display: flex !important;
  max-width: calc(100vw - 108px);
}

.player-overlay.cinema-player #player-close {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.player-overlay.cinema-player #player-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: none;
}

.player-overlay.cinema-player #player-close svg {
  width: 30px;
  height: 30px;
}

.player-overlay.cinema-player #player-frame {
  inset: 0;
  height: 100%;
}

.preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  animation: overlayIn 180ms ease both;
}

.preview-modal {
  position: relative;
  width: min(920px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.96);
  box-shadow: var(--shadow-heavy);
  animation: modalPop 240ms var(--ease) both;
}

.preview-modal .close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

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

.preview-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000000;
}

.preview-fallback,
.preview-unavailable {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.preview-fallback p,
.preview-unavailable span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

.preview-unavailable {
  position: relative;
  isolation: isolate;
  background-position: center;
  background-size: cover;
}

.preview-unavailable::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.74);
}

.preview-unavailable strong {
  display: block;
  color: var(--text);
  font-size: 20px;
}

.preview-copy {
  padding: 18px 22px 22px;
}

.preview-copy h2 {
  margin-top: 5px;
  overflow: hidden;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-copy p:not(.eyebrow) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 140;
  max-width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 12px 16px;
  border: 1px solid rgba(229, 9, 20, 0.42);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.86);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
  font-size: 14px;
  animation: toastUp 220ms var(--ease) both;
}

@keyframes toastUp {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px var(--side) 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer a {
  color: var(--text);
}

/* Browse drawer and feature pages */
.button-red {
  border-color: transparent;
  background: #d91f26;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(229, 9, 20, 0.24);
}

.button-red:hover {
  background: var(--accent);
  color: #ffffff;
}

.button.slim {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.genre-panel {
  width: var(--browse-panel-width, min(318px, calc(100vw - 24px)));
  display: block;
  padding: 0;
  overflow: hidden auto;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(4, 6, 8, 0.96);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.browse-drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 16px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(5, 6, 8, 0.96);
  text-align: center;
}

.browse-drawer-head h2 {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.browse-drawer-section {
  padding: 12px 14px 0;
}

.browse-drawer-section h3 {
  margin-bottom: 10px;
  color: #8e99ab;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.browse-action-grid,
.browse-personal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.genre-panel .browse-action-card {
  min-height: 80px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.browse-action-card span {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 9%, transparent);
  color: #ff2f38;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.browse-action-card span svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.browse-action-card strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.genre-panel .browse-action-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.032);
  transform: translateY(-1px);
}

.browse-action-movies span,
.browse-action-tv span,
.browse-action-anime span {
  color: #ff2d37;
}

.browse-action-channels span { color: #4b9dff; }
.browse-action-4k span { color: #c46cff; }
.browse-action-watchparty span { color: #f6d329; }

.browse-personal-grid .browse-action-card {
  min-height: 80px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.012);
}

.browse-personal-grid .browse-action-card span {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #9aa2af;
}

.browse-personal-grid .browse-action-card span svg {
  width: 20px;
  height: 20px;
}

.browse-personal-grid .browse-action-card strong {
  color: #8f98a8;
  font-size: 14px;
  font-weight: 500;
}

.feature-view {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 46px) var(--side) 80px;
}

.feature-view.sports-feature-view {
  background: #000000;
}

.feature-page {
  width: min(1280px, 100%);
  margin: 0 auto;
  animation: rowReveal 420ms var(--ease) both;
}

.feature-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
}

.feature-page h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
}

.feature-page p {
  margin-top: 8px;
  color: #8f98a8;
  font-size: 15px;
}

.feature-hero-copy.compact {
  width: min(560px, 100%);
  margin: 0 auto 48px;
  text-align: center;
}

.channels-page {
  width: 100%;
  max-width: none;
}

.channels-page .feature-hero-copy.compact {
  width: min(576px, 100%);
  margin-bottom: 48px;
}

.channels-page h1 {
  font-size: clamp(24px, 2.4vw, 28px);
  line-height: 1.15;
}

.channels-page .feature-hero-copy p {
  width: min(420px, 100%);
  margin: 12px auto 0;
  color: #c1d6f0;
  line-height: 1.35;
}

.feature-search {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.channels-page .feature-search {
  width: min(576px, 100%);
  margin: 26px auto 16px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(18, 20, 23, 0.94);
}

.feature-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.channels-page .feature-search input {
  color: #eef3fb;
  font-size: 16px;
}

.channels-page .feature-search input::placeholder {
  color: #8793a6;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.filter-pills button {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #8792a5;
  font-size: 12px;
  font-weight: 800;
}

.filter-pills button.active {
  background: #ffffff;
  color: #050505;
}

.channels-page .filter-pills {
  max-width: 560px;
  margin: 0 auto;
}

.channels-page .filter-pills button {
  min-height: 32px;
  border: 0;
  background: rgba(17, 22, 29, 0.96);
  color: #a6b1c2;
  transition: background 150ms ease, color 150ms ease, transform 150ms var(--ease);
}

.channels-page .filter-pills button:hover,
.channels-page .filter-pills button:focus-visible {
  background: rgba(38, 45, 56, 0.98);
  color: #ffffff;
  transform: translateY(-1px);
}

.channels-page .filter-pills button.active {
  background: #ffffff;
  color: #050505;
}

.sports-live-status {
  min-height: 18px;
  color: #7f899b;
  font-size: 12px;
  font-weight: 800;
}

.channels-page .sports-live-status {
  min-height: 0;
  height: 0;
  overflow: hidden;
}

.grid-tabs {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 48px;
  overflow-x: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
}

.grid-tabs::-webkit-scrollbar {
  display: none;
}

.grid-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #8f98a8;
  font-size: 13px;
  font-weight: 800;
}

.grid-tabs button.active,
.grid-tabs button:hover {
  color: #ffffff;
}

.grid-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.poster-grid.landscape-results {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px 18px;
}

.poster-grid.landscape-results .landscape-card {
  width: 100%;
}

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

.channels-page .channel-section {
  margin-top: 46px;
}

.channels-page .channel-section:first-child {
  margin-top: 0;
}

.channel-section h2,
.rooms-panel h2 {
  position: relative;
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 900;
}

.channel-section h2::before,
.rooms-panel h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 22px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: -4px;
}

.channel-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 320px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.channel-row.sports-grid {
  grid-auto-columns: 300px;
  gap: 8px;
}

.channel-row::-webkit-scrollbar {
  display: none;
}

.channel-card {
  min-width: 0;
}

.channel-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 70% 30%, rgba(229, 9, 20, 0.28), transparent 30%),
    linear-gradient(135deg, #1e2330, #090909);
  background-position: center;
  background-size: cover;
  color: #ffffff;
  text-align: center;
}

.channel-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.44), transparent 52%, rgba(0, 0, 0, 0.44));
}

button.channel-thumb {
  cursor: pointer;
  transition: transform 160ms var(--ease), border-color 160ms ease, box-shadow 160ms ease;
}

button.channel-thumb:hover,
button.channel-thumb:focus-visible {
  border-color: rgba(229, 9, 20, 0.62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
  transform: translateY(-2px);
}

.channel-thumb strong {
  position: relative;
  z-index: 1;
  max-width: 80%;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.82);
  box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.46);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.channel-card h3 {
  margin-top: 10px;
  overflow: hidden;
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card p {
  margin-top: 5px;
  overflow: hidden;
  color: #7f899b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sports-card h3 {
  margin-top: 9px;
  color: #eeeeee;
  font-size: 14px;
  line-height: 1.25;
}

.sports-card p {
  margin-top: 4px;
  color: #8b94a6;
}

.sports-thumb {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background-color: #292929;
  box-shadow: none;
}

.sports-thumb::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.14)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 48%, rgba(0, 0, 0, 0.12));
}

.sports-thumb.no-art {
  background-image: none !important;
  background: #292929;
}

.sports-play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 12px 12px 0 rgba(117, 0, 8, 0.72);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 150ms ease, transform 150ms var(--ease);
}

.sports-thumb.no-art .sports-play-mark,
.sports-thumb:hover .sports-play-mark,
.sports-thumb:focus-visible .sports-play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.sports-play-mark .icon-img {
  width: 35px;
  height: 35px;
  filter: invert(1);
}

/* Watch party */
.rooms-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.rooms-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.party-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.party-room-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  animation: cardRise 360ms var(--ease) both;
}

.party-room-art {
  position: relative;
  aspect-ratio: 16 / 8.5;
  background:
    radial-gradient(circle, rgba(229, 9, 20, 0.5), transparent 28%),
    #252525;
  background-position: center;
  background-size: cover;
}

.party-room-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.74));
}

.party-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 7px;
}

.live-badge.scheduled {
  background: rgba(0, 0, 0, 0.64);
  color: rgba(255, 255, 255, 0.84);
}

.live-badge.popular {
  right: 10px;
  left: auto;
  background: rgba(229, 9, 20, 0.9);
  color: #ffffff;
}

.sports-teams {
  position: relative;
  z-index: 1;
  width: min(250px, 82%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.sports-teams > span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.sports-teams img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.sports-teams strong {
  max-width: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.party-badges span {
  min-width: 28px;
  min-height: 24px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.72);
  color: #f3d020;
  font-size: 11px;
  font-weight: 900;
}

.party-room-copy {
  padding: 16px 16px 12px;
}

.party-room-copy h3,
.party-room-copy p,
.party-room-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.party-room-copy h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.party-room-copy p {
  margin-top: 7px;
  color: #d0d4dc;
  font-size: 13px;
}

.party-room-copy small {
  margin-top: 11px;
  color: #8d96a6;
  font-size: 12px;
}

.party-room-card .button {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
}

.party-create-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  animation: overlayIn 180ms ease both;
}

.party-create-modal {
  position: relative;
  width: min(860px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: hidden auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 55% 20%, rgba(229, 9, 20, 0.08), transparent 34%),
    rgba(8, 8, 8, 0.98);
  box-shadow: var(--shadow-heavy);
  animation: modalPop 220ms var(--ease) both;
}

.party-create-modal .close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
}

.party-create-head {
  padding: 24px 24px 22px;
  border-bottom: 1px solid var(--line);
}

.party-create-head h2 {
  font-size: 18px;
  font-weight: 900;
}

.party-search-block,
.party-create-form {
  padding: 22px 24px 24px;
}

.party-field {
  display: grid;
  gap: 8px;
  color: #c6ccd6;
  font-size: 12px;
  font-weight: 900;
}

.party-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0 14px;
}

.party-field input:focus {
  border-color: rgba(229, 9, 20, 0.72);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.12);
}

.party-field small {
  color: #8d96a6;
  font-size: 12px;
  font-weight: 700;
}

.party-host-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.party-host-identity span {
  color: #8d96a6;
  font-size: 12px;
  font-weight: 900;
}

.party-host-identity strong {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.party-search-results {
  min-height: 280px;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.party-empty-search {
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: #9aa3b2;
  text-align: center;
}

.party-empty-search svg {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.party-result {
  min-height: 88px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.party-result:hover {
  border-color: rgba(229, 9, 20, 0.46);
  background: rgba(229, 9, 20, 0.1);
}

.party-result img,
.party-result > span {
  width: 54px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: #111111;
}

.party-result strong,
.party-result small,
.party-result p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.party-result strong {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
}

.party-result small {
  margin-top: 5px;
  color: #8f98a8;
  font-size: 11px;
  white-space: nowrap;
}

.party-result p {
  display: -webkit-box;
  margin-top: 8px;
  color: #aeb5c2;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.party-create-form {
  display: grid;
  gap: 18px;
}

.selected-party-title {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.selected-party-title img,
.selected-party-title > span {
  width: 64px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: #111111;
}

.selected-party-title h3 {
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-party-title p {
  margin-top: 5px;
  color: #9aa3b2;
  font-size: 13px;
}

.party-episode-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.party-episodes-section {
  --episode-panel-width: 100%;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.party-create-modal .party-episodes-section h3 {
  gap: 10px;
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.party-create-modal .party-episodes-section h3::before {
  width: 4px;
  height: 24px;
  flex-basis: 4px;
}

.party-create-modal .party-episodes-section .episode-picker {
  margin-top: 0;
}

.party-create-modal .party-episodes-section .custom-select-label {
  display: block;
}

.party-create-modal .party-episodes-section .episode-list {
  max-height: min(430px, 44vh);
  overflow: hidden auto;
  padding-right: 4px;
}

.party-create-modal .party-episodes-section .episode-card {
  min-height: 108px;
  grid-template-columns: minmax(132px, 180px) minmax(0, 1fr) 28px;
  gap: 14px;
  padding: 12px;
}

.party-create-modal .party-episodes-section .episode-card-copy span {
  font-size: 16px;
}

.party-create-modal .party-episodes-section .episode-card-copy small {
  font-size: 12px;
}

.party-create-modal .party-episodes-section .episode-card-copy em {
  font-size: 12px;
  -webkit-line-clamp: 2;
}

.party-create-modal .party-episodes-section .episode-card-action {
  width: 28px;
  height: 28px;
}

.party-private-toggle {
  position: relative;
  min-height: 64px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.party-private-toggle input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.party-private-toggle input:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.party-private-toggle input:checked::after {
  content: "";
  width: 8px;
  height: 5px;
  border: solid #ffffff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translateY(-1px);
}

.party-private-toggle strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.party-private-toggle small {
  display: block;
  margin-top: 5px;
  color: #8f98a8;
  font-size: 12px;
  font-weight: 700;
}

.party-create-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.password-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h) - 160px);
}

.password-card {
  width: min(480px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.password-card form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.party-join-card h1 {
  margin-top: 6px;
}

body.party-active .site-nav,
body.party-active .footer {
  display: none;
}

.party-room-view {
  position: fixed;
  inset: 0;
  z-index: 160;
  overflow: hidden;
  background: #000000;
}

.party-room-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.56;
  filter: saturate(0.9) brightness(0.56);
  transform: scale(1.04);
}

.party-room-view::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.88), transparent 18%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 28%, rgba(0, 0, 0, 0.52));
}

.party-room-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.5fr) 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
}

.party-room-left,
.party-room-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.party-room-right {
  justify-content: flex-end;
}

.room-icon-button,
.room-pill {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.room-icon-button:hover,
.room-pill:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.room-icon-button.active {
  border-color: rgba(229, 9, 20, 0.62);
  background: rgba(229, 9, 20, 0.24);
  color: #ffffff;
}

.room-pill {
  gap: 7px;
  padding: 0 12px;
  color: #e8ffee;
  font-weight: 900;
}

.room-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12d866;
}

.party-room-title {
  min-width: 0;
  text-align: center;
}

.party-room-title h1,
.party-room-title p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.party-room-title h1 {
  font-size: 18px;
  font-weight: 900;
}

.party-room-title p {
  margin-top: 4px;
  color: #8f98a8;
  font-size: 12px;
  font-weight: 700;
}

#party-room-frame {
  position: absolute;
  inset: 70px 0 0;
  z-index: 2;
  width: 100%;
  height: calc(100% - 70px);
  border: 0;
  background: #000000;
}

.party-sync-toast {
  position: absolute;
  top: 84px;
  left: 50%;
  z-index: 6;
  max-width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  animation: toastIn 180ms ease both;
}

.party-chat-panel {
  position: absolute;
  right: 20px;
  top: 84px;
  bottom: clamp(92px, 11svh, 132px);
  z-index: 5;
  width: min(360px, calc(100vw - 40px));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(14px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms var(--ease);
}

.party-chat-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.party-chat-panel:not(.open) .party-messages,
.party-chat-panel:not(.open) .party-message-form {
  pointer-events: none;
}

.party-messages {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  display: grid;
  align-content: end;
  gap: 10px;
  padding-right: 4px;
  pointer-events: none;
}

.party-message {
  justify-self: end;
  max-width: 88%;
  display: grid;
  gap: 3px;
  color: #ffffff;
}

.party-message span {
  color: #dfe4ec;
  font-size: 12px;
  font-weight: 900;
}

.party-message p {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(229, 9, 20, 0.7);
  font-size: 13px;
  line-height: 1.35;
}

.party-message:not(.mine) {
  justify-self: start;
}

.party-message:not(.mine) p {
  background: rgba(255, 255, 255, 0.12);
}

.party-message-empty {
  color: #8f98a8;
  font-size: 13px;
  text-align: right;
}

.party-message-form {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 14px;
  border-bottom: 2px solid var(--accent);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.party-message-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.party-message-form button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
}

.party-participants-panel {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.party-participants-panel > div {
  position: relative;
  width: min(980px, calc(100vw - 36px));
  min-height: 220px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.74);
}

.party-participants-panel .close-button {
  position: absolute;
  top: 20px;
  right: 20px;
}

.party-participants-panel h2 {
  margin-bottom: 28px;
  font-size: 24px;
  font-weight: 900;
}

#party-participants-list {
  display: grid;
  gap: 14px;
}

.participant-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.participant-row > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

.participant-row strong,
.participant-row small {
  display: block;
}

.participant-row strong {
  font-size: 14px;
  font-weight: 900;
}

.participant-row small {
  margin-top: 3px;
  color: #8f98a8;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 980px) {
  .hero {
    touch-action: pan-y;
  }

  .site-nav,
  .button-glass,
  .row-edge-arrow,
  .round-action,
  .profile-scrim,
  .preview-overlay,
  .party-create-overlay,
  .party-message-form,
  .party-participants-panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-backdrop,
  .media-row,
  .media-card,
  .feature-card,
  .channel-card {
    animation: none;
  }

  .button::after {
    display: none;
  }

  .media-card:hover .poster-frame,
  .media-card:focus-within .poster-frame {
    transform: none;
    box-shadow: none;
  }

  .media-card:hover .poster-frame img,
  .media-card:focus-within .poster-frame img {
    transform: none;
    opacity: 1;
  }

  .media-card:hover .poster-frame::before,
  .media-card:focus-within .poster-frame::before,
  .media-card:hover .poster-frame::after,
  .media-card:focus-within .poster-frame::after {
    opacity: 0;
  }

  .media-card:hover .thumbnail-title-logo,
  .media-card:focus-within .thumbnail-title-logo,
  .search-result-item:hover,
  .search-recent-list button:hover {
    transform: none;
  }
}

@media (max-width: 980px) {
  :root {
    --side: 28px;
  }

  .site-nav {
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
  }

  .nav-links {
    grid-column: auto;
    order: 0;
    justify-self: end;
    overflow: visible;
  }

  .site-nav {
    height: var(--nav-h);
    align-content: center;
    padding-top: 0;
  }

  .search-toggle {
    justify-self: end;
  }

  .search-overlay {
    padding: 28px;
  }

  .search-dialog {
    width: min(680px, calc(100vw - 56px));
    max-height: calc(100svh - 56px);
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    bottom: 78px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .grid-view {
    padding-top: 148px;
  }

  .detail-info {
    min-height: 400px;
    padding: 72px 28px 34px;
  }

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

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

  .custom-select {
    width: min(260px, 100%);
  }
}

@media (max-width: 680px) {
  :root {
    --side: 18px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .toast {
    top: max(14px, calc(env(safe-area-inset-top) + 12px));
    bottom: auto;
    width: min(420px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    border-radius: 14px;
    text-align: center;
    animation: mobileToastDown 220ms var(--ease) both;
  }

  @keyframes mobileToastDown {
    from {
      opacity: 0;
      transform: translate(-50%, -12px);
    }
    to {
      opacity: 1;
      transform: translate(-50%, 0);
    }
  }

  .site-nav {
    height: 126px;
    grid-template-columns: 1fr auto auto auto;
    gap: 10px 12px;
    padding: 12px var(--side);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(18px);
  }

  .brand-logo {
    width: 124px;
  }

  .menu-toggle {
    grid-column: 4;
    grid-row: 1;
    display: inline-flex;
    justify-self: end;
  }

  .nav-links {
    position: fixed;
    top: 134px;
    left: 12px;
    right: 12px;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 5, 5, 0.96);
    box-shadow: var(--shadow-heavy);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transition: opacity 170ms ease, transform 200ms var(--ease);
  }

  .site-nav.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-link {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-link.active,
  .nav-link:hover {
    background: rgba(229, 9, 20, 0.16);
  }

  .search-toggle {
    grid-column: 2;
    grid-row: 1;
    order: 2;
    justify-self: end;
  }

  .profile-toggle {
    grid-column: 3;
    grid-row: 1;
    padding: 0 7px;
  }

  .profile-toggle span:last-child {
    display: none;
  }

  .profile-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .profile-dialog {
    width: 100%;
    max-height: calc(100svh - 20px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 12px 12px 0 0;
  }

  .profile-head {
    padding: 28px 20px 4px;
  }

  .profile-head h2 {
    font-size: 23px;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 22px 18px 26px;
  }

  .profile-form {
    padding: 22px 18px 28px;
  }

  .search-overlay {
    place-items: start center;
    padding: max(18px, env(safe-area-inset-top)) 14px 14px;
  }

  .search-dialog {
    width: 100%;
    max-height: calc(100svh - 28px);
    padding: 12px;
    border-radius: 14px;
  }

  .search-header {
    align-items: flex-start;
    gap: 10px;
    margin-inline: 0;
  }

  .search-filter-button {
    min-width: 0;
    width: min(184px, calc(100vw - 118px));
    padding-inline: 12px;
  }

  .search-input-shell {
    min-height: 54px;
    padding-inline: 14px;
  }

  .search-input-shell input {
    font-size: 17px;
  }

  .search-surface {
    max-height: calc(100svh - 158px);
  }

  .search-result-item {
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    min-height: 84px;
    gap: 12px;
    padding-inline: 8px;
  }

  .search-result-chevron {
    display: block;
  }

  .search-result-card.expanded .search-result-dropdown {
    padding: 0 12px 13px 66px;
  }

  .search-result-actions .button {
    min-height: 32px;
    padding-inline: 12px;
    font-size: 11.5px;
  }

  .search-result-copy small {
    font-size: 12px;
  }

  .genre-panel {
    top: var(--browse-panel-top, 134px);
    right: auto;
    left: var(--browse-panel-left, 10px);
    width: var(--browse-panel-width, calc(100vw - 20px));
    grid-template-columns: 1fr;
  }

  .hero {
    height: 78svh;
    min-height: 640px;
    padding-top: 126px;
  }

  .hero-content {
    bottom: 74px;
    width: calc(100vw - 36px);
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-overview {
    font-size: 14px;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .button {
    min-height: 42px;
    padding: 0 18px;
    font-size: 14px;
  }

  .hero-actions .button {
    flex: 1 1 140px;
  }

  .rows {
    gap: 28px;
    margin-top: -14px;
  }

  .media-row {
    min-height: 286px;
  }

  .row-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  .media-row h2,
  .row-heading h2 {
    font-size: 20px;
  }

  .row-tabs {
    max-width: 100%;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .row-tabs::-webkit-scrollbar {
    display: none;
  }

  .row-controls {
    display: none;
  }

  .row-edge-arrow {
    display: none;
  }

  .provider-menu {
    width: min(226px, calc(100vw - 36px));
  }

  .row-scroller {
    grid-auto-columns: min(310px, calc(100vw - 36px));
  }

  .top-ten-row {
    grid-auto-columns: max-content;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: inline proximity;
  }

  .media-card {
    width: 154px;
  }

  .landscape-card {
    width: min(310px, calc(100vw - 36px));
  }

  .card-actions {
    gap: 5px;
    padding: 0 6px 10px;
  }

  .round-action {
    width: 44px;
    height: 54px;
    flex-basis: 44px;
  }

  .round-action svg {
    width: 18px;
    height: 18px;
  }

  .round-action span {
    font-size: 9px;
  }

  .top-ten-card {
    width: 224px;
    padding-left: 70px;
  }

  .top-ten-card-double {
    width: 292px;
    padding-left: 138px;
  }

  .rank-number {
    left: -2px;
    bottom: 39px;
    font-size: 300px;
    -webkit-text-stroke-width: 3px;
  }

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

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

  .detail-overlay {
    padding: 0;
  }

  .detail-modal {
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .detail-info {
    min-height: 500px;
    align-items: flex-end;
    padding: 84px 18px 30px;
  }

  .detail-info h2 {
    font-size: 34px;
  }

  .detail-title-logo {
    max-height: 118px;
  }

  .detail-overview {
    font-size: 14px;
  }

  .episode-picker {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-actions {
    gap: 10px;
  }

  .detail-actions .button {
    min-height: 48px;
    padding: 0 16px;
  }

  .detail-actions .watch-later-icon {
    width: 48px;
    flex-basis: 48px;
    padding: 0;
  }

  .custom-select {
    width: 100%;
  }

  .custom-select-menu {
    max-height: 210px;
  }

  .detail-body {
    padding: 0 18px 36px;
  }

  .cast-list {
    grid-template-columns: 1fr;
  }

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

  .player-topbar {
    min-height: 108px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 14px;
  }

  .player-server-list {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-content: flex-start;
    max-width: 100%;
  }

  .player-topbar h2 {
    max-width: calc(100vw - 86px);
  }

  #player-frame {
    inset: 108px 0 0;
    height: calc(100% - 108px);
  }

  .player-pause-info {
    left: 18px;
    bottom: max(92px, calc(env(safe-area-inset-bottom) + 86px));
    width: calc(100vw - 36px);
  }

  .player-pause-logo {
    max-width: min(232px, 70vw);
    max-height: 78px;
  }

  .player-pause-title-text {
    font-size: clamp(30px, 10vw, 42px);
  }

  .player-pause-meta {
    margin-top: 10px;
    font-size: 11px;
  }

  .player-pause-info h3 {
    font-size: clamp(18px, 5.8vw, 23px);
  }

  .player-pause-description {
    max-width: 100%;
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .preview-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .preview-modal {
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .preview-copy h2 {
    font-size: 19px;
  }

  .preview-stage {
    aspect-ratio: 16 / 10;
  }

  .footer {
    display: block;
  }

  .footer span {
    display: block;
    margin-bottom: 8px;
  }
}

@media (max-width: 980px) {
  .feature-view {
    padding-top: 148px;
  }

  .feature-page-head {
    align-items: flex-start;
  }

  .poster-grid.landscape-results {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .party-room-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .party-room-title {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .genre-panel {
    top: var(--browse-panel-top, 134px);
    right: auto;
    left: var(--browse-panel-left, 10px);
    width: var(--browse-panel-width, calc(100vw - 20px));
    max-height: calc(100vh - 148px);
  }

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

  .feature-view {
    padding: 152px 16px 56px;
  }

  .feature-page-head {
    display: grid;
    gap: 18px;
  }

  .feature-page-head .button {
    width: 100%;
  }

  .grid-tabs {
    gap: 18px;
    margin-bottom: 4px;
  }

  .poster-grid.landscape-results {
    grid-template-columns: 1fr;
  }

  .channel-row.sports-grid {
    grid-auto-columns: min(300px, calc(100vw - 32px));
  }

  .rooms-panel {
    padding: 18px;
  }

  .party-room-grid {
    grid-template-columns: 1fr;
  }

  .channel-row {
    grid-auto-columns: min(310px, calc(100vw - 32px));
  }

  .channels-page .feature-hero-copy.compact {
    margin-bottom: 34px;
  }

  .channels-page .feature-hero-copy p {
    font-size: 14px;
  }

  .channels-page .feature-search {
    height: 48px;
    margin-top: 22px;
  }

  .channels-page .filter-pills {
    max-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .channels-page .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .channels-page .filter-pills button {
    flex: 0 0 auto;
  }

  .channels-page .channel-section {
    margin-top: 34px;
  }

  .sports-card h3 {
    font-size: 13px;
  }

  .party-create-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .party-create-modal {
    width: 100%;
    max-height: calc(100svh - 20px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 12px 12px 0 0;
  }

  .party-search-block,
  .party-create-form,
  .party-create-head {
    padding-right: 18px;
    padding-left: 18px;
  }

  .party-episode-fields,
  .selected-party-title {
    grid-template-columns: 1fr;
  }

  .selected-party-title img,
  .selected-party-title > span {
    width: 76px;
  }

  .selected-party-title .room-icon-button {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .party-room-topbar {
    min-height: 86px;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 12px 14px;
  }

  .party-room-title {
    grid-column: 1 / 3;
    grid-row: 2;
    text-align: center;
  }

  .party-room-left,
  .party-room-right {
    gap: 6px;
  }

  .room-icon-button,
  .room-pill {
    min-width: 34px;
    height: 34px;
  }

  #party-room-frame {
    inset: 86px 0 0;
    height: calc(100% - 86px);
  }

  .party-chat-panel {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: max(92px, calc(env(safe-area-inset-bottom) + 86px));
    width: auto;
    max-height: min(232px, calc(100svh - 240px));
  }

  .party-sync-toast {
    top: 100px;
  }

  .party-messages {
    max-height: 132px;
  }

  .party-participants-panel > div {
    width: 100%;
    min-height: 320px;
    align-self: end;
    padding: 26px 18px;
    border-radius: 12px 12px 0 0;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 980px) {
  .site-nav,
  .button-glass,
  .row-edge-arrow,
  .round-action,
  .profile-scrim,
  .preview-overlay,
  .party-create-overlay,
  .party-message-form,
  .party-participants-panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 680px) {
  :root {
    --mobile-nav-edge: max(12px, env(safe-area-inset-left));
    --mobile-nav-bottom: max(10px, env(safe-area-inset-bottom));
    --mobile-nav-height: clamp(54px, 13.5vw, 60px);
    --mobile-bottom-clearance: calc(var(--mobile-nav-bottom) + var(--mobile-nav-height) + 18px);
  }

  body {
    background: #020304;
  }

  .profile-overlay {
    place-items: end stretch;
    align-items: end;
    justify-items: stretch;
    overflow: hidden;
    padding: 0;
  }

  .profile-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: min(76svh, calc(100svh - 84px));
    overflow: hidden auto;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  .profile-dialog .close-button {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .profile-head {
    padding: 28px 16px 2px;
  }

  .profile-head h2 {
    font-size: clamp(22px, 6.8vw, 28px);
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 20px 14px 24px;
  }

  .profile-tile {
    min-height: clamp(122px, 34vw, 146px);
    gap: 9px;
    padding: 12px 8px;
    border-radius: 8px;
  }

  .profile-tile-avatar,
  .profile-unlock-avatar {
    width: clamp(56px, 16vw, 70px);
    height: clamp(56px, 16vw, 70px);
    font-size: clamp(20px, 6vw, 26px);
  }

  .profile-tile-avatar svg {
    width: clamp(22px, 6vw, 27px);
    height: clamp(22px, 6vw, 27px);
  }

  .profile-tile strong {
    font-size: clamp(12px, 3.6vw, 14px);
  }

  .profile-form {
    gap: 14px;
    padding: 20px 16px 24px;
  }

  .profile-field input {
    min-height: 44px;
  }

  .profile-picture-field {
    min-height: 72px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .profile-picture-preview {
    width: 48px;
    height: 48px;
  }

  .profile-actions {
    gap: 10px;
  }

  .profile-actions .button {
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
  }

  .site-nav,
  .site-nav.scrolled {
    top: auto;
    right: max(12px, calc((100vw - 440px) / 2));
    bottom: var(--mobile-nav-bottom);
    left: max(12px, calc((100vw - 440px) / 2));
    width: auto;
    height: var(--mobile-nav-height);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(10, 12, 16, 0.86);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.68);
    overflow: visible;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
    transform: none !important;
    will-change: auto;
  }

  .site-nav .brand,
  .site-nav.scrolled .brand {
    display: none !important;
  }

  .mobile-page-brand {
    position: absolute;
    top: max(10px, calc(env(safe-area-inset-top) + 8px));
    left: max(12px, calc(env(safe-area-inset-left) + 12px));
    z-index: 55;
    display: inline-flex;
    align-items: center;
    min-width: max-content;
    line-height: 1;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.62));
    pointer-events: auto;
  }

  .mobile-page-brand .brand-logo {
    width: clamp(92px, 27vw, 116px);
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    grid-column: 1 / 3;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-link,
  .search-toggle,
  .profile-toggle {
    position: relative;
    width: 100%;
    min-width: 0;
    height: clamp(42px, 10.5vw, 48px);
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.58);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  }

  .search-toggle {
    grid-column: 3;
  }

  .profile-toggle {
    grid-column: 4;
  }

  .nav-link {
    font-size: 0;
  }

  .nav-link::before {
    content: "";
    width: clamp(21px, 5.7vw, 25px);
    height: clamp(21px, 5.7vw, 25px);
    display: block;
    background: currentColor;
    -webkit-mask: var(--mobile-nav-icon) center / contain no-repeat;
    mask: var(--mobile-nav-icon) center / contain no-repeat;
  }

  .nav-link[data-view="home"] {
    --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E");
  }

  #genre-toggle {
    --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m15.3 8.7-2.2 5.6-5.6 2.2 2.2-5.6 5.6-2.2Z' fill='black'/%3E%3Ccircle cx='12' cy='12' r='1.25' fill='black'/%3E%3C/svg%3E");
  }

  .nav-link.active,
  .search-toggle:hover,
  .profile-toggle:hover {
    color: #ff5a62;
    background: rgba(0, 0, 0, 0.72);
  }

  .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%);
  }

  .search-toggle .icon-img {
    width: clamp(21px, 5.7vw, 25px);
    height: clamp(21px, 5.7vw, 25px);
  }

  .profile-toggle {
    gap: 0;
  }

  .profile-avatar {
    width: clamp(23px, 6.2vw, 28px);
    height: clamp(23px, 6.2vw, 28px);
    border-radius: 8px;
    font-size: 11px;
  }

  .profile-toggle span:last-child {
    display: none;
  }

  .hero {
    height: min(75svh, 680px);
    min-height: clamp(520px, 72svh, 620px);
    padding-top: 0;
  }

  .hero-backdrop {
    background-position: center top;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.46) 0, rgba(0, 0, 0, 0.08) 30%, #020304 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.14) 72%),
      linear-gradient(0deg, #020304 0, transparent 32%);
  }

  .hero-content {
    bottom: calc(var(--mobile-bottom-clearance) + 10px);
    width: min(560px, calc(100vw - 32px));
  }

  .hero .eyebrow,
  .hero-dots {
    display: none;
  }

  .hero h1 {
    margin-bottom: 12px;
    font-size: clamp(27px, 8.2vw, 34px);
    letter-spacing: 0;
  }

  .hero-title-logo {
    max-width: 72vw;
    max-height: 96px;
  }

  .hero-meta {
    gap: 10px;
    font-size: clamp(12px, 3.6vw, 15px);
  }

  .hero-overview {
    max-width: 100%;
    margin-top: 16px;
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(14px, 4.2vw, 17px);
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  #hero-play {
    width: auto;
    min-width: clamp(108px, 31vw, 122px);
    height: clamp(44px, 11.5vw, 48px);
    min-height: clamp(44px, 11.5vw, 48px);
    flex: 0 0 auto;
    padding: 0 clamp(20px, 5.8vw, 28px);
    font-size: clamp(14px, 3.8vw, 16px);
  }

  #hero-play .icon-img {
    width: clamp(17px, 4.8vw, 19px);
    height: clamp(17px, 4.8vw, 19px);
  }

  #hero-more {
    flex: 0 0 auto;
    min-height: clamp(44px, 11vw, 50px);
    padding: 0 clamp(16px, 5vw, 22px);
    font-size: clamp(14px, 4vw, 16px);
  }

  .rows {
    gap: 34px;
    margin-top: -4px;
    padding-bottom: var(--mobile-bottom-clearance);
  }

  .media-row {
    min-height: 250px;
  }

  .row-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .media-row h2,
  .row-heading h2,
  .detail-body h3 {
    font-size: 27px;
    line-height: 1.12;
  }

  .media-row > h2::before,
  .row-heading h2::before,
  .detail-body h3::before {
    width: 4px;
    height: 30px;
    margin-right: 13px;
    vertical-align: -6px;
  }

  .row-scroller {
    grid-auto-columns: min(176px, calc((100vw - 50px) / 2));
    gap: 14px;
    padding-right: 18px;
    padding-bottom: 8px;
    padding-left: 18px;
  }

  .media-card {
    width: min(176px, calc((100vw - 50px) / 2));
  }

  .poster-frame {
    border-radius: 10px;
  }

  .card-copy {
    padding-top: 12px;
  }

  .card-copy h3 {
    font-size: clamp(15px, 4.1vw, 18px);
  }

  .card-copy p {
    margin-top: 8px;
    font-size: clamp(12px, 3.6vw, 15px);
  }

  .top-ten-row {
    grid-auto-columns: min(176px, calc((100vw - 50px) / 2));
    gap: 14px;
  }

  .top-ten-card,
  .top-ten-card-double {
    width: min(176px, calc((100vw - 50px) / 2));
    padding-left: 0;
  }

  .top-ten-card .card-copy {
    display: none;
  }

  .rank-number {
    top: 0;
    bottom: auto;
    left: 0;
    z-index: 5;
    width: 54px;
    height: 72px;
    display: grid;
    place-items: start center;
    padding-top: 10px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0;
    line-height: 1;
    text-align: center;
    text-shadow: none;
    -webkit-text-stroke: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  }

  .rank-number::before {
    content: "TOP\A 0" attr(data-rank);
    white-space: pre;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.08;
  }

  .rank-number[data-rank="10"]::before {
    content: "TOP\A 10";
  }

  .genre-panel {
    top: auto !important;
    bottom: calc(var(--mobile-bottom-clearance) - 4px);
    left: 50% !important;
    width: min(360px, calc(100vw - 28px));
    max-height: min(560px, calc(100svh - var(--mobile-bottom-clearance) - 72px));
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(6, 8, 11, 0.96);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.78);
    transform: translateX(-50%);
    animation: mobileBrowseIn 180ms var(--ease) both;
  }

  @keyframes mobileBrowseIn {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(14px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0) scale(1);
    }
  }

  .browse-drawer-head {
    padding: 18px 18px 16px;
    background: rgba(6, 8, 11, 0.96);
  }

  .browse-drawer-head h2 {
    font-size: 18px;
  }

  .browse-drawer-section {
    padding: 18px 20px 0;
  }

  .browse-drawer-section h3 {
    margin-bottom: 14px;
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .browse-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 3.3vw, 14px);
  }

  .browse-personal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 3.3vw, 12px);
  }

  .genre-panel .browse-action-card {
    min-height: clamp(78px, 22vw, 90px);
  }

  .browse-action-card span {
    width: clamp(38px, 11vw, 46px);
    height: clamp(38px, 11vw, 46px);
    border-radius: 11px;
  }

  .browse-action-card span svg {
    width: clamp(20px, 5.8vw, 23px);
    height: clamp(20px, 5.8vw, 23px);
  }

  .browse-action-card strong {
    font-size: 12px;
  }

  .browse-personal-grid .browse-action-card {
    min-height: clamp(78px, 22vw, 90px);
    border-radius: 14px;
  }

  .browse-personal-grid .browse-action-card strong {
    font-size: clamp(13px, 4vw, 16px);
  }

  .search-overlay {
    place-items: stretch;
    padding: 0;
  }

  .search-scrim {
    background: rgba(0, 0, 0, 0.68);
    -webkit-backdrop-filter: blur(18px) brightness(0.62);
    backdrop-filter: blur(18px) brightness(0.62);
  }

  .search-dialog {
    width: 100%;
    height: 100svh;
    max-height: none;
    padding: clamp(118px, 28svh, 220px) 16px 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: searchDialogIn 190ms var(--ease) both;
  }

  .search-dialog::before {
    display: none;
  }

  .search-header {
    align-items: end;
    gap: 10px;
    margin: 0 0 14px;
  }

  .search-header h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .search-filter-button,
  .search-close {
    height: clamp(42px, 11vw, 48px);
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    background: rgba(5, 8, 12, 0.78);
  }

  .search-filter-button {
    width: min(190px, calc(100vw - 134px));
    font-size: clamp(14px, 4vw, 16px);
  }

  .search-close {
    width: clamp(42px, 11vw, 48px);
  }

  .search-form {
    margin-top: 6px;
  }

  .search-input-shell {
    min-height: clamp(52px, 13vw, 60px);
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(5, 8, 12, 0.74);
  }

  .search-input-shell > .icon-img {
    width: clamp(21px, 5.8vw, 26px);
    height: clamp(21px, 5.8vw, 26px);
  }

  .search-input-shell input {
    font-size: clamp(17px, 5vw, 22px);
  }

  .search-surface {
    max-height: calc(100svh - 290px);
    margin-top: 14px;
    padding-right: 0;
  }

  .detail-overlay {
    padding: 0;
    background: #020304;
  }

  .detail-modal {
    width: 100%;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    background: #020304;
    box-shadow: none;
    animation: none;
  }

  .detail-modal .close-button {
    position: fixed;
    top: max(20px, calc(env(safe-area-inset-top) + 12px));
    right: auto;
    left: 18px;
    width: clamp(46px, 12vw, 52px);
    height: clamp(46px, 12vw, 52px);
    border-radius: 50%;
    background: rgba(10, 16, 18, 0.48);
    z-index: 35;
  }

  .detail-hero {
    min-height: 72svh;
    background-position: center top;
  }

  .detail-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(2, 3, 4, 0.18) 42%, #020304 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.08) 72%);
  }

  .detail-info {
    min-height: 72svh;
    align-items: flex-end;
    padding: 42svh 22px 34px;
  }

  .detail-info .eyebrow {
    display: none;
  }

  .detail-info h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 8.8vw, 39px);
    letter-spacing: 0;
  }

  .detail-title-logo {
    max-width: 74vw;
    max-height: 116px;
  }

  .detail-meta {
    gap: 12px;
    font-size: clamp(14px, 4.1vw, 18px);
  }

  .detail-overview {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(16px, 4.8vw, 20px);
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .detail-actions {
    gap: 10px;
    margin-top: 28px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .detail-actions::-webkit-scrollbar {
    display: none;
  }

  .detail-actions .button {
    min-height: clamp(46px, 11.5vw, 52px);
    flex: 0 0 auto;
    padding: 0 clamp(14px, 4.4vw, 18px);
    font-size: clamp(14px, 4vw, 16px);
  }

  .detail-actions .detail-play,
  .detail-actions .watch-later-icon {
    width: clamp(50px, 13vw, 56px);
    min-width: clamp(50px, 13vw, 56px);
    height: clamp(50px, 13vw, 56px);
    min-height: clamp(50px, 13vw, 56px);
    flex-basis: clamp(50px, 13vw, 56px);
    padding: 0;
  }

  .detail-actions .detail-play {
    font-size: 0;
  }

  .detail-actions .detail-play .icon-img {
    width: clamp(22px, 6vw, 26px);
    height: clamp(22px, 6vw, 26px);
  }

  .detail-body {
    gap: 54px;
    padding: 18px 22px var(--mobile-bottom-clearance);
  }

  .episodes-section .episode-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
    max-width: var(--episode-panel-width);
  }

  .episodes-section .custom-select,
  .episodes-section .episode-search-control {
    width: 100%;
    min-width: 0;
  }

  .episodes-section .episode-search-control {
    grid-column: auto;
    order: initial;
  }

  .episodes-section .episode-search-status {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .episodes-section .custom-select-label {
    display: none;
  }

  .episodes-section .episode-search-shell {
    min-height: clamp(46px, 12vw, 54px);
    border-radius: 12px;
    background: rgba(6, 9, 13, 0.82);
  }

  .episodes-section .episode-search-shell input {
    font-size: clamp(14px, 4.2vw, 17px);
  }

  .episodes-section .episode-search-clear {
    width: clamp(34px, 9vw, 40px);
    height: clamp(34px, 9vw, 40px);
    border-radius: 10px;
  }

  .episodes-section .custom-select-button {
    min-height: clamp(46px, 12vw, 54px);
    border-radius: 12px;
    background: rgba(6, 9, 13, 0.82);
    font-size: clamp(14px, 4.2vw, 17px);
  }

  .episodes-section h3 {
    gap: 12px;
    font-size: clamp(30px, 8vw, 40px);
  }

  .episodes-section h3::before {
    width: 4px;
    height: clamp(32px, 8vw, 42px);
    flex-basis: 4px;
  }

  .episode-list {
    gap: 12px;
    margin-top: 18px;
  }

  .episode-card {
    min-height: clamp(94px, 27vw, 122px);
    grid-template-columns: minmax(104px, 31vw) minmax(0, 1fr) 24px;
    gap: clamp(12px, 3.6vw, 18px);
    padding: clamp(10px, 3.2vw, 14px);
    border-radius: 14px;
    background: rgba(6, 9, 12, 0.86);
  }

  .episode-thumb {
    border-radius: 10px;
  }

  .episode-thumb strong {
    left: 8px;
    bottom: 7px;
    min-width: clamp(28px, 8vw, 34px);
    height: clamp(28px, 8vw, 34px);
    border-radius: 7px;
    font-size: clamp(13px, 3.8vw, 16px);
  }

  .episode-card-copy {
    gap: 5px;
  }

  .episode-card-copy span {
    font-size: clamp(16px, 4.8vw, 22px);
    white-space: nowrap;
  }

  .episode-card-copy small {
    font-size: clamp(13px, 4vw, 17px);
  }

  .episode-card-copy em {
    display: none;
  }

  .episode-card-action {
    width: 24px;
    height: 24px;
  }

  .episode-card-action svg {
    width: 20px;
    height: 20px;
  }

  .cast-list {
    gap: 14px;
  }

  .cast-list button {
    min-height: clamp(88px, 27vw, 110px);
    gap: clamp(12px, 4vw, 16px);
    padding: clamp(12px, 4vw, 16px);
    border-radius: 14px;
    background: rgba(6, 9, 12, 0.86);
  }

  .cast-list img,
  .cast-list span {
    width: clamp(54px, 17vw, 68px);
    height: clamp(54px, 17vw, 68px);
    flex-basis: clamp(54px, 17vw, 68px);
    font-size: clamp(18px, 5.6vw, 24px);
  }

  .cast-list strong {
    font-size: clamp(15px, 4.8vw, 19px);
  }

  .cast-list small {
    margin-top: 6px;
    font-size: clamp(13px, 4.1vw, 16px);
  }

  .detail-recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .detail-recommendation-grid .media-card {
    width: 100%;
  }

  .detail-recommendation-grid .card-copy h3 {
    font-size: clamp(15px, 4.5vw, 18px);
    white-space: normal;
  }

  .grid-view,
  .feature-view {
    padding-bottom: var(--mobile-bottom-clearance);
  }

  .footer {
    padding-bottom: var(--mobile-bottom-clearance);
  }
}

@media (max-width: 380px) {
  .search-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-header-actions {
    justify-content: space-between;
  }

  .search-filter-button {
    width: calc(100vw - 90px);
  }

  .episodes-section .episode-picker {
    grid-template-columns: 1fr;
  }

  .browse-action-grid {
    gap: 10px;
  }
}

/* Site-wide spacing normalization */
.site-nav {
  gap: clamp(10px, 1.2vw, 16px);
}

.nav-links {
  gap: 7px;
}

.hero-content {
  bottom: clamp(86px, 11vh, 118px);
}

.hero h1 {
  margin: 12px 0 18px;
}

.hero-overview {
  margin-top: 16px;
}

.hero-actions {
  gap: 14px;
  margin-top: 26px;
}

.hero-dots {
  bottom: clamp(34px, 5vh, 48px);
}

.rows {
  gap: var(--section-gap);
  margin-top: clamp(-24px, -1.6vw, -10px);
  padding-bottom: var(--page-bottom);
}

.media-row {
  min-height: clamp(286px, 26vw, 324px);
}

.row-heading {
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  margin-bottom: clamp(18px, 2vw, 26px);
}

.media-row h2 {
  margin-bottom: clamp(16px, 2vw, 22px);
}

.row-tabs {
  gap: clamp(18px, 2.4vw, 28px);
}

.row-scroller,
.mini-row {
  gap: var(--row-card-gap);
  padding-top: 6px;
  padding-bottom: 18px;
}

.top-ten-row {
  gap: clamp(20px, 2.2vw, 28px);
}

.card-copy {
  padding-top: 12px;
}

.card-copy p {
  margin-top: 6px;
}

.grid-view,
.feature-view {
  padding: var(--page-top) var(--side) var(--page-bottom);
}

.grid-heading,
.feature-page-head {
  gap: var(--panel-gap);
  margin-bottom: clamp(28px, 3.4vw, 42px);
}

.poster-grid,
.detail-recommendation-grid {
  gap: clamp(26px, 2.8vw, 36px) clamp(14px, 1.6vw, 22px);
}

.load-more-wrap {
  margin-top: clamp(34px, 4vw, 48px);
}

.channel-section,
.rooms-panel {
  margin-top: clamp(38px, 4.6vw, 54px);
}

.feature-search {
  margin: 22px 0 14px;
}

.filter-pills {
  gap: 10px;
}

.search-dialog {
  width: min(760px, calc(100vw - var(--side) * 2));
  padding: clamp(14px, 1.8vw, 18px);
}

.search-header {
  margin-bottom: 14px;
}

.search-form {
  margin-top: 2px;
}

.search-surface {
  margin-top: 14px;
}

.search-result-list {
  gap: 4px;
}

.search-result-item {
  gap: 14px;
  padding: 10px;
}

.search-result-dropdown {
  padding: 0 14px 14px 82px;
}

.profile-head {
  padding: 30px 30px 8px;
}

.profile-grid {
  gap: 16px;
  padding: 26px 30px 30px;
}

.profile-form {
  gap: 18px;
  padding: 26px 30px 30px;
}

.profile-actions {
  gap: 12px;
  padding-top: 2px;
}

.detail-overlay {
  padding: clamp(12px, 1.8vw, 22px);
}

.detail-modal {
  width: min(1760px, calc(100vw - clamp(24px, 3.6vw, 44px)));
}

.detail-info {
  padding: clamp(76px, 8vw, 96px) var(--content-pad) clamp(38px, 4vw, 54px);
}

.detail-overview {
  margin-top: 16px;
}

.detail-actions,
.episode-picker {
  gap: 14px;
}

.detail-actions {
  margin-top: 28px;
}

.detail-body {
  gap: clamp(42px, 4.2vw, 58px);
  padding: clamp(18px, 2.2vw, 28px) var(--content-pad) clamp(48px, 5vw, 70px);
}

.detail-body h3 {
  margin-bottom: clamp(18px, 2.2vw, 26px);
}

.episode-list {
  gap: 16px;
  margin-top: 18px;
}

.episode-card {
  gap: clamp(16px, 2vw, 24px);
}

.cast-list {
  gap: 16px;
}

.player-topbar {
  gap: 16px;
  padding: 16px 24px 14px;
}

.player-server-list {
  gap: 9px;
}

.preview-copy {
  padding: 22px 24px 24px;
}

.party-room-grid {
  gap: clamp(18px, 2.4vw, 28px);
}

.party-create-modal {
  width: min(900px, calc(100vw - 32px));
}

.party-search-block,
.party-create-form {
  padding: 24px 26px 28px;
}

.party-create-form {
  gap: 20px;
}

.party-search-results {
  gap: 12px;
  margin-top: 18px;
}

.party-result,
.selected-party-title {
  gap: 14px;
}

.party-episodes-section {
  gap: 16px;
  padding: 18px;
}

.party-private-toggle {
  column-gap: 14px;
}

.party-chat-panel {
  right: clamp(16px, 2vw, 24px);
}

.party-messages {
  gap: 11px;
}

.party-message-form {
  gap: 10px;
}

.footer {
  padding: 30px var(--side) 42px;
}

@media (max-width: 980px) {
  :root {
    --side: 28px;
    --page-top: calc(var(--nav-h) + 34px);
    --page-bottom: 76px;
    --section-gap: 36px;
    --content-pad: 28px;
  }

  .hero-content {
    bottom: 78px;
  }

  .grid-heading,
  .feature-page-head {
    align-items: flex-start;
  }

  .detail-info {
    padding: 72px var(--content-pad) 36px;
  }
}

@media (max-width: 680px) {
  :root {
    --side: 18px;
    --page-top: calc(var(--nav-h) + 24px);
    --page-bottom: var(--mobile-bottom-clearance);
    --section-gap: 34px;
    --panel-gap: 14px;
    --content-pad: 22px;
    --row-card-gap: 14px;
  }

  .hero {
    height: min(70svh, 610px);
    min-height: clamp(500px, 68svh, 590px);
  }

  .hero-content {
    left: var(--side);
    bottom: calc(var(--mobile-bottom-clearance) + 12px);
    width: calc(100vw - var(--side) * 2);
  }

  .hero h1 {
    margin-bottom: 12px;
  }

  .hero-overview {
    margin-top: 14px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .rows {
    gap: var(--section-gap);
    margin-top: 0;
  }

  .media-row {
    min-height: auto;
  }

  .row-heading {
    gap: 12px;
    margin-bottom: 16px;
  }

  .media-row h2 {
    margin-bottom: 16px;
  }

  .row-scroller {
    gap: var(--row-card-gap);
    padding: 6px var(--side) 10px;
  }

  .card-copy {
    padding-top: 10px;
  }

  .card-copy p {
    margin-top: 6px;
  }

  .grid-view,
  .feature-view {
    padding: calc(var(--nav-h) + 24px) var(--side) var(--mobile-bottom-clearance);
  }

  .grid-heading,
  .feature-page-head {
    gap: 14px;
    margin-bottom: 24px;
  }

  .poster-grid,
  .detail-recommendation-grid {
    gap: 24px 14px;
  }

  .search-dialog {
    padding: clamp(112px, 25svh, 200px) 16px 24px;
  }

  .search-header {
    margin-bottom: 14px;
  }

  .search-surface {
    margin-top: 14px;
  }

  .profile-head {
    padding: 28px 20px 6px;
  }

  .profile-grid,
  .profile-form {
    gap: 14px;
    padding: 22px 18px 28px;
  }

  .detail-overlay {
    padding: 0;
  }

  .detail-modal {
    width: 100%;
  }

  .detail-info {
    padding: 42svh var(--content-pad) 34px;
  }

  .detail-actions {
    gap: 10px;
    margin-top: 26px;
  }

  .detail-body {
    gap: 48px;
    padding: 18px var(--content-pad) var(--mobile-bottom-clearance);
  }

  .episode-list {
    gap: 12px;
  }

  .cast-list {
    gap: 14px;
  }

  .player-topbar {
    gap: 12px;
    padding: 12px 14px 10px;
  }

  .party-create-modal {
    width: 100%;
  }

  .party-search-block,
  .party-create-form,
  .party-create-head {
    padding-right: 18px;
    padding-left: 18px;
  }

  .party-create-form {
    gap: 18px;
  }

  .party-episodes-section {
    padding: 14px;
  }

  .party-chat-panel {
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 380px) {
  :root {
    --side: 14px;
  }

  .row-scroller {
    gap: 12px;
  }

  .poster-grid,
  .detail-recommendation-grid {
    gap: 22px 12px;
  }
}

/* TV detail episode layout */
.detail-body .episodes-section {
  --episode-panel-width: 100%;
  --episode-control-width: clamp(184px, 16vw, 230px);
}

.detail-body .episodes-section .episode-picker {
  width: 100%;
  max-width: none;
  align-items: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.detail-body .episodes-section .custom-select,
.detail-body .episodes-section .episode-search-control {
  width: var(--episode-control-width);
  flex: 0 0 var(--episode-control-width);
  min-width: 0;
}

.detail-body .episodes-section .episode-search-status {
  width: 100%;
  flex: 1 0 100%;
}

.detail-body .episodes-section .episode-list {
  width: 100%;
  max-width: none;
}

@media (max-width: 680px) {
  .detail-body .episodes-section {
    --episode-control-width: 100%;
  }

  .detail-body .episodes-section .episode-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .detail-body .episodes-section .custom-select,
  .detail-body .episodes-section .episode-search-control {
    width: 100%;
    flex: none;
  }

  .detail-body .episodes-section .episode-search-status,
  .detail-body .episodes-section .episode-list {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .detail-body .episodes-section .episode-picker {
    grid-template-columns: 1fr;
  }
}

/* Sports player */
.player-overlay.sports-player {
  background: #000000;
}

.player-overlay.sports-player .player-topbar {
  min-height: 88px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto) auto;
  align-items: center;
  padding: 14px 22px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.5) 58%, rgba(0, 0, 0, 0)),
    rgba(0, 0, 0, 0.18);
}

.player-overlay.sports-player .player-topbar h2 {
  max-width: min(760px, 52vw);
}

.player-overlay.sports-player .player-server-list {
  max-width: min(680px, 48vw);
  padding: 4px;
  border-radius: 999px;
  background: rgba(10, 12, 15, 0.62);
}

.player-overlay.sports-player .player-server-list button,
.player-overlay.sports-player .player-server-list a {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms var(--ease);
}

.player-overlay.sports-player .player-server-list button:hover,
.player-overlay.sports-player .player-server-list a:hover {
  transform: translateY(-1px);
}

.player-overlay.sports-player .player-server-list button.active {
  border-color: #ffffff;
  background: #ffffff;
  color: #050505;
}

.player-overlay.sports-player #player-frame {
  inset: 88px 0 0;
  height: calc(100% - 88px);
}

@media (max-width: 980px) {
  .player-overlay.sports-player .player-topbar {
    min-height: 118px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 12px 14px;
  }

  .player-overlay.sports-player .player-server-list {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-content: flex-start;
    max-width: 100%;
    border-radius: 12px;
  }

  .player-overlay.sports-player .player-topbar h2 {
    max-width: calc(100vw - 86px);
  }

  .player-overlay.sports-player #player-frame {
    inset: 118px 0 0;
    height: calc(100% - 118px);
  }
}

@media (max-width: 680px) {
  .player-overlay.sports-player .player-topbar {
    min-height: 126px;
    padding: 10px 12px;
  }

  .player-overlay.sports-player .player-topbar h2 {
    font-size: 16px;
  }

  .player-overlay.sports-player .player-topbar p:not(.eyebrow) {
    font-size: 12px;
  }

  .player-overlay.sports-player .player-server-list button,
  .player-overlay.sports-player .player-server-list a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .player-overlay.sports-player #player-frame {
    inset: 126px 0 0;
    height: calc(100% - 126px);
  }
}

/* Final mobile control alignment */
@media (max-width: 680px) {
  input,
  textarea,
  select,
  button {
    min-width: 0;
  }

  .search-header {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .search-header-actions {
    min-width: 0;
    justify-content: flex-end;
  }

  .search-filter {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 190px;
  }

  .search-filter-button {
    width: 100%;
    min-width: 0;
  }

  .search-close,
  .search-clear,
  .room-icon-button,
  .close-button {
    flex: 0 0 auto;
  }

  .search-input-shell,
  .profile-field input,
  .party-field input,
  .password-card input,
  .feature-search input,
  .episode-search-shell,
  .custom-select-button {
    width: 100%;
  }

  .profile-pin-toggle,
  .party-private-toggle {
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
  }

  .profile-pin-toggle input,
  .party-private-toggle input {
    justify-self: center;
    flex: 0 0 auto;
  }

  .profile-pin-toggle strong,
  .profile-pin-toggle small,
  .party-private-toggle strong,
  .party-private-toggle small {
    text-align: left;
  }

  .profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .profile-actions .button,
  .party-create-actions .button,
  .password-card form .button {
    width: 100%;
    justify-content: center;
  }

  .detail-body .episodes-section {
    scroll-margin-top: 88px;
  }

  .detail-body .episodes-section h3 {
    padding-left: clamp(56px, 17vw, 68px);
  }

  .party-create-actions {
    display: block;
    width: 100%;
  }

  .party-search-results {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .party-empty-search {
    min-height: min(340px, 42svh);
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
  }

  .party-result {
    width: 100%;
    grid-template-columns: clamp(58px, 18vw, 72px) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
  }

  .party-result img,
  .party-result > span {
    width: clamp(58px, 18vw, 72px);
  }

  .selected-party-title {
    position: relative;
    grid-template-columns: 72px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 14px;
  }

  .selected-party-title img,
  .selected-party-title > span {
    width: 72px;
  }

  .selected-party-title .room-icon-button {
    position: static;
    width: 38px;
    min-width: 38px;
    height: 38px;
    justify-self: end;
  }

  .party-message-form {
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
  }

  .party-message-form input {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .search-header {
    grid-template-columns: 1fr auto;
  }

  .search-header-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .search-filter {
    max-width: none;
  }

  .profile-actions {
    grid-template-columns: 1fr;
  }
}
