*{box-sizing:border-box;margin:0;padding:0}
html,body{width:100%;height:100%;background:#000;color:#fff;font-family:Arial,sans-serif}
body{overflow:hidden}
header{height:64px;position:fixed;top:0;left:0;width:100%;z-index:100;display:flex;align-items:center;gap:12px;padding:10px 15px;background:rgba(0,0,0,.8);backdrop-filter:blur(15px)}
.logo{font-size:21px;font-weight:900;white-space:nowrap}
.logo span{background:linear-gradient(90deg,#ff0055,#8b5cf6,#00d9ff);background-clip:text;-webkit-background-clip:text;color:transparent}
.search{height:42px;flex:1;display:flex;background:#202020;border-radius:25px;overflow:hidden;max-width:500px;margin:auto}
.search input{width:100%;border:0;outline:0;background:transparent;color:#fff;padding:0 15px}
.search button,.profile{border:0;background:transparent;color:#fff;font-size:19px}
.profile{width:40px;height:40px;border-radius:50%;background:#222}
#feed{height:100vh;overflow-y:auto;scroll-snap-type:y mandatory}
.video-card{height:100vh;width:100%;position:relative;scroll-snap-align:start;background:#111}
.video{height:100%;width:100%;object-fit:cover}
.gradient{position:absolute;inset:0;background:linear-gradient(transparent 45%,rgba(0,0,0,.2) 60%,rgba(0,0,0,.9) 100%);pointer-events:none}
.info{position:absolute;left:20px;bottom:90px;max-width:70%}
.info h3{margin-bottom:8px}.info p{margin-bottom:8px}.info span{font-size:13px;opacity:.8}
.actions{position:absolute;right:13px;bottom:95px;display:flex;flex-direction:column;gap:17px}
.actions button{border:0;background:transparent;color:#fff;font-size:27px;display:flex;flex-direction:column;align-items:center;cursor:pointer}
.actions small{font-size:10px;margin-top:3px}
.actions .liked{color:#ff1744}.actions .fav{color:#ffd700}
.play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:65px;height:65px;border:0;border-radius:50%;background:#0009;color:#fff;font-size:25px;opacity:0}
.paused .play{opacity:1}
nav{position:fixed;z-index:200;bottom:0;left:0;width:100%;height:64px;background:#000e;display:flex;justify-content:space-around;align-items:center;backdrop-filter:blur(15px)}
nav button{border:0;background:transparent;color:#fff;font-size:20px;display:flex;flex-direction:column;align-items:center;gap:3px}
nav small{font-size:9px}
.modal{display:none;position:fixed;inset:0;z-index:500;background:#000a;align-items:flex-end}
.modal.show{display:flex}
.box{width:100%;max-width:600px;max-height:75vh;background:#171717;border-radius:25px 25px 0 0;padding:20px;margin:auto auto 0;animation:up .25s}
@keyframes up{from{transform:translateY(100%)}to{transform:translateY(0)}}
.modalhead{display:flex;justify-content:space-between;margin-bottom:20px}
.modal button{color:#fff}
.modalhead button,.close{background:transparent;border:0;font-size:20px}
#commentList{max-height:40vh;overflow:auto}
.comment{padding:12px 0;border-bottom:1px solid #333}
.empty{text-align:center;color:#888;padding:30px}
.write{display:flex;gap:8px;margin-top:15px}
.write input{flex:1;border:0;outline:0;background:#292929;color:#fff;padding:13px;border-radius:22px}
.write button,.follow{border:0!important;background:#fff!important;color:#000!important;padding:10px 18px;border-radius:20px;font-weight:bold}
.profilebox{text-align:center;position:relative}
.close{position:absolute;right:20px;top:15px}
.avatar{width:90px;height:90px;margin:10px auto 15px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:40px;font-weight:bold;background:linear-gradient(135deg,#ff0055,#8b5cf6,#00d9ff)}
.stats{display:flex;justify-content:space-around;margin:30px 0}
.stats div{display:flex;flex-direction:column;gap:5px}.stats small{color:#888}
.follow{width:80%}
@media(min-width:700px){.video-card{max-width:500px;margin:auto}}
