*{box-sizing:border-box}html,body{margin:0;width:100%;min-height:100%;color:#fff;background:#090604;font-family:Arial,Helvetica,sans-serif}body{overflow-x:hidden}.bg{position:fixed;inset:0;background:url('/images/bg.png') center/cover no-repeat;z-index:0}.shade{position:fixed;inset:0;z-index:1;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.28),rgba(0,0,0,.78)),radial-gradient(circle at 35% 10%,rgba(150,31,21,.28),rgba(0,0,0,.72))}.topbar{position:relative;z-index:5;min-height:76px;display:flex;align-items:center;gap:26px;padding:0 34px;background:rgba(0,0,0,.86);border-bottom:1px solid rgba(206,143,57,.32)}.brand{width:335px;flex:0 0 335px;text-decoration:none;color:#fff}.logo{font-size:31px;font-weight:1000;text-transform:uppercase;color:#e0a24a;letter-spacing:-1px}.logo span{color:#f4c46f}.tag{color:#efc98a;font-size:10px;letter-spacing:1.4px;font-weight:900}nav{display:flex;gap:12px;flex:1;flex-wrap:wrap}nav a{color:#fff;text-decoration:none;text-transform:uppercase;padding:11px 17px;border-radius:7px;font-size:12px;font-weight:900}nav a.active,nav a:hover{background:rgba(94,55,20,.9);color:#ffc15d}.headstats{display:flex;align-items:center;gap:22px}.headstats small{display:block;color:#ddd;font-size:10px;font-weight:900}.headstats b{font-size:22px}.onair{border:2px solid #ff3b2f;color:#fff;padding:9px 17px;border-radius:7px;font-size:17px;letter-spacing:2px;text-shadow:0 0 12px red;box-shadow:0 0 18px rgba(255,60,30,.65)}.ticker{position:relative;z-index:4;height:34px;overflow:hidden;background:rgba(110,28,20,.86);border-bottom:1px solid rgba(255,255,255,.12);display:flex;align-items:center}.ticker-track{white-space:nowrap;display:inline-flex;gap:42px;animation:ticker 34s linear infinite;padding-left:100%;font-weight:900;color:#ffe5a5;font-size:13px;letter-spacing:.4px}@keyframes ticker{to{transform:translateX(-100%)}}.layout{position:relative;z-index:3;height:calc(100vh - 110px);display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:22px;padding:18px 30px 12px;overflow:hidden}.center{min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:10px}.player,.recent,.cards>a,.chat{background:rgba(10,9,8,.88);backdrop-filter:blur(10px);border:1px solid rgba(216,162,76,.25);box-shadow:0 0 35px rgba(0,0,0,.55);border-radius:14px}.player{flex:1 1 auto;min-height:0;padding:18px;overflow:hidden}.player-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,.12);padding-bottom:10px;margin-bottom:14px}.red{color:#ff3a31}.player-head p{margin:5px 0 0;color:#f0d7a4}.bars{display:flex;align-items:end;gap:4px;height:32px}.bars span{width:5px;background:#d68b21;animation:bars .8s infinite ease-in-out}.bars span:nth-child(odd){height:18px}.bars span:nth-child(even){height:30px;animation-delay:.2s}@keyframes bars{0%,100%{transform:scaleY(.45)}50%{transform:scaleY(1.1)}}.stream-card{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;height:calc(100% - 62px);min-height:0}.video-shell{position:relative;background:#000;border-radius:12px;overflow:hidden;min-height:0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.video-shell iframe,.video-shell video{width:100%;height:100%;border:0;display:block;background:#000;object-fit:contain}.video-shell iframe{display:none}.stream-info{display:flex;flex-direction:column;justify-content:center;min-width:0}.pill{display:inline-flex;align-self:flex-start;padding:8px 13px;border-radius:999px;background:rgba(255,58,49,.16);color:#ff8f88;border:1px solid rgba(255,58,49,.32);font-size:12px;font-weight:1000;letter-spacing:1px}.stream-info h1{font-size:30px;line-height:1.05;margin:16px 0 9px}.stream-info p{color:#f0d7a4;font-weight:700;line-height:1.5}.controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}.controls button{border:0;cursor:pointer;border-radius:999px;padding:12px 16px;font-weight:1000;color:#160d04;background:linear-gradient(135deg,#f4c46f,#b77225);box-shadow:0 0 20px rgba(245,170,70,.25)}.stream-status{color:#d7c6aa;font-size:12px;font-weight:800}.stream-status.error{color:#ff9b95}.recent{flex:0 0 138px;padding:14px 18px;overflow:hidden}.recent h3{border-left:4px solid #d33226;padding-left:12px;font-weight:900;text-transform:uppercase;margin:0 0 10px;font-size:20px}.playlist{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px}.item{flex:0 0 220px;display:grid;grid-template-columns:78px minmax(0,1fr);gap:10px;align-items:center;padding:8px;border-radius:10px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);cursor:pointer}.item.active{outline:2px solid rgba(244,196,111,.72)}.item img{width:78px;height:48px;object-fit:cover;border-radius:7px;background:#111}.item-title{font-size:12px;font-weight:900;color:#fff;line-height:1.25}.cards{flex:0 0 112px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.cards>a{display:block;text-decoration:none;color:#fff;padding:15px 17px;min-height:0}.cards span{display:block;color:#e2ad4c;text-transform:uppercase;font-size:11px;font-weight:900;margin-bottom:14px}.cards b{display:block;font-size:21px;line-height:1.08}.cards small{color:#d7c6aa;text-transform:uppercase;font-size:9px}footer{flex:0 0 30px;display:flex;align-items:center;justify-content:center;color:#dca84c;font-size:12px;font-weight:900;text-align:center;letter-spacing:1px;overflow:hidden}.chat{height:100%;overflow:hidden;align-self:stretch;display:flex;flex-direction:column}.chat-head{height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:rgba(0,0,0,.45);border-bottom:1px solid rgba(255,255,255,.08);color:#e2ad4c;text-transform:uppercase;font-size:13px;font-weight:1000}.chat-head button{display:none;background:transparent;border:0;color:#fff;font-size:26px;cursor:pointer}.chat iframe{width:100%;height:100%;border:0;background:transparent}#adsOverlayBar{position:absolute;left:14px;right:14px;bottom:12px;z-index:4;padding:9px 12px;border-radius:10px;background:rgba(0,0,0,.58);color:#ffe5a5;font-size:12px;font-weight:900;backdrop-filter:blur(7px);pointer-events:none}.dkc-chat-overlay{position:absolute;right:14px;top:14px;width:min(360px,45%);z-index:5;display:flex;flex-direction:column;gap:7px;pointer-events:none}.overlay-bubble{padding:7px 9px;border-radius:10px;background:rgba(0,0,0,.48);border:1px solid rgba(255,255,255,.12);font-size:12px;line-height:1.25;color:#fff;text-shadow:0 1px 2px #000}.budo-nick{color:#f4c46f;font-weight:1000;margin-right:5px}.budo-avatar{display:none}.video-shell:fullscreen{width:100vw;height:100vh;border-radius:0}.video-shell:fullscreen iframe,.video-shell:fullscreen video{width:100%;height:100%;object-fit:contain}@media(min-width:1151px){html,body{height:100vh;max-height:100vh;overflow:hidden!important}}@media(max-width:1150px){html,body{height:auto;overflow:auto}.topbar{height:auto;min-height:76px;flex-wrap:wrap;padding:16px}.brand{width:100%;flex:0 0 100%}nav{order:3}.layout{height:auto;min-height:calc(100vh - 110px);grid-template-columns:1fr;padding:18px 14px;overflow:visible}.center{overflow:visible}.player{flex:auto}.stream-card{grid-template-columns:1fr;height:auto}.video-shell{aspect-ratio:16/9}.cards{grid-template-columns:1fr 1fr}.chat{position:fixed;z-index:20;right:14px;bottom:14px;top:90px;width:min(390px,calc(100vw - 28px));transform:translateX(110%);transition:.25s ease}.chat.open{transform:translateX(0)}.chat-head button{display:block}footer{padding:18px 0}.dkc-chat-overlay{width:60%;top:8px;right:8px}.overlay-bubble{font-size:11px}.ticker-track{animation-duration:26s}}@media(max-width:640px){.logo{font-size:26px}.headstats{width:100%;justify-content:space-between}.stream-info h1{font-size:25px}.cards{grid-template-columns:1fr}.recent{flex:auto}.item{flex:0 0 245px}.dkc-chat-overlay{display:none}.topbar nav a{flex:1;text-align:center}.onair{font-size:14px}}

/* Revamp fix: public index only, no visible admin shortcuts. Admin files stay on the server but are not linked here. */
.playlist-wrap{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) 38px;gap:8px;align-items:stretch;min-width:0}
.playlist{min-width:0;overflow-x:auto!important;overflow-y:hidden;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#d68b21 rgba(255,255,255,.12);padding-bottom:10px;touch-action:pan-x}
.playlist::-webkit-scrollbar{height:10px}.playlist::-webkit-scrollbar-track{background:rgba(255,255,255,.10);border-radius:999px}.playlist::-webkit-scrollbar-thumb{background:#d68b21;border-radius:999px}.playlist::-webkit-scrollbar-thumb:hover{background:#f4c46f}
.playlist-nav{border:1px solid rgba(244,196,111,.35);border-radius:10px;background:rgba(0,0,0,.48);color:#f4c46f;font-size:34px;font-weight:1000;line-height:1;cursor:pointer;box-shadow:0 0 18px rgba(0,0,0,.35)}
.playlist-nav:hover{background:rgba(94,55,20,.9);color:#fff}
.public-cards{grid-template-columns:repeat(4,1fr)}
.chat iframe{background:#fff}
@media(max-width:640px){.playlist-wrap{grid-template-columns:34px minmax(0,1fr) 34px}.playlist-nav{font-size:28px}.public-cards{grid-template-columns:1fr}}

/* v3 fix: bigger stream, nicer playlist, stable chat */
html, body {
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
}

.layout {
  height: auto !important;
  min-height: calc(100vh - 110px);
  overflow: visible !important;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: start;
}

.center {
  overflow: visible !important;
}

.player {
  flex: none !important;
  height: auto !important;
  min-height: 0 !important;
}

.stream-card {
  height: auto !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: stretch;
}

.video-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  max-height: 72vh;
}

.video-shell iframe,
.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recent {
  flex: none !important;
  height: 190px !important;
  padding-bottom: 12px;
}

.playlist {
  height: 105px;
  align-items: stretch;
}

.item {
  flex: 0 0 260px;
  height: 92px;
}

.item img {
  width: 90px;
  height: 60px;
}

.item-title {
  font-size: 13px;
  line-height: 1.2;
  max-height: 62px;
  overflow: hidden;
}

.cards {
  flex: none !important;
}

.chat {
  position: sticky;
  top: 16px;
  height: calc(100vh - 135px) !important;
}

.chat iframe {
  background: #fff !important;
}

@media(max-width:1150px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .stream-card {
    grid-template-columns: 1fr;
  }

  .video-shell {
    min-height: 0;
    max-height: none;
  }

  .chat {
    position: fixed;
    height: auto !important;
  }
}

/* v4 force playlist above stream */
.center {
  display: flex !important;
  flex-direction: column !important;
}

.recent {
  order: 1 !important;
}

.player {
  order: 2 !important;
}

.cards {
  order: 3 !important;
}
