:root{
  --bg:#050915;
  --surface:#111827;
  --surface2:#172338;
  --border:#26334a;
  --text:#f5f7ff;
  --muted:#9db0c8;
  --primary:#7b57ff;
  --accent:#16d7b4;
  --danger:#ff2f6d;
}
*{box-sizing:border-box}
body{
  margin:0;
  background:linear-gradient(180deg,#040814 0%,#050b18 100%);
  color:var(--text);
  font-family:Inter,system-ui,Arial,sans-serif;
  line-height:1.5
}
a{text-decoration:none;color:inherit}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.main{width:min(1200px,94%);margin:0 auto;padding:18px 0 60px}
.site-header{
  position:sticky;top:0;z-index:50;
  border-bottom:1px solid var(--border);
  background:rgba(8,12,22,.92);
  backdrop-filter:blur(12px)
}
.header-inner{
  width:min(1200px,94%);
  margin:0 auto;
  min-height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px
}
.site-brand{
  font-size:20px;
  font-weight:900;
  letter-spacing:-.5px;
  white-space:nowrap
}
.header-nav{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end
}
.header-nav>a{
  color:#d8e1ef;
  font-size:14px;
  font-weight:700
}
.tg-btn,.hero-telegram{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 16px;
  border-radius:999px;
  background:linear-gradient(135deg,#6f54ff,#8a63ff);
  color:#fff;
  font-weight:800;
  font-size:13px;
  box-shadow:0 8px 30px rgba(123,87,255,.35)
}
.mini-hero{
  margin:16px 0 24px;
  border:1px solid #2c3561;
  border-radius:24px;
  background:
    radial-gradient(ellipse at 100% 0%,rgba(126,88,255,.35),transparent 48%),
    linear-gradient(140deg,#12162a,#0f1830 70%,#0d1427);
  overflow:hidden
}
.mini-hero-inner{
  padding:26px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap
}
.tagline{
  margin:0 0 8px;
  color:#bfaeff;
  font-size:12px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase
}
.mini-hero h1{
  margin:0;
  font-size:clamp(24px,5vw,40px);
  line-height:1.15;
  letter-spacing:-1px
}
.section-head,.heading-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:24px 0 14px
}
.section-head h2,.heading-row h1{
  margin:0;
  font-size:clamp(22px,4vw,34px);
  letter-spacing:-.8px
}
.section-head span{color:var(--muted);font-size:13px}
.category-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:20px
}
.category-list a{
  padding:10px 15px;
  border-radius:999px;
  background:#11192d;
  border:1px solid var(--border);
  font-weight:700;
  font-size:13px;
  color:#f4f7ff
}
.channel-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px
}
.channel-card{
  background:linear-gradient(180deg,#16233b,#10192c);
  border:1px solid #2a3854;
  border-radius:18px;
  overflow:hidden;
  transition:.2s ease;
  box-shadow:0 10px 28px rgba(0,0,0,.18)
}
.channel-card:hover{
  transform:translateY(-3px);
  border-color:#7a63ff
}
.channel-image{
  position:relative;
  aspect-ratio:16/10;
  background:linear-gradient(135deg,#223861,#0f1528);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden
}
.channel-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:10px
}
.fallback{
  font-size:54px;
  color:#b79fff
}
.live{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#ff155f,#ff3f8a);
  color:#fff;
  font-size:11px;
  font-weight:900;
  letter-spacing:.4px;
  border-radius:10px;
  padding:5px 10px
}
.channel-image .live{
  position:absolute;
  top:10px;
  left:10px
}
.channel-info{padding:12px}
.channel-info strong{
  display:block;
  font-size:15px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.channel-info small{
  color:var(--muted);
  display:block;
  margin-top:4px;
  font-size:12px
}
.category-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}
.category-card{
  padding:24px 18px;
  background:#11192d;
  border:1px solid var(--border);
  border-radius:18px
}
.category-card span{font-size:28px;color:#b08eff}
.category-card h3{margin:10px 0 2px}
.category-card p{margin:0;color:var(--muted)}
.watch-wrap{margin-top:8px}
.big-player-title{
  font-size:clamp(28px,5vw,44px);
  line-height:1.1;
  font-weight:900;
  letter-spacing:-1px;
  margin-bottom:4px
}
.big-player-sub{
  color:var(--muted);
  margin-bottom:16px;
  font-size:14px
}
.player-shell{
  position:relative;
  background:#000;
  border:1px solid #32425d;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 14px 45px rgba(0,0,0,.35)
}
.big-player-shell{
  aspect-ratio:16/9
}
.player-shell video{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:#000
}
.player-message{
  position:absolute;
  left:14px;right:14px;bottom:72px;
  background:rgba(17,28,47,.78);
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  text-align:center;
  font-size:13px;
  pointer-events:none
}
.player-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:14px 0 26px;
  padding:14px 16px;
  background:#11192d;
  border:1px solid var(--border);
  border-radius:16px
}
.clean-toolbar span{
  color:#ff8aa6;
  font-weight:800
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 18px;
  border:0;
  border-radius:12px;
  background:linear-gradient(135deg,#7757ff,#6247e8);
  color:#fff;
  font-weight:800
}
.btn.secondary{background:#2a3851}
.adbox{
  min-height:60px;
  display:flex;
  justify-content:center;
  align-items:center;
  margin:18px auto;
  max-width:100%;
  overflow:hidden
}
.adbox iframe,.adbox img{max-width:100%}
.empty{
  padding:44px 20px;
  text-align:center;
  color:var(--muted);
  border:1px solid var(--border);
  border-radius:18px;
  background:#0f1728
}
.muted{color:var(--muted)}
.adminbody{background:#0a0e19}
.sidebar{
  position:fixed;
  left:0;top:0;bottom:0;
  width:248px;
  background:#101728;
  padding:26px 14px;
  overflow:auto;
  border-right:1px solid var(--border);
  z-index:30
}
.sidebar .brand{
  display:block;
  color:#fff;
  padding:10px 12px 25px;
  font-weight:900
}
.sidebar>a:not(.brand){
  display:block;
  padding:13px 14px;
  color:#b9c6dc;
  border-radius:10px;
  font-size:14px;
  font-weight:650;
  margin-bottom:3px
}
.sidebar>a:not(.brand):hover{background:#25314a;color:#fff}
.adminmain{margin-left:248px;padding:30px;max-width:1500px}
.panel{
  background:#111827;
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px;
  margin:20px 0
}
.panel h2{margin-top:0}
.stat-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:26px
}
.stat{
  padding:24px;
  border:1px solid var(--border);
  background:#111827;
  border-radius:16px
}
.stat span,.stat strong{display:block}
.stat span{color:var(--muted);font-size:14px}
.stat strong{font-size:38px;margin-top:8px}
.manage-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid var(--border)
}
.manage-row:last-child{border-bottom:0}
.manage-row small{display:block;color:var(--muted)}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.actions form{margin:0}
.actions form button{background:#983446}
.notice{
  background:#123c32;
  border:1px solid #22755b;
  color:#aaffd2;
  padding:13px 17px;
  border-radius:10px
}
.error{color:#ff8294}
.error-row{padding:12px;border-bottom:1px solid var(--border)}
.error-row code{
  display:block;
  overflow-wrap:anywhere;
  color:#e4afaf;
  margin-top:6px
}
label{
  display:block;
  font-weight:700;
  margin:16px 0;
  font-size:14px
}
label input,label textarea,label select{
  display:block;
  width:100%;
  margin-top:7px;
  padding:13px 14px;
  background:#0c1322;
  color:#fff;
  border:1px solid #334159;
  border-radius:11px;
  outline:none
}
label input[type=checkbox]{
  display:inline;
  width:auto;
  margin-right:8px
}
label input:focus,label textarea:focus,label select:focus{
  border-color:var(--primary)
}
.login-card{
  max-width:420px;
  margin:9vh auto;
  padding:32px;
  background:#111827;
  border:1px solid var(--border);
  border-radius:18px
}
.login-card p{color:var(--muted)}
.login-card .btn{width:100%}
@media(max-width:980px){
  .channel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .header-inner{
    min-height:auto;
    padding:12px 0;
    flex-direction:column;
    align-items:flex-start
  }
  .site-brand{font-size:18px}
  .header-nav{
    width:100%;
    justify-content:space-between;
    gap:10px
  }
  .header-nav>a{font-size:13px}
  .tg-btn,.hero-telegram{padding:10px 14px;font-size:12px}
  .mini-hero{margin-top:14px;border-radius:18px}
  .mini-hero-inner{padding:20px 16px}
  .mini-hero h1{font-size:28px}
  .section-head h2,.heading-row h1{font-size:22px}
  .channel-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
  .channel-card{border-radius:16px}
  .channel-image .live{
    top:8px;
    left:8px;
    padding:5px 8px;
    font-size:10px
  }
  .channel-info{padding:10px}
  .channel-info strong{font-size:13px}
  .channel-info small{font-size:11px}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .big-player-title{font-size:22px}
  .big-player-sub{font-size:13px}
  .player-shell{border-radius:18px}
  .player-message{bottom:60px;font-size:12px}
  .player-toolbar{padding:12px 14px}
  .sidebar{
    position:relative;
    width:100%;
    height:auto;
    display:flex;
    overflow-x:auto;
    white-space:nowrap;
    padding:8px
  }
  .sidebar .brand{display:none}
  .sidebar>a:not(.brand){padding:9px 12px;margin:0}
  .adminmain{margin:0;padding:18px}
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .panel{padding:16px}
  .manage-row{align-items:flex-start}
}

/* V3 MOBILE-FIRST REDESIGN */
body:not(.adminbody){
 background:#070b14;
 padding-bottom:82px;
}
body:not(.adminbody) .main{
 width:100%;
 max-width:1100px;
 padding:0 12px 28px;
}
.feed-heading{
 display:flex;align-items:center;
 justify-content:space-between;
 padding:18px 3px 16px;
 gap:10px;
}
.feed-brand{
 font-size:20px;font-weight:900;
 letter-spacing:-.7px;
 color:#fff;
}
.feed-count{
 color:#a9b8d0;font-size:12px;
 background:#172238;padding:7px 11px;
 border-radius:25px;
}
.channel-feed{margin-bottom:16px}
.channel-grid{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:14px;
}
.channel-card{
 border-radius:15px;
 background:#121b2b;
 border:1px solid #26364e;
 box-shadow:0 6px 20px #0003;
 overflow:hidden;
}
.channel-image{
 aspect-ratio:16/10;
 background:linear-gradient(145deg,#1c3152,#101829);
}
.channel-image img{
 object-fit:contain;
 padding:5px;
}
.channel-info{padding:10px 11px 12px}
.channel-info strong{
 font-size:14px;font-weight:800;
 white-space:nowrap;
 overflow:hidden;text-overflow:ellipsis;
}
.channel-info small{font-size:11px;color:#91a5c0}
.channel-image .live{
 font-size:9px;top:7px;left:7px;
 padding:4px 7px;border-radius:6px;
}
.bottom-nav{
 position:fixed;bottom:0;left:0;right:0;
 z-index:100;
 display:flex;
 justify-content:space-around;
 align-items:center;
 padding:8px 10px max(10px,env(safe-area-inset-bottom));
 background:#0e1728f5;
 border-top:1px solid #293a56;
 backdrop-filter:blur(18px);
}
.bottom-nav a{
 display:flex;flex-direction:column;
 align-items:center;justify-content:center;
 gap:2px;flex:1;
 color:#b9c9e3;font-weight:700;
 text-align:center;
}
.bottom-nav a span{
 font-size:24px;line-height:26px;
 color:#a991ff;
}
.bottom-nav a small{font-size:11px}
.watch-modern{padding-top:10px}
.watch-modern .player-shell{
 width:100%;aspect-ratio:16/9;
 background:#000;border-radius:15px;
 border:1px solid #2c3b57;
 overflow:hidden;
}
.watch-modern .player-shell video{
 width:100%;height:100%;
 object-fit:contain;
}
.watch-modern .player-message{
 bottom:60px;
 background:#111a2ecc;
 font-size:12px;
}
.watch-details{
 display:flex;justify-content:space-between;
 align-items:center;gap:12px;
 margin:12px 0 20px;
 padding:14px;
 background:#121b2d;
 border:1px solid #26334a;
 border-radius:14px;
}
.watch-name{
 display:flex;align-items:center;
 gap:9px;min-width:0;flex-wrap:wrap;
}
.watch-name h1{
 font-size:17px;line-height:1.35;
 margin:0;font-weight:850;
 overflow-wrap:anywhere;
}
.watch-details .btn{
 padding:9px 12px;font-size:12px;
}
.related-title{
 display:flex;justify-content:space-between;
 align-items:center;gap:10px;
 margin:26px 0 13px;
}
.related-title h2{
 margin:0;font-size:21px;
}
.related-title span{color:#8c9fbb;font-size:12px}
.danger-link{background:#b52b48!important}

@media(max-width:700px){
 .channel-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
 }
 .channel-card{border-radius:13px}
 .channel-image{aspect-ratio:16/10}
 .channel-info{padding:9px 8px}
 .channel-info strong{font-size:12px}
 .channel-info small{font-size:10px}
 .feed-brand{font-size:18px}
 .watch-modern{padding-top:4px}
 .watch-modern .player-shell{border-radius:12px}
 .watch-details{padding:11px}
 .watch-name h1{font-size:15px}
 .related-title h2{font-size:19px}
}

/* STICKY PLAYER + SCROLLABLE CHANNELS */

body:has(.watch-modern){
 height:100dvh;
 overflow:hidden;
}

body:has(.watch-modern) .main{
 height:calc(100dvh - 75px);
 display:flex;
 flex-direction:column;
 overflow:hidden;
 padding-bottom:0;
}

.watch-modern{
 height:100%;
 min-height:0;
 display:flex;
 flex-direction:column;
 padding-top:4px;
}

.watch-modern .player-shell{
 position:relative;
 flex-shrink:0;
 width:100%;
 aspect-ratio:16/9;
 max-height:42dvh;
}

.watch-modern .watch-details{
 flex-shrink:0;
 margin:10px 0;
}

.watch-modern .related-title{
 flex-shrink:0;
 margin:9px 0 12px;
}

.watch-modern > .channel-grid{
 flex:1;
 min-height:0;
 overflow-y:auto;
 overscroll-behavior:contain;
 scrollbar-width:thin;
 padding:4px 2px 110px;
 align-content:start;
}

@media(max-width:700px){
 body:has(.watch-modern) .main{
  height:calc(100dvh - 75px);
 }
 .watch-modern .player-shell{
  max-height:34dvh;
 }
 .watch-modern > .channel-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
 }
}

/* WATCH PLAYER / CHANNEL LIST FIX */
body:has(.watch-modern){
 height:100dvh!important;
 overflow:hidden!important;
}

body:has(.watch-modern) .main{
 height:calc(100dvh - 82px)!important;
 min-height:0!important;
 overflow:hidden!important;
 display:block!important;
 padding:0 10px!important;
}

.watch-modern{
 display:flex!important;
 flex-direction:column!important;
 height:100%!important;
 min-height:0!important;
 overflow:hidden!important;
 padding:0!important;
}

.fixed-player-area{
 flex:0 0 auto!important;
 background:#070b14;
 padding-top:5px;
}

.fixed-player-area .player-shell{
 width:100%!important;
 aspect-ratio:16/9!important;
 height:auto!important;
 max-height:35dvh!important;
 flex:none!important;
 overflow:hidden!important;
 border-radius:12px;
}

.fixed-player-area .player-shell video{
 display:block!important;
 width:100%!important;
 height:100%!important;
 object-fit:contain!important;
}

.fixed-player-area .watch-details{
 margin:8px 0!important;
 padding:9px 12px!important;
}

.channel-scroll{
 display:block!important;
 flex:1 1 0!important;
 min-height:0!important;
 overflow-y:auto!important;
 overflow-x:hidden!important;
 -webkit-overflow-scrolling:touch;
 overscroll-behavior:contain;
 padding:0 0 25px!important;
}

.channel-scroll .channel-grid{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 align-content:start!important;
 gap:10px!important;
 height:auto!important;
 overflow:visible!important;
 padding:0 1px 15px!important;
}

.channel-scroll .channel-card{
 display:block!important;
 height:auto!important;
 min-height:0!important;
 overflow:hidden!important;
 background:#121c30!important;
}

.channel-scroll .channel-image{
 display:flex!important;
 height:auto!important;
 min-height:0!important;
 aspect-ratio:16/10!important;
}

.channel-scroll .channel-image img{
 display:block!important;
 width:100%!important;
 height:100%!important;
 object-fit:contain!important;
}

.channel-scroll .channel-info{
 display:block!important;
 min-height:45px!important;
}

.channel-scroll .related-title{
 margin:10px 2px 12px!important;
}

@media(min-width:750px){
 .channel-scroll .channel-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
 }
 .fixed-player-area .player-shell{
  max-height:48dvh!important;
 }
}

/* ACTIVE CHANNEL */
.channel-scroll .channel-card.active-channel{
 border:2px solid #8b65ff!important;
 background:#202046!important;
 box-shadow:0 0 15px #7555ff40;
}
.channel-scroll .channel-card{
 cursor:pointer;
}

/* MOBILE APP + SOUND CONTROLS */
.install-app-btn{
 position:fixed;
 right:12px;
 bottom:90px;
 z-index:105;
 border:1px solid #7863ff;
 border-radius:30px;
 background:linear-gradient(135deg,#7655ff,#493aca);
 color:white;
 font-size:12px;
 font-weight:800;
 padding:10px 14px;
 box-shadow:0 6px 22px #0008;
 cursor:pointer;
}
.watch-details{
 flex-wrap:wrap;
}
.watch-details .sound-btn{
 padding:9px 12px;
 font-size:12px;
}

.install-help[hidden]{display:none!important}
.install-help{
 position:fixed;
 inset:0;
 z-index:9999;
 display:flex;
 align-items:center;
 justify-content:center;
 padding:22px;
 background:rgba(0,0,0,.75);
}
.install-help-box{
 width:min(100%,390px);
 padding:25px;
 background:#151d32;
 border:1px solid #5941a9;
 border-radius:20px;
 color:white;
 box-shadow:0 20px 60px #0008;
}
.install-help-box h3{margin-top:0}
.install-help-box p{
 color:#d1d9ec;
 line-height:1.75;
}
.install-help-box button{
 width:100%;
 margin-top:12px;
}

/* LIVE VIEWER COUNTER */
.live-viewers-badge{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:6px;
 margin-left:auto;
 padding:8px 11px;
 border:1px solid #50354b;
 background:linear-gradient(135deg,#311b32,#191a30);
 border-radius:30px;
 color:#fff;
 white-space:nowrap;
 font-size:11px;
 font-weight:700;
 box-shadow:0 4px 16px #0003;
}
.viewer-pulse{
 width:7px;
 height:7px;
 flex-shrink:0;
 border-radius:50%;
 background:#ff315e;
 box-shadow:0 0 0 3px #ff315e30;
 animation:viewer-blink 1.5s infinite;
}
.viewer-label{color:#ff7896;font-weight:900}
.viewer-number{
 color:white;
 font-size:14px;
 font-weight:900;
 font-variant-numeric:tabular-nums;
}
.viewer-text{color:#aebbd0;font-size:10px}
@keyframes viewer-blink{
 50%{opacity:.35;box-shadow:0 0 0 7px transparent}
}
@media(max-width:700px){
 .live-viewers-badge{
  padding:7px 9px;
  gap:5px;
  font-size:10px;
 }
 .viewer-number{font-size:12px}
}

/* LIVE COUNTER FIX */
.watch-details{
 display:flex!important;
 flex-wrap:wrap!important;
 align-items:center!important;
 gap:9px!important;
}
#live-viewers-counter{
 display:inline-flex!important;
 align-items:center!important;
 gap:6px!important;
 order:3;
 margin-left:auto!important;
 padding:8px 12px!important;
 background:#321c35!important;
 border:1px solid #754568!important;
 border-radius:30px!important;
 visibility:visible!important;
 opacity:1!important;
}
#live-viewer-number{
 display:inline!important;
 color:white!important;
 font-weight:900!important;
}

.channel-image img{
 width:100%!important;
 height:100%!important;
 object-fit:cover!important;
 padding:0!important;
}

.photo-credit-footer{
 text-align:center;
 padding:12px 0 95px;
 color:#8393b1;
 font-size:12px;
}

.photo-credit-footer a{
 color:#a995ff;
 text-decoration:none;
}

/* CHANNEL CUSTOM IMAGE */
.channel-image{
 position:relative;
 overflow:hidden;
 background:#121c30;
 aspect-ratio:16/10;
}

.channel-image img{
 display:block!important;
 width:100%!important;
 height:100%!important;
 object-fit:cover!important;
 padding:0!important;
}

.channel-card .channel-info{
 padding:11px;
}

/* COMPACT WATCH PAGE V5 */

/* Remove empty space above player */
body:has(.watch-modern) .main{
 padding:0 8px!important;
 margin:0 auto!important;
}

.watch-modern{
 padding:0!important;
 margin:0!important;
}

.fixed-player-area{
 padding:0!important;
 margin:0!important;
}

.watch-modern .player-shell,
.fixed-player-area .player-shell{
 margin:0!important;
 border-radius:0 0 10px 10px!important;
 aspect-ratio:16/9!important;
 max-height:36dvh!important;
}

/* Compact channel information */
.watch-modern .watch-details{
 margin:7px 0!important;
 padding:8px 10px!important;
 gap:6px!important;
 border-radius:11px!important;
}

.watch-name h1{
 font-size:14px!important;
}

.watch-details .btn{
 padding:7px 9px!important;
 font-size:11px!important;
}

#live-viewers-counter{
 padding:5px 8px!important;
 font-size:10px!important;
}

/* Smaller channel cards */
.channel-scroll .channel-grid{
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:7px!important;
}

.channel-scroll .channel-card{
 border-radius:9px!important;
}

.channel-scroll .channel-image{
 aspect-ratio:1/1!important;
}

.channel-scroll .channel-info{
 padding:6px!important;
 min-height:34px!important;
}

.channel-scroll .channel-info strong{
 font-size:10px!important;
 line-height:1.3!important;
 white-space:normal!important;
 display:-webkit-box!important;
 -webkit-line-clamp:2;
 -webkit-box-orient:vertical;
 overflow:hidden!important;
}

.channel-scroll .channel-info small{
 display:none!important;
}

.channel-scroll .channel-image .live{
 font-size:8px!important;
 padding:3px 5px!important;
 top:4px!important;
 left:4px!important;
}

.channel-scroll .related-title{
 margin:7px 2px!important;
}

.channel-scroll .related-title h2{
 font-size:17px!important;
}

/* Mobile layout */
@media(max-width:700px){
 body:has(.watch-modern) .main{
  height:calc(100dvh - 75px)!important;
 }

 .channel-scroll .channel-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;
 }

 .channel-scroll .channel-image{
  aspect-ratio:1/1!important;
 }

 .channel-scroll .channel-info strong{
  font-size:10px!important;
 }
}

/* COMPACT HOMEPAGE CARDS */
@media(max-width:700px){
 .channel-feed .channel-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
 }

 .channel-feed .channel-card{
  border-radius:10px!important;
 }

 .channel-feed .channel-image{
  aspect-ratio:1/1!important;
 }

 .channel-feed .channel-info{
  padding:7px 5px!important;
 }

 .channel-feed .channel-info strong{
  font-size:10px!important;
  line-height:1.3!important;
  white-space:normal!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden!important;
 }

 .channel-feed .channel-info small{
  display:none!important;
 }

 .channel-feed .channel-image .live{
  font-size:8px!important;
  padding:3px 5px!important;
 }
}
