:root {
  color-scheme: dark;
  --bg: #111111;
  --panel: #181818;
  --panel-2: #202020;
  --line: rgba(255, 255, 255, .1);
  --text: #f7f2ea;
  --muted: #a7a29a;
  --accent: #2f7ff0;
  --accent-2: #60a5fa;
  --danger: #ef4444;
  --shadow: 0 22px 60px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(47, 127, 240, .12), transparent 34%),
    linear-gradient(225deg, rgba(96, 165, 250, .08), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-screen,
.profile-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.profile-screen {
  align-items: start;
  padding-top: clamp(36px, 9vh, 94px);
  background:
    radial-gradient(circle at 50% 28%, rgba(47, 127, 240, .18), transparent 34%),
    radial-gradient(circle at 75% 68%, rgba(96, 165, 250, .1), transparent 32%),
    #07101d;
}

.login-panel,
.profile-panel {
  width: min(720px, 100%);
  background: rgba(24, 24, 24, .92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.profile-panel {
  position: relative;
  width: min(1240px, 100%);
  min-height: 70vh;
  display: grid;
  align-content: start;
  justify-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 clamp(18px, 4vw, 42px);
}

.profile-panel h1 {
  margin: clamp(54px, 8vh, 88px) 0 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  text-align: center;
}

.subscription-panel {
  width: min(760px, 100%);
}

.subscription-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
  width: 100%;
}

.subscription-card {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  border-radius: 8px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
}

.subscription-card strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.subscription-card small {
  color: var(--muted);
}

.subscription-card.is-featured,
.subscription-card:hover:not(:disabled) {
  border-color: rgba(245, 158, 11, .85);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, .35);
}

.subscription-card:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.login-panel {
  width: min(420px, 100%);
}

.brand-mark {
  --brand-logo-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 120'%3E%3Cpath d='M48 7 86 102 52 116 36 93 49 109 78 98 50 24 46 61 37 31 17 98 44 112 28 88 10 102z' fill='black'/%3E%3C/svg%3E");
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 0;
  font-weight: 900;
}

.brand-mark::before {
  content: "";
  width: 34px;
  height: 40px;
  background: currentColor;
  -webkit-mask: var(--brand-logo-mark) center / contain no-repeat;
  mask: var(--brand-logo-mark) center / contain no-repeat;
  filter: drop-shadow(0 8px 18px rgba(245, 158, 11, .24));
}

.login-panel h1,
.content h1,
.detail-copy h2,
.settings-drawer h2 {
  margin: 18px 0 20px;
  letter-spacing: 0;
}

.login-form,
.settings-form {
  display: grid;
  gap: 16px;
}

.password-visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.password-visibility-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.auth-inline-link {
  justify-self: start;
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.auth-inline-link:hover {
  color: #fff;
}

.settings-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-toggle-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

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

.settings-toggle-row strong {
  color: var(--text);
  font-size: 14px;
}

.settings-toggle-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.settings-fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}

.settings-fieldset legend {
  padding: 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-fieldset small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tabs button {
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.active {
  color: #111;
  background: var(--accent);
  border-color: var(--accent);
}

.signup-confirmation {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 1000;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  padding: 14px;
  color: #f7fbff;
  background: linear-gradient(135deg, rgba(12, 35, 68, .96), rgba(31, 83, 157, .92));
  border: 1px solid rgba(96, 165, 250, .55);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.signup-confirmation strong {
  font-size: 15px;
  font-weight: 900;
}

.signup-confirmation span {
  color: rgba(247, 251, 255, .84);
  font-size: 14px;
  line-height: 1.45;
}

.signup-confirmation .secondary-button {
  width: max-content;
  margin-top: 4px;
  color: #fff;
  background: rgba(47, 127, 240, .42);
  border-color: rgba(96, 165, 250, .38);
}

.account-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, .16), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(16, 185, 129, .12), transparent 28%),
    linear-gradient(135deg, #17120b 0%, #101010 46%, #071811 100%);
}

.account-panel {
  width: min(520px, 100%);
  padding: 34px;
  background: rgba(23, 23, 23, .94);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

.account-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  margin: 4px 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.account-badge-success {
  color: #04110c;
  background: var(--accent-2);
}

.account-badge-warning {
  color: #111;
  background: var(--accent);
}

.account-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 7vw, 54px);
  line-height: .95;
  letter-spacing: 0;
}

.account-panel p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.account-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: #111;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.account-action:hover {
  filter: brightness(1.08);
}

.account-reset-form .primary-button,
.account-reset-form .account-secondary-link {
  width: 100%;
}

.account-reset-form .account-secondary-link {
  min-height: 44px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  color: var(--text);
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 132px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(245, 158, 11, .72);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.form-success,
.profile-limit {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(22px, 4vw, 48px);
  margin: clamp(120px, 24vh, 230px) 0 24px;
}

.profile-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 138px;
  min-height: 174px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.profile-card:hover {
  background: transparent;
  transform: translateY(-2px);
}

.profile-avatar {
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 4px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .38);
  font-size: 42px;
  font-weight: 900;
  transition: border-color .18s ease, transform .18s ease;
}

.profile-avatar-mo-amber {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .55), transparent 24%),
    linear-gradient(135deg, #60a5fa, #145ac4 62%, #020817);
}

.profile-avatar-mo-teal {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .48), transparent 24%),
    linear-gradient(135deg, #67e8f9, #155e75 62%, #020817);
}

.profile-avatar-mo-sky {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .46), transparent 24%),
    linear-gradient(135deg, #93c5fd, #1d4ed8 62%, #020817);
}

.profile-avatar-mo-violet {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .46), transparent 24%),
    linear-gradient(135deg, #818cf8, #3730a3 62%, #020817);
}

.profile-avatar-mo-rose {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .46), transparent 24%),
    linear-gradient(135deg, #f87171, #991b1b 62%, #020817);
}

.profile-avatar-mo-lime {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .5), transparent 24%),
    linear-gradient(135deg, #34d399, #047857 62%, #020817);
}

.profile-avatar-mo-slate {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .42), transparent 24%),
    linear-gradient(135deg, #cbd5e1, #334155 62%, #020817);
}

.profile-avatar-mo-gold {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .58), transparent 24%),
    linear-gradient(135deg, #60a5fa, #1d4ed8 58%, #020817);
}

.profile-card:hover .profile-avatar,
.profile-card:focus-visible .profile-avatar {
  border-color: rgba(255, 255, 255, .86);
  transform: scale(1.04);
}

.profile-card strong {
  max-width: 150px;
  overflow: hidden;
  font-size: 17px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card small {
  color: var(--muted);
}

.add-avatar {
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  border-style: dashed;
  font-size: 56px;
}

.profile-remove-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #111;
  background: #fff;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .42);
}

.profile-card.is-editing .profile-avatar {
  filter: brightness(.62);
}

.profile-brand {
  position: absolute;
  top: 0;
  left: clamp(16px, 3vw, 34px);
  color: rgba(255, 255, 255, .78);
  font-weight: 900;
}

.profile-edit-button {
  position: absolute;
  top: 0;
  right: clamp(16px, 3vw, 34px);
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 800;
}

.profile-edit-button.active,
.profile-edit-button:hover {
  color: var(--accent);
}

.profile-pin-form,
.profile-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(440px, 100%);
  margin-top: 18px;
}

.profile-pin-form {
  display: none;
}

.profile-pin-form.is-visible {
  display: grid;
}

.profile-create-form {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  background: rgba(18, 18, 18, .88);
  border: 1px solid rgba(245, 158, 11, .16);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .36);
}

.profile-create-form h2 {
  margin: 0;
}

.profile-parental-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.profile-parental-panel legend {
  padding: 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.profile-parental-panel label:not(.settings-toggle-row):not(.inline-check) {
  display: grid;
  gap: 7px;
  width: 100%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.profile-parental-panel select {
  width: 100%;
}

.profile-setup-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.settings-toggle-row.compact {
  padding: 10px 12px;
}

.profile-create-avatar {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  border: 3px dashed rgba(255, 255, 255, .24);
  border-radius: 50%;
  font-size: 42px;
  font-weight: 900;
}

.profile-avatar-picker {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.profile-avatar-picker legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.profile-avatar-picker > div {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-avatar-option {
  display: block;
  cursor: pointer;
}

.profile-avatar-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.profile-avatar-option .profile-avatar {
  width: 56px;
  height: 56px;
  border-width: 2px;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.profile-avatar-option input:checked + .profile-avatar {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .2), 0 12px 28px rgba(0, 0, 0, .34);
}

.profile-create-actions,
.profile-footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-footer-actions {
  margin-top: 16px;
}

.primary-button,
.secondary-button,
.nav-button,
.icon-button {
  border: 0;
  border-radius: 6px;
}

.primary-button:disabled,
.secondary-button:disabled,
.toggle-button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-button {
  color: #141414;
  background: var(--accent);
  padding: 11px 16px;
  font-weight: 800;
}

.secondary-button {
  color: var(--text);
  background: #2a2a2a;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-weight: 700;
}

.app-shell {
  min-height: 100vh;
  display: block;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 34px);
  padding: 18px clamp(24px, 4.2vw, 68px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .94), rgba(0, 0, 0, .7) 58%, rgba(0, 0, 0, 0));
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 168px;
}

.site-brand strong,
.site-brand span {
  display: block;
}

.site-brand span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.header-spacer {
  flex: 1 1 auto;
}

.sidebar {
  display: none;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px;
  background: rgba(18, 18, 18, .82);
  border-right: 1px solid var(--line);
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand span,
.topbar p,
.section-heading span,
.movie-card p,
.detail-copy p,
.file-meta,
.scan-summary span,
.scan-panel p,
.scan-recent span,
.episode-row small,
.manage-main span,
.manage-main p,
.metadata-summary span,
.metadata-warning span {
  color: var(--muted);
}

.nav-button {
  width: auto;
  text-align: center;
  padding: 9px 0;
  margin: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.nav-button:hover,
.nav-button.active {
  color: var(--text);
  background: transparent;
}

.content {
  padding: 0 0 56px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg);
}

.title-shell .content {
  padding: 0;
  background: var(--bg);
}

.title-shell .sidebar,
.has-title-modal .sidebar {
  background: rgba(5, 6, 8, .92);
}

.has-title-modal .content {
  position: relative;
}

.has-title-modal .topbar,
.has-title-modal .title-background-view {
  filter: brightness(.42);
}

.topbar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.page-heading {
  padding: 126px clamp(24px, 5vw, 72px) 0;
}

.topbar h1 {
  margin: 0 0 4px;
  font-size: clamp(30px, 4vw, 48px);
}

.topbar p {
  margin: 0;
}

.topbar-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.search-box {
  width: min(320px, 44vw);
}

.header-search {
  width: min(320px, 22vw);
  min-width: 220px;
}

.header-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.header-search input {
  height: 44px;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .08);
}

.header-scan-button {
  height: 44px;
  white-space: nowrap;
}

.profile-menu {
  position: relative;
}

.profile-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  list-style: none;
  cursor: pointer;
  font-weight: 800;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}

.profile-menu .profile-avatar {
  width: 40px;
  height: 40px;
  border-width: 2px;
  font-size: 15px;
  box-shadow: none;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 250px;
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(18, 18, 18, .98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-dropdown strong {
  padding: 6px 8px 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.profile-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 8px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  font-weight: 750;
}

.profile-dropdown button:hover,
.profile-dropdown button.is-current {
  background: rgba(255, 255, 255, .08);
}

.profile-dropdown hr {
  width: 100%;
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.billing-menu-card {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 8px;
  background: rgba(245, 158, 11, .08);
}

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

.billing-menu-card small {
  color: var(--muted);
  margin-top: 3px;
}

.user-billing-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 8px;
  background: rgba(245, 158, 11, .06);
}

.user-billing-panel h4 {
  grid-column: 1 / -1;
  margin: 0 0 4px;
}

.user-billing-panel span,
.user-billing-panel strong {
  display: block;
}

.user-billing-panel span {
  color: var(--muted);
  font-size: 12px;
}

.user-billing-panel strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-editor-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 14px;
  border-bottom: 1px solid var(--border);
}

.user-editor-tab {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
}

.user-editor-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.user-billing-panel-large {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 0;
}

.user-invoices-panel {
  margin-top: 14px;
}

.billing-event-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.billing-event-row {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(180px, 1.4fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.billing-event-row strong,
.billing-event-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-event-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

/* 2026-08-24 Disney-style fixed home hero.
   The existing menu stays unchanged; only the Home hero becomes a viewport stage. */
.home-hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: min(820px, 100vh);
  min-height: 660px;
  width: 100%;
  max-width: none;
  align-items: end;
  margin: 0;
  padding: clamp(116px, 14vh, 168px) clamp(44px, 6vw, 96px) clamp(168px, 21vh, 238px);
  overflow: hidden;
  background: var(--bg);
}

.home-hero::before {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(17, 17, 17, .98) 5%, rgba(17, 17, 17, .84) 18%, rgba(17, 17, 17, .28) 42%, rgba(17, 17, 17, .06) 68%, rgba(17, 17, 17, .44) 88%, var(--bg) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, .72) 0%, rgba(17, 17, 17, .08) 30%, rgba(17, 17, 17, .46) 68%, var(--bg) 100%);
}

.home-hero::after {
  background:
    radial-gradient(ellipse at 66% 32%, transparent 0%, transparent 40%, rgba(17, 17, 17, .28) 72%, var(--bg) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(17, 17, 17, .98) 14%, rgba(17, 17, 17, .72) 34%, rgba(17, 17, 17, .16) 68%, transparent 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(17, 17, 17, .9) 9%, rgba(17, 17, 17, .26) 38%, transparent 74%);
}

.home-hero-backdrop {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  transform: none;
  filter: saturate(.98) brightness(.9);
}

.home-hero.is-trailer-ready .home-hero-backdrop {
  opacity: .62;
}

.home-hero-video-shell .home-hero-trailer {
  width: max(100vw, 177.78vh) !important;
  height: max(56.25vw, 100vh) !important;
  object-fit: cover;
}

.home-hero-copy {
  width: min(570px, 43vw);
  margin-bottom: clamp(14px, 3vh, 36px);
}

.home-hero-copy h2 {
  max-width: 12ch;
  font-size: clamp(44px, 6vw, 82px);
}

.home-hero-thumb-strip {
  right: clamp(40px, 5vw, 96px);
  bottom: clamp(126px, 16vh, 192px);
  width: min(545px, 40vw);
}

.home-hero-controls {
  right: clamp(48px, 6vw, 110px);
  bottom: clamp(204px, 25vh, 282px);
}

.home-hero-dots {
  bottom: clamp(92px, 12vh, 138px);
}

.home-hero ~ .rail-section,
.home-hero ~ .media-section,
.home-hero ~ .library-section {
  position: relative;
  z-index: 3;
}

.home-hero + .rail-section,
.home-hero + .media-section,
.home-hero + .library-section {
  margin-top: clamp(510px, 68vh, 690px);
}

@media (max-width: 760px) {
  .home-hero {
    position: relative;
    height: auto;
    min-height: 620px;
    margin-bottom: 0;
    padding: 132px 22px 118px;
  }

  .home-hero-copy {
    width: 100%;
    margin-bottom: 0;
  }

  .home-hero-thumb-strip {
    left: 18px;
    right: 18px;
    bottom: 44px;
    width: auto;
  }

  .home-hero-controls {
    right: 22px;
    bottom: 112px;
  }

  .home-hero-dots {
    bottom: 18px;
  }

  .home-hero + .rail-section,
  .home-hero + .media-section,
  .home-hero + .library-section {
    margin-top: 0;
  }
}

/* Refinement: fix only the media layer, not the whole hero content. */
.home-hero {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1;
  height: clamp(650px, 82vh, 860px);
  min-height: 650px;
  margin: 0 0 clamp(-190px, -18vh, -132px);
}

.home-hero-backdrop,
.home-hero-video-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: 100vw;
  height: min(860px, 100vh);
  z-index: -1;
}

.home-hero-backdrop {
  object-fit: cover;
  object-position: center center;
}

.home-hero-video-shell {
  inset: auto;
}

.home-hero-video-shell .home-hero-trailer {
  width: max(100vw, 177.78vh) !important;
  height: max(56.25vw, 100vh) !important;
}

.home-hero::before,
.home-hero::after {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: min(860px, 100vh);
  inset: auto;
  z-index: 0;
}

.home-hero-copy,
.home-hero-controls,
.home-hero-thumb-strip,
.home-hero-dots {
  z-index: 2;
}

.home-hero + .rail-section,
.home-hero + .media-section,
.home-hero + .library-section {
  margin-top: 0;
}

.home-hero ~ .rail-section,
.home-hero ~ .media-section,
.home-hero ~ .library-section {
  position: relative;
  z-index: 4;
}

@media (max-width: 760px) {
  .home-hero-backdrop,
  .home-hero-video-shell,
  .home-hero::before,
  .home-hero::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
}

/* 2026-08-24 Disney-style sticky home hero.
   Keep the existing menu untouched while the hero media remains pinned behind rails. */
.home-hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: clamp(620px, 78vh, 820px);
  min-height: 0;
  align-items: end;
  margin: 0 0 clamp(-190px, -18vh, -118px);
  padding: clamp(112px, 14vh, 168px) clamp(44px, 6vw, 96px) clamp(148px, 19vh, 220px);
  overflow: hidden;
  background: var(--bg);
}

.home-hero::before {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(17, 17, 17, .98) 5%, rgba(17, 17, 17, .82) 18%, rgba(17, 17, 17, .28) 42%, rgba(17, 17, 17, .08) 66%, rgba(17, 17, 17, .46) 88%, var(--bg) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, .72) 0%, rgba(17, 17, 17, .08) 30%, rgba(17, 17, 17, .46) 68%, var(--bg) 100%);
}

.home-hero::after {
  background:
    radial-gradient(ellipse at 64% 32%, transparent 0%, transparent 40%, rgba(17, 17, 17, .34) 72%, var(--bg) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(17, 17, 17, .98) 15%, rgba(17, 17, 17, .74) 34%, rgba(17, 17, 17, .18) 66%, transparent 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(17, 17, 17, .9) 9%, rgba(17, 17, 17, .28) 38%, transparent 74%);
}

.home-hero-backdrop {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  filter: saturate(.98) brightness(.9);
}

.home-hero-video-shell .home-hero-trailer {
  width: max(100vw, 177.78vh) !important;
  height: max(56.25vw, 100vh) !important;
  object-fit: cover;
}

.home-hero-copy {
  width: min(570px, 43vw);
  margin-bottom: clamp(18px, 4vh, 44px);
}

.home-hero-copy h2 {
  max-width: 12ch;
  font-size: clamp(44px, 6vw, 82px);
}

.home-hero-thumb-strip {
  right: clamp(40px, 5vw, 96px);
  bottom: clamp(126px, 16vh, 192px);
  width: min(545px, 40vw);
}

.home-hero-controls {
  right: clamp(48px, 6vw, 110px);
  bottom: clamp(204px, 25vh, 282px);
}

.home-hero-dots {
  bottom: clamp(94px, 12vh, 142px);
}

.home-hero ~ .rail-section,
.home-hero ~ .media-section,
.home-hero ~ .library-section {
  position: relative;
  z-index: 3;
}

.home-hero + .rail-section {
  margin-top: 0;
}

@media (max-width: 760px) {
  .home-hero {
    position: relative;
    height: auto;
    min-height: 620px;
    margin-bottom: 0;
    padding: 132px 22px 118px;
  }

  .home-hero-copy {
    width: 100%;
    margin-bottom: 0;
  }

  .home-hero-thumb-strip {
    left: 18px;
    right: 18px;
    bottom: 44px;
    width: auto;
  }

  .home-hero-controls {
    right: 22px;
    bottom: 112px;
  }

  .home-hero-dots {
    bottom: 18px;
  }
}

.profile-dropdown .profile-avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.section-heading {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 14px;
}

.scan-panel,
.library-section,
.live-watch-page,
.rail-section,
.empty-state {
  margin-left: clamp(24px, 5vw, 72px);
  margin-right: clamp(24px, 5vw, 72px);
}

.home-hero + .rail-section {
  margin-top: 4px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
}

.section-heading > div:first-child {
  min-width: 0;
}

.rail-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rail-section:not(.is-scrollable) .rail-heading-actions {
  display: none;
}

.actor-results:not(.is-scrollable) .rail-heading-actions {
  display: flex;
}

.actor-results:not(.is-scrollable) .rail-view-all,
.actor-results:not(.is-scrollable) .rail-arrow {
  display: none;
}

.actor-results:not(.is-scrollable) .rail-view-all,
.actor-results.is-expanded .rail-view-all {
  display: inline-flex;
  align-items: center;
}

.actor-results.is-expanded .rail-arrow {
  display: none;
}

.actor-results.is-expanded .poster-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  overflow: visible;
  padding-right: 0;
}

.rail-view-all,
.rail-arrow {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .9);
  background: rgba(24, 24, 24, .82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
}

.rail-view-all {
  padding: 0 13px;
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rail-arrow {
  width: 34px;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}

.rail-view-all:hover,
.rail-arrow:hover {
  border-color: rgba(245, 158, 11, .58);
  background: rgba(245, 158, 11, .14);
}

.home-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: clamp(820px, 56.25vw, 1120px);
  display: grid;
  align-items: end;
  margin: 0 0 -46px;
  padding: clamp(170px, 22vh, 240px) clamp(48px, 7vw, 112px) clamp(136px, 18vh, 210px);
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero::before {
  z-index: 1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(17, 17, 17, .97) 6%, rgba(17, 17, 17, .76) 17%, rgba(17, 17, 17, .2) 38%, rgba(17, 17, 17, .18) 62%, rgba(17, 17, 17, .74) 84%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(17, 17, 17, .72) 9%, rgba(17, 17, 17, .12) 36%, rgba(17, 17, 17, .72) 76%, var(--bg) 100%);
}

.home-hero::after {
  inset: -2px;
  z-index: 2;
  background:
    radial-gradient(ellipse at 58% 36%, transparent 0%, transparent 34%, rgba(17, 17, 17, .44) 66%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(17, 17, 17, .58) 13%, transparent 34%, rgba(17, 17, 17, .8) 76%, var(--bg) 94%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(17, 17, 17, .82) 8%, transparent 25%, transparent 70%, rgba(17, 17, 17, .84) 89%, var(--bg) 100%);
}

.home-hero-backdrop,
.home-hero-trailer {
  position: absolute;
}

.home-hero-backdrop {
  inset: -10%;
  width: 120%;
  height: 120%;
  z-index: 0;
  object-fit: cover;
  background: var(--bg);
}

.home-hero-trailer {
  z-index: 0;
  border: 0;
  pointer-events: none;
  top: 50%;
  left: 50%;
  width: 150vw;
  height: 84.375vw;
  min-width: 178vh;
  min-height: 100vh;
  transform: translate(-50%, -50%) scale(1.08);
  transform-origin: center;
  opacity: 1;
  transition: opacity .45s ease;
}

.home-hero.is-intro .home-hero-trailer {
  opacity: 0;
}

.home-hero-copy {
  position: relative;
  z-index: 3;
  width: min(540px, 100%);
  margin-left: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}

.home-hero-copy h2 {
  margin: 10px 0 12px;
  color: #fff;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .94;
}

.home-hero-copy p:not(.watch-facts) {
  max-width: 520px;
  margin: 0 0 24px;
  color: rgba(255, 250, 240, .84);
  line-height: 1.5;
}

.home-hero-thumb-strip {
  position: absolute;
  right: clamp(64px, 7vw, 132px);
  bottom: clamp(96px, 14vh, 144px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(540px, 38vw);
}

.home-hero-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.home-hero-thumbs::-webkit-scrollbar {
  display: none;
}

.home-hero-thumbs button {
  width: 72px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  background: #202020;
  border: 2px solid transparent;
  border-radius: 4px;
  opacity: .74;
}

.hero-thumb-arrow {
  width: 26px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(0, 0, 0, .22);
  border: 0;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  opacity: .7;
}

.hero-thumb-arrow:hover {
  color: #141414;
  background: var(--accent);
  opacity: 1;
}

.home-hero-thumbs button:hover,
.home-hero-thumbs .is-active {
  border-color: var(--accent);
  opacity: 1;
}

.home-hero-controls {
  position: absolute;
  right: clamp(72px, 8vw, 148px);
  bottom: clamp(156px, 22vh, 220px);
  z-index: 4;
  display: grid;
  place-items: center;
}

.home-hero-thumbs img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-hero-dots {
  position: absolute;
  left: clamp(32px, 7vw, 112px);
  bottom: 42px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.home-hero-dots span {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.home-hero-dots .is-active {
  background: var(--accent);
}


.home-hero {
  width: 100%;
  max-width: 100%;
  margin: 0 0 -46px;
  padding: clamp(170px, 22vh, 240px) clamp(48px, 7vw, 112px) clamp(136px, 18vh, 210px);
  overflow: hidden;
}

.home-hero-backdrop {
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  filter: saturate(.92) brightness(.84);
}

.home-hero-trailer {
  opacity: 0 !important;
  visibility: hidden;
}

.home-hero-copy {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 3;
  width: min(540px, 100%);
  margin: 0;
}

.home-hero {
  margin-bottom: 0;
  padding-bottom: clamp(280px, 34vh, 430px);
}

.home-hero::after {
  inset: -2px;
  background:
    radial-gradient(ellipse at 58% 34%, transparent 0%, transparent 32%, rgba(17, 17, 17, .42) 66%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(17, 17, 17, .58) 12%, transparent 32%, rgba(17, 17, 17, .42) 58%, rgba(17, 17, 17, .86) 76%, var(--bg) 94%, var(--bg) 100%),
    linear-gradient(0deg, var(--bg) 0%, var(--bg) 14%, rgba(17, 17, 17, .96) 28%, rgba(17, 17, 17, .74) 48%, rgba(17, 17, 17, .28) 72%, transparent 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(17, 17, 17, .82) 8%, transparent 25%, transparent 70%, rgba(17, 17, 17, .84) 89%, var(--bg) 100%);
}

.home-hero + .rail-section {
  margin-top: 24px;
}

/* Isolated homepage trailer layer: the approved banner remains the layout base. */
.home-hero-video-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease;
  contain: paint;
}

.home-hero-video-shell .home-hero-trailer {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: max(100%, 177.78vh) !important;
  height: max(100%, 56.25vw) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0;
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
}

.home-hero-video-shell video.home-hero-trailer::-webkit-media-controls,
.home-hero-video-shell video.home-hero-trailer::-webkit-media-controls-panel,
.home-hero-video-shell video.home-hero-trailer::-webkit-media-controls-overlay-play-button,
.home-hero-video-shell video.home-hero-trailer::-webkit-media-controls-start-playback-button,
.home-hero-video-shell video.home-hero-trailer::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
  pointer-events: none !important;
}

.home-hero.is-trailer-ready .home-hero-video-shell {
  opacity: 1;
  visibility: visible;
}

.home-hero.is-trailer-ready .home-hero-backdrop {
  opacity: 0;
}

/* Disney-style home hero polish. Keeps the platform menu unchanged. */
.home-hero {
  min-height: clamp(560px, 62vh, 720px);
  align-items: end;
  margin: 0;
  padding: clamp(118px, 15vh, 178px) clamp(42px, 6vw, 92px) clamp(92px, 12vh, 138px);
}

.home-hero::before {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(17, 17, 17, .96) 5%, rgba(17, 17, 17, .82) 18%, rgba(17, 17, 17, .28) 42%, rgba(17, 17, 17, .08) 64%, rgba(17, 17, 17, .58) 88%, var(--bg) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, .6) 0%, rgba(17, 17, 17, .08) 28%, rgba(17, 17, 17, .46) 68%, var(--bg) 100%);
}

.home-hero::after {
  background:
    radial-gradient(ellipse at 64% 34%, transparent 0%, transparent 36%, rgba(17, 17, 17, .3) 68%, var(--bg) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(17, 17, 17, .94) 13%, rgba(17, 17, 17, .55) 34%, transparent 70%),
    linear-gradient(90deg, var(--bg) 0%, rgba(17, 17, 17, .88) 9%, rgba(17, 17, 17, .24) 38%, transparent 72%);
}

.home-hero-backdrop {
  filter: saturate(.96) brightness(.88);
  transform: scale(1.015);
}

.home-hero-copy {
  width: min(560px, 42vw);
}

.home-hero-copy h2 {
  max-width: 11ch;
  margin: 10px 0 10px;
  font-size: clamp(42px, 5.8vw, 76px);
  line-height: .9;
}

.home-hero-status {
  display: block;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.home-hero-copy .watch-facts {
  margin-bottom: 14px;
}

.home-hero-copy p:not(.watch-facts) {
  max-width: 510px;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.home-hero-actions .watch-primary-button {
  min-width: 210px;
  justify-content: center;
}

.home-hero-actions .watch-square-button {
  width: 52px;
  height: 52px;
}

.home-hero-thumb-strip {
  right: clamp(38px, 5vw, 92px);
  bottom: clamp(82px, 10vh, 128px);
  width: min(520px, 39vw);
}

.home-hero-thumbs {
  gap: 9px;
}

.home-hero-thumbs button {
  width: 86px;
  height: 49px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .34);
}

.hero-thumb-arrow {
  height: 49px;
  background: rgba(0, 0, 0, .34);
}

.home-hero-controls {
  right: clamp(42px, 6vw, 106px);
  bottom: clamp(148px, 18vh, 214px);
}

.home-hero-dots {
  left: clamp(42px, 6vw, 92px);
  bottom: 30px;
}

.home-hero + .rail-section {
  margin-top: clamp(10px, 2vh, 22px);
}

.poster-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 18px;
}

.poster-rail {
  position: relative;
  z-index: 5;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 158px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.poster-rail.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.poster-rail::-webkit-scrollbar {
  display: none;
}

.movie-card {
  position: relative;
  min-width: 0;
}

.poster-button {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  padding: 0;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.poster-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .18s ease, opacity .18s ease;
}

.poster-button:hover img {
  transform: scale(1.035);
}

.series-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #141414;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.is-missing .poster-button img {
  opacity: .42;
  filter: grayscale(1);
}

.progress-bar {
  position: absolute;
  display: block;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
}

.resume-progress {
  position: absolute;
  display: block;
  left: 10px;
  right: 10px;
  bottom: 10px;
  width: calc(100% - 20px);
  height: 5px;
  overflow: visible;
  border-radius: 99px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .28));
  pointer-events: none;
}

.resume-progress-track {
  fill: rgba(255, 255, 255, .18);
}

.resume-progress-fill {
  fill: #10b981;
}

.progress-bar i {
  display: block;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, .45);
}

.continue-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .62);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .34);
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  opacity: .82;
}

.continue-remove:hover,
.continue-remove:focus-visible {
  opacity: 1;
  background: rgba(20, 20, 20, .9);
  border-color: rgba(255, 255, 255, .42);
}

.movie-card h3 {
  margin: 10px 0 4px;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card p {
  margin: 0;
  font-size: 12px;
}

.empty-state {
  display: grid;
  place-items: start;
  gap: 12px;
  max-width: 560px;
  margin-top: 80px;
  padding: 28px;
  background: rgba(24, 24, 24, .76);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.title-page {
  display: grid;
  gap: 24px;
}

.back-button {
  justify-self: start;
}

.hero-back-button {
  position: absolute;
  left: clamp(18px, 3vw, 42px);
  top: 22px;
  z-index: 2;
}

.title-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: 190px minmax(0, 720px);
  gap: 26px;
  align-items: end;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  box-shadow: var(--shadow);
}

.watch-hero {
  min-height: min(720px, 72vh);
  grid-template-columns: minmax(0, 820px);
  align-items: end;
  margin: -26px calc(clamp(18px, 3vw, 42px) * -1) 0;
  padding: clamp(92px, 18vh, 190px) clamp(24px, 5vw, 72px) clamp(44px, 8vh, 92px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-backdrop-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #111;
}

.title-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 44% 56%, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .52) 28%, rgba(0, 0, 0, .18) 58%, rgba(0, 0, 0, .08) 100%),
    linear-gradient(90deg, rgba(17, 17, 17, .97) 0%, rgba(17, 17, 17, .86) 34%, rgba(17, 17, 17, .46) 60%, rgba(17, 17, 17, .16) 100%),
    linear-gradient(0deg, rgba(17, 17, 17, .84) 0%, rgba(17, 17, 17, .18) 54%, rgba(17, 17, 17, .48) 100%);
}

.watch-hero::before {
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(17, 17, 17, .92) 16%, rgba(17, 17, 17, .34) 48%, rgba(17, 17, 17, .08) 74%),
    linear-gradient(90deg, rgba(17, 17, 17, .98) 0%, rgba(17, 17, 17, .82) 28%, rgba(17, 17, 17, .3) 58%, rgba(17, 17, 17, .08) 100%);
}

.title-hero > *:not(.hero-backdrop-img):not(.hero-trailer-frame) {
  position: relative;
  z-index: 2;
}

.title-page {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 42px);
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, .08), transparent 28%),
    var(--bg);
}

.title-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(22px, 5vh, 96px) clamp(18px, 4vw, 48px);
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(2px);
}

.title-modal {
  position: relative;
  width: min(960px, 100%);
  min-height: min(820px, calc(100vh - clamp(44px, 10vh, 120px)));
  margin: 0 auto;
  overflow: hidden;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .62);
}

.title-modal .watch-hero {
  min-height: min(540px, 60vh);
  margin: 0;
  padding: clamp(86px, 13vh, 138px) clamp(32px, 5vw, 64px) clamp(38px, 7vh, 74px);
}

.title-modal .watch-hero::before {
  background:
    linear-gradient(0deg, #151515 0%, rgba(21, 21, 21, .94) 13%, rgba(21, 21, 21, .48) 42%, rgba(21, 21, 21, .1) 70%),
    linear-gradient(90deg, rgba(21, 21, 21, .98) 0%, rgba(21, 21, 21, .78) 33%, rgba(21, 21, 21, .22) 68%, rgba(21, 21, 21, .08) 100%);
}

.title-modal .watch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 52% 45%, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .56) 12%, rgba(0, 0, 0, .28) 26%, transparent 46%),
    radial-gradient(ellipse at 52% 45%, rgba(21, 21, 21, .42), transparent 38%);
}

.hero-trailer-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  transform: scale(1.18);
  transform-origin: center;
  opacity: 1;
  transition: opacity .28s ease;
}

.watch-hero.is-trailer-paused .hero-trailer-frame,
.watch-hero.is-trailer-intro .hero-trailer-frame {
  opacity: 0;
}

.hero-trailer-controls {
  position: absolute;
  right: 30px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-trailer-button {
  width: 68px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  overflow: hidden;
  text-indent: -999px;
}

.hero-trailer-button::before {
  content: "Audio";
  text-indent: 0;
  font-size: 12px;
  letter-spacing: 0;
}

.hero-trailer-button:hover {
  color: #141414;
  background: var(--accent);
}

.hero-trailer-controls .hero-trailer-button {
  --title-trailer-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M17 12h5v24h-5zM27 12h5v24h-5z' fill='black'/%3E%3C/svg%3E");
  position: relative;
  width: 46px;
  height: 46px;
  color: rgba(255, 250, 240, .96);
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
  font-size: 0;
  line-height: 1;
  text-indent: 0;
}

.hero-trailer-controls .hero-trailer-button::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: currentColor;
  -webkit-mask: var(--title-trailer-icon) center / contain no-repeat;
  mask: var(--title-trailer-icon) center / contain no-repeat;
}

.hero-trailer-controls .title-trailer-play-button.is-playing {
  --title-trailer-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M17 12h5v24h-5zM27 12h5v24h-5z' fill='black'/%3E%3C/svg%3E");
}

.hero-trailer-controls .title-trailer-play-button.is-paused {
  --title-trailer-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M16 10 36 24 16 38z' fill='black'/%3E%3C/svg%3E");
}

.hero-trailer-controls .title-trailer-audio-button.is-unmuted {
  --title-trailer-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M7 19h8L27 8v32L15 29H7z' fill='none' stroke='black' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M33 17c3 4 3 10 0 14M38 12c6 7 6 17 0 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hero-trailer-controls .title-trailer-audio-button.is-muted {
  --title-trailer-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M7 19h8L27 8v32L15 29H7z' fill='none' stroke='black' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M33 17c2 3 2 8 0 11M38 12c5 6 6 14 2 21' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M10 8l30 32' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hero-trailer-controls .hero-trailer-button:hover {
  color: #141414;
  background: var(--accent);
  border-color: var(--accent);
}

.home-hero-controls .hero-trailer-button {
  --hero-audio-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M7 19h8L27 8v32L15 29H7z' fill='none' stroke='black' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M33 17c3 4 3 10 0 14M38 12c6 7 6 17 0 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  position: relative;
  width: 38px;
  height: 38px;
  color: rgba(255, 250, 240, .92);
  background: rgba(0, 0, 0, .46);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .34);
  font-size: 0;
  text-indent: 0;
}

.home-hero-controls .hero-trailer-button.is-unmuted {
  --hero-audio-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M7 19h8L27 8v32L15 29H7z' fill='none' stroke='black' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M33 17c3 4 3 10 0 14M38 12c6 7 6 17 0 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.home-hero-controls .hero-trailer-button.is-muted {
  --hero-audio-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M7 19h8L27 8v32L15 29H7z' fill='none' stroke='black' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M33 17c2 3 2 8 0 11M38 12c5 6 6 14 2 21' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M10 8l30 32' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.home-hero-controls .hero-trailer-button::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: currentColor;
  -webkit-mask: var(--hero-audio-icon) center / contain no-repeat;
  mask: var(--hero-audio-icon) center / contain no-repeat;
}

.home-hero-controls .hero-trailer-button::after {
  content: none;
}

.home-hero-controls .hero-trailer-button.is-muted::after {
  content: none;
}

.home-hero-controls .hero-trailer-button:hover {
  color: #141414;
  background: var(--accent);
  border-color: var(--accent);
}

.home-hero-controls .hero-trailer-button:hover::before {
  color: #141414;
}

.home-hero-controls .hero-trailer-button:hover::after {
  content: none;
}

.watch-close-button {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .92);
  background: rgba(0, 0, 0, .18);
  border: 0;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
}

.watch-close-button:hover {
  background: rgba(255, 255, 255, .12);
}

.watch-copy {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .86);
}

.watch-copy h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(36px, 5.8vw, 68px);
  line-height: .94;
}

.watch-status {
  display: block;
  margin: 0 0 20px;
  color: var(--accent-2);
  font-size: 14px;
}

.watch-facts {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .88);
  font-weight: 800;
}

.metadata-summary.is-compact {
  gap: 12px;
}

.metadata-summary.is-compact span:first-child {
  display: none;
}

.metadata-summary.is-compact p {
  max-width: 500px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.45;
}

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

.watch-primary-button {
  min-width: min(320px, 68vw);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 26px;
  color: #141414;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  font-size: 16px;
}

.watch-primary-button:hover {
  background: #60a5fa;
}

.watch-square-button {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  font-size: 30px;
  font-weight: 500;
}

.watch-square-button:hover,
.watch-square-button.is-on {
  color: #141414;
  background: var(--accent);
}

.watch-sections {
  display: grid;
  gap: 26px;
  padding: 0 clamp(32px, 5vw, 64px) clamp(36px, 6vw, 64px);
}

.watch-tabs {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  padding-top: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.watch-tabs button {
  position: relative;
  padding: 0 0 20px;
  color: rgba(255, 255, 255, .56);
  background: transparent;
  border: 0;
  font-size: 20px;
  font-weight: 900;
}

.watch-tabs button:hover,
.watch-tabs .is-active {
  color: #fff;
}

.watch-tabs .is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #fff;
  border-radius: 999px;
}

.watch-empty-panel {
  min-height: 150px;
  align-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.watch-empty-panel p {
  margin: 0;
  color: var(--muted);
}

.series-modal {
  width: min(1080px, 100%);
}

.series-hero {
  min-height: min(460px, 54vh);
}

.series-sections {
  padding-bottom: 28px;
}

.series-episodes-panel {
  gap: 14px;
}

.series-episode-list {
  max-height: min(520px, 48vh);
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 6px;
}

.series-episode-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.series-episode-card:hover {
  border-color: rgba(245, 158, 11, .48);
  background: rgba(255, 255, 255, .075);
}

.series-episode-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  background: #202020;
}

.series-episode-card div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.series-episode-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.series-episode-card strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-episode-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.watch-shelf {
  display: grid;
  gap: 12px;
}

.watch-shelf h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.watch-poster-rail,
.watch-media-rail,
.watch-cast-strip {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
}

.watch-poster-rail {
  grid-auto-columns: 166px;
}

.watch-poster-card h3 {
  margin: 9px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-media-rail {
  grid-auto-columns: minmax(260px, 330px);
}

.watch-video-card {
  position: relative;
  min-height: 184px;
  overflow: hidden;
  padding: 0;
  color: #fff;
  background: #101116;
  border: 0;
  border-radius: 6px;
  text-align: left;
}

.watch-video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  opacity: .82;
}

.watch-video-card span {
  position: absolute;
  left: 16px;
  bottom: 48px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .52);
  border-radius: 999px;
}

.watch-video-card strong {
  display: block;
  padding: 12px;
  font-size: 14px;
}

.watch-cast-strip {
  grid-auto-columns: 112px;
  flex-wrap: nowrap;
  max-width: none;
}

.scan-panel {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px;
  background: rgba(24, 24, 24, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scan-panel.is-running {
  border-color: rgba(245, 158, 11, .38);
}

.scan-panel-header,
.scan-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scan-panel h2,
.scan-panel p {
  margin: 0;
}

.scan-panel h2 {
  font-size: 17px;
}

.scan-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #141414;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.scan-stats {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.scan-stats span {
  padding: 8px 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}

.scan-stats strong {
  color: var(--text);
}

.scan-current,
.scan-recent,
.scan-errors {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.scan-current span,
.scan-recent span,
.scan-errors strong {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.scan-current code,
.scan-errors code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: 6px;
  background: #101010;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-errors {
  padding: 12px;
  border-radius: 6px;
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .22);
}

.scan-errors p {
  display: grid;
  gap: 6px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, .62);
}

.detail-drawer,
.settings-drawer {
  position: relative;
  width: min(820px, 100%);
  height: 100vh;
  overflow: auto;
  padding: 26px;
  background: #151515;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.settings-drawer {
  width: min(520px, 100%);
}

.drawer-close {
  position: absolute;
  right: 18px;
  top: 18px;
}

.icon-button {
  width: 36px;
  height: 36px;
  color: var(--text);
  background: #2a2a2a;
}

.detail-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin: 34px 0 22px;
}

.detail-poster {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .45);
}

.detail-copy {
  max-width: 760px;
  padding: 14px 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .16) 78%, transparent);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .92), 0 1px 2px rgba(0, 0, 0, .95);
}

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

.detail-copy h2 {
  margin: 8px 0 8px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: .98;
  color: #fffaf0;
}

.detail-copy > p,
.metadata-summary p,
.metadata-summary span {
  color: rgba(255, 250, 240, .9);
}

.detail-actions,
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.media-player {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.player-page {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.standalone-player {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.standalone-player .player {
  width: 100vw;
  height: 100vh;
  min-width: 0;
  min-height: 0;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: cover;
  object-position: center center;
}

.player-top-bar {
  position: fixed;
  left: 22px;
  top: 20px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 44px);
  transition: opacity .22s ease, transform .22s ease;
}

.player-back-button {
  position: fixed;
  left: 22px;
  top: 20px;
  z-index: 12;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(0, 0, 0, .48);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
  transition: opacity .22s ease, transform .22s ease, background .16s ease;
}

.player-top-bar .player-back-button {
  position: static;
  flex: 0 0 auto;
}

.player-back-button:hover {
  background: rgba(245, 158, 11, .24);
}

.player-now-playing {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: min(560px, calc(100vw - 118px));
  padding: 6px 14px 6px 7px;
  color: var(--text);
  background: rgba(0, 0, 0, .56);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
  backdrop-filter: blur(12px);
}

.player-now-playing img {
  width: 34px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 5px;
  background: #111;
}

.player-now-playing div {
  min-width: 0;
}

.player-now-playing strong,
.player-now-playing span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-now-playing strong {
  font-size: 15px;
  line-height: 1.15;
}

.player-now-playing span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.player-page.is-controls-idle .player-top-bar,
.player-page.is-controls-idle .player-back-button {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.media-player:focus {
  outline: 2px solid rgba(245, 158, 11, .54);
  outline-offset: 3px;
}

.player {
  width: 100%;
  max-height: 64vh;
  display: block;
  background: #000;
}

.live-watch-page {
  display: grid;
  gap: 22px;
}

.live-watch-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}

.live-watch-heading h1 {
  margin: 2px 0 0;
  font-size: clamp(30px, 4vw, 54px);
}

.live-watch-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.live-watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: 20px;
  align-items: start;
}

.live-player-panel,
.live-guide-panel,
.live-now-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 18, .76);
}

.live-player-panel {
  overflow: hidden;
}

.live-player-panel .media-player {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.live-player-panel .player {
  max-height: min(62vh, 620px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.live-now-card {
  display: grid;
  gap: 10px;
  margin: 12px;
  padding: 14px;
}

.live-now-card > div {
  display: grid;
  gap: 5px;
}

.live-now-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  color: #0b0b0b;
  background: var(--accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.live-now-card strong {
  font-size: 22px;
}

.live-now-card small,
.live-now-card p {
  color: var(--muted);
}

.live-now-card p {
  margin: 0;
  line-height: 1.55;
}

.live-epg-progress {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.live-epg-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent-2);
  border-radius: inherit;
  transform: scaleX(var(--epg-progress, 0));
  transform-origin: left center;
  transition: transform .35s ease;
}

.live-guide-panel {
  max-height: min(74vh, 760px);
  overflow: hidden;
  padding: 14px;
}

.live-guide-list {
  display: grid;
  gap: 8px;
  max-height: calc(min(74vh, 760px) - 78px);
  overflow: auto;
  padding-right: 4px;
}

.live-guide-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.live-guide-item.is-now {
  border-color: rgba(245, 158, 11, .55);
  background: rgba(245, 158, 11, .11);
}

.live-guide-item time {
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}

.live-guide-item strong,
.live-guide-item span,
.live-guide-item p {
  display: block;
}

.live-guide-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.live-guide-item p {
  margin: 8px 0 0;
  color: rgba(255, 250, 240, .78);
  font-size: 13px;
  line-height: 1.45;
}

.live-channel-strip {
  min-width: 0;
}

.live-mini-card.active .poster-button {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .45);
}

.player-pause-backdrop {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background: #000;
  transition: opacity .22s ease;
}

.player-pause-backdrop img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(.62);
}

.player-pause-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, .18) 46%, rgba(0, 0, 0, .72) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .78), transparent 44%, rgba(0, 0, 0, .34));
}

.media-player.has-played:not(.is-playing) .player-pause-backdrop {
  opacity: 1;
}

.media-player.hide-pause-backdrop .player-pause-backdrop {
  opacity: 0 !important;
}

.player-center-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 4;
  width: 68px;
  height: 68px;
  padding: 0;
  color: #141414;
  background: rgba(245, 158, 11, .94);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
  font-weight: 900;
  font-size: 26px;
  transform: translate(-50%, -50%);
  transition: opacity .16s ease, transform .16s ease;
}

.media-player.is-playing .player-center-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.94);
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 82px;
  z-index: 7;
  max-width: min(720px, calc(100% - 48px));
  padding: 10px 14px;
  color: rgba(255, 255, 255, .92);
  background: rgba(12, 12, 12, .82);
  border: 1px solid rgba(245, 158, 11, .32);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}

.player-captions {
  position: absolute;
  left: 50%;
  bottom: 118px;
  z-index: 7;
  max-width: min(820px, calc(100% - 64px));
  padding: 8px 12px;
  color: #fff;
  background: rgba(0, 0, 0, .72);
  border-radius: 5px;
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.28;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .95);
  transform: translateX(-50%);
  pointer-events: none;
}

.media-player:fullscreen .player-captions,
.media-player:-webkit-full-screen .player-captions {
  position: fixed;
  z-index: 2147483647;
  bottom: 130px;
}

.player-skip-tools,
.player-next-overlay {
  position: absolute;
  z-index: 9;
  color: var(--text);
  background: rgba(12, 12, 12, .82);
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .46);
  backdrop-filter: blur(14px);
}

.player-skip-tools[hidden],
.player-next-overlay[hidden] {
  display: none;
}

.player-skip-tools {
  right: 18px;
  bottom: 102px;
  display: flex;
  gap: 8px;
  padding: 8px;
}

.player-next-overlay {
  right: 18px;
  bottom: 102px;
  width: min(360px, calc(100% - 36px));
  display: grid;
  gap: 8px;
  padding: 14px;
}

.player-next-overlay span,
.player-next-overlay small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.player-next-overlay strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.player-next-overlay div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.player-smart-button {
  min-height: 34px;
  padding: 8px 11px;
  color: var(--text);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  font-weight: 900;
  font-size: 13px;
}

.player-smart-button:hover {
  background: rgba(245, 158, 11, .22);
  border-color: rgba(245, 158, 11, .44);
}

.player-smart-button.is-primary {
  color: #141414;
  background: var(--accent);
  border-color: var(--accent);
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: grid;
  gap: 8px;
  padding: 52px 16px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .66) 68%, transparent);
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease;
}

.media-player.is-playing.is-controls-idle {
  cursor: none;
}

.media-player.is-playing.is-controls-idle .player-controls {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.player-scrub-wrap {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.player-scrub,
.player-buffer {
  position: absolute;
  left: 0;
  right: 0;
}

.player-scrub {
  z-index: 2;
  height: 28px;
  padding: 0;
  opacity: .01;
  cursor: pointer;
}

.player-buffer {
  z-index: 1;
  height: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, .2);
  border-radius: 99px;
}

.player-buffer::after,
.player-buffer i {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
}

.player-buffer::after {
  width: calc(var(--scrub-value, 0) * 1%);
  background: var(--accent);
}

.player-buffer i {
  width: 0;
  background: rgba(255, 255, 255, .34);
}

.player-hover-preview {
  position: absolute;
  left: 0;
  bottom: 25px;
  z-index: 5;
  width: 154px;
  overflow: hidden;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(5px);
  transition: opacity .12s ease, transform .12s ease;
}

.player-hover-preview.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.player-hover-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #000;
}

.player-hover-preview strong {
  display: block;
  padding: 6px 8px;
  color: var(--text);
  font-size: 12px;
  text-align: center;
}

.player-control-row,
.player-left-controls,
.player-right-controls,
.player-volume,
.player-select {
  display: flex;
  align-items: center;
  gap: 9px;
}

.player-control-row {
  justify-content: space-between;
}

.player-button {
  min-width: 42px;
  min-height: 36px;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  font-weight: 900;
  font-size: 14px;
}

.player-button:hover {
  background: rgba(245, 158, 11, .22);
  border-color: rgba(245, 158, 11, .44);
}

.player-button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.player-button:disabled:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .16);
}

.player-episode-button {
  min-width: 38px;
}

.player-pause-backdrop-toggle {
  min-width: 102px;
  white-space: nowrap;
}

.player-pause-backdrop-toggle.is-on {
  color: #141414;
  background: var(--accent);
  border-color: var(--accent);
}

.player-time {
  min-width: 112px;
  color: rgba(255, 250, 240, .86);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.player-episode-overlay {
  position: absolute;
  right: 18px;
  bottom: 86px;
  z-index: 9;
  width: min(360px, calc(100% - 36px));
  max-height: min(440px, calc(100% - 132px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  color: var(--text);
  background: rgba(17, 17, 17, .94);
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .46);
  backdrop-filter: blur(16px);
}

.player-episode-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.player-episode-overlay-header div {
  display: grid;
  min-width: 0;
}

.player-episode-overlay-header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-episode-overlay-header span {
  color: var(--muted);
  font-size: 12px;
}

.player-season-select {
  display: grid;
  gap: 6px;
  padding: 10px 10px 0;
}

.player-season-select span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.player-season-select select {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  color: var(--text);
  background: #101010;
  border: 1px solid rgba(245, 158, 11, .42);
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
}

.player-episode-overlay-list {
  display: grid;
  gap: 6px;
  overflow: auto;
  padding: 10px;
}

.player-episode-overlay-list button {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, .06);
  border: 1px solid transparent;
  border-radius: 6px;
}

.player-episode-overlay-list button:hover,
.player-episode-overlay-list button.is-current {
  border-color: rgba(245, 158, 11, .52);
  background: rgba(245, 158, 11, .16);
}

.player-episode-overlay-list span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.player-episode-overlay-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-live-badge {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 3px 7px;
  color: #0b0b0b;
  background: var(--accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.player-volume,
.player-select {
  color: rgba(255, 250, 240, .76);
  font-size: 12px;
  font-weight: 800;
}

.icon-select {
  min-height: 36px;
  padding: 0 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
}

.icon-select.is-disabled {
  opacity: .42;
}

.player-volume input {
  width: 92px;
  padding: 0;
  accent-color: var(--accent);
}

.player-select select {
  width: 74px;
  min-width: 74px;
  padding: 7px 6px;
  color: var(--text);
  background: rgba(16, 16, 16, .92);
  border-color: rgba(255, 255, 255, .16);
}

.media-player:fullscreen,
.media-player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 0;
  border-radius: 0;
}

.media-player:fullscreen .player,
.media-player:-webkit-full-screen .player {
  width: min(100vw, calc(100vh * var(--video-ratio, 1.777777)));
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100vw;
  max-height: 100vh;
  aspect-ratio: var(--video-ratio, 1.777777);
  object-fit: contain;
  object-position: center center;
}

.media-player:fullscreen .player-controls,
.media-player:-webkit-full-screen .player-controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483647;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding: 76px 18px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .96), rgba(0, 0, 0, .68) 64%, rgba(0, 0, 0, 0));
}

.media-player:fullscreen .player-button,
.media-player:fullscreen .player-scrub,
.media-player:fullscreen .player-volume input,
.media-player:fullscreen .player-select select,
.media-player:-webkit-full-screen .player-button,
.media-player:-webkit-full-screen .player-scrub,
.media-player:-webkit-full-screen .player-volume input,
.media-player:-webkit-full-screen .player-select select {
  pointer-events: auto;
}

.file-meta,
.scan-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.subtitle-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(24, 24, 24, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.subtitle-panel > div:first-child,
.subtitle-player-controls label,
.subtitle-upload-form,
.subtitle-results article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subtitle-panel span,
.subtitle-panel small,
.subtitle-results article span {
  color: var(--muted);
  font-size: 13px;
}

.subtitle-panel code {
  color: var(--text);
}

.subtitle-player-controls select,
.subtitle-upload-form select {
  width: 150px;
}

.subtitle-upload-form input[type="file"] {
  min-width: 220px;
}

.subtitle-results {
  display: grid;
  gap: 8px;
}

.subtitle-results article {
  padding: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.subtitle-results article div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.subtitle-results article strong,
.subtitle-results article span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-trailer-results {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(0, 0, 0, .18);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.local-trailer-results article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 10px;
}

.local-trailer-results article div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.local-trailer-results article strong,
.local-trailer-results article span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-trailer-results article strong {
  font-size: 13px;
}

.local-trailer-results article span {
  color: var(--muted);
  font-size: 12px;
}

.local-trailer-results .secondary-button {
  min-height: 34px;
  padding: 7px 12px;
  white-space: nowrap;
}

.local-trailer-results article.is-selected {
  border-color: rgba(16, 185, 129, .7);
  background: rgba(16, 185, 129, .12);
}

.local-trailer-results article.is-selected .secondary-button {
  color: #051713;
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.season-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.season-tab {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--muted);
  background: #202020;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.season-tab:hover,
.season-tab.active {
  color: #141414;
  background: var(--accent);
  border-color: transparent;
}

.metadata-summary {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.metadata-summary p {
  max-width: 680px;
  margin: 0;
  line-height: 1.55;
}

.tagline {
  color: var(--text);
  font-size: 14px;
  font-style: italic;
}

.cast-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 760px;
}

.cast-card {
  width: 96px;
  display: grid;
  gap: 7px;
  padding: 0;
  color: var(--text);
  background: rgba(0, 0, 0, .24);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.cast-card:hover {
  border-color: rgba(245, 158, 11, .48);
}

.cast-card img,
.cast-avatar {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: #202020;
}

.cast-card span:last-child {
  display: grid;
  gap: 2px;
  padding: 0 8px 8px;
  min-width: 0;
}

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

.cast-card strong {
  color: var(--text);
  font-size: 12px;
}

.cast-card small {
  color: var(--muted);
  font-size: 11px;
}

.cast-avatar {
  color: #141414;
  background: var(--accent);
  font-size: 28px;
  font-weight: 900;
}

.actor-results {
  display: grid;
  gap: 8px;
}

.trailer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
}

.trailer-modal {
  position: relative;
  width: min(1040px, 100%);
  padding: 20px;
  background: #151515;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trailer-modal h2 {
  margin: 0 48px 16px 0;
  font-size: 20px;
}

.trailer-modal iframe,
.trailer-modal video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 8px;
  background: #000;
  object-fit: contain;
}

.metadata-warning {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .24);
  border-radius: 6px;
}

.metadata-warning code {
  color: var(--text);
}

.slider-manager {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  background: rgba(18, 18, 18, .72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compact-heading {
  margin-bottom: 0;
}

.slider-form,
.slider-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) minmax(150px, .7fr) auto;
  gap: 10px;
  align-items: end;
}

.slider-list {
  display: grid;
  gap: 10px;
}

.slider-row {
  grid-template-columns: minmax(190px, 1fr) minmax(160px, .8fr) minmax(130px, .7fr) 120px minmax(360px, auto);
  padding: 10px;
  background: rgba(24, 24, 24, .76);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.slider-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.slider-main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slider-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.slider-order-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.slider-order-panel.is-collapsed {
  gap: 0;
  padding-top: 8px;
}

.slider-order-panel > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.slider-order-panel span {
  color: var(--muted);
  font-size: 13px;
}

.slider-order-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slider-order-item {
  display: grid;
  grid-template-columns: 34px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
}

.slider-order-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
  background: rgba(245, 158, 11, .14);
  border-radius: 50%;
  font-weight: 900;
}

.slider-order-item > div:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.slider-order-item > div:nth-child(2) strong,
.slider-order-item > div:nth-child(2) span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slider-order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.tag-bulk-toolbar {
  margin-bottom: 0;
}

.tag-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  color: rgba(255, 255, 255, .86);
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.muted-tags {
  color: var(--muted);
}

.danger-button {
  color: #fecaca;
  border-color: rgba(248, 113, 113, .35);
}

.manage-list {
  display: grid;
  gap: 10px;
}

.admin-workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.admin-workspace-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-workspace-card:hover {
  background: rgba(245, 158, 11, .08);
  border-color: rgba(245, 158, 11, .65);
}

.admin-workspace-card strong {
  font-size: 20px;
}

.admin-workspace-card span {
  color: var(--accent);
  font-weight: 800;
}

.admin-workspace-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.hero-admin-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.compact-heading {
  margin-bottom: 0;
}

.compact-heading h3 {
  margin: 0;
  font-size: 20px;
}

.inline-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-button {
  min-height: 30px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.compact-segmented button {
  min-height: 34px;
  padding: 7px 10px;
}

.hero-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

.hero-admin-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  background: rgba(24, 24, 24, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-admin-card.is-forced {
  border-color: rgba(245, 158, 11, .6);
  background: rgba(245, 158, 11, .08);
}

.hero-admin-art {
  position: relative;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  cursor: pointer;
}

.hero-admin-art img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-admin-card > div {
  min-width: 0;
}

.hero-admin-card strong,
.hero-admin-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-admin-card span {
  color: var(--muted);
  font-size: 13px;
}

.hero-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-admin-empty {
  grid-column: 1 / -1;
  min-height: 140px;
}

.manage-toolbar,
.bulk-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(24, 24, 24, .72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented-control,
.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-series-select {
  min-height: 36px;
  color: var(--text);
  background: #202020;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.episode-picker-row {
  display: grid;
  gap: 10px;
}

.selected-series-card {
  border-color: rgba(245, 158, 11, .55);
  background: rgba(245, 158, 11, .08);
}

.episode-season-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.episode-season-choice strong,
.episode-season-choice span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-season-choice span {
  color: var(--muted);
  font-size: 13px;
}

.episode-season-choice.active,
.episode-season-choice:hover {
  color: #141414;
  background: var(--accent);
  border-color: transparent;
}

.episode-season-choice.active span,
.episode-season-choice:hover span {
  color: rgba(20, 20, 20, .78);
}

.segmented-control button {
  min-height: 36px;
  padding: 8px 11px;
  color: var(--muted);
  background: #202020;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.segmented-control button.active,
.segmented-control button:hover {
  color: #141414;
  background: var(--accent);
  border-color: transparent;
}

.manage-search {
  width: min(360px, 44vw);
}

.select-all-control,
.row-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 800;
}

.select-all-control input,
.row-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.manage-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(24, 24, 24, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.manage-row.is-hidden {
  opacity: .68;
}

.manage-series-row {
  background: rgba(28, 26, 22, .86);
  border-color: rgba(245, 158, 11, .24);
}

.manage-live-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.manage-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.manage-main strong,
.manage-main span,
.manage-main p,
.manage-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manage-main span,
.manage-main p,
.manage-main small {
  white-space: nowrap;
}

.manage-main p {
  margin: 0;
  font-size: 13px;
}

.manage-title-button {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: transparent;
  border: 0;
  font-weight: 900;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-title-button:hover {
  color: var(--accent);
}

.manage-credits {
  color: var(--muted);
  font-size: 12px;
}

.manage-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.manage-status span {
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.manage-status .is-on {
  color: #141414;
  background: var(--accent);
  border-color: transparent;
}

.manage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.manage-editor-backdrop {
  z-index: 35;
  justify-content: center;
  align-items: flex-start;
  overflow: auto;
  padding: 28px;
}

.manage-editor {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 26px;
  background: #151515;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.manage-editor-header {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin: 0 46px 18px 0;
}

.manage-editor-header img {
  width: 96px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--panel-2);
}

.manage-editor-header h2 {
  margin: 6px 0;
  font-size: clamp(26px, 4vw, 42px);
}

.manage-editor-header p {
  margin: 0;
  color: var(--muted);
}

.manage-save-notice {
  position: sticky;
  top: 0;
  z-index: 4;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 9px 14px;
  color: #06291c;
  background: #22c58b;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  animation: saveNoticeIn .18s ease-out;
}

.app-toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  color: #f5f5f5;
  background: rgba(31, 31, 31, .94);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
  font-weight: 800;
  animation: saveNoticeIn .18s ease-out;
}

.app-toast.is-success {
  color: #06291c;
  background: #22c58b;
  border-color: rgba(255, 255, 255, .24);
}

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

.manage-editor-switches,
.asset-upload-row,
.manage-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.manage-editor-switches {
  margin-bottom: 18px;
}

.manage-editor-switches label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-weight: 800;
}

.manage-editor-switches input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.manage-title-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.manage-title-form .wide-field {
  grid-column: 1 / -1;
}

.slider-tag-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
}

.slider-tag-picker legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.slider-tag-picker > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.slider-tag-picker label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-weight: 800;
}

.slider-tag-picker label:has(input:checked) {
  border-color: rgba(245, 158, 11, .65);
  background: rgba(245, 158, 11, .14);
}

.slider-tag-picker input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.slider-tag-picker small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.asset-upload-row label {
  flex: 1 1 260px;
}

.manage-editor-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.live-epg-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
}

.live-epg-editor-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.live-epg-editor-header div {
  display: grid;
  gap: 4px;
}

.live-epg-editor-header span {
  color: var(--muted);
  font-size: 13px;
}

.live-epg-editor-header label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.live-epg-editor textarea {
  min-height: 170px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.manage-episodes-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.manage-episode-list {
  display: grid;
  gap: 8px;
}

.manage-episode-picker {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
}

.episode-link-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px);
  gap: 10px;
  align-items: end;
}

.episode-link-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.episode-link-toolbar input {
  width: 100%;
  color: var(--text);
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.manage-episode-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  background: rgba(0, 0, 0, .18);
}

.manage-episode-choice span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-metadata-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.metadata-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.metadata-search-row input {
  width: 100%;
  color: var(--text);
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.series-match-list {
  display: grid;
  gap: 10px;
}

.series-match-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 16, 16, .72);
}

.series-match-card img {
  width: 56px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
}

.series-match-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.series-match-card span,
.series-match-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.series-match-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.manage-episode-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: rgba(16, 16, 16, .72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.manage-episode-row.is-hidden {
  opacity: .62;
}

.manage-episode-row div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.manage-episode-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-subtitles {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, .2);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.manage-subtitles > div:first-child,
.manage-subtitle-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.manage-subtitles span,
.manage-subtitles small {
  color: var(--muted);
  font-size: 13px;
}

.manage-subtitle-form select {
  width: 132px;
}

.manage-subtitle-form input[type="file"] {
  min-width: 220px;
}

.manage-subtitle-results {
  margin-top: 2px;
}

.toggle-button {
  min-height: 36px;
  padding: 8px 10px;
  color: var(--muted);
  background: #202020;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.toggle-button.is-on {
  color: #141414;
  background: var(--accent-2);
}

.episode-list {
  display: grid;
  gap: 10px;
}

.episode-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  color: var(--text);
  background: #202020;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
}

.episode-row:hover {
  border-color: rgba(245, 158, 11, .48);
}

.episode-row span {
  color: var(--accent);
  font-weight: 900;
}

.episode-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.users-section {
  display: grid;
  gap: 16px;
}

.user-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  background: rgba(24, 24, 24, .72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.user-list {
  display: grid;
  gap: 10px;
}

.crm-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.crm-summary-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(24, 24, 24, .72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.crm-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.crm-summary-card strong {
  color: var(--text);
  font-size: 26px;
}

.user-management-layout {
  display: block;
}

.user-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(420px, auto);
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: rgba(24, 24, 24, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.user-row-button {
  width: 100%;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  color: var(--text);
  text-align: left;
}

.user-row-button:hover,
.user-row-button.is-selected {
  border-color: rgba(245, 158, 11, .48);
  background: rgba(245, 158, 11, .08);
}

.user-row.is-disabled {
  opacity: .62;
}

.user-status-stack {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: var(--muted);
  font-size: 13px;
}

.user-status-stack strong {
  color: var(--text);
  font-size: 14px;
}

.verify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 24px;
  padding: 4px 9px;
  color: rgba(255, 250, 240, .92);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.verify-badge.is-verified {
  color: #06130e;
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.verify-badge.is-pending {
  color: #141414;
  background: var(--accent);
  border-color: var(--accent);
}

.verify-badge.is-muted {
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
}

.stream-list {
  display: grid;
  gap: 10px;
}

.stream-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: rgba(24, 24, 24, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.session-row {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(150px, auto);
}

.session-row.is-watching {
  border-color: rgba(16, 185, 129, .38);
  background: rgba(16, 185, 129, .08);
}

.session-person {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
}

.session-status {
  justify-items: end;
  text-align: right;
}

.stream-progress {
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
}

.stream-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.stream-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.stream-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-section {
  display: grid;
  gap: 18px;
}

.analytics-summary-grid {
  margin-bottom: 0;
}

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

.analytics-section-grid {
  display: grid;
  gap: 14px;
}

.analytics-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: rgba(24, 24, 24, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.analytics-wide-card {
  gap: 14px;
}

.analytics-card-heading,
.analytics-table article,
.analytics-events article,
.analytics-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: 10px;
}

.analytics-card-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.analytics-card-heading h3 {
  margin: 0;
  font-size: 16px;
}

.analytics-heading-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.analytics-export-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.analytics-export-actions .secondary-button {
  min-height: 28px;
  padding: 6px 9px;
  font-size: 11px;
}

.analytics-card-heading span,
.analytics-table span,
.analytics-events span,
.analytics-events time {
  color: var(--muted);
  font-size: 12px;
}

.analytics-table,
.analytics-events {
  display: grid;
  gap: 8px;
}

.analytics-table {
  max-height: 390px;
  overflow: auto;
  padding-right: 4px;
}

.analytics-events.is-compact {
  max-height: 360px;
  overflow: auto;
}

.analytics-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 14px;
  align-items: start;
}

.analytics-mini-panel {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.analytics-table article,
.analytics-events article,
.analytics-user-row {
  padding: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.analytics-user-row {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.analytics-user-row:hover {
  border-color: rgba(245, 158, 11, .5);
  background: rgba(245, 158, 11, .08);
}

.analytics-table article div,
.analytics-events article div,
.analytics-user-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.analytics-table strong,
.analytics-table span,
.analytics-events strong,
.analytics-events span,
.analytics-user-row strong,
.analytics-user-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-see-more {
  justify-self: start;
}

.analytics-user-backdrop {
  z-index: 80;
}

.analytics-user-modal {
  position: relative;
  width: min(980px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #151515;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.analytics-user-header {
  display: grid;
  gap: 4px;
}

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

.analytics-user-header h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
}

.analytics-user-header p {
  margin: 0;
  color: var(--muted);
}

.analytics-user-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.analytics-user-title-row p {
  margin: 0;
}

.analytics-modal-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.analytics-modal-tabs section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.analytics-modal-tabs h3 {
  margin: 0;
}

.analytics-bars {
  display: grid;
  gap: 12px;
}

.analytics-bars article {
  display: grid;
  gap: 8px;
}

.analytics-bars article div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.analytics-bars span {
  color: var(--muted);
}

.analytics-bar {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
}

.analytics-bar i {
  display: block;
  height: 100%;
  background: #12c99b;
}

.transcode-section {
  display: grid;
  gap: 18px;
}

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

.transcode-worker-card,
.transcode-item,
.transcode-job {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  border-radius: 8px;
}

.transcode-worker-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
}

.transcode-worker-card div,
.transcode-item div,
.transcode-job div {
  min-width: 0;
}

.transcode-worker-card strong,
.transcode-item strong,
.transcode-job strong {
  display: block;
  color: var(--text);
}

.transcode-worker-card span,
.transcode-item span,
.transcode-job span,
.transcode-item small,
.transcode-job small {
  color: var(--muted);
}

.transcode-worker-card > span,
.transcode-status > span,
.transcode-job-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.transcode-worker-card .is-on,
.transcode-status .is-on,
.transcode-status .is-ready,
.transcode-job.is-ready .transcode-job-meta > span:first-child {
  background: rgba(20, 184, 166, .18);
  color: #23d3ad;
}

.transcode-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
  gap: 18px;
}

.transcode-list,
.transcode-job-list {
  display: grid;
  gap: 10px;
  max-height: 680px;
  overflow: auto;
  padding-right: 6px;
}

.transcode-content-heading {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.transcode-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 150px auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.transcode-select {
  display: grid;
  place-items: center;
}

.transcode-status {
  display: grid;
  gap: 8px;
}

.transcode-status i,
.transcode-progress {
  display: block;
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, .16);
  border-radius: 999px;
}

.transcode-status i::before,
.transcode-progress i {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: #23d3ad;
  border-radius: inherit;
}

.transcode-job .transcode-progress {
  height: 7px;
  background: rgba(255, 255, 255, .18);
}

.transcode-job-progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.transcode-job-progress b {
  display: block;
  width: 0;
  height: 100%;
  background: #23d3ad;
  border-radius: inherit;
}

.transcode-inline-progress {
  display: block;
  width: 100%;
  height: 7px;
  border: 0;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.transcode-inline-progress.compact {
  height: 5px;
}

.transcode-inline-progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.transcode-inline-progress::-webkit-progress-value {
  background: #23d3ad;
  border-radius: 999px;
}

.transcode-inline-progress::-moz-progress-bar {
  background: #23d3ad;
  border-radius: 999px;
}

.transcode-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.transcode-job {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.transcode-job-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.transcode-job pre {
  max-height: 180px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .4);
  color: var(--muted);
  white-space: pre-wrap;
}

.muted-empty {
  color: var(--muted);
}

.user-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #141414;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 900;
}

.user-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.user-main strong,
.user-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-main span {
  color: var(--muted);
  font-size: 13px;
}

.user-main .user-id-line {
  color: var(--accent);
  font-weight: 800;
}

.user-controls {
  display: grid;
  grid-template-columns: 120px 150px 120px 190px repeat(3, auto) auto auto;
  gap: 8px;
  align-items: center;
}

.profile-admin-list .user-row {
  grid-template-columns: 44px minmax(220px, 1fr) minmax(760px, auto);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.inline-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.user-editor {
  position: relative;
  width: min(860px, calc(100vw - 48px));
  max-height: calc(100vh - 88px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 26px 72px 26px 26px;
  background: rgba(24, 24, 24, .96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
}

.user-editor-backdrop {
  z-index: 35;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 36px 18px;
}

.user-editor-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.user-editor-header .verify-badge {
  grid-column: 2;
  justify-self: start;
}

.user-editor-header h3,
.user-editor-header p {
  margin: 0;
}

.user-editor-header p {
  color: var(--muted);
  font-size: 13px;
}

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

.user-editor-actions,
.danger-zone,
.temp-password-panel {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.temp-password-panel {
  padding: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.temp-password-panel label {
  flex: 1 1 260px;
}

.danger-zone {
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.danger-button {
  color: #fff;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  border-color: rgba(248, 113, 113, .72);
  box-shadow: 0 12px 24px rgba(127, 29, 29, .24);
}

.danger-button:hover:not(:disabled) {
  background: linear-gradient(180deg, #f87171, #dc2626);
  border-color: rgba(252, 165, 165, .9);
}

.upload-section {
  display: grid;
  gap: 16px;
}

.upload-form {
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) 110px 110px minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  background: rgba(24, 24, 24, .72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.upload-actions {
  display: flex;
  align-items: end;
}

.upload-progress {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(24, 24, 24, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.upload-progress div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-progress span {
  color: var(--muted);
  font-size: 13px;
}

.upload-progress .progress-bar.static {
  position: static;
  display: block;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, .09);
}

@media (max-width: 780px) {
  .profile-screen {
    padding-top: 28px;
  }

  .profile-panel h1 {
    margin-top: 54px;
    font-size: 30px;
  }

  .profile-grid {
    gap: 18px;
    margin-top: 64px;
  }

  .profile-card {
    width: 112px;
    min-height: 150px;
  }

  .profile-avatar {
    width: 94px;
    height: 94px;
    font-size: 34px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .site-header {
    min-height: auto;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .96), rgba(0, 0, 0, .82) 78%, rgba(0, 0, 0, 0));
  }

  .site-brand {
    min-width: auto;
  }

  .site-brand span {
    display: none;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 18px;
  }

  .header-spacer {
    display: none;
  }

  .header-search {
    flex: 1 1 160px;
    min-width: 0;
  }

  .content {
    padding: 0 0 34px;
  }

  .topbar,
  .topbar-actions,
  .subtitle-panel > div:first-child,
  .subtitle-player-controls label,
  .subtitle-upload-form,
  .subtitle-results article,
  .manage-subtitle-form,
  .player-control-row,
  .player-left-controls,
  .player-right-controls,
  .detail-layout,
  .title-hero,
  .manage-toolbar,
  .bulk-toolbar,
  .scan-panel-header,
  .episode-row,
  .manage-row,
  .upload-form,
  .user-form,
  .crm-summary-grid,
  .user-management-layout,
  .user-row,
  .profile-admin-list .user-row,
  .user-controls,
  .user-editor-grid,
  .user-billing-panel-large,
  .billing-event-row,
  .analytics-grid,
  .analytics-split,
  .analytics-modal-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .analytics-card-heading,
  .analytics-table article,
  .analytics-events article,
  .analytics-user-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .analytics-heading-meta {
    justify-content: flex-start;
  }

  .analytics-user-modal {
    width: calc(100vw - 20px);
    padding: 18px;
  }

  .user-editor {
    position: static;
  }

  .manage-row img {
    width: 96px;
  }

  .manage-search {
    width: 100%;
  }

  .manage-actions {
    justify-content: stretch;
  }

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

  .search-box {
    width: 100%;
  }

  .page-heading {
    padding: 146px 14px 0;
  }

  .home-hero {
    min-height: 68vh;
    margin: 0;
    padding: 142px 18px 178px;
    width: 100%;
    max-width: 100%;
  }

  .home-hero-copy h2 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .home-hero-copy p:not(.watch-facts) {
    display: none;
  }

  .home-hero-thumb-strip {
    left: 18px;
    right: 18px;
    bottom: 60px;
    width: auto;
  }

  .home-hero-thumbs button {
    width: 58px;
    height: 34px;
  }

  .home-hero-dots {
    left: 18px;
    bottom: 24px;
  }

  .scan-panel,
  .library-section,
  .live-watch-page,
  .rail-section,
  .empty-state {
    margin-left: 14px;
    margin-right: 14px;
  }

  .live-watch-heading,
  .live-watch-layout,
  .live-epg-editor-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .live-watch-layout {
    gap: 14px;
  }

  .live-guide-panel {
    max-height: none;
  }

  .live-guide-list {
    max-height: 520px;
  }

  .player-controls {
    position: static;
    padding: 12px;
    background: #101010;
  }

  .standalone-player .player-controls {
    position: absolute;
    background: linear-gradient(0deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .66) 68%, transparent);
  }

  .player {
    max-height: 58vh;
  }

  .standalone-player .player {
    height: auto;
    max-height: 100vh;
  }

  .player-left-controls,
  .player-right-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .player-button,
  .player-select select,
  .player-volume input {
    width: 100%;
  }

  .player-time {
    grid-column: 1 / -1;
  }

  .player-episode-overlay {
    left: 12px;
    right: 12px;
    bottom: 150px;
    width: auto;
    max-height: min(360px, calc(100% - 190px));
  }

  .player-skip-tools,
  .player-next-overlay {
    left: 12px;
    right: 12px;
    bottom: 150px;
    width: auto;
  }

  .player-skip-tools {
    flex-wrap: wrap;
  }

  .player-episode-overlay-list button {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
    gap: 14px;
  }

  .detail-poster {
    width: 142px;
  }

  .title-hero {
    min-height: auto;
    padding: 18px;
  }

  .watch-hero {
    min-height: 74vh;
    margin: -18px -14px 0;
    padding: 86px 18px 42px;
  }

  .title-overlay {
    padding: 12px;
  }

  .title-modal {
    width: 100%;
    min-height: calc(100vh - 24px);
  }

  .title-modal .watch-hero {
    min-height: 62vh;
    margin: 0;
    padding: 78px 18px 36px;
  }

  .series-episode-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .series-episode-card {
    grid-template-columns: 1fr;
  }

  .series-episode-card img {
    max-width: 100%;
  }

  .watch-actions {
    align-items: stretch;
  }

  .watch-primary-button {
    min-width: 0;
    flex: 1 1 auto;
  }

  .cast-card {
    width: 82px;
  }
}
.trailer-download-settings-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.trailer-download-settings-panel small {
  display: block;
  color: var(--muted-color, #9ca3af);
  margin-top: 0.25rem;
}

.trailer-download-inline {
  display: grid;
  gap: 0.8rem;
}

.trailer-download-jobs {
  display: grid;
  gap: 0.65rem;
}

.trailer-manager-section {
  gap: 18px;
}

.trailer-manager-form {
  display: grid;
  gap: 12px;
}

.trailer-manager-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.trailer-manager-form input,
.trailer-manager-form select {
  width: 100%;
}

.trailer-library-results {
  max-height: 420px;
}

.trailer-download-job small {
  display: block;
  max-width: 100%;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trailer-download-job .is-danger {
  color: #fca5a5;
}

/* 2026-08-24 hero spacing and scroll cutoff refinement */
.home-hero {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1;
  height: clamp(740px, 92vh, 940px);
  min-height: 740px;
  margin: 0 0 clamp(-100px, -8vh, -56px);
  padding-top: clamp(150px, 18vh, 218px);
  padding-bottom: clamp(210px, 26vh, 300px);
}

.home-hero-copy {
  width: min(600px, 45vw);
  margin-top: clamp(30px, 5vh, 70px);
  margin-bottom: clamp(70px, 10vh, 130px);
}

.home-hero-copy h2 {
  font-size: clamp(46px, 6.3vw, 88px);
  line-height: .92;
}

.home-hero-backdrop,
.home-hero-video-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: 100vw;
  height: 100vh;
  min-height: 740px;
  z-index: -1;
}

.home-hero-backdrop {
  object-fit: cover;
  object-position: center center;
}

.home-hero-video-shell {
  inset: auto;
}

.home-hero-video-shell .home-hero-trailer {
  width: max(100vw, 185vh) !important;
  height: max(100vh, 54vw) !important;
  transform: translate(-50%, -50%) scale(1.04) !important;
}

.home-hero::before,
.home-hero::after {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-height: 740px;
  inset: auto;
  z-index: 0;
}

.home-hero-copy,
.home-hero-controls,
.home-hero-thumb-strip,
.home-hero-dots {
  z-index: 2;
}

.home-hero-thumb-strip {
  bottom: clamp(184px, 22vh, 260px);
}

.home-hero-controls {
  bottom: clamp(266px, 31vh, 348px);
}

.home-hero-dots {
  bottom: clamp(152px, 18vh, 214px);
}

.home-hero + .rail-section,
.home-hero + .media-section,
.home-hero + .library-section {
  margin-top: 0;
}

.home-hero ~ .rail-section,
.home-hero ~ .media-section,
.home-hero ~ .library-section {
  position: relative;
  z-index: 4;
}

.home-hero-background-off .home-hero-backdrop,
.home-hero-background-off .home-hero-video-shell,
.home-hero.is-scrolled-past::before,
.home-hero.is-scrolled-past::after {
  opacity: 0 !important;
  visibility: hidden;
}

.home-hero-background-off .home-hero ~ .rail-section,
.home-hero-background-off .home-hero ~ .media-section,
.home-hero-background-off .home-hero ~ .library-section {
  background: var(--bg);
}

@media (max-width: 760px) {
  .home-hero {
    height: auto;
    min-height: 650px;
    margin-bottom: 0;
    padding-top: 142px;
    padding-bottom: 128px;
  }

  .home-hero-copy {
    margin: 0;
    width: 100%;
  }

  .home-hero-backdrop,
  .home-hero-video-shell,
  .home-hero::before,
  .home-hero::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    z-index: 0;
  }
}

/* 2026-08-24 hero bottom mask and cleaner trailer handoff */
.home-hero {
  height: clamp(780px, 96vh, 980px);
  min-height: 760px;
  margin-bottom: clamp(-42px, -3.5vh, -18px);
}

.home-hero::after {
  background:
    radial-gradient(ellipse at 60% 32%, transparent 0%, transparent 34%, rgba(17, 17, 17, .48) 66%, var(--bg) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, .96) 0%, rgba(17, 17, 17, .46) 16%, transparent 36%, rgba(17, 17, 17, .34) 56%, rgba(17, 17, 17, .9) 76%, var(--bg) 92%, var(--bg) 100%),
    linear-gradient(0deg, var(--bg) 0%, var(--bg) 22%, rgba(17, 17, 17, .96) 38%, rgba(17, 17, 17, .58) 58%, transparent 82%),
    linear-gradient(90deg, var(--bg) 0%, rgba(17, 17, 17, .88) 9%, rgba(17, 17, 17, .28) 38%, transparent 72%, rgba(17, 17, 17, .58) 90%, var(--bg) 100%);
}

.home-hero-backdrop,
.home-hero-video-shell,
.home-hero::before,
.home-hero::after {
  transition: opacity .36s ease;
}

.home-hero + .rail-section {
  margin-top: clamp(34px, 4.5vh, 64px);
}

.home-hero-background-off .home-hero-backdrop,
.home-hero-background-off .home-hero-video-shell,
.home-hero.is-scrolled-past::before,
.home-hero.is-scrolled-past::after {
  opacity: 0 !important;
  visibility: visible;
}

.home-hero-background-off .home-hero {
  background: transparent;
}

.home-hero-background-off .home-hero + .rail-section {
  margin-top: clamp(18px, 3vh, 34px);
}

/* 2026-08-24 remove trailer fades and prevent bottom bleed */
.home-hero {
  height: calc(100vh + 92px);
  min-height: 840px;
  margin-bottom: 0;
}

.home-hero::after {
  background:
    radial-gradient(ellipse at 60% 32%, transparent 0%, transparent 34%, rgba(17, 17, 17, .5) 66%, var(--bg) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, .96) 0%, rgba(17, 17, 17, .42) 16%, transparent 36%, rgba(17, 17, 17, .48) 56%, rgba(17, 17, 17, .96) 76%, var(--bg) 88%, var(--bg) 100%),
    linear-gradient(0deg, var(--bg) 0%, var(--bg) 34%, rgba(17, 17, 17, .98) 52%, rgba(17, 17, 17, .58) 70%, transparent 90%),
    linear-gradient(90deg, var(--bg) 0%, rgba(17, 17, 17, .88) 9%, rgba(17, 17, 17, .28) 38%, transparent 72%, rgba(17, 17, 17, .58) 90%, var(--bg) 100%);
}

.home-hero-backdrop,
.home-hero-video-shell,
.home-hero::before,
.home-hero::after {
  transition: none !important;
}

.home-hero.is-trailer-ready .home-hero-backdrop {
  opacity: 0 !important;
  visibility: hidden !important;
}

.home-hero + .rail-section {
  margin-top: 0;
}

.home-hero-background-off .home-hero-backdrop,
.home-hero-background-off .home-hero-video-shell,
.home-hero.is-scrolled-past::before,
.home-hero.is-scrolled-past::after {
  opacity: 0 !important;
  visibility: hidden !important;
}

.home-hero-background-off .home-hero {
  height: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.home-hero-background-off .home-hero > * {
  display: none !important;
}

.home-hero-background-off .home-hero + .rail-section {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .home-hero {
    height: auto;
    min-height: 650px;
  }

  .home-hero-background-off .home-hero {
    min-height: 0;
  }
}

.home-hero-background-off .home-hero {
  height: calc(100vh + 92px);
  min-height: 840px;
  padding-top: clamp(150px, 18vh, 218px);
  padding-bottom: clamp(210px, 26vh, 300px);
}

@media (max-width: 760px) {
  .home-hero-background-off .home-hero {
    height: auto;
    min-height: 650px;
  }
}

/* 2026-08-24 stable hero layer: no fade, no disappearing banner on return */
.home-hero,
.home-hero.home-hero-background-off {
  height: clamp(760px, calc(100vh + 118px), 960px);
  min-height: 760px;
  margin-bottom: 0;
  padding-top: clamp(144px, 17vh, 198px);
  padding-bottom: clamp(240px, 30vh, 340px);
  background: var(--bg);
  overflow: hidden;
}

.home-hero::before,
.home-hero::after,
.home-hero-backdrop,
.home-hero-video-shell {
  transition: none !important;
}

.home-hero-backdrop,
.home-hero.is-trailer-ready .home-hero-backdrop {
  opacity: .64 !important;
  visibility: visible !important;
}

.home-hero-video-shell {
  opacity: 0 !important;
  visibility: hidden !important;
}

.home-hero.is-trailer-ready:not(.is-scrolled-past) .home-hero-video-shell {
  opacity: 1 !important;
  visibility: visible !important;
}

.home-hero.is-scrolled-past .home-hero-video-shell {
  opacity: 0 !important;
  visibility: hidden !important;
}

.home-hero.is-scrolled-past::before,
.home-hero.is-scrolled-past::after {
  opacity: 1 !important;
  visibility: visible !important;
}

.home-hero-background-off .home-hero > * {
  display: revert !important;
}

.home-hero-background-off .home-hero-video-shell {
  display: block !important;
}

.home-hero::after {
  background:
    radial-gradient(ellipse at 60% 32%, transparent 0%, transparent 34%, rgba(17, 17, 17, .5) 66%, var(--bg) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, .96) 0%, rgba(17, 17, 17, .42) 16%, transparent 36%, rgba(17, 17, 17, .5) 56%, rgba(17, 17, 17, .98) 76%, var(--bg) 88%, var(--bg) 100%),
    linear-gradient(0deg, var(--bg) 0%, var(--bg) 40%, rgba(17, 17, 17, .98) 58%, rgba(17, 17, 17, .66) 74%, transparent 92%),
    linear-gradient(90deg, var(--bg) 0%, rgba(17, 17, 17, .9) 9%, rgba(17, 17, 17, .32) 38%, transparent 72%, rgba(17, 17, 17, .62) 90%, var(--bg) 100%);
}

.home-hero::before {
  box-shadow: inset 0 -220px 120px -88px var(--bg);
}

.home-hero + .rail-section {
  margin-top: 18px;
}

.home-hero-background-off .home-hero + .rail-section {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .home-hero,
  .home-hero.home-hero-background-off,
  .home-hero-background-off .home-hero {
    height: auto;
    min-height: 650px;
    padding-top: 142px;
    padding-bottom: 128px;
  }
}

/* 2026-08-24 fixed-background hero cleanup: no fades, no rail bleed */
.home-hero {
  min-height: clamp(760px, 92vh, 920px);
  margin-bottom: 0;
  background: var(--bg);
}

.home-hero-backdrop,
.home-hero-video-shell,
.home-hero-video-shell .home-hero-trailer,
.home-hero::before,
.home-hero::after {
  transition: none !important;
  animation: none !important;
}

.home-hero-backdrop,
.home-hero-video-shell,
.home-hero::before,
.home-hero::after {
  top: 0 !important;
  height: 100vh !important;
  min-height: 760px !important;
}

.home-hero.is-trailer-ready .home-hero-backdrop {
  opacity: .62 !important;
  visibility: visible !important;
}

.home-hero-video-shell {
  opacity: 0 !important;
  visibility: hidden !important;
}

.home-hero.is-trailer-ready:not(.is-scrolled-past) .home-hero-video-shell {
  opacity: 1 !important;
  visibility: visible !important;
}

.home-hero.is-scrolled-past .home-hero-video-shell,
.home-hero-background-off .home-hero-video-shell,
.home-hero-background-off .home-hero-backdrop,
.home-hero.is-scrolled-past::before,
.home-hero.is-scrolled-past::after {
  opacity: 0 !important;
  visibility: hidden !important;
}

.home-hero-video-shell .home-hero-trailer,
.home-hero.is-intro .home-hero-trailer {
  opacity: 1 !important;
  visibility: visible !important;
}

.home-hero-background-off .home-hero > * {
  display: revert !important;
}

.home-hero + .rail-section,
.home-hero-background-off .home-hero + .rail-section {
  margin-top: clamp(42px, 5vh, 72px) !important;
}

.home-hero ~ .rail-section,
.home-hero ~ .media-section,
.home-hero ~ .library-section {
  background: var(--bg) !important;
  box-shadow: 0 -90px 70px 18px var(--bg);
}

@media (max-width: 760px) {
  .home-hero-backdrop,
  .home-hero-video-shell,
  .home-hero::before,
  .home-hero::after {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
  }
}

/* 2026-08-24 remove all homepage hero black fade overlays */
.home-hero::before,
.home-hero::after {
  background: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.home-hero.is-scrolled-past::before,
.home-hero.is-scrolled-past::after {
  background: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.home-hero ~ .rail-section,
.home-hero ~ .media-section,
.home-hero ~ .library-section {
  box-shadow: none !important;
}

/* 2026-08-24 cleaner scroll handoff once rows enter the viewport */
.home-hero-background-off .home-hero-backdrop,
.home-hero-background-off .home-hero-video-shell {
  opacity: 0 !important;
  visibility: hidden !important;
}

.home-hero-background-off .home-hero,
.home-hero-background-off .home-hero ~ .rail-section,
.home-hero-background-off .home-hero ~ .media-section,
.home-hero-background-off .home-hero ~ .library-section {
  background: var(--bg) !important;
  box-shadow: none !important;
}

/* 2026-08-24 hide hero chrome during slider scroll */
.home-hero-background-off .home-hero-copy,
.home-hero-background-off .home-hero-controls,
.home-hero-background-off .home-hero-thumb-strip,
.home-hero-background-off .home-hero-dots {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

.home-hero-background-off .home-hero-backdrop,
.home-hero-background-off .home-hero-video-shell,
.home-hero-background-off .home-hero::before,
.home-hero-background-off .home-hero::after {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: none !important;
}

/* 2026-08-24 force platform background while homepage is scrolled */
body.home-hero-background-off,
body.home-hero-background-off #app,
body.home-hero-background-off .app-shell,
body.home-hero-background-off .home-hero,
body.home-hero-background-off .home-hero ~ .rail-section,
body.home-hero-background-off .home-hero ~ .media-section,
body.home-hero-background-off .home-hero ~ .library-section {
  background: var(--bg) !important;
  background-image: none !important;
}

body.home-hero-background-off .home-hero-backdrop,
body.home-hero-background-off .home-hero-video-shell,
body.home-hero-background-off .home-hero-video-shell iframe,
body.home-hero-background-off .home-hero-video-shell video,
body.home-hero-background-off #home-hero-player {
  opacity: 0 !important;
  visibility: hidden !important;
}

body.home-hero-background-off .home-hero-copy,
body.home-hero-background-off .home-hero-controls,
body.home-hero-background-off .home-hero-thumb-strip,
body.home-hero-background-off .home-hero-dots {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 2026-08-24 Disney-style scroll-linked hero fade */
body:not(.home-hero-background-off) .home-hero-backdrop {
  opacity: var(--home-hero-scroll-opacity, 1) !important;
  visibility: visible !important;
  transition: none !important;
}

body:not(.home-hero-background-off) .home-hero.is-trailer-ready .home-hero-backdrop {
  opacity: 0 !important;
  visibility: hidden !important;
}

body:not(.home-hero-background-off) .home-hero.is-trailer-ready .home-hero-video-shell {
  opacity: var(--home-hero-scroll-opacity, 1) !important;
  visibility: visible !important;
  transition: none !important;
}

body:not(.home-hero-background-off) .home-hero-copy,
body:not(.home-hero-background-off) .home-hero-controls,
body:not(.home-hero-background-off) .home-hero-thumb-strip,
body:not(.home-hero-background-off) .home-hero-dots {
  opacity: var(--home-hero-scroll-opacity, 1) !important;
  transition: none !important;
}

body.home-hero-background-off .home-hero {
  background: var(--bg) !important;
}

/* 2026-08-26 TV7 client brand pass */
:root {
  --bg: #031326;
  --panel: rgba(7, 22, 42, .92);
  --panel-2: rgba(11, 31, 58, .92);
  --line: rgba(214, 212, 206, .18);
  --text: #ffffff;
  --muted: #9ba9bd;
  --accent: #1e5bb8;
  --accent-2: #3f82ea;
  --danger: #ef4444;
  --shadow: 0 24px 70px rgba(0, 0, 0, .46);
}

body {
  background:
    radial-gradient(circle at 78% 8%, rgba(30, 91, 184, .3), transparent 30%),
    linear-gradient(180deg, #071a32 0%, #031326 46%, #020b16 100%) !important;
}

.brand-mark {
  width: 48px;
  height: 48px;
  background: url("/assets/tv7-favicon.png") center / contain no-repeat !important;
  color: transparent !important;
  border-radius: 6px;
  filter: drop-shadow(0 10px 18px rgba(30, 91, 184, .28));
}

.brand-mark::before {
  content: none !important;
}

.site-brand .brand-mark,
.front-door-brand .brand-mark {
  width: 136px;
  height: 44px;
  background-image: url("/assets/tv7-logo.png") !important;
}

.site-brand {
  min-width: 220px;
}

.site-brand strong,
.front-door-brand strong,
.profile-brand {
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-brand span {
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
  font-weight: 700;
}

.site-header {
  min-height: 82px;
  background:
    linear-gradient(180deg, rgba(3, 19, 38, .96), rgba(3, 19, 38, .72) 62%, rgba(3, 19, 38, 0)) !important;
}

.nav-button {
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-button:hover,
.nav-button.active {
  color: #fff;
}

.nav-button.active::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent-2);
}

.primary-button,
.watch-primary-button,
.front-door-actions .primary-button {
  color: #fff !important;
  background: linear-gradient(180deg, #2f7ff0, #145ac4) !important;
  border-color: rgba(97, 165, 255, .42) !important;
  box-shadow: 0 14px 28px rgba(30, 91, 184, .28);
}

.secondary-button,
.watch-square-button,
.front-door-login {
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(214, 212, 206, .2) !important;
  color: #fff !important;
}

.home-hero {
  background:
    radial-gradient(circle at 72% 18%, rgba(30, 91, 184, .34), transparent 32%),
    linear-gradient(90deg, #031326 0%, #071a32 54%, #0b1f3a 100%) !important;
}

.home-hero-copy {
  width: min(600px, 42vw);
}

.home-hero-status {
  color: var(--accent-2) !important;
  text-transform: uppercase;
}

.home-hero-copy .eyebrow {
  color: var(--accent-2) !important;
}

.home-hero-dots span,
.resume-progress-track {
  background: rgba(255, 255, 255, .28);
}

.home-hero-dots .is-active,
.resume-progress-fill {
  background: var(--accent-2) !important;
}

.rail-section {
  padding-left: clamp(28px, 4vw, 72px);
  padding-right: clamp(28px, 4vw, 72px);
}

.section-heading h2 {
  color: #fff;
}

.section-heading::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent-2);
}

.movie-card {
  color: #fff;
}

.poster-button {
  border: 1px solid rgba(214, 212, 206, .16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
}

.poster-button::after {
  background: linear-gradient(0deg, rgba(3, 19, 38, .82), transparent 55%);
}

.search-box input,
input,
textarea,
select {
  background-color: rgba(255, 255, 255, .08);
  border-color: rgba(214, 212, 206, .18);
}

.front-door {
  background:
    radial-gradient(circle at 78% 14%, rgba(30, 91, 184, .35), transparent 34%),
    linear-gradient(135deg, #031326 0%, #071a32 48%, #020b16 100%) !important;
}

/* 2026-08-25 transparent homepage rails during hero fade */
.home-hero ~ .rail-section,
.home-hero ~ .media-section,
.home-hero ~ .library-section,
body.home-hero-background-off .home-hero ~ .rail-section,
body.home-hero-background-off .home-hero ~ .media-section,
body.home-hero-background-off .home-hero ~ .library-section {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.home-hero ~ .rail-section::before,
.home-hero ~ .rail-section::after,
.home-hero ~ .media-section::before,
.home-hero ~ .media-section::after,
.home-hero ~ .library-section::before,
.home-hero ~ .library-section::after {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 2026-08-25 keep trailer scroll fade on platform background */
.home-hero.is-trailer-scroll-fading {
  background: var(--bg) !important;
  background-image: none !important;
}

.home-hero.is-trailer-scroll-fading .home-hero-backdrop,
.home-hero.is-trailer-scroll-fading::before,
.home-hero.is-trailer-scroll-fading::after {
  opacity: 0 !important;
  visibility: hidden !important;
  background: none !important;
  box-shadow: none !important;
}

.home-hero.is-trailer-scroll-fading .home-hero-video-shell {
  opacity: var(--home-hero-scroll-opacity, 1) !important;
  visibility: visible !important;
}


.series-match-card.is-selected {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .08);
}

.metadata-choice-panel,
.metadata-choice-group {
  display: grid;
  gap: 12px;
}

.metadata-choice-panel {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 16, 16, .55);
}

.metadata-choice-group > strong {
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
}

.metadata-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 10px;
}

.metadata-image-grid.backdrop-grid {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.metadata-image-choice {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.metadata-image-choice img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.metadata-image-choice.backdrop-choice img {
  aspect-ratio: 16 / 9;
}

.metadata-image-choice span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.metadata-image-choice.is-selected,
.metadata-trailer-choice.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
}

.metadata-trailer-list {
  display: grid;
  gap: 8px;
}

.metadata-trailer-choice {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.metadata-trailer-choice small {
  color: var(--muted);
  font-size: 12px;
}

.login-screen {
  min-height: 100vh;
  display: block;
  padding: 0;
  background: #050506;
}

.front-door {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #050506;
}

.front-door-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, .98) 0%, rgba(5, 5, 6, .86) 42%, rgba(5, 5, 6, .55) 100%),
    radial-gradient(circle at 78% 18%, rgba(37, 99, 235, .32), transparent 34%),
    radial-gradient(circle at 62% 82%, rgba(14, 165, 233, .22), transparent 36%),
    #050506;
}

.front-door::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36vh;
  z-index: -1;
  background: linear-gradient(0deg, #050506 12%, rgba(5, 5, 6, 0));
}

.front-door-glow {
  position: absolute;
  width: 34vw;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .48;
}

.front-door-glow-one {
  right: 6vw;
  top: 8vh;
  background: rgba(41, 121, 255, .36);
}

.front-door-glow-two {
  right: 28vw;
  bottom: 6vh;
  background: rgba(37, 99, 235, .28);
}

.front-door-poster-wall {
  position: absolute;
  top: 8vh;
  right: -4vw;
  width: min(760px, 58vw);
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 14px;
  transform: perspective(900px) rotateY(-12deg) rotateZ(2deg);
  opacity: .9;
}

.front-door-poster-wall span {
  min-height: 168px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.42)),
    var(--poster-bg, #27272a);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

.front-door-poster-wall span:nth-child(1),
.front-door-poster-wall span:nth-child(8) { --poster-bg: #1d4ed8; }
.front-door-poster-wall span:nth-child(2),
.front-door-poster-wall span:nth-child(11) { --poster-bg: #b91c1c; }
.front-door-poster-wall span:nth-child(3),
.front-door-poster-wall span:nth-child(10) { --poster-bg: #047857; }
.front-door-poster-wall span:nth-child(4),
.front-door-poster-wall span:nth-child(7) { --poster-bg: #7c2d12; }
.front-door-poster-wall span:nth-child(5),
.front-door-poster-wall span:nth-child(12) { --poster-bg: #581c87; }
.front-door-poster-wall span:nth-child(6),
.front-door-poster-wall span:nth-child(9) { --poster-bg: #334155; }

.front-door-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 68px);
}

.front-door-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 900;
}

.front-door-login {
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  font-weight: 900;
}

.front-door-login:hover {
  background: rgba(255, 255, 255, .24);
}

.front-door-layout {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
  padding: 18px clamp(20px, 5vw, 68px) 56px;
}

.front-door-copy {
  max-width: 720px;
}

.front-door-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.front-door-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(40px, 7vw, 86px);
  line-height: .96;
}

.front-door-copy > p:not(.front-door-kicker) {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(247, 242, 234, .78);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
}

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

.front-door-actions .primary-button {
  min-width: 190px;
  min-height: 48px;
}

.front-door-actions span {
  color: rgba(247, 242, 234, .66);
  font-size: 14px;
  font-weight: 700;
}

.front-door-auth {
  justify-self: end;
  width: min(420px, 100%);
}

.front-door-auth .login-panel {
  width: 100%;
  backdrop-filter: blur(20px);
  background: rgba(18, 18, 20, .78);
  border-color: rgba(255, 255, 255, .16);
}

.front-door-auth .login-panel h1 {
  font-size: 28px;
}

@media (max-width: 900px) {
  .front-door-layout {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 28px;
  }

  .front-door-auth {
    justify-self: stretch;
    width: 100%;
  }

  .front-door-poster-wall {
    right: -28vw;
    width: 92vw;
    opacity: .38;
  }
}

@media (max-width: 560px) {
  .front-door-nav {
    padding: 18px;
  }

  .front-door-layout {
    padding: 12px 18px 36px;
  }

  .front-door-copy h1 {
    font-size: 40px;
  }

  .front-door-poster-wall {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
    gap: 10px;
  }

  .front-door-poster-wall span {
    min-height: 136px;
  }
}

.front-door.is-landing .front-door-layout {
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  align-items: start;
  text-align: left;
  padding-top: clamp(34px, 6vh, 76px);
}

.front-door.is-landing .front-door-copy {
  width: 100%;
  max-width: none;
  margin: 0;
}

.front-door.is-landing .front-door-copy h1 {
  max-width: min(980px, 72vw);
}

.front-door.is-landing .front-door-copy > p:not(.front-door-kicker) {
  max-width: 720px;
  margin-left: 0;
  margin-right: 0;
}

.front-door.is-landing .front-door-actions {
  justify-content: flex-start;
}

.front-door.is-landing .front-door-preview {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  grid-auto-columns: minmax(104px, 150px);
}

.front-door.is-landing .front-door-trailer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.front-door.is-landing .front-door-auth {
  display: none;
}


.front-door-preview {
  width: min(920px, 100%);
  margin: clamp(30px, 5vh, 54px) auto 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, 124px);
  gap: 12px;
  overflow: hidden;
  padding: 4px 0 18px;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.front-door-preview article {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
}

.front-door-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


.front-door-trailer {
  width: min(920px, 100%);
  margin: 8px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background: #050506;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
}

.front-door-trailer-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, .92), rgba(5, 5, 6, .44), rgba(5, 5, 6, .9)),
    var(--landing-trailer-poster, none) center / cover no-repeat,
    #050506;
}

.front-door-trailer-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  pointer-events: none;
}

.front-door-trailer-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(90deg, rgba(5, 5, 6, .84) 0%, rgba(5, 5, 6, .38) 42%, rgba(5, 5, 6, .16) 100%), linear-gradient(0deg, rgba(5, 5, 6, .72) 0%, transparent 42%);
  pointer-events: none;
}

.front-door-trailer-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(320px, 70%);
  min-width: 0;
}

.front-door-trailer-copy span {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.front-door-trailer-copy strong {
  color: #fff;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.04;
}

.front-door-trailer-controls {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.front-door-trailer-controls button {
  min-width: 86px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #111;
  background: rgba(255, 255, 255, .92);
  font-weight: 800;
  cursor: pointer;
}

.front-door-trailer-controls button + button {
  color: #fff;
  background: rgba(255, 255, 255, .18);
}

@media (max-width: 900px) {
  .front-door.is-landing .front-door-copy h1 {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .front-door-preview {
    grid-auto-columns: minmax(76px, 96px);
    gap: 10px;
    margin-top: 24px;
  }

  .front-door-trailer-overlay {
    padding: 16px;
  }

  .front-door-trailer-copy {
    width: 78%;
  }

  .front-door-trailer-controls button {
    min-width: 74px;
    padding: 9px 12px;
  }
}

/* 2026-08-26 TV7 homepage rail alignment and live card cleanup */
.home-hero ~ .rail-section {
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: clamp(72px, 7.5vw, 144px);
  padding-right: clamp(72px, 7.5vw, 144px);
}

.home-hero ~ .rail-section .section-heading {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.home-hero ~ .rail-section .section-heading::after {
  content: none !important;
  display: none !important;
}

.home-hero ~ .rail-section .section-heading h2 {
  position: relative;
  display: inline-block;
}

.home-hero ~ .rail-section .section-heading h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent-2);
}

.home-hero ~ .rail-section .rail-heading-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.home-hero ~ .rail-section:not(.is-scrollable) .rail-heading-actions {
  display: none;
}

.rail-view-all,
.rail-arrow {
  color: #fff !important;
  background: rgba(11, 31, 58, .74) !important;
  border-color: rgba(214, 212, 206, .2) !important;
}

.rail-view-all:hover,
.rail-arrow:hover {
  color: #fff !important;
  background: #1e5bb8 !important;
  border-color: rgba(97, 165, 255, .68) !important;
}

.live-card .poster-button {
  background:
    linear-gradient(135deg, rgba(3, 19, 38, .96), rgba(11, 31, 58, .98)) !important;
  border-color: rgba(30, 91, 184, .55) !important;
}

.live-card .series-count,
.live-mini-card.active .poster-button,
.player-live-badge {
  background: #1e5bb8 !important;
  border-color: rgba(97, 165, 255, .66) !important;
  color: #fff !important;
}

.live-guide-item.is-now {
  background: rgba(30, 91, 184, .16) !important;
  border-color: rgba(97, 165, 255, .48) !important;
}

.live-guide-item time {
  color: #61a5ff !important;
}

@media (max-width: 900px) {
  .home-hero ~ .rail-section {
    padding-left: clamp(20px, 5vw, 42px);
    padding-right: clamp(20px, 5vw, 42px);
  }
}

/* 2026-08-26 TV7 full-width homepage rail correction */
.home-hero ~ .rail-section {
  padding-left: clamp(48px, 4.2vw, 82px) !important;
  padding-right: clamp(48px, 4.2vw, 82px) !important;
}

.home-hero ~ .rail-section .poster-rail {
  width: 100%;
  padding-right: clamp(44px, 4vw, 76px);
  scroll-padding-left: clamp(48px, 4.2vw, 82px);
  scroll-padding-right: clamp(48px, 4.2vw, 82px);
}

@media (max-width: 900px) {
  .home-hero ~ .rail-section {
    padding-left: clamp(18px, 5vw, 34px) !important;
    padding-right: clamp(18px, 5vw, 34px) !important;
  }

  .home-hero ~ .rail-section .poster-rail {
    padding-right: clamp(18px, 5vw, 34px);
    scroll-padding-left: clamp(18px, 5vw, 34px);
    scroll-padding-right: clamp(18px, 5vw, 34px);
  }
}

/* 2026-08-26 TV7 player control color cleanup */
.media-player:focus {
  outline-color: rgba(97, 165, 255, .72) !important;
}

.player-center-play {
  color: #fff !important;
  background: #3f82ea !important;
  box-shadow: 0 18px 42px rgba(30, 91, 184, .42) !important;
}

.player-message,
.player-skip-tools,
.player-next-overlay,
.player-episode-overlay {
  border-color: rgba(97, 165, 255, .38) !important;
}

.player-buffer::after {
  background: #1e5bb8 !important;
}

.player-volume input {
  accent-color: #61a5ff !important;
}

.player-button:hover,
.player-smart-button:hover,
.player-episode-overlay-list button:hover,
.player-episode-overlay-list button.is-current {
  background: rgba(97, 165, 255, .2) !important;
  border-color: rgba(97, 165, 255, .48) !important;
}

.player-smart-button.is-primary,
.player-pause-backdrop-toggle.is-on {
  color: #fff !important;
  background: #3f82ea !important;
  border-color: #61a5ff !important;
}

.player-season-select select {
  border-color: rgba(97, 165, 255, .42) !important;
}

.player-episode-overlay-list span {
  color: #61a5ff !important;
}

.hero-trailer-controls .hero-trailer-button:hover,
.home-hero-controls .hero-trailer-button:hover,
.watch-square-button:hover,
.watch-square-button.is-on {
  color: #fff !important;
  background: #3f82ea !important;
  border-color: #61a5ff !important;
}

/* 2026-08-26 TV7 actor results and live fallback poster cleanup */
.title-modal .actor-results .section-heading,
.watch-sections .actor-results .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.title-modal .actor-results .section-heading::after,
.watch-sections .actor-results .section-heading::after {
  content: none !important;
  display: none !important;
}

.title-modal .actor-results .section-heading h2,
.watch-sections .actor-results .section-heading h2 {
  position: relative;
  display: inline-block;
}

.title-modal .actor-results .section-heading h2::after,
.watch-sections .actor-results .section-heading h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: #3f82ea;
}

.title-modal .actor-results .rail-heading-actions,
.watch-sections .actor-results .rail-heading-actions {
  margin-left: auto;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.title-modal .actor-results .poster-rail,
.watch-sections .actor-results .poster-rail {
  padding-right: 0;
}

.live-card .poster-button,
.live-mini-card .poster-button {
  isolation: isolate;
}

.live-card .poster-button img[src^="data:image/svg+xml"],
.live-mini-card .poster-button img[src^="data:image/svg+xml"] {
  opacity: 0 !important;
}

.live-card .poster-button:has(img[src^="data:image/svg+xml"]),
.live-mini-card .poster-button:has(img[src^="data:image/svg+xml"]) {
  background:
    radial-gradient(circle at 50% 38%, rgba(97, 165, 255, .2), transparent 38%),
    linear-gradient(135deg, #031326, #0b1f3a) !important;
}

.live-card .poster-button:has(img[src^="data:image/svg+xml"])::before,
.live-mini-card .poster-button:has(img[src^="data:image/svg+xml"])::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #3f82ea;
  box-shadow: 0 14px 30px rgba(30, 91, 184, .38);
  transform: translate(-50%, -50%);
}

.live-card .poster-button:has(img[src^="data:image/svg+xml"])::after,
.live-mini-card .poster-button:has(img[src^="data:image/svg+xml"])::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 3;
  width: 26px;
  height: 30px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-38%, -50%);
}

/* 2026-08-26 TV7 full-width actor result rail in title popup */
.title-modal .watch-sections .actor-results,
.watch-sections .actor-results {
  width: auto;
  margin-left: calc(clamp(32px, 5vw, 64px) * -1);
  margin-right: calc(clamp(32px, 5vw, 64px) * -1);
  padding-left: clamp(32px, 5vw, 64px);
  padding-right: clamp(32px, 5vw, 64px);
}

.title-modal .watch-sections .actor-results .poster-rail,
.watch-sections .actor-results .poster-rail {
  width: 100%;
  grid-auto-columns: 158px;
  gap: 16px;
  padding-right: clamp(32px, 5vw, 64px);
  scroll-padding-left: clamp(32px, 5vw, 64px);
  scroll-padding-right: clamp(32px, 5vw, 64px);
}

.title-modal .watch-sections .actor-results.is-expanded .poster-rail,
.watch-sections .actor-results.is-expanded .poster-rail {
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 16px;
}

@media (max-width: 760px) {
  .title-modal .watch-sections .actor-results,
  .watch-sections .actor-results {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .title-modal .watch-sections .actor-results .poster-rail,
  .watch-sections .actor-results .poster-rail {
    grid-auto-columns: 142px;
    padding-right: 18px;
    scroll-padding-left: 18px;
    scroll-padding-right: 18px;
  }
}

/* 2026-08-26 TV7 actor result rail no extra inset */
.title-modal .watch-sections .actor-results.rail-section,
.watch-sections .actor-results.rail-section {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.title-modal .watch-sections .actor-results.rail-section .section-heading,
.watch-sections .actor-results.rail-section .section-heading {
  width: 100% !important;
}

.title-modal .watch-sections .actor-results.rail-section .poster-rail,
.watch-sections .actor-results.rail-section .poster-rail {
  width: 100% !important;
  max-width: none !important;
  grid-auto-columns: 166px;
  padding-right: 0 !important;
  scroll-padding-left: 0;
  scroll-padding-right: 0;
}

.title-modal .watch-sections .actor-results.rail-section.is-expanded .poster-rail,
.watch-sections .actor-results.rail-section.is-expanded .poster-rail {
  grid-template-columns: repeat(auto-fill, minmax(166px, 1fr));
}

@media (max-width: 760px) {
  .title-modal .watch-sections .actor-results.rail-section .poster-rail,
  .watch-sections .actor-results.rail-section .poster-rail {
    grid-auto-columns: 142px;
  }
}

/* 2026-08-26 TV7 direct actor rail in title modal */
.title-modal > .actor-results.rail-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 clamp(32px, 5vw, 64px) clamp(36px, 6vw, 64px) !important;
}

.title-modal > .actor-results.rail-section .section-heading {
  width: 100% !important;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.title-modal > .actor-results.rail-section .section-heading::after {
  content: none !important;
  display: none !important;
}

.title-modal > .actor-results.rail-section .section-heading h2 {
  position: relative;
  display: inline-block;
}

.title-modal > .actor-results.rail-section .section-heading h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: #3f82ea;
}

.title-modal > .actor-results.rail-section .rail-heading-actions {
  margin-left: auto !important;
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.title-modal > .actor-results.rail-section .poster-rail {
  width: 100% !important;
  max-width: none !important;
  grid-auto-columns: 166px;
  gap: 16px;
  padding-right: 0 !important;
}

.title-modal > .actor-results.rail-section.is-expanded .poster-rail {
  grid-template-columns: repeat(auto-fill, minmax(166px, 1fr));
}

@media (max-width: 760px) {
  .title-modal > .actor-results.rail-section {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .title-modal > .actor-results.rail-section .poster-rail {
    grid-auto-columns: 142px;
  }
}

/* 2026-08-27 TV7 modal orange cleanup */
.title-modal .season-tab:hover,
.title-modal .season-tab.active,
.season-tab:hover,
.season-tab.active {
  color: #fff !important;
  background: linear-gradient(180deg, #2f7ff0, #145ac4) !important;
  border-color: rgba(97, 165, 255, .58) !important;
  box-shadow: 0 12px 24px rgba(30, 91, 184, .22) !important;
}

.title-modal .series-episode-card,
.series-episode-card,
.episode-row {
  background: rgba(255, 255, 255, .045) !important;
  border-color: rgba(214, 212, 206, .18) !important;
}

.title-modal .series-episode-card:hover,
.title-modal .series-episode-card:focus-within,
.series-episode-card:hover,
.series-episode-card:focus-within,
.episode-row:hover,
.episode-row:focus-within {
  background: rgba(30, 91, 184, .12) !important;
  border-color: rgba(97, 165, 255, .56) !important;
  box-shadow: 0 0 0 1px rgba(97, 165, 255, .18) !important;
}

.title-modal .series-episode-card span,
.series-episode-card span,
.episode-row span {
  color: #61a5ff !important;
}

.title-modal .series-episode-card .secondary-button,
.series-episode-card .secondary-button,
.episode-row .secondary-button {
  color: #fff !important;
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(214, 212, 206, .2) !important;
}

.title-modal .series-episode-card .secondary-button:hover,
.series-episode-card .secondary-button:hover,
.episode-row .secondary-button:hover {
  background: #1e5bb8 !important;
  border-color: rgba(97, 165, 255, .68) !important;
}

/* 2026-08-27 TV7 admin/form focus cleanup */
input:focus,
textarea:focus,
select:focus,
.search-box input:focus,
.settings-form input:focus,
.settings-form textarea:focus,
.settings-form select:focus,
.manage-panel input:focus,
.manage-panel textarea:focus,
.manage-panel select:focus,
.admin-panel input:focus,
.admin-panel textarea:focus,
.admin-panel select:focus {
  border-color: rgba(97, 165, 255, .74) !important;
  box-shadow: 0 0 0 3px rgba(30, 91, 184, .22) !important;
  outline: none !important;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  box-shadow: 0 0 0 3px rgba(30, 91, 184, .24) !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #3f82ea;
}

fieldset:focus-within,
.settings-card:focus-within,
.form-card:focus-within {
  border-color: rgba(97, 165, 255, .42) !important;
}



/* 2026-08-27 TV7 live channels in hero banner */
.home-hero.is-live-hero .live-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 6px;
  color: #fff !important;
  background: #dc2626;
  box-shadow: 0 10px 24px rgba(220, 38, 38, .24);
}

.home-hero.is-live-hero .live-hero-status {
  color: #fff !important;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: 0;
  text-transform: none;
}

.live-hero-progress {
  display: block;
  width: min(210px, 48vw);
  height: 5px;
  margin: 4px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
}

.live-hero-progress i {
  display: block;
  width: calc(var(--epg-progress, 0) * 100%);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #dc2626, #3f82ea);
}

.home-hero.is-live-hero .home-hero-video-shell video {
  object-fit: cover;
}

.home-hero.is-live-hero .watch-facts {
  color: rgba(255, 255, 255, .82);
}

.hero-admin-card .toggle-button[data-action="toggle-force-live-hero"].is-on {
  border-color: rgba(220, 38, 38, .56);
  background: rgba(220, 38, 38, .18);
  color: #fff;
}


/* 2026-08-27 smooth live hero progress and transitions */
.home-hero {
  transition: opacity .52s ease, filter .52s ease, transform .52s ease;
}

.home-hero.is-transitioning-out {
  opacity: .04;
  filter: blur(10px);
  transform: scale(1.012);
}

.live-hero-progress i {
  width: var(--epg-progress, 0%);
  transition: width .6s ease;
}


/* 2026-08-27 live hero progress fill visibility */
.live-hero-progress {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, .44);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .32);
}

.live-hero-progress i {
  min-width: 6px;
  background: linear-gradient(90deg, #1e5bb8 0%, #3f82ea 60%, #ffffff 100%) !important;
  box-shadow: 0 0 14px rgba(63, 130, 234, .82);
}


/* 2026-08-27 live hero progress alignment */
.live-hero-progress {
  width: min(320px, 54vw) !important;
}

.live-hero-progress i {
  width: 0;
  min-width: 0;
  transition: width .45s linear;
}

.live-hero-progress i[style] {
  display: block !important;
}


/* 2026-08-27 hide redundant hero dot/tab lines */
.home-hero-dots {
  display: none !important;
}


/* 2026-08-27 hero playback pause control */
.home-hero-controls {
  display: inline-flex;
  gap: 10px;
}

.hero-trailer-button.is-paused {
  color: #fff !important;
  background: rgba(30, 91, 184, .74) !important;
  border-color: rgba(97, 165, 255, .58) !important;
}

.hero-trailer-button.is-playing {
  color: #fff !important;
}


/* 2026-08-27 distinct pause/play and audio hero buttons */
.home-hero-controls .hero-audio-button::before,
.home-hero-controls .hero-playback-button::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: currentColor;
  -webkit-mask: var(--hero-control-icon) center / contain no-repeat;
  mask: var(--hero-control-icon) center / contain no-repeat;
}

.home-hero-controls .hero-audio-button.is-unmuted {
  --hero-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M7 19h8L27 8v32L15 29H7z' fill='none' stroke='black' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M33 17c3 4 3 10 0 14M38 12c6 7 6 17 0 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.home-hero-controls .hero-audio-button.is-muted {
  --hero-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M7 19h8L27 8v32L15 29H7z' fill='none' stroke='black' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M33 17c2 3 2 8 0 11M38 12c5 6 6 14 2 21' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M10 8l30 32' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.home-hero-controls .hero-playback-button.is-playing {
  --hero-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M15 10h7v28h-7zM26 10h7v28h-7z' fill='black'/%3E%3C/svg%3E");
}

.home-hero-controls .hero-playback-button.is-paused {
  --hero-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M16 11v26l21-13z' fill='black'/%3E%3C/svg%3E");
}

.home-hero-controls .hero-trailer-button:not(.hero-audio-button):not(.hero-playback-button)::before {
  content: none;
}


/* 2026-09-02 TV7 auth and profile polish */
.front-door-auth .signup-confirmation {
  position: static;
  width: 100%;
  transform: none;
  margin: 0 0 18px;
  padding: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .3);
}

.front-door-auth .signup-confirmation::before {
  content: '';
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: #60a5fa;
}

.front-door-auth .login-form .primary-button,
.profile-screen .primary-button,
.profile-screen .profile-edit-button.active {
  color: #fff;
  background: linear-gradient(180deg, #3b8cff, #145ac4);
  border-color: rgba(96, 165, 250, .55);
}

.profile-screen .profile-brand {
  color: #f7fbff;
  text-shadow: 0 0 22px rgba(96, 165, 250, .45);
}

.profile-screen .profile-limit,
.profile-screen .profile-card small,
.profile-screen .profile-setup-note {
  color: rgba(191, 219, 254, .82);
}

.profile-screen .add-avatar {
  background: rgba(10, 25, 48, .78);
  border-color: rgba(96, 165, 250, .42);
  color: #bfdbfe;
}

.profile-screen .add-profile-card:hover .add-avatar,
.profile-screen .add-profile-card:focus-visible .add-avatar {
  border-color: rgba(147, 197, 253, .9);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, .36), 0 18px 38px rgba(20, 90, 196, .28);
}


/* 2026-09-02 TV7 trailer stale guard */
.front-door-trailer-player iframe {
  opacity: 0;
  transition: opacity .28s ease;
}

.front-door-trailer-player.is-ready video {
  opacity: 1;
}

.watch-hero .hero-trailer-frame {
  opacity: 0;
}

.watch-hero.is-trailer-ready:not(.is-trailer-paused):not(.is-trailer-intro) .hero-trailer-frame {
  opacity: 1;
}

.watch-hero:not(.is-trailer-ready)::before {
  opacity: 1;
}


/* 2026-09-02 TV7 profile maturity select cleanup */
.profile-parental-panel select,
.profile-create-form select {
  color-scheme: dark;
  color: #f7fbff;
  background-color: rgba(10, 25, 48, .96);
  border-color: rgba(96, 165, 250, .48);
}

.profile-parental-panel select option,
.profile-create-form select option {
  color: #f7fbff;
  background: #071a32;
}

.profile-parental-panel select option:checked,
.profile-create-form select option:checked {
  color: #fff;
  background: #2f7ff0;
}

.email-verification-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: rgba(30, 111, 214, .09);
  border: 1px solid rgba(45, 130, 245, .36);
  border-radius: 8px;
}

.email-verification-panel.is-verified {
  background: rgba(16, 185, 129, .08);
  border-color: rgba(16, 185, 129, .32);
}

.email-verification-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.email-verification-panel strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}

.email-verification-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.email-verification-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Final destructive-action override so delete buttons stay visibly red after shared button rules. */
.secondary-button.danger-button,
.danger-button {
  color: #fff;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  border-color: rgba(248, 113, 113, .82);
  box-shadow: 0 14px 28px rgba(127, 29, 29, .32);
}

.secondary-button.danger-button:hover:not(:disabled),
.danger-button:hover:not(:disabled) {
  color: #fff;
  background: linear-gradient(180deg, #f87171, #dc2626);
  border-color: rgba(252, 165, 165, .94);
}

.secondary-button.danger-button,
button.secondary-button.danger-button {
  color: #fff !important;
  background: linear-gradient(180deg, #ef4444, #b91c1c) !important;
  border-color: rgba(248, 113, 113, .9) !important;
  box-shadow: 0 14px 28px rgba(127, 29, 29, .36) !important;
}

.secondary-button.danger-button:hover:not(:disabled),
button.secondary-button.danger-button:hover:not(:disabled) {
  color: #fff !important;
  background: linear-gradient(180deg, #f87171, #dc2626) !important;
  border-color: rgba(252, 165, 165, .98) !important;
}

/* Admin button hover polish: keeps existing colors, adds the same responsive feel across controls. */
.admin-shell .primary-button,
.admin-shell .secondary-button,
.admin-shell .toggle-button,
.admin-shell .icon-button,
.user-editor-panel .primary-button,
.user-editor-panel .secondary-button,
.user-editor-panel .toggle-button,
.user-editor-panel .icon-button {
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease, opacity .16s ease;
}

.admin-shell .primary-button:hover:not(:disabled),
.user-editor-panel .primary-button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(30, 91, 184, .34) !important;
}

.admin-shell .secondary-button:hover:not(:disabled),
.admin-shell .toggle-button:hover:not(:disabled),
.admin-shell .icon-button:hover:not(:disabled),
.user-editor-panel .secondary-button:hover:not(:disabled),
.user-editor-panel .toggle-button:hover:not(:disabled),
.user-editor-panel .icon-button:hover:not(:disabled) {
  color: #fff !important;
  background: rgba(45, 130, 245, .18) !important;
  border-color: rgba(97, 165, 255, .58) !important;
  box-shadow: 0 14px 28px rgba(30, 91, 184, .24) !important;
  transform: translateY(-1px);
}

.admin-shell .toggle-button.is-on:hover:not(:disabled),
.user-editor-panel .toggle-button.is-on:hover:not(:disabled) {
  background: linear-gradient(180deg, #4a95ff, #1d6fe0) !important;
  border-color: rgba(132, 183, 255, .74) !important;
}

/* Keep destructive buttons red even after the shared admin hover polish. */
.admin-shell .secondary-button.danger-button,
.user-editor-panel .secondary-button.danger-button,
button.secondary-button.danger-button {
  color: #fff !important;
  background: linear-gradient(180deg, #ef4444, #b91c1c) !important;
  border-color: rgba(248, 113, 113, .9) !important;
  box-shadow: 0 14px 28px rgba(127, 29, 29, .36) !important;
}

.admin-shell .secondary-button.danger-button:hover:not(:disabled),
.user-editor-panel .secondary-button.danger-button:hover:not(:disabled),
button.secondary-button.danger-button:hover:not(:disabled) {
  color: #fff !important;
  background: linear-gradient(180deg, #f87171, #dc2626) !important;
  border-color: rgba(252, 165, 165, .98) !important;
  box-shadow: 0 16px 30px rgba(127, 29, 29, .42) !important;
  transform: translateY(-1px);
}
