/* ============================================================================
   The "Netflix" look - a third skin for the same pages.

   Inert until <html data-skin="netflix">, which the server stamps in from
   settings (ui.skin). Like the Shahid sheet, every rule below is prefixed with
   that attribute, so this file can never touch the other looks.

   What makes it read as Netflix, beyond the red: a flat near-black #141414 page
   with no glow anywhere, Helvetica set tight and heavy, tiles with barely any
   rounding that *scale up* under the pointer instead of lifting, and white
   buttons with black text - the red is spent on the wordmark, the active tab and
   the progress bars, never on a button, which is what keeps it from looking like
   a generic dark theme with a red accent.
   ========================================================================== */

html[data-skin="netflix"] {
  --bg:#141414;
  --panel:#181818;      /* tiles and boxes, a hair off the page */
  --line:#2b2b2b;
  --text:#fff;
  --dim:#e5e5e5;
  --mute:#b3b3b3;       /* their secondary grey, used for everything muted */
  --acc:#e50914;        /* the one red, straight off netflix.com */
  --acc-hi:#f6121d;
  --ink:#111;           /* text on top of a white button */
  --ok:#46d369;         /* their "new episode" green */
  --bad:#ff4d4f;
  --r:4px;
  color-scheme:dark;
}

html[data-skin="netflix"] body {
  /* Netflix Sans is theirs; this is the stack their own pages fall back to, and
     system-ui at the end keeps the Arabic titles rendering properly. */
  font-family:'Helvetica Neue',Helvetica,Arial,system-ui,sans-serif;
  background:var(--bg); }
html[data-skin="netflix"] ::selection { background:#e5091459; }
html[data-skin="netflix"] * { scrollbar-width:thin; scrollbar-color:#4d4d4d transparent; }
html[data-skin="netflix"] ::-webkit-scrollbar { width:10px; height:10px; }
html[data-skin="netflix"] ::-webkit-scrollbar-track { background:transparent; }
html[data-skin="netflix"] ::-webkit-scrollbar-thumb {
  background:#4d4d4d; border:3px solid transparent; background-clip:content-box;
  border-radius:999px; }

/* -------------------------------------------------------------- the top bar */
html[data-skin="netflix"] header {
  min-height:64px; padding:13px 24px; gap:18px; background:#141414f2;
  border-bottom:0; box-shadow:0 3px 14px #000000a6; }
html[data-skin="netflix"] header h1 {
  color:var(--acc); font-size:19px; font-weight:900; letter-spacing:-.045em;
  text-transform:uppercase; margin-right:16px; }

/* Their nav is plain text: grey, white and bold for where you are, with the red
   kept to a hairline underneath. No pills, no boxes. */
html[data-skin="netflix"] .tabs { display:flex; gap:2px; flex-wrap:wrap; }
html[data-skin="netflix"] .tabs button {
  border-radius:0; padding:9px 11px; font-size:13.5px; font-weight:500; }
html[data-skin="netflix"] .tabs button:hover { background:none; color:#fff; }
html[data-skin="netflix"] .tabs button.on {
  background:none; color:#fff; font-weight:700;
  box-shadow:inset 0 -2px 0 var(--acc); }
html[data-skin="netflix"] #sched, html[data-skin="netflix"] #store { border-radius:3px; background:#333; padding:4px 10px; }
html[data-skin="netflix"] #acctWho { font-weight:700; }

/* ------------------------------------------------------- the category rail */
html[data-skin="netflix"] main { grid-template-columns:250px 1fr; min-height:calc(100vh - 64px); }
html[data-skin="netflix"] aside {
  border-right:1px solid #ffffff14; padding:8px 0 24px; top:64px;
  max-height:calc(100vh - 64px); }
html[data-skin="netflix"] aside div:not(.row) { padding:7px 16px; }
html[data-skin="netflix"] aside .row { border-left:3px solid transparent; }
html[data-skin="netflix"] aside .row:hover { background:#ffffff0f; }
html[data-skin="netflix"] aside .row .nm { padding:8px 0 8px 13px; }
html[data-skin="netflix"] aside .row.on { background:#ffffff14; border-left-color:var(--acc); }
html[data-skin="netflix"] aside .row.on .nm { color:#fff; font-weight:700; }
html[data-skin="netflix"] aside h4 {
  margin:16px 16px 4px; color:#777; font-size:10.5px; }
html[data-skin="netflix"] aside .cs.on { color:#fff; }

/* ------------------------------------------------------- controls and type */
html[data-skin="netflix"] section { padding:20px 24px 44px; }
html[data-skin="netflix"] h2.sec {
  color:#e5e5e5; font-size:19px; font-weight:700; letter-spacing:-.02em; margin:26px 0 12px; }

/* White for the action, their translucent grey for the alternative - Netflix's
   "Play" and "More info". The red is not a button colour here. */
html[data-skin="netflix"] button.b {
  background:#fff; color:var(--ink); border-radius:var(--r); padding:8px 17px;
  font-weight:700; font-size:13px; transition:background .15s, opacity .15s; }
html[data-skin="netflix"] button.b:hover { background:#e6e6e6; filter:none; }
html[data-skin="netflix"] button.b.sec { background:#6d6d6eb3; color:#fff; }
html[data-skin="netflix"] button.b.sec:hover { background:#6d6d6ee6; color:#fff; }
html[data-skin="netflix"] .vtoggle button:first-child { border-radius:var(--r) 0 0 var(--r); }
html[data-skin="netflix"] .vtoggle button:last-child { border-radius:0 var(--r) var(--r) 0; }
html[data-skin="netflix"] .vtoggle button.on { background:#fff; color:var(--ink); }

html[data-skin="netflix"] input, html[data-skin="netflix"] select {
  background:#000000b3; border:1px solid #6d6d6e; border-radius:var(--r); padding:9px 13px; }
html[data-skin="netflix"] input[type=search] { border-radius:var(--r); }
html[data-skin="netflix"] input:focus, html[data-skin="netflix"] select:focus {
  outline:0; border-color:#fff; box-shadow:none; background:#000; }
html[data-skin="netflix"] input[type=checkbox] { accent-color:var(--acc); width:16px; height:16px; }
html[data-skin="netflix"] .tag { border-radius:3px; background:#333; padding:2px 7px; }
html[data-skin="netflix"] .fmt { border-radius:3px; background:#2b2118; color:#e3b341; }

/* ------------------------------------------------------------------- tiles */
html[data-skin="netflix"] .grid { grid-template-columns:repeat(auto-fill,minmax(165px,1fr)); gap:10px; }
html[data-skin="netflix"] .epgrid { grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px; }
/* The tile grows out of the row rather than rising off it - the one Netflix move
   everyone recognises. The shadow lands under it so the edges stay crisp. */
html[data-skin="netflix"] .card {
  background:var(--panel); border:0; border-radius:var(--r);
  transition:transform .22s cubic-bezier(.3,.7,.2,1), box-shadow .22s; }
html[data-skin="netflix"] .card:hover {
  transform:scale(1.07); z-index:2; box-shadow:0 14px 34px #000000d9; }
html[data-skin="netflix"] .card img { border-radius:var(--r) var(--r) 0 0; }
html[data-skin="netflix"] .card .t { padding:9px 10px 5px; font-weight:700; font-size:12.5px; }
html[data-skin="netflix"] .card .t small { color:var(--mute); font-weight:400; margin-top:3px; }
html[data-skin="netflix"] .card .a { padding:0 9px 9px; gap:5px; }
html[data-skin="netflix"] .card .a button { border-radius:3px; padding:6px 4px; font-weight:700; }
html[data-skin="netflix"] .star {
  width:32px; height:32px; background:#000000b3; border:1px solid #ffffff40; }
html[data-skin="netflix"] .star.on { color:#fff; background:#e50914; border-color:#e50914; }
html[data-skin="netflix"] .card .num,
html[data-skin="netflix"] .card .shot .epno,
html[data-skin="netflix"] .card .shot .left {
  background:#000000d9; border:0; border-radius:3px; }
html[data-skin="netflix"] .card .shot .seen i { background:var(--acc); }
html[data-skin="netflix"] .pbar { background:#404040; }
html[data-skin="netflix"] .pbar i { background:var(--acc); }

/* --------------------------------------------------- episodes, jobs, boxes */
html[data-skin="netflix"] .ep { border-bottom:1px solid #ffffff14; padding:11px 10px; }
html[data-skin="netflix"] .ep:hover { background:#ffffff0a; }
html[data-skin="netflix"] .season h3 { font-size:17px; font-weight:700; margin:22px 0 6px; }
html[data-skin="netflix"] .job,
html[data-skin="netflix"] .panel,
html[data-skin="netflix"] .settings .box {
  background:var(--panel); border:0; border-radius:var(--r); }
html[data-skin="netflix"] .job.sub { background:#0d0d0d; }
html[data-skin="netflix"] .job.group { box-shadow:inset 0 0 0 1px #e5091447; }
html[data-skin="netflix"] .kids { border-left:2px solid #333; }
html[data-skin="netflix"] .prog { background:#404040; border-radius:0; height:5px; }
html[data-skin="netflix"] .prog i { background:var(--acc); }
html[data-skin="netflix"] .pos { color:var(--acc); }
html[data-skin="netflix"] .settings { max-width:840px; }
html[data-skin="netflix"] .settings .box { padding:18px 20px; }
html[data-skin="netflix"] .settings h3 { font-size:16px; font-weight:700; }
html[data-skin="netflix"] #toast { border-radius:var(--r); color:#fff; box-shadow:0 8px 26px #000c; }

/* ------------------------------------------------------------- the player */
html[data-skin="netflix"] .ptop { padding:14px 20px 34px; }
html[data-skin="netflix"] .ptop b { font-size:17px; font-weight:700; letter-spacing:-.01em; }
html[data-skin="netflix"] .pctl { padding:28px 20px 16px; }
html[data-skin="netflix"] .pctl button { background:#ffffff1a; border-radius:var(--r); }
html[data-skin="netflix"] .pctl button:hover { background:#ffffff33; }
html[data-skin="netflix"] #pPlay { background:#fff; color:var(--ink); font-weight:700; }
html[data-skin="netflix"] #pPlay:hover { background:#e6e6e6; }
html[data-skin="netflix"] #seek i { background:var(--acc); }
html[data-skin="netflix"] #seek b { background:#ffffff3d; }
html[data-skin="netflix"] #liveTag { background:var(--acc); border-radius:3px; font-weight:700; }
html[data-skin="netflix"] #tap { background:#fff; color:var(--ink); box-shadow:0 8px 30px #000000d9; }
html[data-skin="netflix"] #tap:hover, html[data-skin="netflix"] #tap:focus-visible { background:#fff; }
html[data-skin="netflix"] #spinner i { border-top-color:var(--acc); }
html[data-skin="netflix"] #perr,
html[data-skin="netflix"] #menu,
html[data-skin="netflix"] #zap {
  background:#141414f7; border:1px solid #333; border-radius:var(--r); }
html[data-skin="netflix"] #menu button:hover, html[data-skin="netflix"] #zap button:hover { background:#333; }
html[data-skin="netflix"] #menu button.on, html[data-skin="netflix"] #zap button.on { color:#fff; font-weight:700; }
html[data-skin="netflix"] #thumb { border:1px solid #ffffff33; border-radius:3px; }
html[data-skin="netflix"] #mini {
  background:#141414f7; border:1px solid var(--acc); border-radius:var(--r); }

/* The touch seek bar is built in the page's (pointer: coarse) block; only its
   colours belong to a skin, never its size. */
@media (pointer: fine) {
  html[data-skin="netflix"] #seek { height:6px; border-radius:2px; background:#ffffff40; }
}
@media (pointer: coarse) {
  html[data-skin="netflix"] #seek::before { background:#ffffff40; }
}

/* ------------------------------------------------------- "who's watching?" */
/* Their profile picker: square-ish tiles, one flat colour each, white frame on
   the one you are about to pick. */
html[data-skin="netflix"] .wrap h1 { font-size:22px; font-weight:500; }
html[data-skin="netflix"] .av {
  border-radius:6px; background:linear-gradient(160deg,#e50914,#8b0510);
  color:#fff; font-weight:700; }
html[data-skin="netflix"] .user.g .av { background:linear-gradient(160deg,#2d9cdb,#15567c); }
html[data-skin="netflix"] .user.u-maya .av { background:linear-gradient(160deg,#f2c94c,#b07c0a); }
html[data-skin="netflix"] .user:hover .av, html[data-skin="netflix"] .user:focus-visible .av {
  border-color:#fff; transform:scale(1.03); }
html[data-skin="netflix"] .nm { font-weight:500; }
html[data-skin="netflix"] .wrap input { border-radius:var(--r); }
html[data-skin="netflix"] .wrap button.b { padding:12px; font-size:15px; }

/* ----------------------------------------------- the picker in Settings */
html[data-skin="netflix"] .skin.on { border-color:var(--acc); box-shadow:0 0 0 2px #e5091433; }
html[data-skin="netflix"] .skin { border-radius:var(--r); }
