html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #000; font-family: sans-serif; touch-action: none; }
.swiper { width: 100%; height: 100%; }
.swiper-slide { position: relative; background: #000; transition: transform .3s ease; }
.swiper-slide video { transition: none; will-change: transform; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.interaction-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; touch-action: pan-y; }
.video-ui, .speed-indicator, .seek-container, .user-badge { transition: opacity .3s ease, visibility .3s ease; opacity: 1; visibility: visible; }
.swiper-slide.zoomed video { transform: scale(2.2); transition: transform 0.1s ease-out; transform-origin: center center; pointer-events: none !important; }
.ui-hidden, .swiper-slide.zoomed .video-ui, .swiper-slide.zoomed .video-meta, .swiper-slide.zoomed .speed-indicator, .swiper-slide.zoomed .seek-container, .swiper-slide.zoomed .user-badge, .zoomed-locked .video-ui, .zoomed-locked .video-meta, .zoomed-locked .speed-indicator, .zoomed-locked .seek-container, .zoomed-locked .user-badge { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.video-meta { position: absolute; bottom: 30px; left: 20px; z-index: 100; color: white; text-align: left; max-width: 100%; pointer-events: auto; transition: opacity .3s ease, visibility .3s ease; opacity: 1; visibility: visible; }
#progress { position: fixed; top: 0; left: 0; width: 0%; height: 4px; background: #25f4ee; z-index: 9999; transition: width .2s; }
.upload-btn { width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,.2); backdrop-filter: blur(5px); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; z-index: 100; }
.video-ui {
    position: absolute;
    right: -5px; /* Adjust as needed */
    top: 50%; /* Moves the top of the element to the middle of the screen */
    transform: translateY(-50%); /* Pulls the element up by 50% of its own height */
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
    z-index: 10;
    background: linear-gradient(to top, rgba(0,0,0,.2), transparent); 
    padding: 10px 0px; 
    border-top-left-radius: 40px; 
    border-bottom-left-radius: 40px; 
}
.video-ui button { width: 50px; height: 50px; border: none; border-radius: 50%; background: transparent; color: #fff; font-size: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-shadow: 0 0 5px rgba(0,0,0,.5); }
.avatar-container { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 5px; }
.avatar { width: 35px; height: 35px; background: rgba(255,255,255,.2); backdrop-filter: blur(5px); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 20px; border: 1px solid rgba(255,255,255,.3); overflow: hidden; }
.owner-name { font-size: 10px; color: #fff; background: rgba(0,0,0,.3); padding: 2px 6px; border-radius: 10px; max-width: 50px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.like-count, .like-tcount, .comment-count { font-size: 12px; margin-top: 2px; }
.pause-indicator { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 70px; color: #fff; display: none; pointer-events: none; z-index: 10; }
.seek-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 20px; padding-top: 14px; background-color: transparent; z-index: 10; }
.seek-bar { width: 0%; height: 6px; background: #25f4ee; }
.video-counter { position: fixed; top: 50px; left: 10px; background: rgba(0,0,0,.4); color: #fff; padding: 5px 12px; border-radius: 15px; font-size: 12px; backdrop-filter: blur(5px); z-index: 100; pointer-events: none; }
.speed-indicator { position: absolute; top: 0; right: 0; background: rgba(0,0,0,.5); color: #fff; padding: 5px 10px; border-radius: 5px; display: none; z-index: 10; }
.cache-indicator { position: absolute; top: 10px; right: 10px; width: 12px; height: 12px; border-radius: 50%; z-index: 20; transition: background 0.3s; }
#comment-overlay, #gift-overlay, #topup-overlay, #withdraw-overlay { position: fixed; bottom: -100%; left: 0; width: 100%; height: 70%; background: #1a1a1a; color: #fff; z-index: 5000; transition: bottom .3s ease-in-out; border-radius: 20px 20px 0 0; padding: 20px; box-sizing: border-box; }
#comment-overlay { z-index: 2000; touch-action: auto !important; }
#gift-overlay { z-index: 3000; text-align: center; display: flex; flex-direction: column; overflow: hidden; }
#topup-overlay { z-index: 4000; }
#comment-overlay.active, #gift-overlay.active, #topup-overlay.active, #withdraw-overlay.active { bottom: 0; }
#comment-list { height: 60%; overflow-y: auto; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: flex-start; }
.comment-item { margin-bottom: 15px; }
.comment-user { font-weight: bold; font-size: .8em; color: #888; }
.comment-text { font-size: 1em; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; max-height: 5em; overflow-y: auto; -webkit-overflow-scrolling: touch; transition: max-height 0.3s ease; cursor: pointer; }
#comment-input-area { position: absolute; display: flex; gap: 10px; bottom: 60px; }
#comment-input-area input { flex-grow: 1; border-radius: 20px; border: none; padding: 10px; }
#comment-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid #333; margin-bottom: 10px; }
#topup-overlay-content { flex: 1; overflow-y: auto; padding: 20px; -webkit-overflow-scrolling: touch; }
.close-nav { font-size: 16px; background: rgba(255,255,255,.1); padding: 8px 15px; border-radius: 20px; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.reply-btn { background: transparent; border: none; color: #25f4ee; font-size: .75em; font-weight: bold; padding: 8px 0; cursor: pointer; display: block; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; flex: 1; overflow-y: auto; min-height: 0; padding-bottom: 20px; -webkit-overflow-scrolling: touch; }
.gift-item { border: 1px solid #333; padding: 10px; border-radius: 10px; cursor: pointer; }
.gift-item img { width: 60px; height: 60px; object-fit: contain; }
.gift-btn { width: 50px; height: 50px; border: none; border-radius: 50%; background: transparent; color: #fff; font-size: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-shadow: 0 0 5px rgba(0,0,0,.5); cursor: pointer; }
.gift-count { font-size: 12px; margin-top: 2px; }
.floating-heart { position: absolute; font-size: 80px; pointer-events: none; z-index: 1000; opacity: 0; transform: translate(-50%,-50%) scale(0.5); animation: fingerPulse 0.8s ease-out forwards; }
@keyframes fingerPulse { 0% { transform: translate(-50%,-50%) scale(0.5); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1.5); opacity: 0; } }
.floating-gift { position: absolute; top: 50%; left: 50%; font-size: 100px; z-index: 9999; pointer-events: none; transform: translate(-50%,-50%) scale(0); animation: giftPop 1.5s ease-out forwards; }
@keyframes giftPop { 0% { transform: translate(-50%,-50%) scale(3); opacity: 0; } 50% { transform: translate(-50%,-50%) scale(1.5); opacity: 1; } 100% { transform: translate(-50%,-50%) scale(4); opacity: 0; } }
.update-toast { position: fixed; top: 0; left: 50%; transform: translateX(-50%); background: #25f4ee; color: #000; padding: 10px 20px; border-radius: 20px; font-weight: bold; cursor: pointer; z-index: 99999; box-shadow: 0 4px 15px rgba(0,0,0,.3); text-align: center; }
.gift-popup-animation { position: fixed; top: 50%; left: 50%; z-index: 99999; pointer-events: none; text-align: center; }
.gift-emoji { font-size: 100px; animation: giftPop 1.5s ease-out forwards; }
.outlined-text { color: white; -webkit-text-stroke: 0.6px black; text-shadow: 1px 1px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000; font-weight: bold; }
.desc-container { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; white-space: pre-line; margin: 0; padding: 0; line-height: 1; }
.desc-container span { display: block; margin: 0; padding: 0; }
.desc-container.expanded { width: calc(100vw - 40px); box-sizing: border-box; display: block; max-height: 350px; overflow-y: auto; -webkit-line-clamp: unset; background-color: rgba(0, 0, 0, 0.8); padding: 15px; border-radius: 8px; -webkit-text-stroke: 0px transparent !important; text-shadow: none !important; color: white; }
.read-more-btn { display: none; pointer-events: auto; font-size: 16px; color: #25f4ee; cursor: pointer; text-decoration: underline; margin-top: 4px; }
.swiper-slide-active .drag-blocker { display: none; }
.swiper-wrapper.moving .drag-blocker { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }
.interaction-overlay.game-mode { pointer-events: none; }
