/* Security/UI rule: the HTML hidden attribute must always win over component display styles. */
[hidden] { display: none !important; }

:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:#0a0d12;
  color:#f4f7fb;
}
* { box-sizing:border-box; }
body { margin:0; background:radial-gradient(circle at top,#182231 0,#0b0e13 40%,#080a0e 100%); min-height:100vh; }
button,input,select { font:inherit; }
button { background:#222a35; color:#fff; border:1px solid #394454; border-radius:9px; padding:10px 14px; cursor:pointer; transition:.15s ease; }
button:hover { transform:translateY(-1px); background:#2b3543; }
button.primary { background:linear-gradient(135deg,#08a6dc,#695cff); border:none; font-weight:700; }
input,select { background:#151b24; color:#fff; border:1px solid #344052; border-radius:9px; padding:10px 12px; }
.topbar { position:sticky; top:0; z-index:30; display:flex; justify-content:space-between; align-items:center; padding:14px 24px; background:rgba(10,13,18,.88); backdrop-filter:blur(18px); border-bottom:1px solid rgba(255,255,255,.08); }
.brandWrap { display:flex; align-items:center; gap:12px; }
.brandMark { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; font-size:22px; font-weight:900; background:linear-gradient(135deg,#0ec5e9,#6b4eff); box-shadow:0 0 30px rgba(45,120,255,.25); }
.brand { font-size:18px; font-weight:800; letter-spacing:.2px; }
.tagline,.muted { color:#99a6b8; font-size:13px; }
.who { color:#b8c4d3; font-size:13px; }
main { max-width:1450px; margin:auto; padding:22px; }
.card { background:rgba(18,23,31,.93); border:1px solid rgba(255,255,255,.09); border-radius:16px; padding:18px; margin-bottom:20px; box-shadow:0 16px 40px rgba(0,0,0,.18); }
.loginCard { max-width:440px; margin:8vh auto; display:grid; gap:12px; }
.loginCard h1 { margin-bottom:0; }
.toolbar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:18px; position:sticky; top:72px; z-index:20; background:rgba(10,13,18,.85); backdrop-filter:blur(15px); padding:10px; border-radius:12px; }
.search { min-width:280px; flex:1; }
.progressCard { overflow:hidden; }
.progressHeader,.playerHeader { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.progressHeader h2,.playerHeader h2 { margin:0 0 5px; }
.progressTrack { height:13px; margin:18px 0 9px; background:#0d1118; border-radius:999px; overflow:hidden; border:1px solid #293242; }
.progressBar { height:100%; width:0; background:linear-gradient(90deg,#00b8d9,#6a5cff); transition:width .35s ease; }
.progressStats,.jobCounters { display:flex; gap:20px; flex-wrap:wrap; color:#b7c2d2; font-size:13px; }
.progressStats strong { color:#fff; }
.currentFile { margin-top:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#d4deeb; font-size:13px; }
.jobCounters { margin-top:12px; }
.detailPanel { position:relative; min-height:470px; margin-bottom:20px; border-radius:20px; overflow:hidden; border:1px solid rgba(255,255,255,.1); background:#10151d; }
.detailBackdrop { position:absolute; inset:0; background-size:cover; background-position:center 20%; filter:saturate(.9); }
.detailShade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(7,10,15,.98) 0%,rgba(7,10,15,.89) 38%,rgba(7,10,15,.35) 72%,rgba(7,10,15,.75) 100%),linear-gradient(0deg,#0b0f15 0%,transparent 55%); }
.detailContent { position:relative; z-index:2; display:flex; gap:28px; align-items:flex-end; min-height:470px; padding:34px; }
.detailPoster { width:240px; aspect-ratio:2/3; object-fit:cover; border-radius:13px; box-shadow:0 22px 50px rgba(0,0,0,.55); }
.detailText { max-width:760px; position:relative; }
.detailText h1 { font-size:42px; margin:0 0 8px; line-height:1.05; }
.detailMeta { color:#c6d0dc; margin-bottom:12px; }
.ratings { display:flex; gap:9px; flex-wrap:wrap; margin-bottom:14px; }
.ratingPill { background:rgba(29,105,145,.58); border:1px solid rgba(91,195,230,.35); border-radius:999px; padding:7px 10px; font-weight:700; font-size:13px; }
.ratingPill.imdb { background:rgba(217,174,26,.16); border-color:rgba(245,197,24,.42); }
.ratingPill small { color:#d6d6d6; font-weight:500; margin-left:5px; }
.overview { font-size:16px; line-height:1.55; color:#d5dce5; }
.closeDetail { position:absolute; right:0; top:-5px; }
.playButton { min-width:120px; }
.technicalInfo { margin-top:18px; color:#9facbd; font-size:12px; line-height:1.6; }
video { display:block; width:100%; max-height:72vh; background:#000; border-radius:11px; margin-top:16px; }
.libraryHeading { display:flex; justify-content:space-between; align-items:end; margin:12px 2px; }
.libraryHeading h2 { margin:0 0 2px; }
.movieGrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(165px,1fr)); gap:19px 14px; }
.movieCard { min-width:0; cursor:pointer; transition:.18s ease; }
.movieCard:hover { transform:translateY(-4px); }
.poster { width:100%; aspect-ratio:2/3; object-fit:cover; border-radius:11px; background:#151b24; box-shadow:0 13px 28px rgba(0,0,0,.28); }
.placeholderPoster { display:flex; flex-direction:column; align-items:center; justify-content:center; background:linear-gradient(155deg,#1d2836,#10141b); border:1px solid #293543; }
.placeholderPoster span { font-size:24px; font-weight:900; letter-spacing:3px; }
.placeholderPoster small { color:#7d8a9d; margin-top:6px; }
.movieCardInfo { padding:8px 3px 0; }
.movieTitle { font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.movieSub { display:flex; justify-content:space-between; gap:6px; color:#8d9aac; font-size:12px; margin-top:4px; }
.adminFormGrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin-bottom:14px; }
.fieldLabel { display:flex; flex-direction:column; gap:6px; font-size:13px; color:#aab5c5; }
.fieldLabel input,.fieldLabel select { width:100%; }
.checkboxField { display:flex; align-items:center; gap:8px; padding-top:27px; }
.adminActionRow { margin-bottom:24px; }
.userHeader,.userrow { display:grid; grid-template-columns:1.2fr 150px 130px 120px 140px 90px; gap:8px; align-items:center; }
.userHeader { font-size:12px; color:#8793a5; margin-bottom:7px; padding:0 4px; }
.userrow { margin-bottom:8px; }
.inlineCheck { display:flex; gap:6px; align-items:center; }
table { width:100%; border-collapse:collapse; }
th,td { text-align:left; padding:9px; border-bottom:1px solid #28313f; font-size:13px; }
.error { color:#ff8585; margin-top:5px; }
footer { max-width:1450px; margin:25px auto; padding:18px 22px 40px; color:#667487; font-size:11px; line-height:1.6; }
.credits { display:flex; align-items:center; gap:10px; margin-bottom:5px; }
.tmdbLogo { width:72px; max-height:25px; }
@media (max-width:850px) {
  .detailContent { align-items:flex-start; padding:22px; }
  .detailPoster { width:150px; }
  .detailText h1 { font-size:30px; }
  .userHeader { display:none; }
  .userrow { grid-template-columns:1fr; border:1px solid #303a49; padding:12px; border-radius:10px; }
}
@media (max-width:600px) {
  main { padding:12px; }
  .topbar { padding:10px 12px; }
  .who,.tagline { display:none; }
  .toolbar { top:61px; }
  .detailContent { flex-direction:column; padding-top:110px; }
  .detailPoster { width:135px; }
  .closeDetail { top:-88px; }
  .movieGrid { grid-template-columns:repeat(2,1fr); }
}


/* Dedicated unauthenticated login presentation */
body:has(#appBox[hidden]) main {
  max-width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

body:has(#appBox[hidden]) .loginCard {
  width: min(440px, 100%);
  margin: 0;
}


/* Movies / TV Shows library navigation */
.libraryTabs {
  display:flex;
  gap:10px;
  margin:4px 0 18px;
}

.libraryTab {
  min-width:130px;
  padding:11px 18px;
  font-weight:800;
  border-radius:999px;
  border:1px solid #344154;
  background:#151c26;
  color:#aeb9c8;
}

.libraryTab:hover {
  background:#1d2734;
  color:#fff;
}

.libraryTab.active {
  background:#eef4fb;
  color:#111821;
  border-color:#eef4fb;
}

@media (max-width:600px) {
  .libraryTabs {
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .libraryTab {
    min-width:0;
  }
}


/* Library-specific maintenance controls */
.libraryActions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:-6px 0 18px;
  padding:12px;
  border:1px solid #293446;
  border-radius:14px;
  background:#101722;
}

.libraryActions button {
  min-width:180px;
  font-weight:750;
}

@media (max-width:650px) {
  .libraryActions {
    display:grid;
    grid-template-columns:1fr;
  }

  .libraryActions button {
    width:100%;
  }
}


/* Library folder settings */
.librarySettingsGrid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:14px;
}

.librarySettingsBox {
  border:1px solid #2b3748;
  border-radius:14px;
  padding:14px;
  background:#101722;
}

.settingsBoxHeader {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.settingsBoxHeader h4 {
  margin:0;
  font-size:16px;
}

.pathRows {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.pathRow {
  display:grid;
  grid-template-columns:minmax(180px,1fr) 110px 86px;
  gap:8px;
  align-items:center;
}

.libraryPathInput {
  width:100%;
  box-sizing:border-box;
  font-family:ui-monospace, SFMono-Regular, Consolas, monospace;
}

.pathStatus {
  font-size:12px;
  font-weight:750;
}

.pathOk {
  color:#8fe3a1;
}

.pathBad {
  color:#ff9696;
}

@media (max-width:850px) {
  .librarySettingsGrid {
    grid-template-columns:1fr;
  }

  .pathRow {
    grid-template-columns:1fr;
  }
}


/* v0.3 concurrent jobs */
.progressArea { display:grid; grid-template-columns:repeat(auto-fit,minmax(340px,1fr)); gap:14px; margin-bottom:18px; }
.progressArea:empty { display:none; }
.progressArea .progressCard { margin:0; }

/* Storage controls */
.storageSettingsGrid { display:grid; grid-template-columns:1fr; gap:12px; margin-bottom:14px; }
.monoInput { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; width:100%; box-sizing:border-box; }
.fieldLabel small { margin-top:2px; overflow-wrap:anywhere; }

/* TV show hierarchy */
.tvEpisodes { margin-top:18px; max-width:900px; }
.seasonHeading { margin:22px 0 8px; border-bottom:1px solid #344154; padding-bottom:7px; }
.episodeRow { display:grid; grid-template-columns:58px minmax(0,1fr) 90px; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid #293446; }
.episodeNumber { font-weight:800; color:#aeb9c8; }
.episodeInfo { display:flex; flex-direction:column; gap:4px; min-width:0; }
.episodeInfo strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.episodeInfo small { color:#8d99a8; }
@media (max-width:600px) { .episodeRow { grid-template-columns:42px 1fr; } .episodeRow button { grid-column:2; justify-self:start; } }


/* Live TV */
.libraryTabs { flex-wrap:wrap; }
.liveTvPanel { margin-bottom:20px; }
.liveTvHeader { display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px; }
.liveGuide { display:flex;flex-direction:column;gap:8px; }
.liveChannelRow { width:100%;display:grid;grid-template-columns:90px minmax(160px,.7fr) minmax(260px,2fr) 90px;gap:12px;align-items:center;text-align:left;background:#141c27;border:1px solid #2c394c;border-radius:12px;padding:12px 14px; }
.liveChannelRow:hover:not(:disabled) { background:#1b2634;border-color:#4a5c74; }
.liveChannelRow.locked { opacity:.58;cursor:not-allowed; }
.liveChannelNumber { font-size:20px;font-weight:850; }
.liveChannelName { font-weight:800; }
.hdBadge { display:inline-block;margin-left:8px;padding:2px 6px;border:1px solid #52647a;border-radius:6px;font-size:10px; }
.liveNow { display:flex;flex-direction:column;gap:3px; }
.liveNext { color:#8997a8;font-size:12px; }
.liveAction { justify-self:end;font-weight:800; }
.liveSettingsBox { border:1px solid #2b3748;border-radius:14px;padding:14px;background:#101722;margin-bottom:16px; }
.tunerRow { display:grid;grid-template-columns:minmax(150px,.7fr) minmax(200px,1.2fr) 180px 86px;gap:8px;align-items:center; }
.channelManager { overflow-x:auto; }
.channelHeader,.channelEditRow { min-width:900px;display:grid;grid-template-columns:55px 90px minmax(180px,1fr) minmax(180px,1fr) minmax(140px,.8fr) 90px;gap:8px;align-items:center;padding:7px 0; }
.channelHeader { color:#94a2b4;font-size:12px;font-weight:800;border-bottom:1px solid #344154; }
.channelEditRow { border-bottom:1px solid #293446; }
.channelEditRow input { width:100%;box-sizing:border-box; }
@media (max-width:850px) { .liveChannelRow { grid-template-columns:68px 1fr; } .liveNow { grid-column:1 / -1; } .liveAction { grid-column:2;justify-self:start; } .tunerRow { grid-template-columns:1fr; } }


/* Compact / collapsible Channel Manager */
#channelManagerBody[hidden] {
  display:none !important;
}

#channelManagerSummary {
  margin-top:3px;
}

#channelToggleBtn {
  min-width:118px;
}

.channelManager {
  max-height:62vh;
  overflow:auto;
  border-top:1px solid #293446;
  border-bottom:1px solid #293446;
}

.channelHeader {
  position:sticky;
  top:0;
  z-index:2;
  background:#101722;
  padding-top:10px;
  padding-bottom:10px;
}


/* v0.4.3 page navigation */
#loginStage {
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}

.appShell {
  min-height:100vh;
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  background:#0b1017;
}

.sideNav {
  position:sticky;
  top:0;
  height:100vh;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  padding:18px 14px;
  border-right:1px solid #253142;
  background:#0d141d;
}

.sideBrand {
  display:flex;
  gap:10px;
  align-items:center;
  padding:4px 8px 20px;
}

.sideNavButtons,
.sideNavBottom {
  display:flex;
  flex-direction:column;
  gap:7px;
}

.sideNavBottom {
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid #263242;
}

.sideNavButton {
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  background:transparent;
  color:#aeb8c6;
  padding:12px 13px;
  border-radius:11px;
  font-size:15px;
  font-weight:750;
  text-align:left;
}

.sideNavButton:hover {
  background:#18212d;
  color:#fff;
}

.sideNavButton.active {
  background:#edf3fa;
  color:#101720;
}

.navIcon {
  width:22px;
  text-align:center;
  font-size:18px;
}

.workspace {
  min-width:0;
  padding:0 26px 36px;
}

.workspaceHeader {
  position:sticky;
  top:0;
  z-index:25;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 0;
  background:rgba(11,16,23,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid #1f2a38;
  margin-bottom:20px;
}

.workspaceHeader h1 {
  margin:0 0 3px;
  font-size:27px;
}

.workspaceHeader .search {
  width:min(420px,45vw);
}

.appPage {
  min-width:0;
}

.adminPageCard {
  margin:0;
}

.adminPageHeader {
  padding-bottom:6px;
  border-bottom:1px solid #2a3545;
  margin-bottom:22px;
}

.adminPageHeader h2 {
  margin:3px 0 0;
}

.eyebrow {
  font-size:11px;
  letter-spacing:.15em;
  font-weight:900;
  color:#8ea3ba;
}

.homeHero {
  min-height:160px;
  display:flex;
  align-items:flex-end;
  padding:26px;
  border:1px solid #293546;
  border-radius:18px;
  background:linear-gradient(135deg,#1b2735,#101722 58%,#111926);
  margin-bottom:28px;
}

.homeHero h2 {
  margin:5px 0 8px;
  font-size:30px;
}

.homeHero p { margin:0; }

.homeSection {
  margin-bottom:30px;
}

.sectionHeader {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.sectionHeader h2 { margin:0; font-size:20px; }

.mediaRail {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(155px,185px);
  gap:14px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  padding:2px 2px 12px;
}

.homeMediaCard {
  cursor:pointer;
  background:#121a24;
  border:1px solid #263243;
  border-radius:12px;
  overflow:hidden;
  transition:transform .14s ease, border-color .14s ease;
}

.homeMediaCard:hover {
  transform:translateY(-3px);
  border-color:#54677f;
}

.homeMediaCard .poster {
  width:100%;
  aspect-ratio:2/3;
  object-fit:cover;
  border-radius:0;
}

.homeEmpty {
  min-width:340px;
}

#appFooter {
  margin-top:36px;
}

/* The old top tabs are intentionally retired in favor of the persistent sidebar. */
.libraryTabs { display:none !important; }

@media (max-width:820px) {
  .appShell { grid-template-columns:76px minmax(0,1fr); }
  .sideNav { padding:14px 9px; }
  .sideBrand .brand, .sideBrand .tagline, .sideNavButton span:last-child { display:none; }
  .sideBrand { justify-content:center; padding:4px 0 18px; }
  .sideNavButton { justify-content:center; padding:12px; }
  .navIcon { width:auto; }
  .workspace { padding:0 14px 28px; }
  .workspaceHeader { align-items:flex-start; flex-direction:column; }
  .workspaceHeader .search { width:100%; }
}


/* v0.5 Live TV buffered overlay controls */
.videoStage { position:relative; margin-top:16px; border-radius:12px; overflow:hidden; background:#000; }
.videoStage video { margin-top:0; border-radius:0; }
.liveControls { position:absolute; left:0; right:0; bottom:0; display:grid; grid-template-columns:1.15fr .9fr 1fr .9fr 1.15fr auto auto; align-items:center; gap:10px; padding:24px 22px 18px; background:linear-gradient(0deg,rgba(0,0,0,.88),rgba(0,0,0,.52) 65%,transparent); opacity:0; transform:translateY(8px); transition:.18s ease; pointer-events:none; }
.videoStage:hover .liveControls,.liveControls:focus-within { opacity:1; transform:translateY(0); pointer-events:auto; }
.liveControl { min-height:48px; border-radius:999px; background:rgba(20,25,33,.88); border:1px solid rgba(255,255,255,.22); backdrop-filter:blur(10px); font-weight:800; }
.liveControl:hover { background:rgba(40,49,63,.96); }
.playPauseControl { width:62px; height:62px; justify-self:center; font-size:22px; background:rgba(245,248,252,.96); color:#10141a; }
.liveEdgeControl { min-width:86px; color:#ff5b5b; border-color:rgba(255,91,91,.5); }
.liveEdgeControl:disabled { color:#fff; opacity:.45; }
.liveEdgeControl.behindLive { box-shadow:0 0 0 1px rgba(255,64,64,.3),0 0 22px rgba(255,50,50,.18); }
.recordControl { min-width:104px; color:#ff7676; border-color:rgba(255,88,88,.5); }
.recordControl.recording { background:rgba(145,18,28,.92); color:#fff; border-color:#ff5b64; box-shadow:0 0 22px rgba(255,45,55,.2); }
.liveChannelBug { position:absolute; top:18px; left:18px; z-index:5; display:flex; align-items:center; gap:10px; padding:10px 14px; border-radius:10px; background:rgba(5,8,12,.78); border:1px solid rgba(255,255,255,.16); backdrop-filter:blur(8px); opacity:0; transform:translateY(-5px); transition:.18s ease; pointer-events:none; }
.liveChannelBug.visible { opacity:1; transform:translateY(0); }
.liveChannelBug strong { font-size:22px; line-height:1; color:#fff; }
.liveChannelBug span { font-weight:800; color:#e9eef5; }
.recordPrompt { position:absolute; z-index:7; left:50%; bottom:96px; transform:translateX(-50%); width:min(620px,calc(100% - 30px)); box-sizing:border-box; padding:14px 16px; border-radius:14px; background:rgba(12,17,24,.96); border:1px solid rgba(255,255,255,.18); box-shadow:0 16px 44px rgba(0,0,0,.45); backdrop-filter:blur(12px); display:flex; justify-content:space-between; align-items:center; gap:14px; }
.recordPrompt[hidden] { display:none !important; }
.recordPrompt > div:first-child { display:flex; flex-direction:column; gap:3px; min-width:0; }
.recordPromptDetail { color:#9aa8ba; }
.recordPromptActions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.recordPromptActions button { white-space:nowrap; }
.recordPromptDone { opacity:.75; }
@media (max-width:760px) { .liveControls { grid-template-columns:repeat(3,1fr); } .playPauseControl { order:-1; } }

/* v0.5 user-centered administration */
.userManager { display:grid; grid-template-columns:250px minmax(0,1fr); gap:16px; margin-bottom:28px; }
.userSelectorPane,.userDetailPane { border:1px solid #2b3748; border-radius:14px; background:#101722; padding:14px; min-width:0; }
.userSelectorList { display:flex; flex-direction:column; gap:7px; }
.userSelector { display:flex; justify-content:space-between; align-items:center; gap:10px; width:100%; text-align:left; background:#151d28; }
.userSelector small { color:#8290a3; }
.userSelector.active { background:linear-gradient(135deg,rgba(14,165,233,.24),rgba(105,92,255,.24)); border-color:#4b73ae; }
.newUserPanel { display:grid; gap:10px; border-top:1px solid #2b3748; margin-top:12px; padding-top:12px; }
.userDetailHeader h2 { margin:4px 0; }
.userTabs { display:flex; gap:8px; border-bottom:1px solid #2b3748; margin:18px 0 14px; }
.userTab { border:none; border-radius:9px 9px 0 0; background:transparent; color:#95a2b4; }
.userTab.active { color:#fff; background:#202a38; }
.userTabPanel { min-width:0; }
.accessToggleGrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; margin:14px 0 20px; }
.accessToggleGrid label { display:flex; align-items:center; gap:8px; padding:10px 12px; background:#151d28; border:1px solid #2c3849; border-radius:10px; }
.userActivityScroll { overflow:auto; max-height:460px; border:1px solid #273243; border-radius:10px; }
.userActivityScroll table { min-width:850px; }
.userActivityScroll th { position:sticky; top:0; background:#151d28; z-index:1; }
@media (max-width:900px) { .userManager { grid-template-columns:1fr; } .userSelectorList { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); } }

/* v0.5.2 watched-state, maintenance, guide and metadata UX */
.detailActions { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
.posterWrap { position:relative; }
.watchedBadge,.unmatchedBadge { position:absolute; top:8px; left:8px; z-index:2; border-radius:999px; padding:5px 8px; font-size:11px; font-weight:850; backdrop-filter:blur(8px); box-shadow:0 4px 14px rgba(0,0,0,.28); }
.watchedBadge { background:rgba(19,115,75,.9); border:1px solid rgba(115,235,171,.5); color:#effff5; }
.unmatchedBadge { top:auto; bottom:8px; background:rgba(162,92,16,.92); border:1px solid rgba(255,193,92,.55); color:#fff4df; }
.continueRemove { position:absolute; z-index:4; top:7px; right:7px; width:32px; height:32px; padding:0; border-radius:50%; display:grid; place-items:center; font-size:21px; line-height:1; background:rgba(8,11,16,.85); border:1px solid rgba(255,255,255,.28); }
.continueProgress { position:absolute; left:7px; right:7px; bottom:7px; height:5px; border-radius:999px; background:rgba(0,0,0,.6); overflow:hidden; z-index:3; }
.continueProgress span { display:block; height:100%; background:linear-gradient(90deg,#00b8d9,#6a5cff); }
.warningPill { background:rgba(163,89,14,.28); border-color:rgba(255,184,67,.48); }
.watchedEpisode { opacity:.72; }
.episodeActions { display:flex; gap:7px; justify-content:flex-end; }
.episodeActions button { white-space:nowrap; padding:8px 10px; }

/* Keep long-running library work visible without moving the page. */
.progressArea { position:sticky; top:88px; z-index:23; background:rgba(11,16,23,.96); backdrop-filter:blur(14px); border-radius:14px; padding:0; }
.progressArea:not(:empty) { padding:10px; margin:-8px 0 16px; border:1px solid rgba(255,255,255,.08); box-shadow:0 10px 28px rgba(0,0,0,.22); }
.progressArea .progressCard { max-height:210px; overflow:auto; }

/* Horizontal cable-style guide. */
.liveGuideGrid { width:100%; min-width:0; border:1px solid #293648; border-radius:14px; overflow:hidden; background:#0d131c; }
.guideScroller { width:100%; overflow:auto; max-height:67vh; overscroll-behavior:contain; scrollbar-color:#45566e #121923; }
.guideInner { position:relative; min-width:100%; }
.guideTimeRow,.guideRow { display:flex; min-height:72px; border-bottom:1px solid #263244; }
.guideTimeRow { position:sticky; top:0; z-index:12; min-height:44px; background:#111924; }
.guideCorner,.guideChannelCell { position:sticky; left:0; z-index:10; width:190px; min-width:190px; max-width:190px; background:#121a25; border-right:1px solid #324055; }
.guideCorner { z-index:15; display:flex; align-items:center; padding:0 14px; font-size:12px; font-weight:850; color:#95a6ba; text-transform:uppercase; letter-spacing:.08em; }
.guideChannelCell { border-radius:0; border-top:0; border-bottom:0; border-left:0; padding:10px 13px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; text-align:left; }
.guideChannelCell strong { font-size:18px; }
.guideChannelCell span { color:#aab6c6; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; width:100%; }
.guideTimeLane,.guideProgramLane { position:relative; flex:0 0 auto; background-image:linear-gradient(to right,rgba(255,255,255,.055) 1px,transparent 1px); background-size:120px 100%; }
.guideTimeLane { height:44px; background-color:#111924; }
.guideProgramLane { height:72px; }
.guideTimeLabel { position:absolute; top:0; height:44px; display:flex; align-items:center; padding-left:8px; font-size:12px; color:#a6b3c4; border-left:1px solid rgba(255,255,255,.07); white-space:nowrap; }
.guideProgram { position:absolute; top:5px; height:62px; border-radius:8px; padding:7px 9px; overflow:hidden; text-align:left; background:#1a2635; border:1px solid #33455d; display:flex; flex-direction:column; gap:1px; }
.guideProgram:hover { z-index:5; background:#25364a; border-color:#5d7696; }
.guideProgram.currentProgram { background:linear-gradient(135deg,rgba(0,152,196,.34),rgba(91,75,214,.34)); border-color:#4d86ba; }
.guideProgram strong,.guideProgram small,.guideProgram span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; width:100%; }
.guideProgram strong { font-size:13px; }
.guideProgram small { color:#c0cada; font-size:11px; }
.guideProgram span { color:#8e9caf; font-size:10px; }
.guideNowLine { position:absolute; top:0; bottom:0; width:2px; background:#ff474f; z-index:8; box-shadow:0 0 10px rgba(255,71,79,.45); pointer-events:none; }
.guideNowLine::before { content:none; }
.liveTvHeader > div { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }

/* Modal cards used for guide scheduling and movie match correction. */
.modalShade { position:fixed; inset:0; z-index:80; background:rgba(2,5,9,.78); backdrop-filter:blur(7px); display:grid; place-items:center; padding:20px; }
.modalCard { position:relative; width:min(760px,100%); max-height:min(86vh,900px); overflow:auto; padding:22px; background:#101722; border:1px solid #334155; border-radius:16px; box-shadow:0 28px 90px rgba(0,0,0,.6); }
.modalClose { position:absolute; top:12px; right:12px; width:38px; height:38px; padding:0; border-radius:50%; font-size:24px; }
.modalActions,.seriesChoice { display:flex; flex-wrap:wrap; gap:9px; align-items:center; margin:14px 0; }
.seriesChoice { padding:12px; border:1px solid #344256; border-radius:11px; background:#151e2a; }
.metadataCard { width:min(1180px,calc(100vw - 36px)); max-height:calc(100vh - 36px); overflow:auto; }
.metadataTabs { display:flex; gap:7px; margin:16px 0; border-bottom:1px solid #2d394b; }
.metadataTabs button { border-radius:9px 9px 0 0; border-bottom:0; }
.metadataTabs button.active { background:#263246; border-color:#53647c; }
.metadataSearchRow { display:grid; grid-template-columns:minmax(200px,1fr) 110px auto; gap:9px; margin-bottom:14px; }
.metadataResults { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:10px; }
.metadataResult { display:grid; grid-template-columns:70px minmax(0,1fr); gap:11px; text-align:left; padding:9px; align-items:start; min-height:118px; }
.metadataResult img,.metadataPosterPlaceholder { width:70px; aspect-ratio:2/3; object-fit:cover; border-radius:7px; background:#182332; }
.metadataPosterPlaceholder { display:grid; place-items:center; font-weight:900; font-size:11px; }
.metadataResult span { min-width:0; display:flex; flex-direction:column; gap:3px; }
.metadataResult strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.metadataResult small { color:#9eacbd; }
.metadataResult em { color:#aab6c5; font-size:11px; line-height:1.35; font-style:normal; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
textarea { font:inherit; background:#151b24; color:#fff; border:1px solid #344052; border-radius:9px; padding:10px 12px; resize:vertical; width:100%; }

@media (max-width:700px) {
  .guideCorner,.guideChannelCell { width:135px; min-width:135px; max-width:135px; }
  .metadataSearchRow { grid-template-columns:1fr; }
  .episodeActions { grid-column:2; justify-content:flex-start; flex-wrap:wrap; }
  .progressArea { top:116px; }
}

/* v0.5.3 fullscreen, alphabet navigation and metadata source improvements */
.playerHeaderActions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.liveControls { grid-template-columns:1.15fr .9fr 1fr .9fr 1.15fr auto auto auto; }
.fullscreenControl { min-width:54px; font-size:19px; }
.videoStage:fullscreen,
.videoStage:-webkit-full-screen { width:100vw; height:100vh; border-radius:0; background:#000; display:flex; align-items:center; justify-content:center; }
.videoStage:fullscreen video,
.videoStage:-webkit-full-screen video { width:100%; height:100%; max-height:none; object-fit:contain; }
.videoStage:fullscreen .liveControls,
.videoStage:-webkit-full-screen .liveControls { padding-bottom:28px; }

.alphabetRail { position:fixed; z-index:24; right:8px; top:50%; transform:translateY(-50%); display:flex; flex-direction:column; gap:1px; padding:7px 5px; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(10,14,20,.9); backdrop-filter:blur(14px); box-shadow:0 12px 34px rgba(0,0,0,.3); }
.alphabetRail button { width:25px; height:22px; min-height:0; padding:0; display:grid; place-items:center; border:0; border-radius:6px; background:transparent; color:#d9e2ef; font-size:11px; font-weight:850; line-height:1; }
.alphabetRail button:hover:not(:disabled) { transform:none; background:#29384d; }
.alphabetRail button:disabled { opacity:.2; cursor:default; }
.movieCard.letterAnchor { scroll-margin-top:126px; }
.metadataSourceTag { display:inline-flex; align-items:center; border:1px solid #41506a; border-radius:999px; padding:2px 7px; margin-right:5px; color:#9fb0c6; font-size:10px; font-style:normal; text-transform:uppercase; letter-spacing:.04em; }

@media (max-width:1050px) {
  .alphabetRail { right:3px; }
  .alphabetRail button { width:22px; height:19px; font-size:10px; }
}
@media (max-width:760px) {
  .liveControls { grid-template-columns:repeat(3,1fr); }
  .alphabetRail { top:auto; bottom:8px; left:8px; right:8px; transform:none; flex-direction:row; overflow-x:auto; justify-content:flex-start; padding:6px; }
  .alphabetRail button { min-width:25px; width:25px; height:26px; }
}

/* v0.6 community UI, inline details, loading feedback and admin dashboard */
.headerTools { display:flex; gap:8px; align-items:center; justify-content:flex-end; min-width:0; }
.headerIconBtn { min-height:40px; padding:8px 11px; display:flex; align-items:center; gap:6px; white-space:nowrap; }
.notificationBtn { position:relative; }
.notificationCount { position:absolute; right:-5px; top:-7px; min-width:20px; height:20px; padding:0 5px; border-radius:999px; display:grid; place-items:center; background:#e5484d; color:#fff; font-size:10px; font-weight:900; border:2px solid #0b1017; }

.playbackLoading { position:absolute; inset:0; z-index:30; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; background:rgba(0,0,0,.64); backdrop-filter:blur(5px); color:#fff; text-align:center; padding:25px; }
.playbackLoading[hidden] { display:none; }
.playbackLoading strong { font-size:22px; }
.playbackLoading span { color:#cbd5e1; max-width:650px; }
.loadingSpinner { width:42px; height:42px; border-radius:50%; border:4px solid rgba(255,255,255,.2); border-top-color:#fff; animation:eliteSpin .9s linear infinite; }
.loadingError .loadingSpinner { display:none; }
.loadingError strong { color:#ff8f94; }
@keyframes eliteSpin { to { transform:rotate(360deg); } }

.posterHoverActions { position:absolute; inset:auto 8px 8px 8px; z-index:5; display:flex; gap:6px; opacity:0; transform:translateY(6px); transition:.16s ease; pointer-events:none; }
.posterWrap:hover .posterHoverActions { opacity:1; transform:none; pointer-events:auto; }
.posterHoverActions button,.favoriteCorner { min-width:34px; min-height:34px; padding:6px 9px; background:rgba(8,12,18,.92); border-color:rgba(255,255,255,.25); backdrop-filter:blur(8px); }
.favoriteCorner { position:absolute; z-index:5; right:8px; top:8px; }

.tvInlineDetail { grid-column:1/-1; position:relative; overflow:hidden; border-radius:18px; border:1px solid #344258; min-height:330px; background:#101722; scroll-margin-top:120px; }
.inlineShowBackdrop { position:absolute; inset:0; background-size:cover; background-position:center 20%; opacity:.38; }
.inlineShowShade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(8,12,18,.98) 0%,rgba(8,12,18,.86) 55%,rgba(8,12,18,.72) 100%); }
.inlineShowContent { position:relative; z-index:2; display:grid; grid-template-columns:170px minmax(0,1fr); gap:22px; padding:24px; }
.inlineShowPoster { width:170px; aspect-ratio:2/3; object-fit:cover; border-radius:11px; box-shadow:0 14px 40px rgba(0,0,0,.42); }
.inlineShowMain { min-width:0; }
.inlineShowHeader { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.inlineShowHeader h2 { margin:3px 0 8px; font-size:29px; }
.inlineShowHeader > button { width:38px; height:38px; padding:0; border-radius:50%; font-size:22px; }
.inlineEpisodes { margin-top:20px; max-height:520px; overflow:auto; border-top:1px solid rgba(255,255,255,.12); padding-top:10px; }
#inlineMetadataHost:not(:empty) { margin:18px 0; }
.inlineMetadataCard { width:100%; max-height:none; box-shadow:none; border-color:#3d4d64; background:rgba(13,20,29,.96); }
.inlineMetadataCard .modalClose { display:none; }

.densityControls { display:flex; gap:6px; align-items:center; color:#8e9bad; font-size:12px; }
.densityControls button { width:34px; min-height:32px; padding:4px; }
html[data-poster-density="small"] .movieGrid { grid-template-columns:repeat(auto-fill,minmax(125px,1fr)); }
html[data-poster-density="medium"] .movieGrid { grid-template-columns:repeat(auto-fill,minmax(165px,1fr)); }
html[data-poster-density="large"] .movieGrid { grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); }

.requestHero { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px; margin-bottom:18px; }
.requestHero h2 { margin:5px 0; }
.requestBoard,.adminQueue { display:grid; gap:10px; }
.requestCard,.queueRow { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:15px 17px; background:#111923; border:1px solid #2b394c; border-radius:13px; }
.requestCard h3 { margin:4px 0; }
.requestCard p { margin:5px 0; color:#aab6c6; }
.requestType { font-size:10px; letter-spacing:.08em; font-weight:900; color:#92a6bf; }
.statusPill { border:1px solid #405069; border-radius:999px; padding:6px 10px; text-transform:capitalize; font-size:11px; font-weight:800; }
.status_pending { color:#ffd37a; border-color:#785f2f; }.status_approved { color:#8ddcff; border-color:#2d6680; }.status_added { color:#93efbc; border-color:#28734b; }.status_declined { color:#ff9b9b; border-color:#794040; }
.queueRow > div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.queueRow span,.queueRow small { color:#99a8ba; }
.queueRow select { min-width:140px; }

.adminDashboardCards { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; margin:0 0 18px; }
.adminStatCard { padding:15px; background:linear-gradient(145deg,#151e2a,#111822); border:1px solid #2d3a4c; border-radius:13px; display:flex; flex-direction:column; gap:3px; }
.adminStatCard strong { font-size:25px; }.adminStatCard span { color:#9cabbd; font-size:12px; }
.storageOverview { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; }
.storageOverview > div { padding:12px; background:#121a25; border:1px solid #293649; border-radius:10px; display:flex; flex-direction:column; }
.storageOverview strong { font-size:18px; }.storageOverview span { color:#94a4b7; font-size:11px; }
.dangerButton { border-color:#74343a !important; color:#ffb1b5 !important; }

.globalSearchCard { width:min(860px,100%); }
.globalSearchInput { width:100%; font-size:18px; padding:13px 15px; margin:8px 0 14px; }
.globalSearchResults { display:grid; gap:7px; max-height:62vh; overflow:auto; }
.searchResult { display:flex; justify-content:space-between; gap:15px; align-items:center; width:100%; text-align:left; padding:12px 14px; }
.searchResult span { color:#9aabbd; }
.notificationList { display:grid; gap:8px; }
.notificationItem { display:flex; flex-direction:column; gap:4px; padding:12px; border:1px solid #2e3a4d; border-radius:10px; background:#121a24; }
.notificationItem.unread { border-color:#4a789d; background:#142333; }.notificationItem small { color:#8fa0b2; }
.currentProfile { display:flex; justify-content:space-between; gap:12px; padding:14px; background:#151e2a; border:1px solid #304057; border-radius:11px; }
.profileList { display:grid; gap:7px; margin:12px 0; }.profileList button { text-align:left; }
.profilePreferences { border-top:1px solid #2f3b4c; padding-top:14px; display:grid; gap:12px; }

.miniGuide { position:absolute; z-index:28; left:0; top:0; bottom:0; width:min(430px,85vw); background:rgba(8,13,19,.94); backdrop-filter:blur(14px); border-right:1px solid rgba(255,255,255,.14); display:flex; flex-direction:column; }
.miniGuide[hidden] { display:none; }
.miniGuideHeader { display:flex; align-items:center; justify-content:space-between; padding:13px 15px; border-bottom:1px solid #2e3b4d; }.miniGuideHeader button { width:35px;height:35px;padding:0; }
.miniGuideRows { overflow:auto; padding:6px; }.miniGuideRow { width:100%; display:grid; grid-template-columns:52px 120px minmax(0,1fr); gap:8px; text-align:left; align-items:center; margin:3px 0; }.miniGuideRow span,.miniGuideRow small { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.miniGuideRow small { color:#91a0b2; }.miniGuideRow.active { border-color:#57a4dc;background:#19324a; }
.upNextCard { position:absolute; z-index:27; right:20px; bottom:95px; width:min(390px,calc(100% - 40px)); background:rgba(12,18,27,.95); backdrop-filter:blur(12px); border:1px solid #42536b; border-radius:14px; padding:15px; box-shadow:0 18px 55px rgba(0,0,0,.48); display:flex; justify-content:space-between; gap:15px; align-items:end; }.upNextCard[hidden]{display:none}.upNextCard > div:first-child { display:flex;flex-direction:column;gap:4px; }.upNextCard small { color:#8da0b5;font-weight:900;letter-spacing:.08em; }.upNextCard span { color:#a7b4c4; }
.simpleMediaTile { min-width:220px; padding:14px; border:1px solid #2c394b; background:#121a24; border-radius:12px; display:flex; flex-direction:column; gap:4px; }.simpleMediaTile span,.simpleMediaTile small { color:#95a4b6; }
.statusBanner { padding:12px 14px; margin-bottom:12px; border:1px solid #38506a; border-radius:11px; background:#132131; }

/* Ten Live TV controls in desktop mode. */
.liveControls { grid-template-columns:1.1fr .8fr .9fr .8fr 1.1fr auto auto auto auto auto; }

@media (max-width:850px) {
  .headerIconText,#profileName { display:none; }
  .inlineShowContent { grid-template-columns:1fr; }
  .inlineShowPoster { width:125px; }
  .requestHero,.requestCard,.queueRow { align-items:flex-start; flex-direction:column; }
  .queueRow select { width:100%; }
  .liveControls { grid-template-columns:repeat(3,1fr); }
}
.liveNowTile { min-width:250px; max-width:320px; display:flex; flex-direction:column; align-items:flex-start; text-align:left; gap:4px; padding:13px; border-radius:12px; background:#121c28; border:1px solid #2e4156; }
.liveNowTile span { color:#d8e2ef; }.liveNowTile small { color:#8fa0b2; }

/* v0.7.0 inline media details, multi-version playback and admin hardware status */
#library > .detailPanel { grid-column:1/-1; width:100%; margin:0 0 6px; scroll-margin-top:120px; }
#library > .detailPanel .detailContent { min-height:390px; }
#library > .detailPanel .detailPoster { width:190px; }
#library > .detailPanel .detailText { max-width:900px; }
.movieCard.selectedCard .poster { outline:2px solid var(--accent,#4aa8ff); outline-offset:3px; }

.tunerUsageCards { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:12px; }
.tunerUsageCard { padding:14px; border:1px solid #334156; border-radius:12px; background:#121a25; display:flex; flex-direction:column; gap:10px; }
.tunerUsageHeader { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.tunerUsageHeader strong { font-size:15px; }
.tunerUsageHeader small { color:#8392a6; }
.tunerDots { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.tunerDotWrap { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:38px; }
.tunerDot { width:22px; height:22px; border-radius:50%; border:2px solid #4b596c; background:#1a2230; box-shadow:inset 0 0 0 4px #111822; }
.tunerDot.active { background:#31d17c; border-color:#8ff0b8; box-shadow:0 0 13px rgba(49,209,124,.38),inset 0 0 0 3px #173b29; }
.tunerDot.error { background:#d65a5a; border-color:#ff9999; }
.tunerDotWrap small { max-width:80px; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#95a4b7; font-size:10px; }

.transcodeDevices { display:grid; gap:9px; margin:12px 0 16px; }
.transcodeDevice { display:grid; grid-template-columns:auto minmax(180px,1fr) auto; gap:10px; align-items:center; padding:11px 12px; border:1px solid #334156; border-radius:11px; background:#131b26; }
.transcodeDevice .deviceStats { color:#8fa0b4; font-size:12px; text-align:right; }
.transcodeDevice input { width:18px; height:18px; }

.artworkEditor { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0; }
.artworkEditCard { border:1px solid #334155; border-radius:12px; background:#131c28; padding:12px; display:flex; flex-direction:column; gap:9px; min-width:0; }
.artworkPreview { display:block; max-width:100%; object-fit:cover; border-radius:9px; background:#0b1119; border:1px solid #2c394b; }
.artworkPreview.posterPreview { width:120px; aspect-ratio:2/3; }
.artworkPreview.backdropPreview { width:100%; aspect-ratio:16/9; }
.artworkPreview:not([src]), .artworkPreview[src=""] { display:none; }
.artworkEditCard input[type=file] { width:100%; }

.versionChoices { display:grid; gap:10px; margin-top:16px; }
.versionChoice { width:100%; text-align:left; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:14px; border-radius:11px; }
.versionChoice strong { display:block; font-size:16px; }
.versionChoice span { color:#9eacbe; font-size:12px; }
.versionRecommended { color:#76e5a7; font-weight:800; font-size:11px; }
.versionWarning { color:#ffc16b; font-weight:800; font-size:11px; }

.mediaInfoCard { width:min(980px,100%); }
.mediaInfoBody { display:grid; gap:12px; margin-top:14px; }
.mediaInfoGroup { border:1px solid #334155; border-radius:11px; background:#121a25; padding:12px; }
.mediaInfoGroup h4 { margin:0 0 8px; }
.mediaFileRow { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:9px 0; border-top:1px solid rgba(255,255,255,.07); }
.mediaFileRow:first-of-type { border-top:0; }
.mediaFilePath { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:11px; color:#9dacbf; overflow-wrap:anywhere; }
.mediaFileTech { text-align:right; color:#c3cfdd; font-size:12px; white-space:nowrap; }
.duplicateWarning { color:#ffc16b; font-weight:800; }

.playerNotice { position:absolute; top:18px; right:18px; z-index:35; padding:10px 14px; border-radius:10px; background:rgba(10,16,23,.92); border:1px solid rgba(255,255,255,.18); color:#fff; box-shadow:0 8px 25px rgba(0,0,0,.35); }

@media (max-width:700px) {
  .artworkEditor { grid-template-columns:1fr; }
  .transcodeDevice { grid-template-columns:auto 1fr; }
  .transcodeDevice .deviceStats { grid-column:2; text-align:left; }
  .mediaFileRow { grid-template-columns:1fr; }
  .mediaFileTech { text-align:left; white-space:normal; }
}

/* v0.7.1 metadata viewport + selected-card viewport guard */
body.metadataEditorOpen { overflow:hidden; }
#metadataModal { padding:18px; }
#metadataModal .metadataCard {
  width:calc(100vw - 36px);
  max-width:none;
  max-height:calc(100vh - 36px);
  overflow:auto;
  overscroll-behavior:contain;
}
.movieCard.selectedCard { scroll-margin-top:120px; scroll-margin-bottom:24px; }
@media (max-width:700px) {
  #metadataModal { padding:8px; }
  #metadataModal .metadataCard { width:calc(100vw - 16px); max-height:calc(100vh - 16px); padding:18px 14px; }
}


/* v0.8.1 web UI stability */
#metadataModal .metadataResults { grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); }
#metadataModal .metadataCard { min-height:min(720px,calc(100vh - 36px)); }

/* v0.8.2 TV detail controls, unmatched layout stability, and encoder health */
.inlineShowPosterWrap { position:relative; width:170px; align-self:start; }
.inlineShowPosterPlaceholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; background:linear-gradient(145deg,#1b2635,#0e141d); color:#dce7f4; border:1px solid #34445a; }
.inlineShowPosterPlaceholder span { font-weight:900; letter-spacing:.12em; }
.inlineShowPosterPlaceholder small { color:#8fa1b5; font-size:10px; letter-spacing:.08em; }
.seriesPosterPlay { position:absolute; left:50%; bottom:13px; transform:translateX(-50%); width:52px; height:52px; min-width:52px; padding:0 0 0 3px; border-radius:50%; font-size:22px; background:rgba(8,13,20,.82); border:1px solid rgba(255,255,255,.5); color:#fff; box-shadow:0 8px 24px rgba(0,0,0,.45); backdrop-filter:blur(7px); z-index:3; }
.seriesPosterPlay:hover { background:rgba(17,31,47,.94); transform:translateX(-50%) scale(1.06); }
.episodeRow { grid-template-columns:auto 58px minmax(0,1fr); }
.episodeActions { justify-content:flex-start; }
.unavailableDevice { opacity:.72; }
.deviceError { display:block; margin-top:3px; color:#ff9c9c; max-width:520px; line-height:1.25; }

@media (max-width:850px) {
  .inlineShowPosterWrap { width:125px; }
}
@media (max-width:600px) {
  .episodeRow { grid-template-columns:auto 42px minmax(0,1fr); gap:8px; align-items:start; }
  .episodeActions { grid-column:1; flex-direction:column; gap:5px; }
  .episodeActions button { padding:7px 8px; font-size:11px; }
  .episodeNumber { grid-column:2; }
  .episodeInfo { grid-column:3; }
}
.episodeIconButton { width:34px; min-width:34px; height:32px; min-height:32px; padding:0; display:inline-flex; align-items:center; justify-content:center; position:relative; font-size:14px; }
.versionChevron { position:absolute; right:2px; bottom:0; font-size:8px; }
@media (max-width:600px) {
  .episodeActions { flex-direction:row; }
  .episodeActions button { padding:0; font-size:13px; }
}

/* v0.8.6 unified UI polish — icon clarity and background match notice */
.sideIconSvg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.9;
  stroke-linejoin:round; stroke-linecap:round; display:block; flex:none; }
.metadataBackgroundNotice { position:fixed; bottom:22px; right:22px; z-index:1100; max-width:min(440px,calc(100vw - 30px));
  background:rgba(24,40,55,.98); color:#f4faff; border:1px solid #56758a; border-radius:12px;
  padding:13px 17px; box-shadow:0 16px 38px rgba(0,0,0,.45); }
.metadataBackgroundNotice.errorNotice { border-color:#da6f72; }
.metadataBackgroundNotice[hidden] { display:none!important; }

/* v0.8.7: clearly recognizable horizontal movie film strip */
.filmStripIcon { width:28px; height:28px; stroke-width:1.8; }
.filmStripIcon .filmHoles { fill:currentColor; stroke:none; }

/* v0.8.8: server performance, quality picker, and LIVE quick return */
.filmStripIcon{width:29px;height:29px;stroke-width:2.15}.filmStripIcon .filmHoles{stroke:none;fill:currentColor}
.qualityWrap{display:flex;align-items:center;gap:7px;color:var(--muted,#aec4d4);font-size:.84rem}.qualityWrap[hidden]{display:none}
.qualityWrap select{max-width:155px;padding:7px;background:#182a3b;color:white;border:1px solid #4d6477;border-radius:7px}
.liveQuickArtwork{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;background:linear-gradient(140deg,#173955,#0c1828);color:white;min-height:200px}
.liveQuickNumber{font-size:2.9rem;font-weight:900}.liveQuickStation{font-size:.85rem;text-align:center;padding:0 10px}.liveChip{position:absolute;top:10px;left:10px;background:#cd3341;color:white;border-radius:5px;padding:3px 8px;font-size:.7rem;font-weight:800}
.serverPerformanceCard{width:min(1200px,96vw);max-width:1200px;max-height:92vh;overflow-y:auto}
.perfGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;margin:15px 0}
.perfPanel{display:flex;flex-direction:column;gap:8px;border:1px solid rgba(150,184,209,.22);border-radius:12px;padding:15px;background:rgba(9,25,41,.64);min-width:0}.perfPanel small{opacity:.75}
.metricLine{display:grid;grid-template-columns:70px 1fr 45px;gap:9px;align-items:center;font-size:.85rem}.metricTrack{height:8px;background:#253a4d;border-radius:8px;overflow:hidden}.metricFill{height:100%;background:#39b87c;border-radius:8px}.perfSpark{width:100%;height:65px;color:#39b87c}
.perfStreams{display:grid;gap:9px}.perfStream{padding:12px;border:1px solid rgba(150,184,209,.2);border-radius:10px;display:flex;flex-direction:column;gap:5px}.perfStream small{overflow-wrap:anywhere;opacity:.8}

/* v0.8.9 navigation and device diagnostics */
#playerBox.playbackOverlay{position:fixed;inset:12px;z-index:240;background:#0b1018;display:flex;flex-direction:column;overflow:auto;box-shadow:0 12px 48px #000c;max-height:calc(100dvh - 24px);padding:12px}
#playerBox.playbackOverlay .videoStage{flex:1;min-height:180px;max-height:calc(100dvh - 110px);display:flex;align-items:center;justify-content:center}
#playerBox.playbackOverlay #video{width:100%;height:100%;max-height:calc(100dvh - 110px);object-fit:contain;background:#000}
#playerBox.playbackOverlay .playerHeader{flex-shrink:0}
.notificationBtn .bellGlyph{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:#a9b2c3}
.notificationBtn.hasUnread .bellGlyph{color:#d8aa36;stroke:#d8aa36}
.tunerClickable{cursor:pointer;transition:border-color .15s ease}
.tunerClickable:hover,.tunerClickable:focus-visible{outline:2px solid #4477a8;outline-offset:2px}
.tunerDetailsModal{max-width:780px;width:min(95vw,780px)}
.tunerDetailsGrid{display:grid;grid-template-columns:145px minmax(0,1fr);gap:8px;padding:12px 0;overflow-wrap:anywhere}
.tunerDetailsGrid span{color:#9eacbf}
.rememberControl{display:flex;gap:10px;align-items:center;margin:10px 0 16px;font-size:14px}
@media(max-width:620px){#playerBox.playbackOverlay{inset:0;max-height:100dvh;padding:6px}#playerBox.playbackOverlay .playerHeaderActions{flex-wrap:wrap}.tunerDetailsGrid{grid-template-columns:100px minmax(0,1fr)}}

/* v0.9.0: compact Admin sections, no permanently visible poster overlays */
.adminCategoryTabs{display:flex;gap:8px;overflow-x:auto;flex-wrap:wrap;padding:12px 0 20px;position:sticky;top:0;z-index:5;background:var(--panel,#101722)}
.adminCategoryTab{border:1px solid #536174;border-radius:10px;padding:9px 13px;white-space:nowrap;background:transparent;color:inherit;cursor:pointer}
.adminCategoryTab.active{background:#274569;border-color:#60a5fa}
.adminCategoryPane[hidden]{display:none!important}
.adminCategoryPane{display:flex;flex-direction:column;gap:14px;min-width:0}
.adminDrawer{border:1px solid #3c4d61;border-radius:12px;overflow:hidden;padding:0 14px 14px}
.adminDrawer>summary{cursor:pointer;padding:15px 3px;font-size:1.06em;font-weight:700}
.adminDrawer:not([open]){padding-bottom:0}
.adminDrawer>summary:focus-visible,.adminCategoryTab:focus-visible{outline:3px solid #60a5fa}
.accountSecurityForm{max-width:650px;display:grid;gap:12px}
.accountSecurityForm form{display:grid;gap:13px}
.movieCard .posterHoverActions,.homeMediaCard .posterHoverActions{opacity:0;pointer-events:none;transition:opacity .15s ease}
.movieCard:hover .posterHoverActions,.movieCard:focus-within .posterHoverActions,.homeMediaCard:hover .posterHoverActions,.homeMediaCard:focus-within .posterHoverActions{opacity:1;pointer-events:auto}
.posterPlayPrimary{font-size:22px!important;border-radius:50%;min-width:44px;min-height:44px}
.castRemotePanel{padding:14px;background:#152335;border:1px solid #52728c;border-radius:14px;margin:12px 0}
.castRemotePanel[hidden]{display:none!important}.castRemoteButtons{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.castRemoteHeading{font-weight:700}
@media(hover:none){.movieCard .posterHoverActions,.homeMediaCard .posterHoverActions{opacity:1;pointer-events:auto;position:relative}}

.castRemoteNav{text-align:center;padding:10px;display:grid;gap:8px;justify-content:center}.castRemoteNav>div{display:flex;gap:10px}.castRemoteNav button{min-width:56px;min-height:48px}.tvPairCode{font-size:38px;font-weight:800;letter-spacing:8px;text-align:center;padding:20px;border:2px dashed #94a3b8;margin:18px 0}.castRemoteButtons button{min-height:40px}#castAvailableDevices button{margin:5px}#eliteCastModal .modalCard{max-height:92vh;overflow:auto}

/* v0.9.1 — Elite identity and accessible startup / playback loading. */
.eliteBrandButton {appearance:none; border:0; background:transparent; cursor:pointer; width:100%;justify-content:flex-start;padding:4px 8px 20px;}
.eliteBrandButton:hover {filter:brightness(1.13);}
.eliteBrandButton:focus-visible {outline:2px solid #75adff;outline-offset:3px;border-radius:12px;}
.eliteBrandIcon {display:block;width:56px;height:56px;object-fit:cover;border-radius:14px;box-shadow:0 4px 22px rgba(14,80,180,.28);}
.eliteStartupSplash {position:fixed;inset:0;z-index:10000;background:#05172f url('/static/elite_splash.webp?v=0.9.1') center / cover no-repeat;}
.eliteStartupSplash[hidden] {display:none;}
/* Align the animated gleam with the light bar in the supplied splash artwork. */
.eliteSplashTrack {position:absolute;left:37.7%;top:79.7%;width:24.5%;height:5px;overflow:hidden;border-radius:40px;pointer-events:none;}
.eliteSplashTravel {display:block;position:absolute;top:0;left:0;height:100%;width:34%;border-radius:50px;background:linear-gradient(90deg,transparent,rgba(92,180,255,.6) 18%,#fff 65%,#58caff 85%,transparent);filter:drop-shadow(0 0 6px #3aabff);animation:eliteIndeterminate 1.7s ease-in-out infinite;}
@keyframes eliteIndeterminate {from {transform:translateX(-115%);}to{transform:translateX(330%);}}
.playbackBrandIcon{width:68px;height:68px;object-fit:cover;border-radius:17px;box-shadow:0 0 30px rgba(25,119,255,.3);}
.playbackIndeterminate{width:min(260px,60vw);height:5px;position:relative;overflow:hidden;border-radius:40px;background:rgba(100,167,238,.2);}
.playbackIndeterminate span{display:block;position:absolute;top:0;left:0;width:34%;height:100%;background:linear-gradient(90deg,transparent,#53aaff,#f4ffff,#53aaff,transparent);border-radius:30px;animation:eliteIndeterminate 1.7s ease-in-out infinite;}
.loadingError .playbackIndeterminate{display:none;}
/* Up Next is compact, near the TOP right, completely away from the bottom player controls. */
.upNextCard{position:absolute;top:16px;right:18px;bottom:auto;z-index:27;width:min(310px,calc(100% - 36px));max-width:310px;padding:13px 12px 12px 39px;display:flex;flex-direction:column;align-items:stretch;gap:9px;box-shadow:0 10px 34px rgba(0,0,0,.35);}
.upNextCopy{display:flex;flex-direction:column;gap:4px;min-width:0;}
.upNextCopy strong{font-size:13px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.upNextCopy span{font-size:12px;}
.upNextDismiss{position:absolute;top:8px;left:8px;width:25px;height:25px;min-width:25px;padding:0;border:0;border-radius:7px;background:rgba(255,255,255,.1);color:white;font-size:20px;line-height:1;cursor:pointer;}
.upNextDismiss:hover{background:rgba(255,255,255,.25);}
.upNextActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.upNextActions button{padding:6px 10px;font-size:12px;}
.upNextStop{border-color:transparent;background:transparent;color:#cbd5e1;}
@media(max-width:600px){.upNextCard{top:10px;right:10px;width:min(278px,calc(100% - 20px));}}
@media(prefers-reduced-motion:reduce){.eliteSplashTravel,.playbackIndeterminate span{animation:none;left:38%;transform:none;}}

/* Elite Media Center v0.9.3: original cinematic browsing, usable login, single gleam. */
.eliteLoginStage{max-width:none!important;margin:0!important;padding:0!important;min-height:100dvh!important;display:grid!important;grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr)!important;place-items:stretch!important;background:#061326;}
.eliteLoginShowcase{position:relative;min-height:100dvh;overflow:hidden;background:#05172d;}
.eliteLoginArt{position:absolute;inset:0;background:linear-gradient(0deg,rgba(2,10,25,.92) 4%,rgba(3,12,29,.10) 64%),linear-gradient(90deg,transparent 50%,#061326 100%),url('/static/login_collage.webp?v=0.9.3') center/cover no-repeat;filter:saturate(.88);}
.eliteLoginShowcaseCopy{position:absolute;bottom:10%;left:7%;right:10%;text-shadow:0 2px 20px rgba(0,0,0,.7);}
.eliteLoginKick{font-weight:650;letter-spacing:.15em;color:#b3c9e4;font-size:12px;}
.eliteLoginKick b{color:#4198ff;margin:0 7px;}
.eliteLoginShowcaseCopy h2{font-size:clamp(27px,3.1vw,53px);letter-spacing:-.035em;line-height:1.1;margin:14px 0 10px;font-weight:750;color:#f8fcff;}
.eliteLoginShowcaseCopy p{font-size:15px;color:#c0d3e5;margin:0;}
.eliteLoginPanel{min-width:0;display:grid;place-items:center;background:radial-gradient(circle at 50% 26%,#10356f44 0%,transparent 55%),linear-gradient(130deg,#07172f,#051226 75%);padding:28px 30px;border-left:1px solid #234a80a8;}
.eliteLoginPanel .loginCard{width:100%;max-width:440px;display:flex;flex-direction:column;align-items:stretch;gap:11px;margin:0;padding:24px;background:transparent;box-shadow:none;border:0;}
.eliteLoginLogo{width:102px;height:102px;object-fit:cover;align-self:center;border-radius:22px;box-shadow:0 0 30px #187aff3b;margin-bottom:10px;}
.eliteLoginPanel h1{margin:0;text-align:center;font-weight:800;font-size:30px;white-space:normal;letter-spacing:-.03em;}
.eliteLoginPanel h1 span{font-weight:400;}
.eliteLoginPanel .muted{text-align:center;margin:0 0 18px;color:#aebed2;}
.eliteLoginWelcome{font-size:22px;color:#fff;font-weight:750;text-align:center;margin:12px 0 0;}
.eliteLoginPanel .fieldLabel{color:#b5c9dd;font-size:13px;font-weight:600;margin-bottom:14px;gap:8px;}
.eliteLoginPanel .fieldLabel input{width:100%;height:52px;border-radius:9px;background:#0a1b33;border-color:#345574;color:#fff;font-size:16px;}
.eliteLoginPanel .fieldLabel input:focus-visible{outline:2px solid #58adff;outline-offset:1px;}
.eliteLoginPanel .rememberControl{margin:3px 0 21px;color:#d7e6f8;font-size:13px;}
.eliteLoginPanel .rememberControl input{accent-color:#3288fb;}
.eliteLoginSubmit{width:100%;padding:16px 22px;border-radius:9px;background:#1879f7!important;display:flex;justify-content:center;align-items:center;gap:14px;font-weight:750;font-size:16px;}
.eliteLoginSubmit:hover{background:#3294ff!important;}
.eliteLoginSubmit span{font-size:23px;font-weight:400;line-height:.5;}
.eliteLoginBottom{text-align:center;font-size:12px;color:#9fb1c7;line-height:1.8;border-top:1px solid #30507275;margin-top:22px;padding-top:19px;}
.eliteLoginPanel .error{text-align:center;font-size:13px;}
@media(max-width:820px){.eliteLoginStage{grid-template-columns:minmax(0,1fr)!important;}.eliteLoginShowcase{min-height:180px;height:24dvh;}.eliteLoginArt{background-position:center 35%;}.eliteLoginShowcaseCopy{bottom:10px;left:24px;}.eliteLoginShowcaseCopy h2{font-size:24px;margin:6px 0;}.eliteLoginShowcaseCopy p{display:none;}.eliteLoginPanel{border-left:0;padding:12px 20px;min-height:76dvh;}.eliteLoginPanel .loginCard{padding:10px 16px;}.eliteLoginLogo{width:76px;height:76px;margin-bottom:3px;}.eliteLoginPanel .muted{margin-bottom:8px;}}

.eliteFeatureHero{height:clamp(300px,29vw,460px);min-height:300px;position:relative;overflow:hidden;border-radius:17px;background:radial-gradient(circle at 75% 40%,#19385b,#081626 72%);border:1px solid #25425f;margin-bottom:24px;isolation:isolate;}
.eliteFeatureArtwork{position:absolute;inset:0;background-size:cover;background-repeat:no-repeat;background-position:center 33%;transition:background-image .2s ease;filter:saturate(.9);}
.eliteFeatureShade{position:absolute;inset:0;background:linear-gradient(90deg,#06111ffb 0%,#06111fdd 30%,#06111f5a 64%,#06111f23 100%),linear-gradient(0deg,#06111fff 0%,transparent 43%);}
.eliteFeatureContent{position:absolute;bottom:15%;top:10%;left:clamp(16px,4%,52px);z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;max-width:min(510px,65%);}
.eliteFeatureContent .eyebrow{font-weight:700;font-size:11px;letter-spacing:.16em;color:#9fc5fa;}
.eliteFeatureContent h2{font-size:clamp(28px,3.1vw,50px);line-height:1.08;letter-spacing:-.035em;margin:12px 0 8px;text-wrap:balance;text-shadow:0 2px 15px #020713b9;}
.eliteFeatureMeta{color:#afc5df;font-size:13px;font-weight:650;margin:0 0 13px;}
.eliteFeatureSynopsis{font-size:clamp(13px,1vw,16px);line-height:1.6;color:#d2dce7;margin:0 0 16px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
.eliteFeatureActions{display:flex;flex-wrap:wrap;gap:10px;}.eliteFeatureActions button{min-width:128px;padding:12px 18px;font-weight:750;}
.eliteFeatureActions .primary{background:#227be7;}
.eliteFeatureCarousel{position:absolute;bottom:16px;right:24px;z-index:3;display:flex;align-items:center;gap:12px;}
.eliteFeatureCarousel>button{border:1px solid #54739170;background:#12273dba;width:32px;height:32px;font-size:22px;line-height:22px;padding:0;border-radius:50%;}
.eliteFeatureDots{display:flex;gap:7px;align-items:center;}.eliteFeatureDots button{background:#8b99a7a8;min-height:0;min-width:0;padding:0;width:7px;height:7px;border-radius:99px;border:0;}.eliteFeatureDots button.active{background:#57b0ff;width:23px;}
.eliteFeatureHero~.homeSection .sectionHeader h2{font-size:20px;letter-spacing:-.01em;}
.eliteFeatureHero~.homeSection .mediaRail{grid-auto-columns:minmax(195px,245px);gap:12px;}
.eliteFeatureHero~.homeSection .homeMediaCard .poster{width:100%;aspect-ratio:16/9;object-fit:cover;}
.eliteFeatureHero~.homeSection .homeMediaCard .posterWrap{position:relative;}
.eliteFeatureHero~.homeSection .homeMediaCard .movieCardInfo{padding:10px;}
.eliteFeatureHero~.homeSection .homeMediaCard .movieTitle{font-size:13px;}
.eliteFeatureHero~.homeSection .homeMediaCard .movieSub{font-size:11px;}
.eliteFeatureHero~.homeSection .liveQuickArtwork{min-height:0;aspect-ratio:16/9;}
.eliteFeatureHero~.homeSection .liveQuickNumber{font-size:32px;}
.eliteFeatureHero~.homeSection .liveQuickStation{font-size:13px;}
.eliteLiveNowRail{grid-auto-columns:minmax(190px,235px)!important;}
.eliteLiveNowTile{min-height:132px;border:1px solid #274260;border-radius:11px;background:linear-gradient(145deg,#142a43,#0c192a);padding:14px;display:flex;flex-direction:column;gap:6px;cursor:pointer;}
.eliteLiveNowTile:hover{border-color:#4695dc;}
.eliteLiveNowTile strong{color:#eff6ff;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.eliteLiveNowTile small{font-size:11px;color:#99afca;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.eliteLiveIcon{font-size:11px;color:#fa7885;font-weight:850;letter-spacing:.06em;display:flex;align-items:center;justify-content:space-between;flex:1;}
.eliteLiveIcon span{color:#e5f0fc;font-size:24px;letter-spacing:0;}
.liveQuickTile .continueRemove{position:absolute;top:8px;right:8px;left:auto;z-index:10;min-width:28px;width:28px;height:28px;padding:0;font-size:20px;background:#071a2ee6;border:1px solid #758dad;color:#fff;}
@media(max-width:640px){.eliteFeatureHero{min-height:340px;height:340px;margin-bottom:18px;}.eliteFeatureContent{left:20px;top:8%;bottom:16%;max-width:92%;}.eliteFeatureContent h2{font-size:28px;}.eliteFeatureShade{background:linear-gradient(90deg,#06111ff7 0%,#06111fcc 80%,#06111f77),linear-gradient(0deg,#06111fff,transparent 78%);}.eliteFeatureCarousel{bottom:8px;right:14px;}.eliteFeatureSynopsis{-webkit-line-clamp:2;}.eliteFeatureActions button{padding:10px;min-width:104px;}.eliteFeatureHero~.homeSection .mediaRail{grid-auto-columns:minmax(170px,210px);}}

/* Remove the static light baked into the splash image; the CSS bar alone moves. */
.eliteStartupSplash {background-image:url('/static/elite_splash.webp?v=0.9.3');}
.eliteSplashTrack {left:38%;top:79.7%;width:24%;height:5px;overflow:hidden;background:rgba(76,126,195,.22);box-shadow:inset 0 0 4px #0c327966;}
.eliteSplashTravel {animation-duration:1.6s;}

#loginStage[hidden]{display:none!important;}

/* v0.9.4: original Elite login, no duplicate sign-in view or ownership language */
.eliteLoginStage{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(370px,.85fr)!important;min-height:100dvh!important;background:#071322!important;}
.eliteLoginStage[hidden],#appBox[hidden],#historyPage[hidden],#adminRemoveModal[hidden]{display:none!important;}
.eliteLoginShowcase{min-height:100dvh;background:#051428!important;}
.eliteLoginArt{background-image:linear-gradient(90deg,transparent 77%,#061327 100%),url('/static/login_showcase.webp?v=0.9.5a')!important;background-position:center center!important;background-size:cover!important;filter:none!important;}
.eliteLoginShowcaseCopy{display:none!important;}
.eliteLoginPanel{background:linear-gradient(145deg,#061831 0%,#051226 80%)!important;border-left:1px solid #2a4870!important;}
.eliteLoginPanel .loginCard{max-width:435px!important;}
.eliteLoginPanel h1{font-size:30px!important;}
.eliteLoginPanel .eliteLoginBottom{color:#95abc6;}
@media(max-width:820px){.eliteLoginStage{grid-template-columns:1fr!important;}.eliteLoginShowcase{height:22dvh!important;min-height:145px!important;}.eliteLoginPanel{min-height:78dvh;border-left:0!important;}.eliteLoginArt{background-position:45% 35%!important;}}

/* Clean horizontal browsing on desktop, horizontal swipe on mobile. */
#homePage .mediaRail{overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding-bottom:4px;touch-action:pan-x pan-y;}
#homePage .mediaRail::-webkit-scrollbar{display:none;width:0;height:0;}
#homePage .eliteRailFrame{position:relative;min-width:0;}
#homePage .eliteRailArrow{position:absolute;z-index:9;top:50%;transform:translateY(-50%);width:38px;height:58px;border-radius:9px;border:1px solid #5787b288;background:linear-gradient(120deg,#06172cee,#112b46ec);color:#f2f9ff;box-shadow:0 3px 22px #0009;display:grid;place-items:center;font-size:22px;cursor:pointer;opacity:.65;transition:opacity .18s ease,background-color .18s ease;}
#homePage .eliteRailArrow:hover,#homePage .eliteRailArrow:focus-visible{opacity:1;background:#215080;}
#homePage .eliteRailArrow.left{left:2px;}#homePage .eliteRailArrow.right{right:2px;}
#homePage .eliteRailArrow[hidden]{display:none!important;}
@media(hover:none),(pointer:coarse){#homePage .eliteRailArrow{display:none!important;}}
.eliteAdminVersion{color:#75b9ff;font-weight:500;font-size:.6em;margin-left:10px;}
.eliteVersionDetails{display:grid;grid-template-columns:minmax(135px,185px) minmax(0,1fr);gap:11px 20px;margin:12px 0 20px;}
.eliteVersionDetails dt{color:#9cb3c9;font-size:13px;}.eliteVersionDetails dd{margin:0;overflow-wrap:anywhere;}
.eliteUpdateHistory{display:grid;gap:6px;color:#adbed3;font-size:12px;margin-top:10px;overflow-wrap:anywhere;}
.eliteUpdateHistory>div{border-bottom:1px solid #2b4053;padding:7px 2px;}
.eliteRemoveCard{max-width:min(760px,96vw);width:100%;max-height:90dvh;overflow:auto;}
.eliteRemovePaths{max-height:205px;overflow:auto;display:grid;gap:8px;margin:10px 0 16px;}
.eliteRemovePaths>div{display:grid;gap:3px;padding:8px 10px;background:#0a192a;border:1px solid #2b4561;border-radius:8px;}
.eliteRemovePaths code{font-size:12px;overflow-wrap:anywhere;white-space:normal;}
.eliteRemovePaths small{color:#94acbf;}
.eliteRemovalChoices{display:grid;gap:10px;margin:16px 0;}
.eliteRemovalChoices label{display:flex;gap:12px;align-items:flex-start;padding:13px 14px;border-radius:10px;border:1px solid #3e566c;background:#0b1a2e;cursor:pointer;}
.eliteRemovalChoices label:has(input:checked){border-color:#66a9ff;background:#112743;}
.eliteRemovalChoices label:has(input[value="disk"]:checked){border-color:#da7272;background:#301d29;}
.eliteRemovalChoices label input{margin-top:6px;}
.eliteRemovalChoices span{display:grid;gap:5px;}
.eliteRemovalChoices small{color:#a6bdd1;line-height:1.4;}
.eliteInlineDelete{margin-left:8px;color:#f2a1a1;background:transparent;border:1px solid #744351;font-size:11px;padding:4px 7px;border-radius:5px;cursor:pointer;}
.historyEntry{min-width:0;display:grid;gap:4px;}.historyEntry .homeMediaCard{width:100%;}.historyEntry>small{color:#9db7cb;font-size:11px;}
.eliteHistoryButton{width:100%;margin:8px 0 12px;}

/* v0.9.5: tall cinematic hero and full, uncropped movie/series posters. */
#homePage .eliteFeatureHero{height:clamp(375px,36.25vw,575px);min-height:375px;}
#homePage .eliteFeatureArtwork{background-size:contain;background-position:75% center;background-repeat:no-repeat;}
#homePage .homeSection:has(#homeMovies) .mediaRail,
#homePage .homeSection:has(#homeTv) .mediaRail{grid-auto-columns:minmax(142px,198px)!important;}
#homePage .homePortraitCard .posterWrap{aspect-ratio:2/3!important;background:#061425;overflow:hidden;}
#homePage .homePortraitCard .poster{aspect-ratio:2/3!important;object-fit:contain!important;width:100%!important;height:100%!important;}
#homePage .homeWatchingCard .poster{aspect-ratio:16/9!important;object-fit:cover!important;}
@media(max-width:640px){#homePage .eliteFeatureHero{min-height:425px;height:425px;}#homePage .homeSection:has(#homeMovies) .mediaRail,#homePage .homeSection:has(#homeTv) .mediaRail{grid-auto-columns:minmax(120px,155px)!important;}}

.guideLibraryBadge{color:#c5edff!important;background:#103c58;border:1px solid #3c8ca8;border-radius:4px;padding:2px 4px;font-size:10px!important;display:inline-block;width:max-content!important;}
.guideLibraryAction{display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;}
.guideLibraryAction small{font-size:11px;font-weight:400;color:#eff9ff;}

.ccControl{position:relative;display:flex;align-items:center;}
#ccToggle{font-weight:800;letter-spacing:.06em;border:1px solid #6586a4;border-radius:6px;min-width:35px;}
#ccMenu{position:absolute;top:calc(100% + 6px);right:0;background:#09192f;border:1px solid #4f718f;border-radius:9px;box-shadow:0 12px 32px #000b;min-width:170px;max-height:45vh;overflow:auto;z-index:1050;padding:7px;display:grid;gap:3px;}
#ccMenu[hidden]{display:none;}#ccMenu button{text-align:left;border:0;background:#12263d;color:#f2f7ff;padding:10px;border-radius:5px;cursor:pointer;}#ccMenu button:hover{background:#204772;}
.ccEmpty{font-size:12px;color:#9cb3ca;padding:5px 8px;}

/* CC stays accessible within the fullscreen video stage. */
#videoStage>.ccControl{position:absolute;right:23px;bottom:73px;z-index:30;}
#videoStage>.ccControl>#ccToggle{background:#091d33df;color:#fff;backdrop-filter:blur(8px);padding:7px 9px;min-width:39px;}
#videoStage #ccMenu{top:auto;bottom:calc(100% + 7px);right:0;}

.guideProgram .guideQuickPlay{position:relative;z-index:1;display:inline-block;width:max-content;max-width:100%;padding:3px 5px;font-weight:650;font-size:10px;color:#e7faff;background:#146a89dd;border:1px solid #74c4dc;border-radius:4px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.guideProgram .guideQuickPlay:hover{background:#217fac;}

/* Admin removal belongs in the series-level Remove Media dialog, not episode rows. */
#removeMediaEpisodeWrap,#removeMediaSeasonWrap{margin-top:12px;}
#removeMediaEpisode,#removeMediaSeason{width:100%;max-width:100%;min-width:0;}

/* v0.9.6 full-bleed Featured artwork integrated with readable metadata */
#homePage .eliteFeatureArtwork{inset:0!important;background-position:center 44%!important;background-size:cover!important;filter:saturate(.98) contrast(1.04);}
#homePage .eliteFeatureShade{background:linear-gradient(90deg,rgba(3,9,19,.94) 0%,rgba(3,9,19,.78) 28%,rgba(3,9,19,.36) 58%,rgba(3,9,19,.02) 100%),linear-gradient(0deg,rgba(3,9,19,.62),transparent 45%);}
#homePage .eliteFeatureHero .eliteFeatureContent{max-width:min(590px,69%);}
#homePage .eliteFeatureHero:not(.heroLightArtwork) .eliteFeatureContent{color:#fff;}
#homePage .eliteFeatureHero.heroLightArtwork .eliteFeatureShade{background:linear-gradient(90deg,rgba(246,251,255,.95),rgba(242,249,255,.78) 32%,rgba(241,249,255,.12) 72%,transparent),linear-gradient(0deg,rgba(5,14,25,.4),transparent 35%);}
#homePage .eliteFeatureHero.heroLightArtwork .eliteFeatureContent,#homePage .eliteFeatureHero.heroLightArtwork .eliteFeatureContent h2{color:#0a1727;text-shadow:0 1px 1px #ffffff55;}
#homePage .eliteFeatureHero.heroLightArtwork .eliteFeatureMeta,#homePage .eliteFeatureHero.heroLightArtwork .eliteFeatureSynopsis,#homePage .eliteFeatureHero.heroLightArtwork .eyebrow{color:#233953;}
/* Modern unobtrusive corner action, never overlay program descriptions */
.guideProgram{position:absolute;padding-right:30px;}
.guideProgram .guideQuickPlay{position:absolute;right:4px;top:4px;z-index:6;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;border:1px solid #5292bd;background:#113f6fe8;color:#f2fbff;font-size:12px;padding:0;cursor:pointer;line-height:1;opacity:.78;}
.guideProgram .guideQuickPlay:hover,.guideProgram .guideQuickPlay:focus-visible{opacity:1;background:#1d75b5;box-shadow:0 0 0 2px #0a1729;}
.guideChannelCell{position:sticky;left:0;z-index:10;display:flex;align-items:center;gap:2px;padding:0 4px;background:#142234;}
.guideChannelTune{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:center;text-align:left;border:0;background:transparent;color:inherit;cursor:pointer;padding:0 4px;}
.guideChannelTune span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.guideFavoriteStar{border:0!important;background:transparent!important;color:#7795b6;padding:2px;font-size:20px;cursor:pointer;}
.guideFavoriteStar.selected,.guideFavoriteStar:hover{color:#f0c655;}
.liveLibrarySuggestion{position:absolute;right:22px;top:60px;z-index:25;max-width:min(440px,calc(100% - 44px));display:flex;align-items:center;gap:12px;padding:12px 13px;border:1px solid #476989;border-radius:10px;background:rgba(8,20,36,.94);box-shadow:0 10px 35px #0007;color:#f9fbff;}
.liveLibrarySuggestion[hidden]{display:none;}
.liveLibrarySuggestionText{display:flex;flex-direction:column;gap:3px;min-width:0;}
.liveLibrarySuggestionText span{font-size:12px;color:#c4d4e5;}
.liveLibrarySuggestion .primary{white-space:nowrap;font-size:12px;padding:9px 11px;}
#liveLibrarySuggestionDismiss{align-self:flex-start;border:0;background:transparent;color:#c4d4e5;font-size:20px;padding:0 3px;}
@media(max-width:600px){.liveLibrarySuggestion{right:10px;top:48px;flex-wrap:wrap;}.liveLibrarySuggestion .primary{flex:1;}}
#ccControl{right:90px!important;bottom:75px;}
.eliteHealthResults,.healthCheckRow{display:grid;gap:8px;}.healthCheckRow{grid-template-columns:1fr 1.4fr;align-items:center;padding:9px;border-bottom:1px solid #ffffff13;font-size:13px;}.healthCheckRow .healthy{color:#8cd6a4;}.healthCheckRow .unhealthy{color:#f5af7a;}

/* Elite Media Center v0.9.7: full-page TV seasons, account recovery, diagnostics */
#tvFullPage{padding-bottom:70px;max-width:100%;}
.elitePageBack{display:inline-flex;align-items:center;gap:8px;border:1px solid #315779;background:#12283e;color:#e8f4ff;padding:10px 17px;margin:12px 0 18px;border-radius:12px;font-size:14px;font-weight:700;cursor:pointer;}
.elitePageBack:hover{background:#24435e;border-color:#69a8dd;}
.eliteShowHero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(170px,252px) minmax(0,1fr);align-items:end;gap:clamp(22px,3vw,48px);min-height:clamp(315px,35vw,495px);padding:clamp(28px,4vw,58px);border-radius:21px;overflow:hidden;background:#0b1b31;color:white;box-shadow:0 16px 35px #0004;}
.eliteShowHero:before{content:'';position:absolute;inset:0;z-index:-2;background-image:var(--show-backdrop);background-position:center 40%;background-size:cover;opacity:.85;}
.eliteShowHero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(4,12,27,.96),rgba(6,17,34,.76) 47%,rgba(5,13,27,.3)),linear-gradient(0deg,rgba(5,12,25,.86),rgba(5,12,25,.1));}
.eliteShowPoster{max-width:245px;aspect-ratio:2/3;border-radius:12px;overflow:hidden;box-shadow:0 22px 50px #000a;background:#192d45;border:1px solid #ffffff23;}
.eliteShowPoster img,.eliteSeasonPoster img{width:100%;height:100%;object-fit:cover;display:block;}
.elitePosterFallback{height:100%;display:flex;align-items:center;justify-content:center;color:#bad2f5;letter-spacing:.12em;font-weight:900;}
.eliteShowIntro{max-width:860px;min-width:0;}
.eliteShowIntro h1{color:#fff;font-size:clamp(31px,4.1vw,58px);font-weight:800;letter-spacing:-.03em;margin:.2em 0;line-height:1.06;}
.eliteShowIntro p{max-width:740px;line-height:1.65;color:#d9e2f1;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;}
.eliteShowMeta{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0;color:#d4e2f5;font-size:13px;}
.eliteShowMeta span{white-space:normal;}
.eliteSeriesHeading{margin:37px 0 20px;font-weight:800;font-size:clamp(22px,2.2vw,32px);}
.eliteSeasonGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:22px;}
.eliteSeasonCard{display:flex;flex-direction:column;align-items:stretch;gap:9px;border:1px solid #254560;background:#0c1e33;padding:11px;text-align:left;border-radius:14px;color:#eef5ff;cursor:pointer;transition:transform .14s ease,border-color .14s ease;}
.eliteSeasonCard:hover,.eliteSeasonCard:focus-visible{transform:translateY(-4px);border-color:#69b8fb;outline:none;}
.eliteSeasonPoster{aspect-ratio:2/3;border-radius:8px;overflow:hidden;background:#17283e;}
.eliteSeasonCard strong{font-size:16px;}.eliteSeasonCard small{font-size:12px;color:#9ab3cd;}
.eliteEpisodeList{display:grid;gap:14px;max-width:1180px;}
.eliteEpisodeItem{display:grid;grid-template-columns:minmax(155px,265px) minmax(0,1fr);gap:24px;border:1px solid #29455e;border-radius:15px;background:#0c1b2c;padding:14px;}
.eliteEpisodeThumbnail{padding:0;position:relative;aspect-ratio:16/9;border:0;border-radius:10px;overflow:hidden;background:#152d43;color:#fff;cursor:pointer;}
.eliteEpisodeThumbnail img{width:100%;height:100%;object-fit:cover;filter:brightness(.73);}
.eliteEpisodeThumbnail>span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:47px;height:47px;border-radius:100%;background:#0c1a2bc9;border:1px solid #d2e8ff;font-size:19px;}
.eliteEpisodeInfo h3{margin:6px 0;font-size:clamp(17px,1.5vw,22px);}.eliteEpisodeInfo p{color:#aebed1;font-size:13px;line-height:1.55;margin:7px 0;}
.eliteEpisodeLabel{font-size:12px;color:#9abfda;}.eliteEpisodeActions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;}.eliteEpisodeActions button{min-height:36px;}
.eliteAuthOverlay{position:fixed;inset:0;z-index:2000;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:7vh 18px 35px;background:#04101ef2;color:#fff;}
.eliteAuthOverlay[hidden],#tvFullPage[hidden]{display:none!important;}
.eliteAuthCard{max-width:540px;width:100%;padding:clamp(20px,4vw,36px);background:#12233b;border:1px solid #41607b;border-radius:19px;box-shadow:0 24px 60px #0009;}
.eliteAuthCard h2{font-size:27px;margin:12px 0;}.eliteAuthCard form{display:grid;gap:14px;margin:18px 0;}.eliteAuthCard .fieldLabel{display:grid;gap:6px;}.eliteAuthCard .fieldLabel input{width:100%;}.eliteSpamHelp{font-size:12px;line-height:1.5;margin:20px 0 0;color:#a8c0da;}
.eliteAuthLinks{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin:15px 0;}.eliteAuthLinks button{background:transparent;border:0;color:#a2d6ff;text-decoration:underline;cursor:pointer;}
.eliteAccountManage{background:#12243b;border:1px solid #31516d;padding:13px;border-radius:11px;margin:14px 0;}.eliteAccountManage summary{cursor:pointer;font-weight:700;margin-bottom:8px;}
.elitePendingRequest{display:grid;gap:11px;margin:12px 0;padding:15px;background:#0d2035;border:1px solid #315574;border-radius:12px;}.elitePendingRequest small{display:block;color:#a9bed4;margin-top:6px;}.elitePendingRequest input{min-width:120px;flex:1;}.eliteSecretOnce{border:1px solid #6fa1d0;border-radius:12px;padding:18px;background:#112945;}.eliteSecretOnce code{display:block;overflow-wrap:anywhere;font-size:19px;padding:12px;background:#050e1c;border-radius:7px;margin:10px 0;}
.eliteSpeedMetrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0;}.eliteSpeedMetrics>div{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap;background:#112943;border:1px solid #2a4966;border-radius:12px;padding:16px;}.eliteSpeedMetrics small{flex-basis:100%;color:#a9c0d7;font-size:12px;}.eliteSpeedMetrics strong{font-size:clamp(22px,2.3vw,32px);}.eliteSpeedMetrics span{font-size:13px;color:#bdd1e4;}
@media(max-width:750px){.eliteShowHero{grid-template-columns:115px 1fr;align-items:center;gap:15px;padding:20px;min-height:310px;}.eliteShowIntro h1{font-size:29px;}.eliteShowIntro p{-webkit-line-clamp:3;font-size:12px;}.eliteShowMeta{gap:5px 9px;font-size:11px;}.eliteShowHero .detailActions{gap:8px;flex-wrap:wrap;}.eliteShowHero button{font-size:12px;}.eliteSeasonGrid{grid-template-columns:repeat(auto-fill,minmax(123px,1fr));gap:12px;}.eliteEpisodeItem{grid-template-columns:132px 1fr;gap:12px;}.eliteSpeedMetrics{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:480px){.eliteShowHero{grid-template-columns:1fr;align-items:start;}.eliteShowPoster{width:116px;}.eliteShowIntro h1{font-size:29px;}.eliteEpisodeItem{grid-template-columns:1fr;}.eliteEpisodeThumbnail{max-width:100%;}.eliteAuthOverlay{padding-top:2vh;}.elitePendingRequest .adminActionRow{flex-wrap:wrap;}}

/* Bottom navigation instead of the narrow desktop rail on phones. */
.eliteMobileNav{display:none;}
@media(max-width:640px){
 .appShell{grid-template-columns:minmax(0,1fr)!important;}
 .sideNav{display:none!important;}
 .workspace{padding:0 12px 94px!important;}
 .eliteMobileNav{position:fixed;bottom:0;left:0;right:0;z-index:1001;display:flex;align-items:center;justify-content:space-around;gap:2px;padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom));background:#071422f5;border-top:1px solid #416381;box-shadow:0 -12px 38px #0009;backdrop-filter:blur(18px);}
 .eliteMobileNav>button{display:grid;gap:3px;justify-items:center;min-width:0;flex:1;padding:8px 2px;border:0;background:transparent;color:#b4c8dc;font-size:20px;}
 .eliteMobileNav>button span{font-size:10px;font-weight:650;}
 .eliteMobileNav>button.active{color:#74cfff;}
 #eliteMobileMenu{position:absolute;bottom:calc(100% + 8px);right:12px;width:min(240px,calc(100vw - 24px));padding:10px;display:grid;gap:7px;background:#11263f;border:1px solid #4a7293;border-radius:14px;box-shadow:0 18px 45px #000a;}
 #eliteMobileMenu[hidden]{display:none;}
 #eliteMobileMenu button{text-align:left;background:#1b3654;}
 .workspaceHeader .headerTools{max-width:100%;display:flex;flex-wrap:wrap;}
 .workspaceHeader .headerIconText{display:none;}
}

/* v0.9.8: full-page Movies and higher contrast unobtrusive Home rail controls. */
#movieFullPage[hidden],#tvFullPage[hidden]{display:none!important;}
#movieFullPage{width:100%;padding-bottom:72px;}
#movieFullPage .eliteMovieFullBody{max-width:1600px;margin:4px auto 0;}
#movieFullPage #detailPanel{display:block;min-height:clamp(500px,48vw,720px);border:0;border-radius:16px;margin:0;background:#091a2b;}
#movieFullPage #detailPanel .detailBackdrop{inset:0;opacity:.95;background-size:cover;background-position:center 28%;}
#movieFullPage #detailPanel .detailShade{background:linear-gradient(90deg,#071326f5 0%,#071326c7 33%,#0713268c 58%,#07132642 100%),linear-gradient(0deg,#071326eb,transparent 55%);}
#movieFullPage #detailPanel .detailContent{position:relative;display:flex;gap:30px;align-items:flex-end;min-height:clamp(500px,48vw,720px);padding:clamp(24px,5vw,64px);}
#movieFullPage #detailPanel .detailPoster{width:clamp(155px,18vw,260px);height:auto;aspect-ratio:2 / 3;object-fit:contain;box-shadow:0 17px 50px #0008;flex-shrink:0;}
#movieFullPage #detailPanel .detailText{max-width:min(770px,100%);flex:1;}
#movieFullPage #detailPanel h1{font-size:clamp(30px,4vw,60px);line-height:1.08;letter-spacing:-.03em;}
#movieFullPage #detailPanel .closeDetail{display:none!important;}
.eliteMovieRatingControls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:22px;padding:12px 0;color:#bdd1e7;font-size:13px;}
.eliteMovieRatingControls label{display:flex;align-items:center;gap:8px;}
.eliteMovieRatingControls select{background:#122b40;color:#fff;padding:8px;border:1px solid #6687a3;border-radius:8px;}
.eliteParentControls{border:1px solid #355372;background:#0a1a2d;border-radius:12px;padding:12px 16px;margin-bottom:18px;}
.eliteParentControls summary{font-weight:750;cursor:pointer;padding:6px 0;margin-bottom:12px;}
.eliteParentControls .adminFormGrid{margin-top:10px;}
.eliteParentControls .ageDisplay{align-self:center;color:#cde3f7;font-weight:700;}
#homePage .eliteRailArrow{width:42px;height:52px;top:50%;border-radius:999px;font-size:26px;font-weight:900;opacity:1;background:#061725df;color:#fff;border:2px solid #d8f0ffb3;box-shadow:0 0 0 2px #0005,0 5px 18px #000c;text-shadow:0 2px 4px #000b;transition:background .2s ease,transform .2s ease,border-color .2s ease;}
#homePage .eliteRailArrow:hover,#homePage .eliteRailArrow:focus-visible{opacity:1;background:#175c9bfa;border-color:#fff;transform:translateY(-50%) scale(1.12);outline:2px solid #6ec1ff;outline-offset:3px;}
#homePage .eliteRailArrow.left{left:4px;}#homePage .eliteRailArrow.right{right:4px;}
@media(hover:none),(pointer:coarse){#homePage .eliteRailArrow{display:grid!important;width:36px;height:46px;font-size:23px;background:#071829e3;}}
@media(max-width:640px){#movieFullPage #detailPanel .detailContent{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:12px;min-height:610px;padding:16px;}#movieFullPage #detailPanel .detailPoster{max-width:145px;}#movieFullPage #detailPanel h1{font-size:30px;}#homePage .eliteRailArrow{width:32px;height:46px;}}

/* Elite Media Center v0.9.9 — full VOD timeline, unified caption placement, genre browsing */
.genreBrowser{padding:10px 0 16px;min-width:0;}
.genreHead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 10px;}
.genreHead>button{border:1px solid #466889;border-radius:9px;background:#142c43;color:#e5f2ff;padding:7px 12px;font-size:12px;font-weight:700;cursor:pointer;}
.genreChoices{display:flex;gap:7px;flex-wrap:wrap;max-height:122px;overflow:auto;scrollbar-width:thin;padding:1px 0 4px;}
.genreChoice{border:1px solid #35546f!important;color:#d4e5f7!important;background:#102137!important;border-radius:999px!important;padding:7px 12px!important;font-size:12px!important;line-height:1.2!important;cursor:pointer;}
.genreChoice:hover,.genreChoice:focus-visible{border-color:#78b6e6!important;}
.genreChoice.selected{background:#28699f!important;color:#fff!important;border-color:#7dc8ff!important;box-shadow:inset 0 0 0 1px #a8ddff55;}
.userAccountDanger{border-color:#55455c;}
.userAccountDanger .dangerButton{border-color:#984e5b;background:#5d2430;color:#fff;}

#videoStage>.ccControl{display:none!important;} /* A CC control is always part of the VOD or Live bar. */
#videoStage .ccControl{position:relative!important;right:auto!important;bottom:auto!important;top:auto!important;display:flex;align-items:center;min-width:0;z-index:2;}
#videoStage #ccToggle{background:#182a40;border:1px solid #6684a4;color:#f3f7fc;border-radius:8px;font-size:13px;padding:9px 10px;min-height:38px;min-width:42px;cursor:pointer;}
#videoStage #ccMenu{position:absolute;top:auto;bottom:calc(100% + 10px);right:0;z-index:50;max-width:min(280px,80vw);max-height:45vh;overflow:auto;}
.vodControls{position:absolute;left:0;bottom:0;right:0;z-index:29;display:flex;flex-direction:column;gap:11px;padding:27px clamp(12px,3vw,30px) 16px;background:linear-gradient(0deg,rgba(0,0,0,.92) 15%,rgba(0,0,0,.48) 75%,transparent);color:#fff;opacity:0;pointer-events:none;transform:translateY(7px);transition:opacity .17s,transform .17s;}
.vodControls[hidden],.liveControls[hidden]{display:none!important;}
.videoStage.controlsVisible .vodControls,.vodControls:focus-within{opacity:1;pointer-events:auto;transform:translateY(0);}
.vodSeek{display:flex;align-items:center;gap:10px;font-size:12px;font-variant-numeric:tabular-nums;font-weight:650;color:#eef4fc;}
.vodSeek span{min-width:38px;text-align:center;white-space:nowrap;}
#vodSeekRange{flex:1;min-width:0;accent-color:#65b4f0;cursor:pointer;height:22px;touch-action:none;}
.vodToolbar{display:flex;gap:10px;align-items:center;min-height:43px;}
.vodToolbar>button{min-width:45px;min-height:39px;background:#13273bee;color:#f3f9ff;border:1px solid #5a718a;border-radius:10px;cursor:pointer;font-size:14px;}
.vodToolbar>button:hover,.vodToolbar>button:focus-visible{background:#2c516f;}
#vodPlayPause{min-width:55px;font-size:22px;font-weight:800;}
.vodToolbarRight{margin-left:auto;display:flex;align-items:center;}
.liveCaptionSlot{display:flex;align-items:center;justify-content:center;}
/* Override old hover-to-show rule. Controls auto-hide when the pointer is idle. */
.videoStage:not(.controlsVisible) .liveControls:not(:focus-within){opacity:0!important;pointer-events:none!important;transform:translateY(8px)!important;}
.videoStage.controlsVisible .liveControls{opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important;}
@media(max-width:700px){
 .genreChoices{flex-wrap:nowrap;overflow:auto;max-height:none;padding-bottom:8px;}
 .genreChoice{white-space:nowrap;}
 .vodControls{padding:22px 9px 10px;gap:7px;}
 .vodToolbar{gap:5px;}
 .vodToolbar>button{font-size:12px;min-width:40px;padding:5px;}
 #videoStage #ccToggle{min-height:38px;padding:7px;}
 .liveCaptionSlot{grid-column:auto;}
}

/* v0.10.0 — cohesive Live TV toolbar; no dated full-width pill grid or orphan controls. */
.videoStage .liveControls{display:flex!important;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;padding:14px 18px 17px;max-width:100%;background:linear-gradient(0deg,rgba(4,10,18,.93),rgba(4,10,18,.66) 65%,transparent);z-index:26}
.videoStage .liveControls[hidden]{display:none!important}
.liveControls .liveControl{flex:0 0 auto;min-width:40px;width:auto;height:40px;border:1px solid rgba(164,192,227,.22);border-radius:11px;background:rgba(19,33,51,.79);color:#eaf3ff;padding:0 12px;font-size:15px;font-weight:600;box-shadow:none;transition:background .16s,border-color .16s,transform .16s}
.liveControls .liveControl:hover,.liveControls .liveControl:focus-visible{background:rgba(43,79,122,.92);border-color:#7ab9fb;transform:translateY(-1px)}
.liveControls .playPauseControl{width:46px;height:46px;background:#e8f2ff;color:#102039;border-color:#f1f7ff;border-radius:14px;font-size:20px}
.liveControls .liveEdgeControl{font-size:11px;min-width:52px;letter-spacing:.07em}
.liveControls .liveLibraryControl{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;flex:0 1 auto;min-width:167px;max-width:220px;min-height:44px;padding:5px 12px;border:1px solid #40996e;background:#145a3c;border-radius:11px;color:white;font-weight:700;font-size:12px;cursor:pointer;line-height:1.1;white-space:normal}
.liveControls .liveLibraryControl small{color:#c5f4dc;font-size:10px;font-weight:500;line-height:1.3}
.liveControls .liveLibraryControl:hover,.liveControls .liveLibraryControl:focus-visible{background:#1b7750;border-color:#71dc9f}
.liveControls .liveLibraryControl[hidden]{display:none!important}
.liveControls .liveCaptionSlot{position:relative;display:flex;justify-content:center;align-items:center;flex:0 0 auto;min-width:40px}
.liveControls .liveCaptionSlot .ccControl{position:relative;inset:auto;z-index:auto}
.guideProgram,.guideProgram.currentProgram{cursor:pointer!important;user-select:none!important;-webkit-user-select:none!important;touch-action:pan-x pan-y;transition:background .15s,border-color .15s,box-shadow .15s}
.guideProgram:hover,.guideProgram.currentProgram:hover,.guideProgram:focus-visible,.guideProgram.currentProgram:focus-visible{z-index:6!important;background:#314963!important;border-color:#87bef0!important;box-shadow:inset 0 0 0 1px #a1d0ff66,0 3px 16px #08111dbb!important;outline:none}
.guideProgram *{pointer-events:none;user-select:none;-webkit-user-select:none}
.guideProgram .guideQuickPlay{pointer-events:auto}
.miniPlayerHeader{display:none}
#playerBox.miniDock{position:fixed!important;inset:auto 14px 14px auto!important;width:min(360px,calc(100vw - 28px))!important;height:auto!important;max-height:unset!important;z-index:250!important;overflow:visible!important;display:flex!important;flex-direction:column!important;gap:0!important;margin:0!important;padding:0!important;border:1px solid #5c7898!important;border-radius:14px!important;background:#0b1625!important;box-shadow:0 10px 48px #000b!important}
#playerBox.miniDock .playerHeader,#playerBox.miniDock .castRemotePanel{display:none!important}
#playerBox.miniDock .miniPlayerHeader{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:41px;padding:5px 9px;color:white}
.miniPlayerHeader span{font-size:12px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:650}
.miniPlayerActions{display:flex;flex-shrink:0;gap:4px;align-items:center}
.miniPlayerActions button{padding:0 5px;min-width:28px;height:30px;background:#1c324d;color:white;border:1px solid #385777;border-radius:6px;cursor:pointer;font-size:12px}
#playerBox.miniDock .videoStage{display:block!important;margin:0!important;border-radius:0 0 12px 12px!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:16/9!important;overflow:hidden!important}
#playerBox.miniDock video{display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important}
#playerBox.miniDock .liveControls,#playerBox.miniDock .vodControls,#playerBox.miniDock .miniGuide,#playerBox.miniDock .upNextCard,#playerBox.miniDock .recordPrompt,#playerBox.miniDock .liveLibrarySuggestion,#playerBox.miniDock .liveChannelBug{display:none!important}
#playerBox.miniDock .playbackLoading{font-size:11px!important}
.healthGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.healthStat{display:flex;flex-direction:column;gap:5px;padding:13px;border:1px solid #334c65;border-radius:10px;background:#122337}
.healthStat strong{font-size:12px;color:#a9bed5}.healthStat span{font-size:17px;font-weight:700}.healthWide{grid-column:1/-1}
.verifiedStorageMover{margin-top:14px;padding:15px;background:#122335;border:1px solid #395470;border-radius:13px;display:flex;flex-direction:column;gap:10px}
.verifiedStorageMover progress{width:100%;height:12px;accent-color:#40a87d}
@media(max-width:650px){.videoStage .liveControls{gap:5px;padding:10px 5px}.liveControls .liveControl{min-width:36px;height:36px;padding:0 8px}.liveControls .liveLibraryControl{min-width:136px;max-width:170px}.liveControls .liveLibraryControl small{font-size:9px}#playerBox.miniDock{bottom:72px;right:8px;width:min(280px,calc(100vw - 16px))}}

.ccTimingButtons{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 4px;border-top:1px solid #45617f;flex-wrap:wrap}
.ccTimingButtons button{font-size:11px;padding:6px 7px;min-height:28px}
.ccTimingButtons span{font-size:11px;color:#d2dfec}

/* v0.10.2: stable library posters while NAS artwork arrives; compact actionable Admin alerts. */
.movieGrid .movieCard .posterWrap{position:relative;aspect-ratio:2/3;min-height:0;overflow:hidden;border-radius:11px;background:linear-gradient(155deg,#1d2836,#10141b)}
.movieGrid .movieCard .poster{display:block;width:100%;height:100%;aspect-ratio:2/3;object-fit:cover}
.movieGrid .movieCard .placeholderPoster{height:100%;min-height:0}
.movieGrid .movieCard .posterFailurePlaceholder{position:absolute;inset:0;z-index:1}
.movieGrid .movieCard .posterHoverActions,.movieGrid .movieCard .watchedBadge,.movieGrid .movieCard .unmatchedBadge{z-index:5}
.notificationItem.alert_warning{border-left:3px solid #dda642}
.notificationItem.alert_critical{border-left:3px solid #ef6669}
.notificationItem.alert_info{border-left:3px solid #5c9dcf}
.eliteAlertHeading,.eliteAlertActions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:space-between}
.eliteAlertHeading b{font-size:11px;letter-spacing:.1em;color:#a1bed8}
.eliteAlertHeading small{font-size:11px}
.eliteAlertActions{justify-content:flex-start;margin-top:6px}
.eliteAlertActions button{padding:7px 11px;min-height:36px}
.eliteAccessReviewCard{max-width:520px}
.eliteReviewDetails{display:grid;gap:8px;margin-bottom:15px}
.eliteReviewDetails>div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #253449;padding-bottom:7px}
.eliteReviewDetails small{color:#9faebf}
@media(max-width:500px){.eliteReviewDetails>div{flex-direction:column;gap:3px}.eliteAlertActions button{flex:1}}

/* Per-device HDHomeRun administration. Viewer lineup remains unified. */
.deviceLineupTabs{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 14px}
.deviceLineupTab{display:flex;flex-direction:column;gap:5px;text-align:left;min-width:150px;padding:12px 14px;border:1px solid #344154;border-radius:11px;background:#151f2c;color:#e5edf7;cursor:pointer}
.deviceLineupTab small{font-size:11px;color:#a8bfd5}
.deviceLineupTab:hover,.deviceLineupTab:focus-visible{border-color:#66a7dd;background:#22364b}
.deviceLineupTab.active{border-color:#7bbff9;background:#244267;box-shadow:inset 0 0 0 1px #518cc8}
.deviceChannelToolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:10px 0;padding:10px;border:1px solid #29374a;border-radius:9px}
.deviceChannelToolbar label{display:flex;align-items:center;gap:8px;cursor:pointer}
.deviceChannelToolbar input{width:18px;height:18px;cursor:pointer}
.deviceChannelScroll{max-height:60vh;overflow:auto;border-top:1px solid #344154;border-bottom:1px solid #344154}
.deviceChannelScroll .channelHeader{top:0}

#channelManager {max-height:none;overflow:visible;}

/* v0.10.4 — TV-distance readability, preserving the existing Live TV layout. */
@media (min-width: 900px) {
  .videoStage .liveControls { gap:9px; padding:16px 19px 20px; flex-wrap:nowrap; }
  .liveControls .liveControl { min-width:49px; height:49px; font-size:18px; padding:0 14px; border-radius:13px; }
  .liveControls .playPauseControl { width:57px; height:57px; font-size:25px; }
  .liveControls .liveEdgeControl { min-width:62px; font-size:14px; }
  .liveControls .liveLibraryControl { min-width:175px; max-width:235px; min-height:52px; font-size:14px; }
  .liveControls .liveLibraryControl small { font-size:12px; }
  .liveControls .liveCaptionSlot { min-width:49px; }
  .liveControls .liveCaptionSlot .ccControl { min-width:49px; min-height:49px; font-size:15px; }
}
@media (min-width:900px) and (max-width:1280px) {
  .videoStage .liveControls { gap:6px; padding-inline:8px; }
  .liveControls .liveControl { min-width:43px; height:44px; font-size:16px; padding-inline:9px; }
  .liveControls .playPauseControl { width:50px; height:50px; font-size:22px; }
  .liveControls .liveLibraryControl { min-width:150px; max-width:190px; font-size:12px; }
}

/* v0.10.4 client hotfix: Admin diagnostics and phone-sized Live TV guide */
.adminLoadNotice { display:grid; gap:9px; margin:0 0 16px; border:1px solid #37506b;
  border-radius:12px; padding:13px 15px; background:#11243a; color:#d8e8f7; font-size:13px; }
.adminLoadNoticeWarning { border-color:#957041; background:#292213; color:#ffdfab; }
.adminLoadNotice strong { font-size:14px; }
.adminLoadNotice ul { margin:0; padding-left:20px; overflow-wrap:anywhere; }
.adminLoadNotice button { width:max-content; max-width:100%; min-height:42px; }
@media(max-width:850px) {
  /* Profile remains usable through its header icon; the username does not
     duplicate the Admin label already visible at the bottom of the drawer. */
  #profileName { display:none !important; }
  /* Fill more portrait screen height with the actual channel grid. */
  .guideScroller { max-height:max(360px,calc(100dvh - 265px)); }
  #appBox:has(#livePage:not([hidden])) #appFooter { text-align:right; margin:12px 0 0 auto;
    padding:8px 8px 92px; font-size:10px; }
  #appBox:has(#livePage:not([hidden])) #appFooter .credits { justify-content:flex-end; flex-wrap:wrap; }
}

/* v0.10.5 shared website improvements. Existing markup and settings preserved. */
#eliteSidebarToggle { flex:0 0 auto;display:grid;place-items:center;width:43px;height:43px;min-width:43px;padding:0;
  border:1px solid #365777;border-radius:11px;color:#ecf5ff;background:#112940;font-size:24px;line-height:1;cursor:pointer; }
.eliteSidebarClose { display:none; }
.eliteSidebarBackdrop { display:none; }
#eliteSidebarAccount { justify-content:flex-start;min-height:44px;white-space:nowrap;gap:10px; }
#eliteSidebarAccount #profileName { display:inline!important;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px; }
#appBox .sideNavBottom #who { display:block!important;color:#94a8bc;font-size:10px;line-height:1.4;padding:0 12px 8px;overflow-wrap:anywhere; }
#appBox .workspaceHeader { min-height:70px;justify-content:flex-start;gap:14px;flex-wrap:wrap;align-items:center; }
#appBox .workspaceHeader > div:first-of-type { flex:1 1 140px;min-width:0; }
#appBox .workspaceHeader .headerTools { flex:2 1 290px;display:flex;flex-wrap:wrap;gap:7px;min-width:0;justify-content:flex-end; }
#appBox .workspaceHeader .headerTools .search { min-width:0;max-width:100%;flex:1 1 160px;width:auto; }
#appBox .appShell.eliteSidebarCollapsed { grid-template-columns:76px minmax(0,1fr); }
#appBox .appShell.eliteSidebarCollapsed .sideNav { padding:14px 9px; }
#appBox .appShell.eliteSidebarCollapsed .sideBrand .brand,
#appBox .appShell.eliteSidebarCollapsed .sideBrand .tagline,
#appBox .appShell.eliteSidebarCollapsed .sideNavButton span:last-child,
#appBox .appShell.eliteSidebarCollapsed .sideNavBottom #who {display:none!important;}
#appBox .appShell.eliteSidebarCollapsed .sideNavButton{ justify-content:center;padding:12px 7px; }
#appBox .appShell.eliteSidebarCollapsed #eliteSidebarAccount #profileName{display:none!important;}
#appBox .appShell.eliteSidebarCollapsed .sideBrand{justify-content:center;padding-inline:0;}
#appBox .sideNav #navAdmin[hidden],#appBox #eliteMobileAdmin[hidden]{ display:none!important; }
/* Keep the provider's attribution unobtrusive but present and readable. */
#appBox #appFooter{display:block;text-align:right;margin:12px 0 0 auto;padding:8px 8px 18px;font-size:10px;}
#appBox #appFooter .credits{justify-content:flex-end;flex-wrap:wrap;gap:6px;margin-bottom:4px;}
#appBox #appFooter .tmdbLogo{width:55px;max-height:20px;}
#appBox #livePage .guideScroller{max-height:calc(100dvh - 198px);min-height:min(65dvh,520px);}
.elitePasswordLabel { position:relative; }
.elitePasswordLabel #password {width:100%;padding-right:68px;}
.elitePasswordEye{position:absolute;right:7px;bottom:5px;min-width:47px;min-height:34px;padding:4px 7px;border-radius:7px;background:#233c57;color:#eff7ff;border-color:#4b6e90;font-size:12px;}

@media(max-width:820px){
  #appBox .appShell {grid-template-columns:minmax(0,1fr)!important;}
  #appBox .sideNav{display:none!important;}
  #appBox .workspaceHeader{display:flex;flex-direction:row!important;align-items:flex-start;gap:8px;padding:11px 0;margin-bottom:12px;}
  #appBox .workspaceHeader >div:first-of-type{flex:1 1 180px;}
  #appBox .workspaceHeader .headerTools{flex:1 1 100%;width:100%;justify-content:flex-start;}
  #appBox .workspaceHeader .headerIconBtn{flex:0 0 auto;}
  #appBox #livePage .guideScroller{max-height:calc(100dvh - 205px);min-height:min(63dvh,520px);}
  #appBox #appFooter{padding-bottom:calc(90px + env(safe-area-inset-bottom));}
  body.eliteSidebarOpen{overflow:hidden;}
  body.eliteSidebarOpen #appBox .sideNav{display:flex!important;position:fixed!important;left:0;top:0;bottom:0;
    width:min(300px,85vw);height:100dvh;z-index:1250;padding:18px 14px;overflow-y:auto;
    box-shadow:22px 0 70px #000a;background:#0c1b2a;}
  body.eliteSidebarOpen #appBox .sideNavButton{justify-content:flex-start;padding:12px 13px;}
  body.eliteSidebarOpen #appBox .sideNavButton span:last-child{display:inline!important;}
  body.eliteSidebarOpen #appBox #eliteSidebarAccount #profileName{display:inline!important;}
  body.eliteSidebarOpen #appBox .sideNavBottom #who{display:block!important;}
  body.eliteSidebarOpen #appBox .sideBrand{justify-content:flex-start;padding:4px 8px 18px;}
  body.eliteSidebarOpen #appBox .sideBrand .brand,body.eliteSidebarOpen #appBox .sideBrand .tagline{display:block;}
  body.eliteSidebarOpen #appBox .eliteSidebarBackdrop{display:block!important;position:fixed;inset:0;z-index:1200;
    background:#01050bc4;border:0;border-radius:0;width:100vw;height:100dvh;cursor:pointer;}
  body.eliteSidebarOpen #appBox .eliteSidebarClose{display:grid;place-items:center;align-self:flex-end;width:38px;height:38px;
    background:#1b3550;border:1px solid #4c6989;color:#fff;font-size:27px;margin:0 2px 5px;}
}
@media(max-width:600px){
  #appBox .workspaceHeader .headerTools .search{flex:1 1 100%;width:100%;}
  #appBox #livePage .guideScroller{max-height:calc(100dvh - 190px);min-height:min(62dvh,470px);}
  .loginCard #password{min-width:0;}
}

/* v0.10.5.1: keep the signed-in name visible with its avatar even in the
   compact desktop sidebar; the expanded/mobile drawer shows the full label. */
#appBox .appShell.eliteSidebarCollapsed #eliteSidebarAccount {
  flex-direction:column;align-items:center;gap:4px;min-height:58px;
}
#appBox .appShell.eliteSidebarCollapsed #eliteSidebarAccount #profileName {
  display:block!important;font-size:10px;line-height:1.2;
  max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#appBox .sideNavBottom #eliteSidebarAccount #profileName {display:inline!important;}
#appBox .appShell.eliteSidebarCollapsed .sideNavBottom #eliteSidebarAccount #profileName {display:block!important;}


/* ELITE ANDROID DIRECT DOWNLOAD v0.10.5.3 */
#appBox a.eliteAndroidDownloadLink {text-decoration:none; color:#b8c8da;}
#appBox a.eliteAndroidDownloadLink:hover,#appBox a.eliteAndroidDownloadLink:focus-visible {color:#fff;background:#1b2c3f;}
#loginBox .eliteAndroidDownloadLogin {
  display:block;text-align:center;margin:3px auto 0;padding:9px 12px;
  color:#b8d9f8;font-size:12px;line-height:1.5;text-decoration:underline;
  text-underline-offset:3px;max-width:100%;
}
#loginBox .eliteAndroidDownloadLogin:hover,#loginBox .eliteAndroidDownloadLogin:focus-visible {color:#fff;}
#loginBox .eliteAndroidDownloadLogin[hidden],#appBox .eliteAndroidDownloadLink[hidden] {display:none!important;}


/* v0.10.5.4: compact guide frozen channel cells; program timeline gets the space. */
.liveGuideGrid .guideCorner,.liveGuideGrid .guideChannelCell{
  flex:0 0 var(--elite-guide-channel-width,128px);
  width:var(--elite-guide-channel-width,128px);
  min-width:var(--elite-guide-channel-width,128px);
  max-width:var(--elite-guide-channel-width,128px);
}
.liveGuideGrid .guideCorner{padding:0 8px;letter-spacing:.025em;font-size:11px;}
.liveGuideGrid .guideChannelCell{padding:2px 3px;gap:0;}
.liveGuideGrid .guideChannelTune{padding:2px 3px;min-width:0;overflow:hidden;}
.liveGuideGrid .guideChannelTune strong{font-size:15px;line-height:1.15;}
.liveGuideGrid .guideChannelTune span{font-size:12px;max-width:100%;}
.liveGuideGrid .guideFavoriteStar{flex:0 0 27px;width:27px;min-width:27px;padding:2px;}

/* v0.10.5.4: primary, touch-friendly Android download links */
#loginBox a.eliteAndroidDownloadLogin{
  display:flex;align-items:center;justify-content:center;
  width:100%;min-height:50px;margin:13px auto 2px;padding:12px 14px;
  border:1px solid #60aeed;border-radius:11px;
  background:linear-gradient(120deg,#1771ba,#16559e);color:#fff;
  text-align:center;font-size:15px;font-weight:750;line-height:1.25;
  text-decoration:none;box-shadow:0 5px 20px rgba(18,100,189,.25);
}
#loginBox a.eliteAndroidDownloadLogin:hover,#loginBox a.eliteAndroidDownloadLogin:focus-visible{
  background:linear-gradient(120deg,#2189d4,#1a67b1);color:#fff;
  box-shadow:0 6px 24px rgba(29,133,225,.36);
}
#appBox .sideNavBottom a.eliteAndroidDownloadSidebar{
  background:#153c65;border:1px solid #3d79b0;color:#fff;
  font-size:13px;font-weight:700;min-height:46px;
  border-radius:9px;justify-content:flex-start;text-decoration:none;
}
#appBox .sideNavBottom a.eliteAndroidDownloadSidebar:hover,#appBox .sideNavBottom a.eliteAndroidDownloadSidebar:focus-visible{background:#205687;color:#fff;}

/* v0.10.5.5: device-scoped profile switcher. No global user directory. */
.eliteDeviceProfileRow{display:flex;gap:8px;align-items:stretch;min-width:0;}
.eliteDeviceProfileChoose{flex:1;min-width:0;min-height:47px;text-align:left!important;padding:10px 12px;overflow-wrap:anywhere;}
.eliteDeviceProfileRemove{flex:0 0 auto;min-height:44px;padding:8px 12px;font-size:12px;}
.eliteAddDeviceProfile{width:100%;min-height:46px;margin:12px 0 4px;border:1px dashed #6883a8;border-radius:9px;background:#16324c;color:#e4f1ff;font-weight:700;}
/* Loading splash artwork was composed for a wide display. Fit full image on phones. */
@media(max-width:820px){
  .eliteStartupSplash{background-color:#061327;background-size:contain;background-position:center center;}
  .eliteSplashTrack{left:29%;width:42%;top:auto;bottom:18%;}
}

/* v0.10.5.9 active playback: dashboard layout from owner's sketch */
.eliteActiveHeader{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0 10px}
.eliteActiveHeader h3{margin:0}.eliteActiveHeader small{color:#a3afbd}
.eliteActiveGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:12px 0 24px}
.eliteStreamCard{display:flex;min-width:0;flex-direction:column;gap:12px;background:rgba(13,31,46,.95);border:1px solid rgba(138,176,205,.36);border-radius:13px;padding:16px}
.eliteStreamTop,.eliteStreamTitle,.eliteRecoveryRow{display:flex;justify-content:space-between;gap:12px;align-items:center}
.eliteStreamTop>strong{font-size:1.05rem}.eliteStreamTitle>b{font-weight:650;overflow-wrap:anywhere}
.eliteStreamTitle>span{white-space:nowrap;color:#c2e0ff}.eliteStreamTitle small{font-size:.72rem;opacity:.7}
.eliteStreamTags{display:flex;flex-wrap:wrap;gap:7px}.eliteStreamTags>span{padding:4px 8px;border-radius:7px;background:#183447;color:#bfcfe0;font-size:.78rem}
.eliteStreamInfo{font-size:.78rem;color:#a7b8c7;overflow-wrap:anywhere}
.elitePlaybackState{font-size:.76rem;border-radius:16px;padding:5px 10px;background:#263647;color:#c2cbd7}
.elitePlaybackState.state-playing{background:#153f31;color:#a9efbd}.elitePlaybackState.state-buffering{background:#533c16;color:#fbe0a4}
.elitePlaybackState.state-paused{background:#34344b;color:#ddd1ff}
.eliteRecovery{padding:12px;background:rgba(6,22,34,.65);border:1px solid rgba(160,188,207,.14);border-radius:10px;display:grid;gap:9px}
.eliteRecovery>div:first-child{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.eliteRecovery small{color:#a7b7c5}.eliteRecoveryRow{font-size:.8rem;color:#a7b7c5}.eliteStallSpark{height:43px;width:100%;color:#4db7af}
.eliteStreamActions{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end}
.eliteStreamActions label{font-size:.78rem;display:flex;gap:5px;flex-direction:column;grid-column:1/-1}
.eliteStreamActions select{width:100%;background:#142b3b;color:#f0f5f7;border:1px solid #406078;border-radius:7px;padding:9px}
.eliteStreamActions button{min-height:39px;border-radius:8px;padding:8px 10px;border:1px solid #467b95;background:#18384b;color:#e8f1f8;cursor:pointer}
.eliteStreamActions button:disabled{opacity:.55;cursor:wait}.eliteStreamActions .eliteStopStream{grid-column:1/-1;border-color:#a96161;background:#542c34;color:#ffe8e9}
.eliteAdminControlMessage{color:#9fc5dc;overflow-wrap:anywhere}.eliteAdaptiveHistory{margin:18px 0}
.serverPerformanceCard{width:min(97vw,1260px);max-width:1260px;max-height:93dvh;overflow-y:auto}
@media(max-width:720px){.eliteActiveGrid{grid-template-columns:1fr}.eliteStreamCard{padding:12px}.eliteStreamTitle{align-items:flex-start}.serverPerformanceCard{width:100%;max-height:96dvh}}

.eliteRecoveryChange{color:#d1e8f5;font-weight:650;font-size:.88rem}


.internetTVRow{padding:12px 8px;border-bottom:1px solid var(--border,#555);display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.internetTVRow>div:first-child{flex:1;min-width:230px}.internetTVRow .adminActionRow{flex-shrink:0}

.internetTVEditModal{width:min(720px,calc(100vw - 28px));max-height:90vh;overflow-y:auto}.internetTVEditModal input[type="url"]{width:100%;min-width:0}.internetTVEditModal .adminFormGrid{margin:16px 0}.internetTVEditModal .adminActionRow{margin-top:16px}

/* v0.10.5.20: align channel number directly above centered channel name. */
.liveGuideGrid .guideChannelTune {align-items:center!important;text-align:center!important;}
.liveGuideGrid .guideChannelTune strong,.liveGuideGrid .guideChannelTune span {display:block;width:100%;max-width:100%;text-align:center!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* v0.10.5.21: center guide number and name, keep favorite control independent. */
.liveGuideGrid .guideChannelTune { align-items:center; text-align:center; }
.liveGuideGrid .guideChannelTune strong,
.liveGuideGrid .guideChannelTune span { display:block; width:100%; text-align:center; }

/* v0.10.5.24: legible IPTV management and guide coverage */
#iptvPlaylistResults .adminActionRow{display:flex;flex-wrap:wrap;align-items:center;gap:8px}#iptvPlaylistResults .adminActionRow select{max-width:100%;min-width:145px}.eliteIptvCoverageLine{display:flex;justify-content:space-between;gap:16px;align-items:baseline;padding:6px 3px;border-bottom:1px solid rgba(255,255,255,.08)}.eliteIptvCoverageLine span:first-child{min-width:0;overflow-wrap:anywhere}.eliteIptvCoverageLine span:last-child{flex-shrink:0;color:#b6cbe0;font-variant-numeric:tabular-nums}.eliteIptvCoverage>p{margin:7px 0 12px}@media(max-width:650px){.eliteIptvCoverageLine{font-size:12px;gap:8px}#iptvPlaylistResults .adminActionRow select{width:100%}}
