/* Extra look & feel for the stream archive pages (injected by nginx). */

/* ---- player: the seek bar and controls run left -> right ---- */
.vp-bar,.vp-seek{direction:ltr}
.vp-seek{height:6px;transition:height .15s}
.vp:hover .vp-seek,.vp-seek:active{height:8px}
.vp-buf{background:rgba(255,255,255,.28)}
.vp-played{background:linear-gradient(90deg,#ff2d55,#7b5cff)!important;box-shadow:0 0 14px rgba(123,92,255,.55)}
.vp-knob{width:15px;height:15px;box-shadow:0 0 0 4px rgba(123,92,255,.35)}
.vp-bar{background:linear-gradient(to top,rgba(5,5,10,.92),rgba(5,5,10,.55) 55%,transparent);padding-top:34px}
.vp-time{direction:ltr;letter-spacing:.2px}
.vp-btn{border-radius:12px}
/* the "10" seek buttons: a ring arrow with the number centred inside it
   (the site's own arrow glyph was drawn beside the number and collided with it) */
.vp-back,.vp-fwd{display:grid!important;place-items:center;padding:0!important;font-size:10px!important;font-weight:800;line-height:1;
  letter-spacing:0;font-variant-numeric:tabular-nums;text-indent:0}
.vp-back::after,.vp-fwd::after{content:""!important;position:absolute!important;inset:3px!important;opacity:.95!important;
  font-size:0!important;pointer-events:none;background:center/contain no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12a8.5 8.5 0 1 0 2.7-6.2'/%3E%3Cpath d='M3.2 3.8v4.6h4.6'/%3E%3C/svg%3E")}
.vp-fwd::after{transform:scaleX(-1)}
.vp-back,.vp-fwd{padding-top:1px!important}
.vp-big{background:linear-gradient(135deg,#ff2d55,#7b5cff)!important;box-shadow:0 14px 40px rgba(255,45,85,.45),0 0 0 8px rgba(255,255,255,.08)}
.vp-big::before{margin-inline-start:4px}

/* ---- stream page ---- */
main.xs .vp{border-radius:22px;box-shadow:0 30px 90px rgba(123,92,255,.20),0 0 0 1px rgba(255,255,255,.07)}
main.xs>h1{font-size:clamp(22px,4.2vw,34px);line-height:1.5;margin:26px 0 12px;
  background:linear-gradient(90deg,#fff,#c8bcff 60%,#ff8fa8);-webkit-background-clip:text;background-clip:text;color:transparent}
.xchips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.xchip{display:inline-flex;align-items:center;gap:7px;padding:6px 13px;border-radius:99px;font-size:13px;
  color:#d9d9e6;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09)}
.xchip svg{width:15px;height:15px;opacity:.75}
.xchip.q{color:#2ee6a8;border-color:rgba(46,230,168,.35);background:rgba(46,230,168,.08)}

/* like / dislike */
.xrow{margin-top:18px!important;gap:10px!important}
.xvote{display:inline-flex;border-radius:99px;overflow:hidden;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05)}
.xv{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;border:0;background:transparent;color:#d9d9e6;
  font:inherit;font-size:14px;cursor:pointer;transition:background .15s,color .15s,transform .1s}
.xv+.xv{border-inline-start:1px solid rgba(255,255,255,.12)}
.xv svg{width:19px;height:19px;transition:transform .2s}
.xv:hover{background:rgba(255,255,255,.1)}
.xv:active svg{transform:scale(1.35)}
.xv.up.on{color:#2ee6a8;background:rgba(46,230,168,.12)}
.xv.down.on{color:#ff5c7a;background:rgba(255,92,122,.12)}
.xv.on svg{fill:currentColor}
.xv[disabled]{opacity:.5;cursor:wait}
.xrow .btn.ghost{border-radius:99px}
.xmsg{font-size:12.5px;color:#ff9db0;margin-inline-start:6px}

/* hero: the archive / giveaways buttons are gone (the sections are right below) */
.hero .acts a.btn[href="/streams"],.hero .acts a.btn[href="/giveaways"]{display:none!important}
.hero .acts:not(:has(a:not([href="/streams"]):not([href="/giveaways"]))){display:none!important}

/* the icon row used to be pinned to the bottom corner of the hero, which only
   worked while the two buttons made the box tall; now that there are more
   counters it is part of the normal flow so it can never sit on top of them */
.hero .socials-row{position:static!important;margin-inline-start:auto;margin-top:0;
  align-self:flex-end}   /* sits level with the counters row, not in the middle of the box */
.hero .in{padding-bottom:20px!important}
@media (max-width:620px){.hero .socials-row{margin-inline-start:0;margin-top:14px}}

/* admin panel: the header tabs wrap into their own row instead of overflowing */
body.admin header .wrap{flex-wrap:wrap;row-gap:8px}
body.admin header nav.xadm{display:flex!important;order:3;width:100%;gap:6px;flex-wrap:wrap;padding:2px 0 10px}
body.admin header nav.xadm a{padding:7px 13px;border-radius:10px;font-size:13.5px;white-space:nowrap;text-decoration:none;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);color:#d9d9e6}
body.admin header nav.xadm a:hover{background:rgba(255,255,255,.1)}
body.admin header nav.xadm a.on{background:linear-gradient(135deg,#ff2d55,#7b5cff);border-color:transparent;color:#fff}
body.admin header nav.xadm .xbadge{font-style:normal;margin-inline-start:6px;padding:0 7px;border-radius:99px;background:#ff2d55;color:#fff;font-size:11.5px}
@media (max-width:760px){
  body.admin header nav.xadm{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  body.admin header nav.xadm::-webkit-scrollbar{display:none}
  body.admin main table{display:block;overflow-x:auto;white-space:nowrap}
}
body.admin main table th{position:sticky;top:0;z-index:1}

/* seven items in the phone tab bar: keep the labels on one line */
.tabbar a span{white-space:nowrap;font-size:10.5px}
.tabbar a{min-width:0}

/* Clash tags that link to the player profile */
a.xtaglink{color:inherit;text-decoration:underline dotted;text-underline-offset:3px}
a.xtaglink:hover{color:#ffd23f}

/* Aparat's own pink on hover (the site used a dull red) */
.soc.ap:hover{background:#ed145b!important;border-color:#ed145b!important;color:#fff!important}

/* the small list that opens from the merged Telegram / YouTube icons */
.xmenu{position:fixed;z-index:200;min-width:190px;padding:6px;border-radius:14px;
  background:#12121a;border:1px solid rgba(255,255,255,.14);box-shadow:0 18px 50px rgba(0,0,0,.6);
  animation:xm .12s ease-out}
@keyframes xm{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.xmenu-t{padding:6px 10px 7px;font-size:12px;color:#9a9ab5;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:4px}
.xmenu a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:#fff;
  font-size:14px;text-decoration:none;white-space:nowrap}
.xmenu a::before{content:"";width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,#ff2d55,#7b5cff);flex:none}
.xmenu a:hover,.xmenu a:focus-visible{background:rgba(255,255,255,.09);outline:none}

/* tooltip on the social icons: says which channel the icon is for.
   It is a separate element placed by script (position: fixed), because the
   hero box clips anything that sticks out of it. */
.xtip{position:fixed;z-index:210;pointer-events:none;white-space:nowrap;direction:rtl;
  background:#12121a;color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:10px;padding:6px 12px;
  font-size:12.5px;line-height:1.5;box-shadow:0 12px 32px rgba(0,0,0,.55);animation:xm .1s ease-out}

/* like counts on the cards */
.card .m .xl{margin-inline-start:auto;display:inline-flex;gap:10px;align-items:center;color:#9a9ab5;font-size:12px}
.card .m .xl i{font-style:normal;display:inline-flex;gap:4px;align-items:center}
.card .m .xl svg{width:13px;height:13px}
.card .m .xl .u{color:#2ee6a8}

/* eNamad trust seal in the footer: small, lazy, never pushes the layout */
.xenamad{background:none!important;border:0!important;padding:0!important;position:relative;display:flex;justify-content:center;width:100%;margin:14px 0 4px}
/* until eNamad serves the logo (it answers 403 before the seal is active) nothing is shown */
/* our copy of the seal is shown until eNamad itself serves the logo */
.xenamad a{position:relative}
.xenamad a::before{content:"";display:block;width:125px;height:136px;background:url(/x/enamad.png?v=1) center/125px 136px no-repeat}
.xenamad.xen-ok a::before{display:none}
.xenamad:not(.xen-ok) img{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.xenamad a{display:inline-flex;padding:0;border-radius:10px;overflow:hidden;background:#fff;line-height:0;box-shadow:0 6px 18px rgba(0,0,0,.3)}
.xenamad img{width:auto;height:84px;min-width:60px}

/* footer quick links (support first) */
.xfoot{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%;margin:18px 0 0;padding-top:16px;border-top:1px solid rgba(255,255,255,.07)}
.xfoot a{padding:8px 14px;border-radius:99px;font-size:13px;text-decoration:none;color:#d9d9e6;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);transition:all .15s}
.xfoot a:hover{background:rgba(255,255,255,.1);color:#fff}
.xfoot a.main{background:linear-gradient(135deg,#ff2d55,#7b5cff);border-color:transparent;color:#fff;font-weight:700;box-shadow:0 8px 22px rgba(255,45,85,.3)}
/* account page shortcuts */
.xacct{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}
.xacct a{padding:10px 16px;border-radius:14px;text-decoration:none;font-size:14px;color:#fff;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1)}
.xacct a:first-child{background:linear-gradient(135deg,#ff2d55,#7b5cff);border-color:transparent;font-weight:700}

/* home page rows: one line of cards with arrows (no more endless stacking on phones) */
.xrail{position:relative}
.xrail>.grid{display:grid!important;grid-auto-flow:column;grid-template-columns:none!important;grid-auto-columns:calc((100% - 3*16px)/4);gap:16px!important;
  overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px}
.xrail>.grid::-webkit-scrollbar{display:none}
.xrail>.grid>*{scroll-snap-align:start;min-width:0}
.xrail>.grid.shorts{grid-auto-columns:calc((100% - 5*16px)/6)}
@media (max-width:1000px){.xrail>.grid{grid-auto-columns:calc((100% - 2*14px)/3)}.xrail>.grid.shorts{grid-auto-columns:calc((100% - 3*14px)/4)}.xrail>.grid{gap:14px!important}}
@media (max-width:760px){.xrail>.grid{grid-auto-columns:calc((100% - 12px)/2);gap:12px!important}.xrail>.grid.shorts{grid-auto-columns:calc((100% - 2*12px)/3)}}
@media (max-width:520px){.xrail>.grid{grid-auto-columns:80%}.xrail>.grid.shorts{grid-auto-columns:44%}}
.xr-btn{position:absolute;top:calc(50% - 22px);z-index:3;display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:50%;cursor:pointer;color:#fff;
  border:1px solid rgba(255,255,255,.18);background:rgba(16,16,24,.82);backdrop-filter:blur(8px);box-shadow:0 8px 24px rgba(0,0,0,.5);transition:opacity .2s,transform .15s}
.xr-btn svg{width:20px;height:20px}
.xr-btn:hover{background:linear-gradient(135deg,#ff2d55,#7b5cff);transform:scale(1.06)}
.xr-btn[disabled]{opacity:0;pointer-events:none}
.xr-prev{right:-10px}.xr-next{left:-10px}
.xrail.xr-none .xr-btn{display:none}
@media (max-width:760px){.xr-btn{width:36px;height:36px;top:calc(50% - 18px)}.xr-prev{right:-4px}.xr-next{left:-4px}}

/* phones: nothing may make the page wider than the screen (sideways scroll / zoom-out) */
html,body{max-width:100%;overflow-x:clip}
img,video,iframe,table{max-width:100%}

/* giveaway page on phones: the whole picture, full width (it was cut to a square) */
@media (max-width:700px){
 .ga-art{width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:auto!important;margin-inline:auto}
 .ga-art img{width:100%!important;height:auto!important;max-height:70vh;aspect-ratio:auto!important;object-fit:contain!important;border-radius:18px}
}
