/* Media: Photos app (meme library + viewer), Thug TV app, home-screen video card. Owner: media. */
:root{--thug-black:oklch(13% .004 60);--thug-panel:oklch(19% .006 60);--thug-line:oklch(100% 0 0/.09);--thug-text:oklch(97% .004 80);--thug-muted:oklch(72% .012 70);--thug-gold:oklch(84% .13 85);--thug-script:"UnifrakturMaguntia","Old English Text MT","Engravers Old English",serif}

/* ---------- home-screen card (same footprint as the contract-address card) ---------- */
.thugtv-card{position:relative;isolation:isolate;display:block;min-width:0;height:140px;padding:0;border-radius:22px;overflow:hidden;border:1px solid var(--liquid-edge);box-shadow:var(--attention-shadow);background:var(--attention-bg);cursor:pointer;color:#fff;transition:transform .18s ease}
.thugtv-card:active{transform:scale(.97)}
.thugtv-card:focus-visible{outline:2px solid var(--thug-gold);outline-offset:2px}
.thugtv-card-pic{position:absolute;top:0;left:0;width:100%;height:131%;object-fit:cover;object-position:50% 0;pointer-events:none;opacity:0;transition:opacity 1.1s ease-in-out}
.thugtv-card-pic.is-on{opacity:1}
.thugtv-card::before{content:"";position:absolute;inset:auto 0 0;height:48%;z-index:1;pointer-events:none;background:linear-gradient(to top,oklch(0% 0 0/.62),oklch(0% 0 0/0))}
.thugtv-card::after{content:"";position:absolute;inset:0;z-index:2;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 0 0 1px rgba(255,255,255,.08)}
.thugtv-card-label{position:absolute;left:10px;bottom:9px;z-index:3;display:inline-flex;align-items:center;gap:4px;padding:3px 7px 3px 6px;border-radius:999px;background:oklch(0% 0 0/.42);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid oklch(100% 0 0/.18);font-size:9px;font-weight:700;letter-spacing:.02em;line-height:1.2;white-space:nowrap}
.thugtv-card-label svg{width:7px;height:7px;fill:currentColor;flex-shrink:0}
@media (width<=540px){.thugtv-card{height:135px}}
@media (width<=365px){.thugtv-card{height:120px}}

/* ---------- Photos ---------- */
.thug-photos .thug-photos-title{margin-bottom:4px}
.thug-photo-grid{grid-template-columns:repeat(2,1fr);gap:3px;margin:20px -19px 0}
.thug-photo-grid .photo-scene{aspect-ratio:1280/714;background:var(--secondary);display:block;width:100%}
.thug-photo-grid .photo-scene img{display:block;transition:opacity .2s}
.thug-photo-grid .photo-scene:active img{opacity:.75}
.phone-screen:has(.thug-viewer) .status-bar{color:var(--screen-white)}
.phone-screen:has(.thug-viewer) .home-indicator{background:var(--screen-white)}
.thug-viewer{display:block;background:oklch(6% 0 0);color:#fff;touch-action:pan-y;user-select:none;-webkit-user-select:none;animation:thug-fade .2s ease-out}
.thug-viewer-top{position:absolute;top:57px;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:0 14px;z-index:2}
.thug-viewer-count{font-size:12px;font-weight:600;color:oklch(100% 0 0/.75);font-variant-numeric:tabular-nums}
.thug-viewer-stage{position:absolute;inset:0;display:grid;place-items:center;padding:0}
.thug-viewer-img{width:100%;height:auto;max-height:100%;object-fit:contain;opacity:0;transition:opacity .22s ease;pointer-events:none}
.thug-viewer-img.is-in{opacity:1}
.thug-viewer .sim-button{color:#fff;background:oklch(100% 0 0/.14);border:1px solid oklch(100% 0 0/.16);border-radius:999px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.thug-viewer .sim-button:hover{background:oklch(100% 0 0/.24)}
.thug-viewer-close{width:32px;height:32px}
.thug-viewer-nav{position:absolute;bottom:64px;z-index:2;width:42px;height:42px}
.thug-viewer-prev{left:calc(50% - 54px)}
.thug-viewer-next{right:calc(50% - 54px)}
.thug-viewer-prev svg{transform:scaleX(-1)}
.thug-viewer-caption{position:absolute;left:0;right:0;top:calc(50% + 112px);margin:0;padding:0 20px;text-align:center;font-size:15px;font-weight:650;line-height:1.2;color:var(--thug-text)}

/* ---------- Thug TV ---------- */
.thugtv-app{background:var(--thug-black);color:var(--thug-text)}
.phone-screen:has(.thugtv-app) .status-bar{color:var(--screen-white)}
.phone-screen:has(.thugtv-app) .status-battery span{color:var(--thug-black)}
.phone-screen:has(.thugtv-app) .home-indicator{background:var(--screen-white)}
.phone-screen .thugtv-app .app-header{background:oklch(13% .004 60/.82);border-bottom:1px solid var(--thug-line);color:var(--thug-text)}
.phone-screen .thugtv-app .app-header>button{color:var(--thug-text);background:oklch(100% 0 0/.1);box-shadow:inset 0 1px 1px oklch(100% 0 0/.14)}
.thugtv-content{padding:14px 14px 18px;scrollbar-width:none}
.thugtv-content::-webkit-scrollbar{display:none}
.thugtv-player{position:relative;display:block;width:100%;aspect-ratio:854/476;padding:0;border-radius:16px;overflow:hidden;background:#000;cursor:pointer;box-shadow:0 10px 30px oklch(0% 0 0/.45),inset 0 0 0 1px oklch(100% 0 0/.08)}
.thugtv-player:focus-visible{outline:2px solid var(--thug-gold);outline-offset:2px}
.thugtv-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;background:#000}
.thugtv-state{position:absolute;left:50%;top:50%;z-index:2;display:grid;place-items:center;width:58px;height:58px;margin:-29px 0 0 -29px;border-radius:50%;background:oklch(0% 0 0/.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1.5px solid oklch(100% 0 0/.6);opacity:0;transform:scale(.85);transition:opacity .18s,transform .18s;pointer-events:none}
.thugtv-state svg{width:24px;height:24px;margin-left:3px;fill:currentColor;stroke:none}
.thugtv-player.is-paused .thugtv-state{opacity:1;transform:scale(1)}
.thugtv-progress{position:absolute;left:0;right:0;bottom:0;z-index:2;height:3px;background:oklch(100% 0 0/.18)}
.thugtv-progress-fill{position:absolute;inset:0;background:var(--thug-gold);transform:scaleX(0);transform-origin:0 50%;transition:transform .25s linear}
.thugtv-now{padding:14px 2px 4px}
.thugtv-kicker{display:block;margin-bottom:3px;font-size:9px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--thug-gold)}
.thugtv-now-title{margin:0;font-size:21px;font-weight:700;line-height:1.15;letter-spacing:-.01em}
.thugtv-app.has-script .thugtv-now-title{font-family:var(--thug-script);font-size:27px;font-weight:400;letter-spacing:0}
.thugtv-now-sub{margin:4px 0 0;font-size:12px;line-height:1.35;color:var(--thug-muted)}
.thugtv-list-title{margin:18px 2px 8px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--thug-muted)}
.thugtv-list{display:flex;flex-direction:column;gap:6px}
.thugtv-row{display:flex;align-items:center;gap:11px;width:100%;padding:7px;border-radius:14px;text-align:left;cursor:pointer;background:oklch(100% 0 0/.04);border:1px solid transparent;transition:background .15s,border-color .15s}
.thugtv-row:hover{background:oklch(100% 0 0/.08)}
.thugtv-row:focus-visible{outline:2px solid var(--thug-gold);outline-offset:1px}
.thugtv-row.is-active{background:oklch(100% 0 0/.09);border-color:oklch(84% .13 85/.35)}
.thugtv-thumb{position:relative;flex-shrink:0;width:92px;aspect-ratio:16/9;border-radius:9px;overflow:hidden;background:var(--thug-panel)}
.thugtv-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.thugtv-thumb em{position:absolute;right:4px;bottom:4px;padding:1px 4px;border-radius:4px;background:oklch(0% 0 0/.65);font-size:8px;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;color:#fff}
.thugtv-row-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.thugtv-row-text strong{font-size:13px;font-weight:650;line-height:1.2;color:var(--thug-text)}
.thugtv-row-text small{font-size:10.5px;line-height:1.3;color:var(--thug-muted);white-space:normal}
.thugtv-eq{display:none;align-items:flex-end;gap:2px;height:12px;margin-right:4px;flex-shrink:0}
.thugtv-eq i{width:3px;height:100%;border-radius:1px;background:var(--thug-gold);transform-origin:bottom;animation:thug-eq 1s ease-in-out infinite}
.thugtv-eq i:nth-child(2){animation-delay:-.35s}
.thugtv-eq i:nth-child(3){animation-delay:-.7s}
.thugtv-row.is-active .thugtv-eq{display:flex}
.thugtv-app:has(.thugtv-player.is-paused) .thugtv-eq i{animation-play-state:paused}
.thugtv-foot{margin:18px 0 0;text-align:center;font-size:9px;color:oklch(72% .012 70/.7)}
@keyframes thug-eq{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
@keyframes thug-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.thugtv-eq i{animation:none}.thug-viewer{animation:none}}
