/* TIKTIKNEW CORE STYLES */
body,html { background: #000; overflow: hidden; height: 100%; width: 100%; margin: 0; padding: 0; font-family: -apple-system, sans-serif; touch-action: none; overscroll-behavior: none; }

/* PLAYER */
.plyr { height: 100%; width: 100%; } .plyr__video-wrapper { height: 100%; }
.plyr--full-ui input[type=range] { color: #fff; height: 3px; } .plyr__control--overlaid { display: none !important; } 
.plyr__controls { padding: 0 10px 10px 10px !important; background: transparent !important; }
.plyr__controls > .plyr__control, .plyr__time { display: none !important; } .plyr__progress__container { flex: 1; }
.plyr__poster { background-size: cover; background-position: center; }

/* UI */
#viewport { position: relative; width: 100%; height: 100%; overflow: hidden; }
#swiper { width: 100%; height: 100%; position: relative; will-change: transform; transition: transform 0s; }
.slide { width: 100%; height: 100%; position: absolute; left: 0; overflow: hidden; background: black; }
#slide-curr { top: 0; z-index: 1; }
#slide-next { top: 100%; z-index: 2; }

/* LAYERS */
.poster-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #2c3e50);
    display: flex; align-items: center; justify-content: center;
    z-index: 10; pointer-events: none;
    transition: opacity 0.5s ease;
}
#rl { position: fixed; inset: 0; z-index: 9999; cursor: pointer; -webkit-tap-highlight-color: transparent; } 

/* HEADER & SIDEBAR */
#top-head { position: absolute; top: 0; left: 0; width: 100%; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); }
.logo-txt { color: white; font-weight: 900; font-size: 18px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); pointer-events: auto; text-decoration: none; }
.menu-btn { color: white; pointer-events: auto; }

.side-bar { position: absolute; right: 10px; bottom: 100px; z-index: 45; display: flex; flex-direction: column; gap: 20px; align-items: center; pointer-events: none; }
.sb-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sb-icon { width: 40px; height: 40px; background: rgba(0,0,0,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); margin-bottom: 5px; }
.sb-icon svg { width: 24px; height: 24px; fill: white; }
.sb-text { color: white; font-size: 12px; font-weight: 600; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.sb-avatar { width: 45px; height: 45px; border-radius: 50%; border: 2px solid white; margin-bottom: 10px; position: relative; }
.sb-plus { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: #fe2c55; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; font-weight: bold; }

/* INFO & ALERTS */
.vid-info { position: absolute; bottom: 40px; left: 10px; z-index: 45; color: white; width: 75%; pointer-events: none; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); text-align: left; }
.u-name { font-weight: 700; font-size: 17px; margin-bottom: 5px; }
.v-desc { font-size: 14px; line-height: 1.3; opacity: 0.9; margin-bottom: 8px; }

#loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 60; text-align: center; width: 100%; pointer-events: none; }
.spinner { margin: 0 auto 10px auto; width: 50px; height: 50px; border: 5px solid rgba(255,255,255,0.2); border-left-color: #fe2c55; border-radius: 50%; animation: spin 0.8s linear infinite; }
.load-text { color: white; font-size: 14px; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,0.8); animation: pulse 1.5s infinite; }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes pulse { 0% { opacity:0.6; } 50% { opacity:1; } 100% { opacity:0.6; } }

#cta { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 46; text-align: center; width: 80%; pointer-events: none; opacity: 1; transition: opacity 0.3s; }
.cta-play-icon { width: 80px; height: 80px; margin: 0 auto 10px auto; fill: rgba(255,255,255,0.9); filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); animation: pulse-scale 2s infinite; }
.cta-txt-big { font-size: 24px; font-weight: 900; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.8); text-transform: uppercase; }
.cta-sub { font-size: 14px; color: #eee; font-weight: 600; margin-top: 5px; }
@keyframes pulse-scale { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

#swipe-hint { position: absolute; bottom: 120px; left: 0; width: 100%; text-align: center; z-index: 55; pointer-events: none; opacity: 0; transition: opacity 0.5s; }
.hand-anim { width: 60px; height: 60px; margin: 0 auto; fill: rgba(255,255,255,0.9); animation: swipe-hand 2s infinite ease-in-out; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.swipe-txt { color: white; font-weight: 800; font-size: 14px; margin-top: -15px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); text-transform: uppercase; letter-spacing: 1px; }
@keyframes swipe-hand { 0% { transform: translateY(20px) scale(0.9); opacity: 0; } 20% { opacity: 1; } 80% { transform: translateY(-30px) scale(1); opacity: 0; } 100% { opacity: 0; } }
#mute-ico { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 44; opacity: 0; transition: opacity 0.3s; pointer-events: none; background: rgba(0,0,0,0.5); padding: 15px; border-radius: 50%; backdrop-filter: blur(2px); }

/* ADS MODULE STYLES */
.ad-container { position: absolute; width: 100%; pointer-events: none; }
.ad-content { pointer-events: auto; position: relative; display: inline-block; }
#ad-t { top: 60px; z-index: 40; text-align: center; transition: all 0.5s ease; }
#ad-b { bottom: 85px; z-index: 40; text-align: center; }

/* Ads Close Button */
.ad-close-btn {
    position: absolute; top: -10px; right: -10px;
    width: 24px; height: 24px; background: white; border-radius: 50%;
    color: black; font-weight: bold; font-size: 14px; line-height: 24px;
    text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    cursor: pointer; z-index: 100;
}
/* Ads Minimized State */
.ad-minimized { opacity: 0; transform: scale(0); pointer-events: none; }
.ad-show-btn {
    position: absolute; top: 60px; right: 10px; z-index: 39;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(5px);
    padding: 5px 10px; border-radius: 20px; color: white; font-size: 10px; font-weight: bold;
    cursor: pointer; border: 1px solid rgba(255,255,255,0.3);
    display: none; pointer-events: auto;
}
