*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#07090c;color:#f5f5f5;font-family:Arial,Helvetica,sans-serif}
body{min-height:100vh}
a{color:inherit;text-decoration:none}
button{font:inherit}

.topbar{height:58px;background:#090b0f;border-bottom:1px solid #20242a;display:flex;align-items:center;justify-content:space-between;padding:0 14px;position:sticky;top:0;z-index:20}
.brand{font-size:22px;font-weight:900;letter-spacing:1px}
.top-actions{display:flex;gap:8px}
.top-actions button{border:0;background:#171b21;color:#fff;border-radius:10px;width:38px;height:38px;font-size:20px}

.container,.watch-container{width:min(100%,920px);margin:auto;padding:0 12px}
.watch-container{padding-top:8px}

.ad-wrap{width:100%;display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 0}
.ad-label{font-size:8px;color:#68707b;letter-spacing:1px}
.ad-slot{display:flex;align-items:center;justify-content:center;background:#15191f;border:1px solid #252b33;color:#737b86;font-size:11px;overflow:hidden}
.ad-top .ad-slot{width:min(320px,calc(100vw - 24px));height:50px}
.ad-bottom{margin-top:20px;padding-bottom:18px}
.ad-bottom .ad-slot{width:min(300px,calc(100vw - 24px));height:250px}

.hero-card{margin-top:6px}
.hero-thumb{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:10px;background:#15191f}
.hero-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.duration{position:absolute;right:7px;bottom:7px;background:#343a43;padding:4px 7px;border-radius:5px;font-size:12px}
.play-mini{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.93);color:#111;font-size:24px;padding-left:3px}
.hero-card h1{font-size:20px;margin:10px 2px 4px}

.section-title{font-size:18px;margin:20px 2px 10px}
.video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
.video-card{min-width:0}
.thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#15191f}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.video-duration{position:absolute;right:6px;bottom:6px;background:rgba(40,45,52,.92);padding:4px 6px;border-radius:5px;font-size:11px}
.video-title{font-size:14px;line-height:1.25;margin:6px 2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.player-shell{position:relative;width:100%;background:#000;border-radius:9px;overflow:hidden;box-shadow:0 5px 22px rgba(0,0,0,.45)}
.player-shell video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000;object-fit:contain}
.big-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:82px;height:82px;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:#111;font-size:33px;padding-left:7px;cursor:pointer}
.big-play:hover{background:#fff}
.download-btn{position:absolute;right:12px;top:12px;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:rgba(30,34,40,.9);border:1px solid rgba(255,255,255,.18);font-size:25px;z-index:5}
.continue-box{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;background:rgba(10,12,15,.92);padding:18px;border-radius:12px;min-width:190px}
.continue-title{font-weight:700;margin-bottom:10px}
.continue-box button{border:0;border-radius:8px;padding:10px 18px;background:#fff;color:#111;font-weight:700}

.watch-title{font-size:19px;line-height:1.3;margin:12px 2px}
.footer{border-top:1px solid #20242a;margin-top:12px;padding:22px 14px 35px;display:flex;justify-content:space-between;color:#8c949f;font-size:12px}

@media(min-width:700px){
  .video-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px}
  .topbar{padding:0 calc((100% - 920px)/2 + 12px)}
}

.pagination{display:flex;justify-content:center;gap:8px;margin:24px 0 8px;flex-wrap:wrap}
.pagination a{min-width:42px;height:42px;padding:0 12px;border-radius:10px;background:#171b21;display:grid;place-items:center;font-weight:700}
.pagination a.active{background:#ff9f1c;color:#111}
