@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');
:root{font-family:'DM Sans','Tajawal',sans-serif;background:#0d0b11;color:#f8f5f8;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;height:100%}body{min-width:320px}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #e47294;outline-offset:2px}button[hidden],div[hidden],section[hidden]{display:none!important}
.app{height:100dvh;display:flex;background:radial-gradient(ellipse at 60% 10%,#2a1626,#0d0b11 55%);overflow:hidden}
.sidebar{width:244px;flex-shrink:0;display:flex;flex-direction:column;padding:28px 19px;background:#121016;border-inline-end:1px solid #342737}
.brand{color:#fff;display:flex;gap:11px;align-items:center;text-decoration:none;padding:0 2px 44px}
.mark{width:40px;height:40px;flex-shrink:0;display:grid;place-items:center;border-radius:11px;background:#a72d55;color:white;font-size:19px;box-shadow:0 6px 20px #56142999}
.brandname{font-size:17px;letter-spacing:.7px;font-weight:800}.brandname b,.mobile-brand b{color:#e7688e}.brandname small{display:block;margin-top:5px;font-family:Tajawal,sans-serif;font-size:11px;letter-spacing:0;color:#ad9aaa}
.eyebrow{font-size:10px;letter-spacing:2px;color:#a892a5;margin:0 12px 18px}
.side-nav{display:flex;flex-direction:column;gap:5px}.side-nav button{border:0;border-radius:11px;background:transparent;color:#b8a9bb;text-align:start;padding:14px;font-weight:800;font-size:14px}.side-nav button:hover,.side-nav button.nav-active{background:#61203a;color:#fff}
.main-button{border:0;border-radius:11px;background:#af325a;color:white;font-weight:800;padding:14px}.sidebar>.main-button{margin-top:28px}
.sidebar-foot{margin-top:auto;color:#a08d9d;font-size:11px;line-height:1.7}
.workspace{min-width:0;flex:1;display:flex;flex-direction:column}
.top{height:77px;flex-shrink:0;border-bottom:1px solid #352736;display:flex;align-items:center;justify-content:space-between;padding:0 31px;gap:12px}
.pageheading{display:flex;flex-direction:column;gap:5px}.pageheading small{color:#dd8bab;font-size:10px;font-weight:800;letter-spacing:1.3px}.pageheading strong{font-size:21px}
.header-actions{display:flex;gap:9px;align-items:center}.beta{border:1px solid #6e3e58;padding:7px 12px;border-radius:30px;color:#e3a0b7;font-size:10px;font-weight:800;letter-spacing:1px}
#language{display:flex;align-items:center;gap:7px;background:#2a212d;border:1px solid #4a3448;color:white;border-radius:10px;padding:10px;font-weight:800;font-size:12px}
.mobile-brand{display:none}
.content{flex:1;min-height:0;display:flex;justify-content:center;gap:31px;padding:17px 20px}
.main-feed{width:min(468px,100%);min-width:0;display:flex;flex-direction:column}
.filters{display:flex;gap:8px;overflow-x:auto;flex-shrink:0;scrollbar-width:none;padding:0 0 12px}
.filters button{border:1px solid #4b3547;background:#241d28;color:#c1adbf;border-radius:24px;padding:10px 14px;font-weight:800;font-size:12px;white-space:nowrap}
.filters button.selected{background:#f0e9ef;color:#21151f;border-color:#f0e9ef}
.search-line{padding:5px 0 10px}.search-line input{background:#261e2a;border:1px solid #554358;color:white;border-radius:10px;padding:11px 13px;width:100%;outline:none}
.feed{flex:1;min-height:0;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;border:1px solid #4b3041;border-radius:17px}
.feed::-webkit-scrollbar{display:none}
.reel{height:100%;min-height:420px;background:#19151c;scroll-snap-align:start;display:flex;flex-direction:column;overflow:hidden}
.reel:not(:last-child){border-bottom:2px solid #6c3750}
.creator{height:57px;flex-shrink:0;display:flex;align-items:center;gap:10px;padding:9px 13px}
.avatar{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;background:#832d4a;border-radius:50%;font-size:15px;font-weight:800}
.creator>div{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}.creator strong{font-size:13px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.creator small{color:#bda7b7;font-size:11px}.creator .number{font-size:10px;color:#d79cb3}
.video-frame{flex:1;min-height:210px;background:#050409;position:relative}.yt-mount{position:absolute;inset:0;z-index:2}.yt-mount>div,.yt-mount iframe{width:100%;height:100%;border:0}
.poster{position:absolute;inset:0;width:100%;height:100%;display:grid;place-items:center;background:#0a080c;border:0;overflow:hidden;color:white}.poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.68}.poster span{background:#dc1643;border-radius:14px;font-size:23px;padding:13px 24px;position:relative;z-index:1}
.reel-bottom{background:#221a24;padding:10px 13px 12px;flex-shrink:0}.reel-bottom>p{font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 9px}
.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.actions button,.actions a{border:0;border-radius:8px;padding:7px 9px;background:#392a3b;color:#f6e8f2;font-size:12px;text-decoration:none;display:flex;gap:6px;align-items:center}.actions button small{font-size:10px}.actions button.on{background:#54253d;color:#ff95b2}.actions a{margin-inline-start:auto;font-size:10px;font-weight:800;background:#562c41}
.promo-col{width:270px;flex-shrink:0;padding-top:49px;display:flex;flex-direction:column;gap:15px}
.promo{background:linear-gradient(145deg,#582441,#201720 70%);border:1px solid #573650;border-radius:20px;padding:24px}
.promo-globe{width:48px;height:48px;display:grid;place-items:center;background:#a82d57;border-radius:13px;font-size:26px;margin-bottom:18px}
.promo small{font-weight:800;letter-spacing:1.6px;font-size:10px;color:#e3a6be}
.promo h2{font-size:27px;line-height:1.4;margin:14px 0}.promo p{color:#ccbac9;font-size:13px;line-height:1.85;margin-bottom:19px}
.promo .main-button{width:100%}.safety{border:1px solid #493448;border-radius:14px;padding:18px;background:#201a23}
.safety strong{font-size:13px}.safety p{font-size:12px;line-height:1.8;color:#bdaabd}
.legal{display:flex;justify-content:center;gap:16px}.legal a{font-size:11px;color:#ab9aac;text-decoration:none}
.empty{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:25px;text-align:center}.empty strong{font-size:21px}.empty p{color:#bdaebb;font-size:13px;line-height:1.6}
.bottom-nav{display:none}
.modal-bg{position:fixed;inset:0;background:#000c;backdrop-filter:blur(6px);z-index:50;display:flex;justify-content:center;align-items:center;padding:15px}
.modal{width:min(480px,100%);background:#201922;border:1px solid #61455b;border-radius:20px;padding:25px;max-height:95dvh;overflow:auto}
.modal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.modal-top h2{font-size:23px;margin:0}.modal-top button{width:35px;height:35px;color:#fff;background:#463446;border:0;border-radius:50%}
.caution{color:#efc5d3;background:#3a2534;border:1px solid #75465a;border-radius:10px;padding:12px;font-size:12px;line-height:1.7}
.modal label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:800;margin:17px 0}
.modal input,.modal textarea{background:#352a39;border:1px solid #644b5e;color:white;border-radius:10px;padding:12px;min-width:0}
.modal textarea{min-height:84px;resize:vertical}.form-error{color:#ffacbe;font-size:12px}.modal .main-button{width:100%}
.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:60;background:#f0dfea;color:#281829;font-size:12px;font-weight:800;border-radius:25px;padding:13px 18px;box-shadow:0 5px 24px #0009;max-width:92vw;text-align:center}
@media(max-width:1180px){.promo-col{display:none}.main-feed{width:min(490px,100%)}}
@media(max-width:760px){
.sidebar{display:none}.top{height:56px;background:#131017;padding:0 13px}.pageheading{display:none}
.mobile-brand{display:inline;color:white;font-size:13px;font-weight:800;text-decoration:none}.mobile-brand b{color:#e76a91}.beta{display:none}
.content{padding:0}.main-feed{width:100%}.filters{padding:8px 10px;background:#1b1420}.filters button{padding:8px 13px;font-size:11px}
.feed{border:0;border-radius:0}.reel{min-height:340px}.creator{height:53px;padding:8px 11px}.reel-bottom{padding:8px 10px}.reel-bottom>p{font-size:13px;margin-bottom:7px}
.actions{gap:6px}.actions button,.actions a{font-size:11px;padding:6px 7px}
.bottom-nav{height:64px;flex-shrink:0;display:flex;align-items:center;justify-content:space-around;background:#151018;border-top:1px solid #463347;padding:4px 8px calc(4px + env(safe-area-inset-bottom,0px))}
.bottom-nav button{border:0;background:transparent;color:#ac9aab;display:flex;flex-direction:column;gap:3px;align-items:center;font-size:20px;padding:2px 8px}
.bottom-nav button.nav-active{color:#fff}.bottom-nav button small{font-size:10px}.bottom-nav .add-icon{border-radius:9px;background:#aa3258;color:white;font-size:24px;height:37px;width:45px;display:grid;place-items:center}
.toast{bottom:78px}
}
@media(max-height:640px){.reel{min-height:370px}.creator{height:48px}.reel-bottom{padding:7px 9px}}

/* All-time chart attribution and ranking snapshot */
.ranking-note{flex-shrink:0;margin:0 0 11px;color:#bca7b9;font-size:11px;line-height:1.6;text-align:center;padding:5px 8px;border:1px solid #4f394b;border-radius:9px;background:#1c1720}
.ranking-note a{color:#eaa6c4;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}

/* Shorts-first layout: keep the player centered and optimized for vertical mobile viewing. */
.comments-link{background:#3d2d3d!important;color:#e7b3ca!important;font-weight:700}
.comments-link:hover{background:#63344c!important}
.reel .number{white-space:nowrap;font-variant-numeric:tabular-nums}
.video-frame{display:flex;align-items:center;justify-content:center;overflow:hidden}
.video-frame .yt-mount{inset:0;margin:auto;max-width:100%;height:100%;width:100%}
.verification-player{width:100%;height:230px;min-height:210px;background:#0a090d;border-radius:12px;margin:12px auto;overflow:hidden}
.verification-player iframe{display:block;width:100%;height:100%;border:0}
#submit-video:disabled{opacity:.65;cursor:wait}
@media(min-width:761px){.video-frame .yt-mount{max-width:min(100%,420px)}}
@media(max-width:760px){.reel-bottom p{white-space:normal;max-height:2.8em;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.actions{gap:4px}.actions a.comments-link{font-size:11px}.ranking-note{font-size:10px;padding:3px 6px;margin:4px 8px 5px}.reel .number{font-size:11px}}

/* Keep a visible preview while third-party video players initialize on mobile. */
.poster{z-index:3;touch-action:manipulation}
.video-frame .yt-mount{z-index:2}
.poster:focus-visible{outline-offset:-4px}
@media(max-width:760px){
  .ranking-note{margin:2px 8px 4px;padding:3px 5px;font-size:10px;line-height:1.35}
  .filters{gap:6px;scroll-snap-type:x proximity}
  .filters button{scroll-snap-align:start}
  .reel{overscroll-behavior-y:contain}
  .feed{scroll-padding-top:0}
  .video-frame{background:#08080a}
}

/* Sound toggle stays above both the YouTube iframe and loading poster.
   Mobile browsers require an explicit tap before they allow audio. */
.video-frame .sound-toggle{
 position:absolute;top:12px;right:12px;z-index:5;
 display:flex;align-items:center;justify-content:center;
 min-height:43px;min-width:125px;max-width:calc(100% - 24px);
 padding:9px 13px;border-radius:999px;
 border:1px solid rgba(255,255,255,.5);
 background:rgba(10,9,15,.88);color:#fff;
 font-family:'Tajawal','DM Sans',sans-serif;
 font-size:13px;font-weight:800;line-height:1.2;
 text-shadow:0 1px 2px rgba(0,0,0,.45);
 box-shadow:0 4px 15px rgba(0,0,0,.45);
 -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
.video-frame .sound-toggle.sound-on{background:rgba(110,33,69,.94);border-color:#f1acc8}
.video-frame .sound-toggle:active{transform:scale(.97)}
@media(max-width:760px){
 .video-frame .sound-toggle{top:12px;right:11px;min-height:44px;padding:9px 13px;font-size:13px}
}

/* iOS audio: user starts unmuted media by tapping the native YouTube Play button.
   This hint cannot intercept any touch directed to the cross-origin player. */
.video-frame .audio-hint{
 position:absolute;z-index:4;left:12px;right:12px;top:67px;
 margin:0 auto;max-width:320px;width:fit-content;
 padding:8px 13px;border-radius:11px;
 background:rgba(16,12,20,.9);border:1px solid rgba(255,255,255,.25);
 color:#fff;text-align:center;font-size:12px;font-weight:750;
 line-height:1.45;text-shadow:0 1px 2px #000;
 pointer-events:none;user-select:none;
}
.video-frame .audio-hint[hidden]{display:none!important}

/* A button with hidden must not cover the real YouTube player.
   The author .poster display:grid would otherwise override the browser's
   default [hidden] rendering and intercept taps meant for YouTube controls. */
.video-frame .poster[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important}

/* iPhone: keep exactly one YouTube iframe mounted while the feed changes.
   A fixed-position stage follows the currently visible card, without moving
   the iframe in the DOM (which would reload it on iOS Safari). */
.persistent-yt-stage{
 position:fixed;z-index:4;overflow:hidden;
 background:#050409;
 border:0;
 /* Let vertical swipes reach the underlying feed on iOS. */
 pointer-events:none;
}
.persistent-yt-stage[hidden]{display:none!important}
.persistent-yt-mount,.persistent-yt-stage iframe{
 display:block;width:100%;height:100%;border:0;
 /* Explicitly disable iframe hit-testing: parent pointer-events:none
    alone does not prevent child elements from receiving touches. */
 pointer-events:none!important;
 touch-action:pan-y;
}
/* White theme — video canvas remains black for contrast */
:root{background:#fff;color:#18212d;color-scheme:light}
html,body,.app,.workspace,.content,.main-feed{background:#fff;color:#18212d}
.app{background:#fff}
.sidebar,.top,.filters,.bottom-nav{background:#fff;border-color:#e3e6eb}
.brand,.mobile-brand,.pageheading,.creator strong,.reel-bottom,.promo h2,.safety strong,.modal{color:#18212d}
.eyebrow,.sidebar-foot,.creator small,.reel .number,.ranking-note,.legal a,.promo p,.safety p,.empty p{color:#576273}
.side-nav button,.bottom-nav button{color:#465365}
.side-nav button:hover,.side-nav button.nav-active,.bottom-nav button.nav-active{background:#f1f3f6;color:#18212d}
.feed,.reel,.creator,.reel-bottom{background:#fff;color:#18212d;border-color:#e3e6eb}
.filters button{background:#f3f5f7;border-color:#dce1e7;color:#344054}
.filters button.selected{background:#18212d;border-color:#18212d;color:#fff}
.actions button,.actions a{background:#f1f3f6;color:#18212d}
.actions button.on{background:#fce8ef;color:#a72d55}
.comments-link{background:#f1f3f6!important;color:#18212d!important}
.ranking-note,.promo,.safety,.modal,.caution{background:#fff;border-color:#e3e6eb;color:#18212d}
.ranking-note a,.promo small{color:#a72d55}
.search-line input,.modal input,.modal textarea{background:#fff;color:#18212d;border-color:#cfd6df}
#language,.modal-top button{background:#f1f3f6;color:#18212d;border-color:#dce1e7}
.toast{background:#fff;color:#18212d;box-shadow:0 5px 24px #0002}
.video-frame,.persistent-yt-stage{background:#000}
@media(max-width:760px){.top,.filters,.bottom-nav,.creator,.reel-bottom{background:#fff}}

