/* ============================================================================
   The "Shahid" look - a second skin for the same pages, after shahid.mbc.net.

   Nothing here applies until <html data-skin="shahid">, which the server stamps
   onto the page from settings (ui.skin) before the browser paints. The classic
   look is therefore untouched: no rule below can fire while it is on, and the
   two are swapped by that one attribute, in place, without a reload.

   The palette is Shahid's own, read out of their stylesheet rather than guessed:
   mint #00cc99 on the slate greys #181d25 / #1f252e / #272e3a, muted text
   #8595ad, and #fecd00 for the gold they use on badges. The shapes are theirs
   too - pill buttons, 14px cards with no borders that lift on hover, a blurred
   bar across the top, and a wash of brand colour behind it all.

   Written as overrides of the tokens and a handful of components, so a change to
   the page's own CSS carries over here instead of needing to be made twice.
   ========================================================================== */

html[data-skin="shahid"] {
  --bg:#181d25;        /* page */
  --panel:#1f252e;     /* cards, boxes, menus */
  --line:#272e3a;      /* dividers, secondary buttons */
  --text:#f3f4f7;
  --dim:#d1d7e0;       /* a step below the main text */
  --mute:#8595ad;
  --acc:#00cc99;       /* the brand mint: buttons, progress, the seek bar */
  --acc-hi:#1ae0ad;    /* its hover */
  --ink:#06241c;       /* text on top of the mint */
  --ok:#00cc99;
  --bad:#ff5f5a;
  --gold:#fecd00;
  --r:14px;            /* the rounding this look is built on */
  color-scheme:dark;
}

/* The font is fetched by applySkin() in the page, and only when this skin is on,
   so the classic look still asks nothing of the internet. If it never arrives,
   the stack below falls through to the system face and the layout is unchanged. */
html[data-skin="shahid"] body {
  font-family:'Cairo','Noto Kufi Arabic',system-ui,-apple-system,sans-serif;
  background:
    radial-gradient(1100px 520px at 50% -160px, #00cc9926, #0000 72%),
    radial-gradient(900px 420px at 100% -60px, #2b86ff1a, #0000 70%),
    var(--bg);
  background-attachment:fixed;
}
html[data-skin="shahid"] ::selection { background:#00cc9959; }
html[data-skin="shahid"] * { scrollbar-width:thin; scrollbar-color:#3e495b transparent; }
html[data-skin="shahid"] ::-webkit-scrollbar { width:10px; height:10px; }
html[data-skin="shahid"] ::-webkit-scrollbar-track { background:transparent; }
html[data-skin="shahid"] ::-webkit-scrollbar-thumb {
  background:#3e495b; border:3px solid transparent; background-clip:content-box;
  border-radius:999px; }

/* -------------------------------------------------------------- the top bar */
/* The page positions the sticky sidebar under a 57px bar. This one is taller, so
   the bar is pinned to a height both sides can agree on rather than left to add
   itself up - otherwise the rail sticks a few pixels behind the blur. */
html[data-skin="shahid"] header {
  min-height:64px; padding:13px 22px; gap:16px; border-bottom:1px solid #ffffff0f;
  background:#181d25cc; backdrop-filter:blur(16px) saturate(140%); }
html[data-skin="shahid"] header h1 {
  position:relative; padding-left:13px; font-size:18px; font-weight:800;
  letter-spacing:-.02em; margin-right:14px; }
html[data-skin="shahid"] header h1::before {
  content:''; position:absolute; left:0; top:3px; bottom:3px; width:4px;
  border-radius:3px; background:linear-gradient(#00cc99,#0a8f9c); }

html[data-skin="shahid"] .tabs { display:flex; gap:4px; flex-wrap:wrap; }
html[data-skin="shahid"] .tabs button {
  border-radius:999px; padding:9px 15px; font-weight:600; font-size:13.5px; }
html[data-skin="shahid"] .tabs button:hover { background:#ffffff0f; color:var(--text); }
html[data-skin="shahid"] .tabs button.on {
  background:#00cc9921; color:var(--acc); box-shadow:inset 0 0 0 1px #00cc9947; }

html[data-skin="shahid"] #sched, html[data-skin="shahid"] #store {
  border-radius:999px; padding:5px 12px; background:#ffffff14; font-weight:600; }
html[data-skin="shahid"] #acctWho { font-weight:700; color:var(--text); }

/* ------------------------------------------------------- the category rail */
html[data-skin="shahid"] main {
  grid-template-columns:258px 1fr; min-height:calc(100vh - 64px); }
html[data-skin="shahid"] aside {
  border-right:0; padding:10px 10px 24px; top:64px; max-height:calc(100vh - 64px); }
html[data-skin="shahid"] aside div:not(.row) { border-radius:10px; padding:8px 12px; }
html[data-skin="shahid"] aside div:not(.row):hover { background:#ffffff0f; color:var(--text); }
html[data-skin="shahid"] aside div:not(.row).on {
  background:#00cc991f; color:var(--acc); font-weight:600; }
/* Every category is a .row - the selected one included - so the tint goes there. */
html[data-skin="shahid"] aside .row { border-radius:10px; }
html[data-skin="shahid"] aside .row:hover { background:#ffffff0f; }
html[data-skin="shahid"] aside .row .nm { padding:8px 0 8px 12px; }
html[data-skin="shahid"] aside .row.on { background:#00cc991f; }
html[data-skin="shahid"] aside .row.on .nm { color:var(--acc); font-weight:600; }
html[data-skin="shahid"] aside h4 {
  margin:18px 12px 6px; color:#6f7d94; font-size:10.5px; }
html[data-skin="shahid"] aside .cs.on { color:var(--gold); }

/* ------------------------------------------------------- controls and type */
html[data-skin="shahid"] section { padding:20px 22px 40px; }
html[data-skin="shahid"] h2.sec {
  color:var(--text); font-size:17px; font-weight:700; letter-spacing:-.01em;
  margin:26px 0 12px; }

html[data-skin="shahid"] button.b {
  background:var(--acc); color:var(--ink); border-radius:999px; padding:9px 17px;
  font-weight:700; font-size:13px; transition:background .15s, transform .15s; }
html[data-skin="shahid"] button.b:hover { background:var(--acc-hi); filter:none; }
html[data-skin="shahid"] button.b:active { transform:scale(.97); }
html[data-skin="shahid"] button.b.sec { background:#ffffff14; color:var(--dim); }
html[data-skin="shahid"] button.b.sec:hover { background:#ffffff26; color:#fff; }
html[data-skin="shahid"] .vtoggle button:first-child { border-radius:999px 0 0 999px; padding-left:15px; }
html[data-skin="shahid"] .vtoggle button:last-child { border-radius:0 999px 999px 0; padding-right:15px; }
html[data-skin="shahid"] .vtoggle button.on { background:var(--acc); color:var(--ink); }

html[data-skin="shahid"] input, html[data-skin="shahid"] select {
  background:#ffffff0f; border:1px solid #ffffff14; border-radius:12px;
  padding:10px 14px; }
html[data-skin="shahid"] input[type=search] { border-radius:999px; padding:10px 18px; }
html[data-skin="shahid"] input:focus, html[data-skin="shahid"] select:focus {
  outline:0; border-color:#00cc9966; box-shadow:0 0 0 3px #00cc9926; }
html[data-skin="shahid"] input[type=checkbox] { accent-color:var(--acc); width:16px; height:16px; }
html[data-skin="shahid"] .tag { border-radius:999px; padding:3px 9px; background:#ffffff14; }
html[data-skin="shahid"] .fmt {
  background:#fecd0014; color:var(--gold); border-color:#fecd0033; border-radius:999px; padding:1px 7px; }
html[data-skin="shahid"] .qual { border-radius:999px; }

/* ------------------------------------------------------------------- cards */
html[data-skin="shahid"] .grid { grid-template-columns:repeat(auto-fill,minmax(168px,1fr)); gap:18px; }
html[data-skin="shahid"] .epgrid { grid-template-columns:repeat(auto-fill,minmax(232px,1fr)); gap:18px; }
html[data-skin="shahid"] .card {
  background:var(--panel); border:0; border-radius:var(--r);
  transition:transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s; }
html[data-skin="shahid"] .card:hover {
  transform:translateY(-5px); z-index:1;
  box-shadow:0 16px 34px #00000099, 0 0 0 1px #00cc9959; }
html[data-skin="shahid"] .card img { border-radius:var(--r) var(--r) 0 0; }
html[data-skin="shahid"] .card .t { padding:10px 12px 6px; font-weight:600; }
html[data-skin="shahid"] .card .t small { color:var(--mute); font-weight:400; margin-top:3px; }
html[data-skin="shahid"] .card .a { padding:0 10px 11px; gap:6px; }
html[data-skin="shahid"] .card .a button { border-radius:999px; padding:7px 6px; font-weight:600; }
html[data-skin="shahid"] .star {
  width:34px; height:34px; background:#0b1016a8; border:1px solid #ffffff1f;
  backdrop-filter:blur(6px); }
html[data-skin="shahid"] .star.on { color:var(--acc); background:#00cc9924; border-color:#00cc9966; }
html[data-skin="shahid"] .card .num,
html[data-skin="shahid"] .card .shot .epno,
html[data-skin="shahid"] .card .shot .left {
  background:#0b1016c7; border:1px solid #ffffff1a; border-radius:999px; }
html[data-skin="shahid"] .card .shot .seen i { background:var(--acc); }
html[data-skin="shahid"] .pbar { background:#ffffff1f; }
html[data-skin="shahid"] .pbar i { background:var(--acc); }

/* --------------------------------------------------- episodes, jobs, boxes */
html[data-skin="shahid"] .ep {
  border-bottom:1px solid #ffffff0d; border-radius:10px; padding:10px 12px; }
html[data-skin="shahid"] .ep:hover { background:#ffffff0a; }
html[data-skin="shahid"] .season h3 { font-size:16px; font-weight:700; margin:22px 0 6px; }
html[data-skin="shahid"] .job,
html[data-skin="shahid"] .panel,
html[data-skin="shahid"] .settings .box {
  background:var(--panel); border:0; border-radius:16px; }
html[data-skin="shahid"] .job.sub { background:#161b22; border-radius:12px; }
html[data-skin="shahid"] .job.group { box-shadow:inset 0 0 0 1px #00cc9933; }
html[data-skin="shahid"] .kids { border-left:2px solid #ffffff14; }
html[data-skin="shahid"] .prog { height:7px; border-radius:999px; background:#ffffff14; }
html[data-skin="shahid"] .prog i { background:linear-gradient(90deg,#00cc99,#49e6bd); }
html[data-skin="shahid"] .pos { color:var(--acc); }
html[data-skin="shahid"] .settings { max-width:860px; }
html[data-skin="shahid"] .settings .box { padding:18px 20px; margin-bottom:18px; }
html[data-skin="shahid"] .settings h3 { font-size:16px; font-weight:700; }
html[data-skin="shahid"] #toast {
  background:#1f252ef2; border:1px solid #00cc9959; border-radius:999px;
  color:#fff; box-shadow:0 10px 30px #0009; }

/* ------------------------------------------------------------- the player */
html[data-skin="shahid"] .ptop { padding:14px 18px 34px; }
html[data-skin="shahid"] .ptop b { font-size:17px; font-weight:700; }
html[data-skin="shahid"] .pctl { padding:28px 18px 16px; }
html[data-skin="shahid"] .pctl button { background:#ffffff1f; border-radius:999px; }
html[data-skin="shahid"] .pctl button:hover { background:#ffffff36; }
html[data-skin="shahid"] #pPlay { background:var(--acc); color:var(--ink); font-weight:700; }
html[data-skin="shahid"] #pPlay:hover { background:var(--acc-hi); }
html[data-skin="shahid"] #seek i { background:linear-gradient(90deg,#00cc99,#5ef0c6); }
html[data-skin="shahid"] #seek b { background:#ffffff3d; }
html[data-skin="shahid"] #liveTag {
  background:#ff3b30; border-radius:999px; font-weight:700; padding:3px 9px; }
html[data-skin="shahid"] #tap {
  background:var(--acc); color:var(--ink); box-shadow:0 10px 36px #00cc9959; }
html[data-skin="shahid"] #tap:hover, html[data-skin="shahid"] #tap:focus-visible { background:var(--acc-hi); }
html[data-skin="shahid"] #spinner i { border-top-color:var(--acc); }
html[data-skin="shahid"] #perr,
html[data-skin="shahid"] #menu,
html[data-skin="shahid"] #zap {
  background:#1f252ef5; border:1px solid #ffffff1a; border-radius:16px; }
html[data-skin="shahid"] #menu button:hover, html[data-skin="shahid"] #zap button:hover { background:#ffffff14; }
html[data-skin="shahid"] #menu button.on, html[data-skin="shahid"] #zap button.on { color:var(--acc); }
html[data-skin="shahid"] #thumb { border:1px solid #ffffff26; border-radius:10px; }
html[data-skin="shahid"] #mini {
  background:#1f252ef2; border:1px solid #00cc9959; border-radius:999px;
  box-shadow:0 10px 30px #0009; }

/* The seek bar's size is set by the pointer, not by the look: on a touch screen
   the page turns it into a 26px target with the track drawn inside it, and this
   skin must not shrink that back - it only recolours it. */
@media (pointer: fine) {
  html[data-skin="shahid"] #seek { height:7px; border-radius:999px; background:#ffffff2b; }
}
@media (pointer: coarse) {
  html[data-skin="shahid"] #seek::before { background:#ffffff2b; }
}

/* ------------------------------------------------------- "who's watching?" */
html[data-skin="shahid"] .wrap h1 { font-size:21px; font-weight:800; letter-spacing:-.02em; }
html[data-skin="shahid"] .av {
  border-radius:50%; background:linear-gradient(145deg,#00cc99,#0a8f9c);
  color:var(--ink); font-weight:800; box-shadow:0 10px 30px #00000073; }
html[data-skin="shahid"] .user.g .av { background:linear-gradient(145deg,#fecd00,#e08a00); }
html[data-skin="shahid"] .user.u-maya .av { background:linear-gradient(145deg,#ff8fb1,#c2407a); }
html[data-skin="shahid"] .user:hover .av, html[data-skin="shahid"] .user:focus-visible .av {
  border-color:var(--acc); transform:scale(1.06); }
html[data-skin="shahid"] .nm { font-weight:600; }
html[data-skin="shahid"] .wrap input { border-radius:999px; }
html[data-skin="shahid"] .wrap button.b { padding:12px; font-size:15px; }

/* ----------------------------------------------- the picker in Settings */
html[data-skin="shahid"] .skin.on { border-color:var(--acc); box-shadow:0 0 0 3px #00cc9926; }
html[data-skin="shahid"] .skin .sw { border-radius:12px; }
