*{box-sizing:border-box}body{margin:0;background:#09090b;color:#f7f7f8;font-family:Inter,system-ui,sans-serif}a{color:inherit}.top{height:66px;position:sticky;top:0;z-index:20;background:#09090bf5;backdrop-filter:blur(15px);border-bottom:1px solid #242428;display:flex;align-items:center;gap:18px;padding:10px 20px}.logo{text-decoration:none;font-size:22px;font-weight:900}.logo b{display:inline-grid;place-items:center;background:#e90f11;border-radius:10px;width:36px;height:36px;margin-right:8px}.search{display:flex;flex:1;max-width:680px;margin:auto}.search input{flex:1;background:#151519;border:1px solid #303036;color:#fff;padding:11px 14px;border-radius:12px 0 0 12px}.search button,.red,.btn{background:#e90f11;color:#fff;border:0;padding:11px 16px;border-radius:0 12px 12px 0;font-weight:800;text-decoration:none}.top nav{display:flex;gap:14px}.top nav a{text-decoration:none;font-size:14px}.top nav .red{border-radius:10px}.shell{display:grid;grid-template-columns:210px minmax(0,1fr);max-width:1400px;margin:auto}.shell aside{padding:25px 14px;position:sticky;top:85px;height:calc(100vh - 85px)}.shell aside a{display:block;padding:12px;border-radius:10px;text-decoration:none;color:#ccc}.shell aside a:hover{background:#1b1b20;color:#fff}.shell aside hr{border:0;border-top:1px solid #27272c;margin:16px 10px}.shell main{padding:25px 22px 80px}.hero{padding:42px;border:1px solid #29292e;border-radius:22px;background:radial-gradient(circle at 85% 25%,#e90f113f,transparent 34%),#151519}.hero h1{font-size:clamp(40px,5vw,68px);line-height:.98;margin:8px 0}.muted{color:#999}.head{display:flex;justify-content:space-between;align-items:center;margin:30px 0 15px}.chips{display:flex;gap:8px;overflow:auto}.chips a{background:#18181c;border:1px solid #29292e;padding:8px 13px;border-radius:999px;color:#ccc;text-decoration:none;white-space:nowrap}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-top:17px}.card{background:#151519;border:1px solid #28282d;border-radius:15px;overflow:hidden}.thumb{display:block;aspect-ratio:16/9;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.body{padding:12px}.body h3{font-size:15px;margin:0 0 7px}.body h3 a{text-decoration:none}.meta{font-size:12px;color:#888}.shorts{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.shorts .thumb{aspect-ratio:9/14}.player{aspect-ratio:16/9;background:#000;border-radius:16px;overflow:hidden}.player iframe{width:100%;height:100%;border:0}.form{max-width:680px;padding:24px;border:1px solid #29292e;border-radius:16px;background:#151519}.form label{display:block;margin:14px 0 6px}.form input,.form textarea,.form select{width:100%;padding:12px;background:#0e0e11;border:1px solid #333;color:#fff;border-radius:10px}.form button,.button{margin-top:18px;background:#e90f11;color:#fff;border:0;border-radius:10px;padding:12px 18px;font-weight:800}.mobile{display:none}footer{text-align:center;color:#666;padding:35px 15px;border-top:1px solid #202024}@media(max-width:1050px){.grid{grid-template-columns:repeat(3,1fr)}.shorts{grid-template-columns:repeat(4,1fr)}}@media(max-width:800px){.top{flex-wrap:wrap;height:auto;padding:10px 12px}.search{order:3;flex-basis:100%;max-width:none}.top nav a:first-child{display:none}.shell{display:block}.shell aside{display:none}.shell main{padding:15px 12px 85px}.grid{grid-template-columns:repeat(2,1fr);gap:10px}.shorts{grid-template-columns:repeat(2,1fr)}.hero{padding:27px 20px}.hero h1{font-size:42px}.mobile{position:fixed;display:flex;justify-content:space-around;align-items:center;bottom:0;left:0;right:0;z-index:50;background:#0c0c0ef7;border-top:1px solid #29292e;padding:8px 5px calc(8px + env(safe-area-inset-bottom))}.mobile a{color:#aaa;text-decoration:none;text-align:center;font-size:18px}.mobile small{display:block;font-size:10px}.mobile .plus{background:#e90f11;color:#fff;padding:6px 13px;border-radius:12px;margin-top:-16px}}@media(max-width:480px){.grid{grid-template-columns:1fr}}

/* DoliPlay 2.4.3 — Shorts Feed Player */
.shorts-page{width:100%}.shorts-head{position:sticky;top:0;z-index:5;background:#09090bf5;backdrop-filter:blur(12px);padding:12px 0}.shorts-head h1{margin:0}.shorts-feed{height:calc(100vh - 150px);min-height:620px;overflow-y:auto;scroll-snap-type:y mandatory;scroll-behavior:smooth;overscroll-behavior:contain;display:flex;flex-direction:column;align-items:center;gap:18px;padding:8px 10px 40px;scrollbar-width:thin}.short-feed-item{position:relative;width:min(100%,520px);height:calc(100vh - 180px);min-height:560px;max-height:900px;scroll-snap-align:center;scroll-snap-stop:always;border-radius:18px;overflow:hidden;background:#000;box-shadow:0 10px 40px rgba(0,0,0,.35);flex:0 0 auto}.short-player-wrap,.short-player{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}.short-player{display:block}.short-overlay{position:absolute;inset:0;pointer-events:none;display:flex;align-items:flex-end;justify-content:space-between;padding:22px;background:linear-gradient(transparent 45%,rgba(0,0,0,.72));}.short-info{max-width:78%;text-shadow:0 2px 8px #000}.short-info h2{margin:0 0 8px;font-size:18px;line-height:1.3}.short-meta{font-size:13px;color:#eee}.short-actions{display:flex;flex-direction:column;gap:10px;pointer-events:auto}.short-action{width:44px;height:44px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(0,0,0,.5);color:#fff;cursor:pointer;font-size:18px}.short-feed-item.is-active{outline:1px solid rgba(255,255,255,.08)}
@media(max-width:800px){.shorts-head{padding:8px 0}.shorts-head p{display:none}.shorts-feed{height:calc(100dvh - 125px);min-height:0;padding:0 0 20px;gap:0;scroll-snap-type:y mandatory}.short-feed-item{width:100%;height:calc(100dvh - 125px);min-height:0;max-height:none;border-radius:0}.short-overlay{padding:18px 14px 26px}.short-info h2{font-size:16px}.short-action{width:42px;height:42px}}

/* DoliPlay 2.5.24 — Home Layout Real Theme Fix
   Active theme: classic
   Maps the actual Home template classes to the active theme CSS.
   Normal videos remain first; Shorts remain in a separate horizontal shelf below.
*/
.video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-top:17px}
.video-card{background:#151519;border:1px solid #28282d;border-radius:15px;overflow:hidden}
.video-card .thumb{display:block;aspect-ratio:16/9;overflow:hidden}
.video-card .thumb img{width:100%;height:100%;object-fit:cover}
.video-card .body{padding:12px}
.video-card .body h3{font-size:15px;margin:0 0 7px}
.video-card .body h3 a{text-decoration:none}
.video-card .meta{font-size:12px;color:#888}

.shorts-shelf{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 12px;margin-top:17px;scrollbar-width:thin;scroll-snap-type:x proximity}
.short-card{background:#151519;border:1px solid #28282d;border-radius:15px;overflow:hidden;min-width:0;flex:0 0 clamp(150px,18vw,220px);scroll-snap-align:start}
.short-card .thumb{display:block;aspect-ratio:9/14;overflow:hidden}
.short-card .thumb img{width:100%;height:100%;object-fit:cover}
.short-card .body{padding:10px}
.short-card .body h3{font-size:14px;line-height:1.25;margin:0 0 6px}
.short-card .body h3 a{text-decoration:none}
.short-card .meta{font-size:12px;color:#888}

@media(max-width:1050px){
  .video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .short-card{flex-basis:clamp(145px,22vw,200px)}
}
@media(max-width:800px){
  .video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .shorts-shelf{gap:10px}
  .short-card{flex-basis:calc((100vw - 42px)/2);max-width:210px}
}
@media(max-width:480px){
  .video-grid{grid-template-columns:1fr}
  .short-card{flex-basis:150px}
}


/* DoliPlay 2.5.27 — Account UI only. Does not alter Home/Shorts layout. */
.account-page{max-width:1100px;margin:0 auto;padding:28px 0 80px}.account-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:24px}.account-head h1{margin:6px 0}.account-actions{display:flex;gap:10px;flex-wrap:wrap}.button{display:inline-block;background:#e90f11;color:#fff;border:0;border-radius:10px;padding:11px 16px;font-weight:800;text-decoration:none;cursor:pointer}.button.secondary{background:#222229;border:1px solid #333}.button.danger{background:#b5090b}.account-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px}.account-card{background:#151519;border:1px solid #29292e;border-radius:16px;padding:22px;margin-bottom:18px}.account-card h2{margin-top:0}.account-card h3{margin-top:25px}.account-card hr{border:0;border-top:1px solid #29292e;margin:24px 0}.account-card label{display:block;margin:12px 0 6px}.account-card input,.account-card textarea,.account-card select{width:100%;padding:12px;background:#0e0e11;border:1px solid #333;color:#fff;border-radius:10px}.account-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.account-alert{padding:12px 14px;border-radius:10px;margin-bottom:18px}.account-alert.error{background:#3a1417;color:#ffb0b3;border:1px solid #68262b}.account-alert.ok{background:#12331d;color:#a8e7b9;border:1px solid #235d35}.account-auth{max-width:560px;margin:40px auto}.content-list{display:grid;gap:14px}.content-item{display:flex;gap:16px;background:#151519;border:1px solid #29292e;border-radius:15px;padding:12px}.content-thumb{width:220px;aspect-ratio:16/9;flex:0 0 220px;overflow:hidden;border-radius:10px}.content-thumb img{width:100%;height:100%;object-fit:cover}.content-info{min-width:0;flex:1}.content-info h2{margin:6px 0;font-size:18px}.content-type{font-size:11px;color:#ff6b6d;font-weight:900;letter-spacing:1px}.content-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.content-actions form{margin:0}@media(max-width:800px){.account-head{display:block}.account-actions{margin-top:15px}.account-grid{grid-template-columns:1fr}.account-two{grid-template-columns:1fr}.content-item{display:block}.content-thumb{width:100%;max-width:none}.content-actions{margin-top:12px}}
