@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg:#050505; --bg-2:#0d0d0d; --bg-3:#141414;
  --border:#222; --border-soft:#1c1c1c;
  --text:#f2f2f2; --text-muted:#8a8a8a; --text-dim:#7c7c7c;
  --gold:#d4af37; --gold-bright:#f4d06f;
  --success:#3ddc84; --danger:#e05656; --live:#ff5252;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;height:100%;background:var(--bg);color:var(--text);font-family:'Inter',system-ui,sans-serif;-webkit-font-smoothing:antialiased;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;}
input{font-family:inherit;}
::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-track{background:var(--bg-2);}
::-webkit-scrollbar-thumb{background:#3a3220;border-radius:6px;border:2px solid var(--bg-2);}
::-webkit-scrollbar-thumb:hover{background:var(--gold);}
*{scrollbar-width:thin;scrollbar-color:#3a3220 var(--bg-2);}

.watch-boot{height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;}
.watch-boot-logo-img{height:56px;width:auto;object-fit:contain;animation:watchBootFade .6s ease;}
.watch-boot-spinner{width:28px;height:28px;border-radius:999px;border:2.5px solid rgba(212,175,55,.2);border-top-color:var(--gold);animation:watchBootSpin .8s linear infinite;}
@keyframes watchBootFade{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}
@keyframes watchBootSpin{to{transform:rotate(360deg);}}

/* Layout */
.w-app{min-height:100vh;display:flex;}
.w-mobile-bar{display:none;}
.w-logo{display:flex;align-items:center;gap:8px;padding:0 10px;margin-bottom:28px;}
.w-logo-img{height:34px;width:auto;object-fit:contain;display:block;margin:0 10px 28px;}
.w-logo-img-sm{height:24px;margin:0;}
.w-login-logo-img{height:52px;width:auto;object-fit:contain;display:block;margin:0 auto 6px;}
.w-iconbtn{width:36px;height:36px;border-radius:999px;background:var(--bg-3);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--text);flex-shrink:0;}
.w-iconbtn svg{width:16px;height:16px;}

.w-sidenav{width:224px;flex-shrink:0;border-right:1px solid var(--border-soft);padding:24px 14px;position:sticky;top:0;height:100vh;overflow-y:auto;}
.w-sidenav a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;margin-bottom:2px;font-size:13.5px;font-weight:500;color:#c9c9c9;}
.w-sidenav a svg{width:18px;height:18px;flex-shrink:0;}
.w-sidenav a.active{background:rgba(212,175,55,.08);color:var(--gold);font-weight:600;}
.w-content{flex:1;min-width:0;overflow-y:auto;height:100vh;padding-bottom:40px;}

/* Bottom nav (mobile) */
.w-bottomnav{display:none;}

/* Rows / cards */
.w-row-head{padding:0 24px;display:flex;align-items:center;justify-content:space-between;margin:26px 0 14px;}
.w-row-head:first-child{margin-top:24px;}
.w-row-title{font-size:17px;font-weight:700;}
.w-row-see{font-size:12px;color:var(--gold);font-weight:600;}
.w-row{display:flex;align-items:flex-start;gap:14px;overflow-x:auto;padding:0 24px 6px;}
.w-card{flex-shrink:0;width:130px;display:flex;flex-direction:column;gap:8px;}
.w-card-wrap{position:relative;flex-shrink:0;}
.w-card-wrap .w-card{width:100%;}
.w-card-remove{position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:999px;background:rgba(0,0,0,.65);border:1px solid rgba(255,255,255,.15);color:#e6e6e6;font-size:12px;line-height:1;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s ease;z-index:2;}
.w-card-wrap:hover .w-card-remove{opacity:1;}
.w-card-remove:hover{background:rgba(224,86,86,.85);border-color:transparent;}
@media (hover:none){.w-card-remove{opacity:1;}}
.w-undo-toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);display:flex;align-items:center;gap:14px;padding:12px 18px;border-radius:12px;background:#1a1a1a;border:1px solid var(--border);box-shadow:0 8px 24px rgba(0,0,0,.4);font-size:13px;color:#e6e6e6;z-index:60;}
@media (min-width:900px){.w-undo-toast{bottom:24px;}}
/* background-size:cover — the artwork is scaled up to fully fill the
   card box, keeping its own aspect ratio (never stretched/distorted
   out of proportion), cropping only the overflow. Reverted from
   "contain" per feedback: contain shrank images to fit, leaving empty
   letterboxed space around anything that wasn't already a 130×184
   portrait — cover fills the box cleanly instead. */
.w-card-art{width:130px;height:184px;border-radius:12px;background:linear-gradient(160deg,#171717,#0b0b0b);background-size:cover;background-repeat:no-repeat;background-position:center;border:1px solid var(--border);transition:transform .15s ease;position:relative;}
.w-card:hover .w-card-art{transform:translateY(-3px);border-color:#333;}
/* Confirmed real bug fix: a Live channel's card used to be a
   different box entirely (150×88, landscape) from every Movie/Series
   card (130×184, portrait). Continue Watching / My List / Search
   results mix all three kinds in one row, so that row visibly had one
   short, oddly-shaped tile sitting next to normal poster tiles —
   exactly the "not the same dimensions, messy to look at" complaint.
   Every card is now the same 130×184 box regardless of kind.
   The box is unified, but a channel logo genuinely isn't the same
   shape as a movie poster: posters are already close to this
   130×184 portrait ratio, so "cover" fills them cleanly — but a
   channel logo is normally landscape (wordmark + icon), and "cover"
   on a landscape image inside a tall portrait box zooms in and crops
   away most of its width, which is exactly what made "AF| FRANCE 2"
   and "DSTV| Disney Junior HD" unreadable. Logos use "contain"
   instead — scaled to fit whole and legible, centered, never cropped
   — while posters keep "cover" from .w-card-art above. */
.w-card-live{width:130px;}
.w-card-live .w-card-art{background-size:contain;display:flex;align-items:center;justify-content:center;position:relative;}
/* Confirmed real bug fix: `-webkit-box` (needed for the 2-line
   clamp) is itself a legacy flexbox — nested inside .w-card's own
   flex column, it was sizing to its OWN content (shrink-to-fit) instead
   of stretching to the card's 130px width the way a normal block
   child would. A long title never wrapped at all: it just ran on as
   one line past the edge of its own card, over whatever sat next to
   it — exactly the "text stretched out" report.

   width:100% alone did NOT fix it (confirmed from a real screenshot
   after that first attempt — still one unbroken line running past
   the card). Root cause is more specific: a flex item's default
   min-width is "auto", not 0 — meaning the browser still won't let it
   shrink below its unwrapped text's natural width even once width:100%
   caps its normal size, so long unbroken text kept winning and
   overflowing anyway. min-width:0 removes that floor, which is what
   actually lets the browser wrap/clamp the text inside 130px instead
   of just measuring it as "should be 130px" and then ignoring that
   the moment the content doesn't fit on one line. */
.w-card-title{width:100%;min-width:0;font-size:12px;color:#c9c9c9;font-weight:500;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:2.6em;}
.w-badge-live{position:absolute;top:8px;left:8px;font-size:9.5px;font-weight:700;color:var(--live);background:rgba(255,82,82,.14);padding:3px 7px;border-radius:5px;letter-spacing:.03em;}

.w-quicklinks{display:flex;gap:12px;padding:4px 24px 8px;}
.w-quicklink{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 10px;border-radius:14px;background:var(--bg-2);border:1px solid var(--border-soft);font-size:12.5px;font-weight:600;color:#d9d9d9;}
.w-quicklink svg{width:24px;height:24px;color:var(--gold);}
.w-quicklink:hover{border-color:var(--gold);}

/* Grid (Movies/Series browse) */
.w-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));align-items:start;gap:16px;padding:0 24px 24px;}
.w-grid-card{display:flex;flex-direction:column;gap:8px;}
.w-grid-art{width:100%;aspect-ratio:2/3;border-radius:12px;background:linear-gradient(160deg,#171717,#0b0b0b);border:1px solid var(--border);background-size:cover;background-position:center;transition:transform .15s ease;}
.w-grid-card:hover .w-grid-art{transform:translateY(-3px);border-color:#333;}

/* Empty / loading states */
.w-empty{padding:40px 24px;text-align:center;color:var(--text-muted);font-size:13px;}
.w-skel{background:linear-gradient(90deg,var(--bg-3) 25%,#1a1a1a 37%,var(--bg-3) 63%);background-size:400% 100%;animation:wshimmer 1.4s ease infinite;}
@keyframes wshimmer{0%{background-position:100% 50%}100%{background-position:0 50%}}

/* Login */
.w-login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;}
.w-login-box{width:100%;max-width:360px;}
.w-login-logo{font-family:'Playfair Display',serif;font-weight:700;font-size:26px;text-align:center;margin-bottom:6px;}
.w-login-sub{text-align:center;color:var(--text-muted);font-size:12.5px;margin-bottom:32px;}
.w-field{margin-bottom:14px;}
.w-field label{display:block;font-size:12px;color:var(--text-muted);margin-bottom:6px;}
.w-pw-wrap{position:relative;}
.w-field .w-pw-wrap input{padding-right:46px;}
.w-pw-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:38px;height:38px;border:none;background:none;color:var(--text-muted);display:flex;align-items:center;justify-content:center;border-radius:8px;}
.w-pw-toggle:hover{color:var(--gold);}
.w-pw-toggle svg{width:19px;height:19px;}
.w-remember{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--text-muted);margin:2px 0 16px;cursor:pointer;}
.w-remember input{width:17px;height:17px;accent-color:var(--gold);margin:0;}
.w-field input{width:100%;padding:12px 14px;border-radius:10px;background:var(--bg-3);border:1px solid var(--border);color:var(--text);font-size:14px;}
.w-btn-primary{width:100%;padding:13px;border-radius:10px;background:var(--gold);border:none;color:#0a0a0a;font-size:14px;font-weight:700;margin-top:8px;}
.w-error{color:var(--danger);font-size:12.5px;margin-bottom:14px;}
.w-link-btn{background:none;border:none;color:var(--text-muted);font-size:11.5px;font-weight:600;padding:4px 0;}
.w-link-btn:hover{color:var(--gold);}

/* Search / chips */
.w-search-wrap{position:relative;}
.w-search-wrap svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--text-dim);pointer-events:none;}
.w-search-input{width:100%;padding:13px 16px 13px 40px;border-radius:11px;background:var(--bg-3);border:1.5px solid var(--border);color:var(--text);font-size:14px;font-weight:500;}
.w-search-input::placeholder{color:var(--text-dim);}
.w-search-input:focus{outline:none;border-color:var(--gold);background:#181818;}
.w-chips{display:flex;gap:8px;padding:0 24px 16px;overflow-x:auto;}
.w-chip{flex-shrink:0;padding:7px 15px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;background:var(--bg-3);color:#c9c9c9;border:1px solid var(--border);}
.w-chip.active{background:var(--gold);color:#0a0a0a;border-color:var(--gold);}

/* Live — 3 column drill-down */
.w-live-layout{display:grid;grid-template-columns:200px 260px 1fr;height:calc(100vh - 2px);}
.w-live-col{border-right:1px solid var(--border-soft);display:flex;flex-direction:column;min-height:0;}
.w-col-head{padding:18px 16px 12px;font-size:13px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;flex-shrink:0;}
.w-col-body{flex:1;overflow-y:auto;padding:0 8px 16px;}
.w-cat-item{padding:11px 14px;border-radius:9px;font-size:13px;color:#c9c9c9;margin-bottom:2px;cursor:pointer;border-left:3px solid transparent;}
.w-cat-item:hover{background:var(--bg-3);}
.w-cat-item.w-selected{background:rgba(212,175,55,.12);color:var(--gold-bright);font-weight:700;border-left-color:var(--gold);}
.w-channel{display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:9px;cursor:pointer;border-left:3px solid transparent;}
.w-channel:hover{background:var(--bg-3);}
.w-channel.w-selected{background:rgba(212,175,55,.12);border-left-color:var(--gold);}
.w-channel.w-selected .w-channel-name{color:var(--gold-bright);font-weight:600;}
.w-channel-art{width:36px;height:36px;border-radius:7px;background:var(--bg-3);border:1px solid var(--border);flex-shrink:0;background-size:cover;background-position:center;}
.w-channel-name{flex:1;font-size:12.5px;color:#dcdcdc;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.3;}
.w-fav-btn{background:none;border:none;color:var(--text-dim);width:26px;height:26px;flex-shrink:0;display:flex;align-items:center;justify-content:center;}
.w-fav-btn svg{width:14px;height:14px;}
.w-fav-btn:hover{color:var(--gold);}
.w-live-main{padding:20px;overflow-y:auto;min-height:0;}
.w-preview-head{margin-bottom:14px;font-size:16px;}
.w-content-info{margin-top:14px;}
.w-content-title{font-family:'Playfair Display',serif;font-weight:700;font-size:18px;color:#f5f5f5;}
.w-content-subline{font-size:13.5px;font-weight:600;color:var(--gold-bright);margin-top:4px;}
.w-content-desc{font-size:13px;color:rgba(255,255,255,.86);line-height:1.65;margin-top:8px;max-width:640px;}

/* Language filter — Movies & Series */
.w-lang-filter{position:relative;flex-shrink:0;}
.w-lang-btn{padding:10px 14px;border-radius:10px;background:var(--bg-3);border:1px solid var(--border);color:#d9d9d9;font-size:12.5px;font-weight:600;white-space:nowrap;}
.w-lang-btn:hover{border-color:var(--gold);}
.w-lang-panel{display:none;position:absolute;right:0;top:calc(100% + 6px);width:220px;background:#141414;border:1px solid var(--border);border-radius:12px;padding:12px;box-shadow:0 10px 30px rgba(0,0,0,.5);z-index:40;}
.w-lang-panel.is-open{display:block;}
.w-lang-panel-title{font-size:11px;font-weight:700;color:var(--gold);text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px;}
.w-lang-option{display:flex;align-items:center;gap:8px;padding:6px 2px;font-size:12.5px;color:#d9d9d9;cursor:pointer;}
.w-lang-option input{accent-color:var(--gold);width:14px;height:14px;flex-shrink:0;}
.w-lang-option-list{max-height:220px;overflow-y:auto;border-top:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft);margin:4px 0 8px;padding:4px 0;}
.w-back-btn{display:inline-flex;align-items:center;gap:8px;margin:18px 24px 0;font-size:13px;font-weight:600;color:var(--text-muted);}
.w-back-btn svg{width:16px;height:16px;}
.w-back-btn:hover{color:var(--gold);}

/* EPG panel — under the Live player, keyed to the selected channel */
.w-epg-daytabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid var(--border-soft);}
.w-epg-now-card{background:var(--bg-2);border:1px solid var(--border);border-radius:12px;padding:14px 16px;margin-bottom:14px;}
.w-epg-now-tag{font-size:10.5px;font-weight:700;color:var(--gold);letter-spacing:.06em;margin-bottom:5px;}
.w-epg-now-title{font-size:14.5px;font-weight:700;color:#f2f2f2;margin-bottom:3px;}
.w-epg-now-time{font-size:12px;font-weight:600;color:rgba(255,255,255,.9);margin-bottom:10px;}
.w-epg-progress{height:4px;border-radius:2px;background:#2a2a2a;overflow:hidden;margin-bottom:10px;}
.w-epg-progress-bar{height:100%;background:var(--gold);border-radius:2px;transition:width 1s linear;}
.w-epg-now-desc{font-size:12.5px;color:rgba(255,255,255,.86);line-height:1.6;max-height:4.5em;overflow-y:auto;}
.w-epg-next-label{font-size:11px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px;}
.w-epg-next-list{max-height:220px;overflow-y:auto;}
.w-epg-next-item{display:flex;align-items:center;gap:12px;padding:8px 4px;border-bottom:1px solid var(--border-soft);font-size:12.5px;}
.w-epg-next-item:last-child{border-bottom:none;}
.w-epg-next-time{color:rgba(255,255,255,.78);font-variant-numeric:tabular-nums;flex-shrink:0;width:52px;}
.w-epg-next-title{color:#d9d9d9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.w-epg-empty{padding:20px 4px;text-align:center;color:var(--text-muted);font-size:12.5px;}
/* "Get MebuTV" menu: download links + QR */
#w-getapp{margin-top:6px;}
.w-getapp-btn{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border-radius:10px;background:none;border:none;font-size:13.5px;font-weight:500;color:#c9c9c9;text-align:left;}
.w-getapp-btn svg{width:18px;height:18px;flex-shrink:0;}
.w-getapp-btn:hover,.w-getapp-btn.active{background:rgba(212,175,55,.08);color:var(--gold);}
.w-getapp-pop{position:fixed;z-index:80;display:flex;gap:6px;padding:12px;background:#101010;border:1px solid var(--border);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.65);}
.w-getapp-pop[hidden]{display:none;}
.w-getapp-list{width:290px;display:flex;flex-direction:column;gap:6px;}
.w-getapp-head{font-size:12px;font-weight:700;color:var(--text-muted);padding:4px 8px 6px;}
.w-getapp-item{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:12px;background:#171717;border:1px solid var(--border-soft);color:var(--text);}
.w-getapp-item.active{background:linear-gradient(135deg,#1c8f6a,#2e9e3c);border-color:transparent;color:#fff;}
.w-getapp-ico{width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.07);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--gold-bright);}
.w-getapp-item.active .w-getapp-ico{color:#fff;background:rgba(255,255,255,.16);}
.w-getapp-ico svg{width:19px;height:19px;}
.w-getapp-txt{display:flex;flex-direction:column;min-width:0;}
.w-getapp-txt strong{font-size:13.5px;font-weight:700;}
.w-getapp-txt small{font-size:11.5px;opacity:.75;margin-top:1px;}
.w-getapp-qrbox{width:224px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px;}
.w-getapp-qr{background:#fff;border-radius:12px;padding:6px;line-height:0;}
.w-getapp-qr svg{width:196px;height:196px;display:block;}
.w-getapp-scan{font-size:11.5px;color:var(--text-muted);text-align:center;}
@media (max-width:900px){
  .w-getapp-pop{left:12px;right:12px;bottom:90px;top:auto !important;flex-direction:column;}
  .w-getapp-list{width:auto;}
  .w-getapp-qrbox{display:none;}
}

@media (max-width:900px){
  .w-epg-next-list{max-height:none;}
}

/* Player */
.w-player-wrap{width:100%;background:#000;position:relative;border-radius:14px;overflow:hidden;aspect-ratio:16/9;max-width:960px;}
.w-player-wrap video{width:100%;height:100%;background:#000;display:block;}
.w-player-wrap.w-cursor-hidden{cursor:none;}
.w-player-wrap.w-cursor-hidden video{cursor:none;}
.w-player-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.55);color:#e6e6e6;font-size:13px;z-index:3;pointer-events:none;}
.w-player-status.w-player-error{color:#ff8080;}
.w-player-controls{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:14px;padding:10px 14px;background:linear-gradient(to top, rgba(0,0,0,.75), transparent);z-index:2;}
.w-pctrl{background:none;border:none;color:#fff;font-size:16px;padding:4px;}
.w-pctrl-title{flex:1;font-size:12.5px;color:#e6e6e6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.w-pctrl-volume{-webkit-appearance:none;appearance:none;width:80px;height:4px;border-radius:2px;background:rgba(255,255,255,.25);outline:none;flex-shrink:0;cursor:pointer;}
.w-pctrl-volume::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:12px;height:12px;border-radius:50%;background:var(--gold);cursor:pointer;}
.w-pctrl-volume::-moz-range-thumb{width:12px;height:12px;border:none;border-radius:50%;background:var(--gold);cursor:pointer;}
.w-pctrl-volume::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:rgba(255,255,255,.25);}
.w-pctrl-volume::-moz-range-track{height:4px;border-radius:2px;background:rgba(255,255,255,.25);}
.w-player-vod-bar{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;gap:10px;padding:10px 14px;background:linear-gradient(to bottom, rgba(0,0,0,.65), transparent);z-index:2;}
.w-player-vod-bar .w-pctrl{font-size:11px;font-weight:700;padding:5px 9px;border-radius:6px;background:rgba(0,0,0,.5);flex-shrink:0;}
/* Audio/subtitle selectors — only rendered at all when the stream's own HLS manifest actually carries more than one track */
.w-track-selectors{display:flex;gap:6px;flex-shrink:0;}
.w-track-select{background:rgba(0,0,0,.55);color:#f0f0f0;border:1px solid rgba(212,175,55,.35);border-radius:6px;font-size:11px;padding:4px 6px;max-width:110px;}
.w-track-select:focus{outline:none;border-color:var(--gold);}

/* Account */
.w-btn-compact{display:inline-flex;align-items:center;padding:9px 18px;border-radius:9px;background:var(--gold);color:#0a0a0a;font-size:12.5px;font-weight:700;}
.w-btn-compact:hover{background:var(--gold-bright);}

/* Expired subscription notice */
.w-expired-notice{max-width:420px;margin:48px auto;padding:0 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;}
.w-expired-icon{width:56px;height:56px;border-radius:999px;background:rgba(224,86,86,.12);display:flex;align-items:center;justify-content:center;color:#ff8080;margin-bottom:10px;}
.w-expired-icon svg{width:26px;height:26px;}
.w-expired-title{font-family:'Playfair Display',serif;font-weight:700;font-size:20px;color:#f5f5f5;}
.w-expired-sub{font-size:13px;color:var(--text-muted);margin-bottom:18px;}
.w-expired-details{width:100%;background:var(--bg-2);border:1px solid var(--border-soft);border-radius:12px;padding:14px 18px;margin-bottom:20px;}
.w-expired-row{display:flex;justify-content:space-between;align-items:center;padding:7px 0;font-size:13px;border-bottom:1px solid var(--border-soft);}
.w-expired-row:last-child{border-bottom:none;}
.w-expired-row span{color:var(--text-muted);}

/* Nav subscription preview */
.w-nav-sub-preview{margin-top:16px;padding:14px 14px;border-top:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft);}
.w-nav-sub-label{font-size:10px;font-weight:700;color:var(--text-dim);text-transform:uppercase;letter-spacing:.05em;}
.w-nav-sub-plan{font-size:13px;font-weight:600;color:#e6e6e6;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.w-nav-sub-expiry{font-size:12.5px;font-weight:600;color:#d9d9d9;margin-top:2px;}
.w-nav-sub-warn{color:#ff8080;}
.w-nav-sub-status{font-size:11px;font-weight:700;margin-top:8px;}
.w-nav-sub-status.active{color:var(--success);}
.w-nav-sub-status.expired{color:#ff8080;}
/* Sidebar Manage button — genuinely compact: width hugs its text (never
   width:100%/block), small padding, real MebuTV gold (--gold #d4af37),
   never a paler/greyer tone. !important on color/background here is
   deliberate: this exact button was reported as rendering oversized and
   off-color, so these are pinned against any future accidental override
   from a more specific or later-loaded rule. */
.w-nav-sub-manage{display:inline-flex;width:max-content;max-width:100%;align-items:center;justify-content:center;margin-top:10px;padding:5px 11px;border-radius:6px;background:var(--gold) !important;color:#0a0a0a !important;font-size:10.5px;font-weight:700;text-decoration:none;white-space:nowrap;line-height:1.3;border:none;box-shadow:none;}
.w-nav-sub-manage:hover{background:var(--gold-bright) !important;color:#0a0a0a !important;}
.w-nav-sub-logout{display:block;width:100%;text-align:left;margin-top:8px;padding:0;background:none;border:none;font-size:12px;font-weight:500;color:var(--text-muted);cursor:pointer;font-family:inherit;}
.w-nav-sub-logout:hover{color:#ff8080;}
.w-acct-section{margin:0 24px 16px;padding:16px 18px;background:var(--bg-2);border:1px solid var(--border-soft);border-radius:14px;}
.w-acct-label{font-size:11.5px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:10px;}
.w-acct-row{display:flex;justify-content:space-between;padding:6px 0;font-size:13px;border-bottom:1px solid var(--border-soft);}
.w-acct-row:last-child{border-bottom:none;}
.w-acct-row span{color:var(--text-muted);}
/* Profile — real 2-column grid, small discreet labels, clear values, no giant full-width rows */
.w-profile-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:28px;row-gap:14px;}
.w-profile-label{font-size:10.5px;color:var(--text-dim);text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px;}
.w-profile-value{font-size:14px;font-weight:600;color:#f0f0f0;}
@media (max-width:640px){ .w-profile-grid{grid-template-columns:1fr;} }
.w-sub-card{background:var(--bg-2);border:1px solid var(--border);border-radius:14px;padding:18px 20px;margin:0 24px 16px;max-width:560px;}
.w-sub-card-expired{border-color:rgba(224,86,86,.35);background:linear-gradient(160deg,#1a0e0e,var(--bg-2));}
.w-sub-eyebrow{font-size:11px;font-weight:700;color:var(--gold);text-transform:uppercase;letter-spacing:.08em;}
.w-sub-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px;}
.w-sub-planname{font-family:'Playfair Display',serif;font-weight:700;font-size:21px;color:#f5f5f5;margin-bottom:14px;}
.w-badge-status{font-size:11.5px;font-weight:700;padding:5px 12px;border-radius:999px;letter-spacing:.02em;white-space:nowrap;}
.w-badge-status.active{color:var(--success);background:rgba(61,220,132,.14);}
.w-badge-status.expired{color:#ff8080;background:rgba(224,86,86,.16);}
/* Expiry — integrated naturally into the card, no boxed rectangle */
.w-sub-expiry-line{margin-bottom:16px;}
.w-expiry-warn .w-expiry-value{color:#ff8080;}
.w-expiry-label{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px;}
.w-expiry-value{font-size:16px;font-weight:700;color:#f0f0f0;line-height:1.3;}
.w-expiry-note{font-size:11.5px;color:#ff9a9a;font-weight:600;margin-top:3px;}
.w-sub-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;}
.w-sub-label{font-size:10px;color:var(--text-dim);text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px;}
.w-sub-value{font-size:15px;font-weight:700;color:#f0f0f0;}
/* Manage button on the Account page — more presence than the sidebar's, but not full-width */
.w-btn-manage-account{display:inline-flex;width:max-content;align-items:center;justify-content:center;padding:11px 24px;border-radius:10px;background:var(--gold) !important;color:#0a0a0a !important;font-size:13.5px;font-weight:700;text-decoration:none;border:none;}
.w-btn-manage-account:hover{background:var(--gold-bright) !important;color:#0a0a0a !important;}
.w-tag-current{font-size:10px;font-weight:700;color:var(--gold);background:rgba(212,175,55,.12);padding:2px 7px;border-radius:5px;margin-left:6px;}
.w-device-row{display:flex;align-items:center;gap:12px;padding:11px 4px;border-bottom:1px solid var(--border-soft);}
.w-device-row:last-child{border-bottom:none;}
.w-session-list{margin-top:4px;}

@media (max-width:900px){
  .w-app{flex-direction:column;}
  .w-mobile-bar{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--border-soft);background:var(--bg-2);position:sticky;top:0;z-index:40;}
  .w-mobile-bar .w-logo-img-sm{margin:0;}
  .w-sidenav{position:fixed;top:0;bottom:0;left:0;z-index:50;width:82%;max-width:300px;height:100vh;transform:translateX(-105%);transition:transform .2s ease;box-shadow:8px 0 24px rgba(0,0,0,.4);background:var(--bg);}
  .w-sidenav.w-open{transform:translateX(0);}
  .w-content{height:auto;padding-bottom:100px;}
  .w-bottomnav{display:flex;position:fixed;left:0;right:0;bottom:0;height:78px;background:rgba(8,8,8,.94);backdrop-filter:blur(14px);border-top:1px solid var(--border-soft);padding-top:10px;z-index:45;}
  .w-bottomnav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;font-weight:500;color:var(--text-muted);}
  .w-bottomnav a svg{width:19px;height:19px;}
  .w-bottomnav a.active{color:var(--gold);font-weight:600;}

  .w-live-layout{grid-template-columns:1fr;grid-template-rows:auto auto 1fr;height:auto;}
  .w-live-col{border-right:none;border-bottom:1px solid var(--border-soft);max-height:180px;}
  .w-col-body{padding:0 16px 12px;}
  .w-live-cats .w-col-body{display:flex;gap:6px;overflow-x:auto;padding:0 16px 12px;}
  .w-live-cats .w-cat-item{flex-shrink:0;white-space:nowrap;}
  .w-player-wrap{border-radius:0;max-width:none;}
  .w-live-main{padding:14px;}
  .w-sub-card,.w-acct-section{margin-left:16px;margin-right:16px;}
  .w-row-head,.w-row,.w-grid,.w-chips,.w-quicklinks,.w-back-btn{padding-left:16px;padding-right:16px;}
  .w-grid{padding-left:16px;padding-right:16px;}
}
