:root {
  --bg: #07030e; --panel: rgba(18, 10, 31, .9); --panel2: #1b0f2e; --line: #2e1a47; --line-hi: #4a2a72;
  --text: #f3eefc; --dim: #a796c4;
  --magenta: #e02bff; --purple: #9a3dff; --violet: #6a3dff; --magenta-glow: rgba(224, 43, 255, .55);
  --sunset: #ff5a1f; --sunset2: #ff2d55; --sunset-glow: rgba(255, 90, 31, .55);
  --gold: #ffc23d;
  --head: "Bahnschrift", "Barlow Condensed", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; color: var(--text); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; }
body {
  min-height: 100vh;
  background:
    radial-gradient(70% 40% at 100% 0%, rgba(106, 61, 255, .25), transparent 60%),
    radial-gradient(60% 40% at 0% 100%, rgba(255, 90, 31, .18), transparent 60%),
    var(--bg);
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }

/* ---------- banner + socials ---------- */
.banner { max-width: 1600px; margin: 0 auto; }
.banner img { display: block; width: 100%; height: auto; border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 40px rgba(154, 61, 255, .25); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 18px 16px 6px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; text-decoration: none;
  font: 700 14px var(--head); letter-spacing: .08em; text-transform: uppercase;
  background: var(--panel2); border: 1px solid var(--line-hi); transition: transform .15s, box-shadow .15s, border-color .15s; }
.social:hover { transform: translateY(-2px); border-color: var(--c, var(--magenta)); box-shadow: 0 0 16px var(--c, var(--magenta-glow)); }
.social .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--magenta)); box-shadow: 0 0 8px var(--c, var(--magenta)); }

/* ---------- layout ---------- */
.layout { max-width: 1400px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: stretch; }
.maincol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line-hi); border-radius: 16px; padding: 16px;
  box-shadow: 0 0 0 1px rgba(224, 43, 255, .08), 0 10px 40px rgba(0, 0, 0, .45); }
h2 { margin: 0 0 10px; font: 800 22px var(--head); letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 0 12px var(--magenta-glow); }
h2 span { color: var(--sunset); text-shadow: 0 0 12px var(--sunset-glow); }
h3 { margin: 0 0 8px; font: 700 13px var(--head); letter-spacing: .15em; text-transform: uppercase; color: var(--magenta); display: flex; justify-content: space-between; }
.hint { color: var(--dim); font-size: 13px; margin: 10px 2px 0; }
.muted { color: var(--dim); }

/* ---------- player ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab { background: var(--panel2); border: 1px solid var(--line-hi); border-radius: 999px; padding: 7px 14px; cursor: pointer;
  font: 700 13px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.tab:hover { color: var(--text); border-color: var(--magenta); }
.tab.active { color: #fff; background: linear-gradient(90deg, var(--purple), var(--magenta)); border-color: transparent; box-shadow: 0 0 14px var(--magenta-glow); }
.tab[data-tab=live].active.islive { background: linear-gradient(90deg, var(--sunset2), var(--sunset)); box-shadow: 0 0 14px var(--sunset-glow); }
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.offcard { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(154, 61, 255, .3), transparent), #0a0514; }
.offcard p { margin: 0; color: var(--dim); max-width: 420px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 12px; text-decoration: none; font: 800 15px var(--head); letter-spacing: .15em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--purple), var(--magenta)); color: #fff; box-shadow: 0 0 18px var(--magenta-glow); border: 0; cursor: pointer; }

/* ---------- CB panel ---------- */
.cbhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.listening { color: var(--dim); font: 600 13px var(--head); letter-spacing: .1em; }
.listening::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ef0a0; box-shadow: 0 0 8px #4ef0a0; margin-right: 6px; vertical-align: 1px; }
.listening:empty::before { display: none; }
.radio { padding: 14px; border-radius: 14px; background: linear-gradient(160deg, #1d1030, #0d0618 60%); border: 1px solid var(--line-hi); }
.lcd { display: flex; align-items: center; gap: 8px; background: #05020a; border-radius: 10px; padding: 10px;
  box-shadow: inset 0 0 24px rgba(224, 43, 255, .14), 0 0 0 1px rgba(224, 43, 255, .25); }
.chbtn { background: var(--panel2); border: 1px solid var(--line-hi); border-radius: 8px; padding: 10px 14px; font-size: 18px; color: var(--magenta); cursor: pointer; }
.chbtn:hover { border-color: var(--magenta); }
.lcdcenter { flex: 1; text-align: center; color: var(--magenta); text-shadow: 0 0 10px var(--magenta-glow); }
.lcdlabel { font: 600 11px var(--head); letter-spacing: .45em; opacity: .85; }
.chnum { font: 700 64px/1 var(--head); font-variant-numeric: tabular-nums; }
.txstate { font: 600 13px var(--head); letter-spacing: .08em; color: #f0a8ff; min-height: 1.5em; }
.txstate.on { color: var(--sunset); text-shadow: 0 0 10px var(--sunset-glow); }
.wave { display: block; width: 100%; height: 56px; margin: 12px 0; }
.tune { width: 100%; padding: 16px; border-radius: 12px; cursor: pointer; font: 800 17px var(--head); letter-spacing: .22em;
  background: linear-gradient(90deg, var(--purple), var(--magenta)); border: 0; color: #fff; box-shadow: 0 0 20px var(--magenta-glow); }
.tune.on { background: linear-gradient(180deg, #24133a, #160b26); border: 2px solid var(--line-hi); box-shadow: none; color: #e9dcff; }
.sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.sliders label { color: var(--dim); font-size: 13px; }
.sliders b { float: right; color: var(--magenta); font-family: var(--head); }
input[type=range] { width: 100%; accent-color: var(--magenta); }
.drivers { margin-top: 14px; }
.drivers span { color: var(--magenta); }
.drivers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.drivers li { padding: 5px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.drivers li.talking { border-color: var(--sunset); box-shadow: 0 0 12px var(--sunset-glow); color: #fff; }
.drivers li.muted { background: none; border: 0; font-weight: 400; }

/* ---------- shorts ---------- */
.shorts { position: relative; min-height: 400px; }
/* the list fills the column next to the player + CB and scrolls inside it */
.shortslist { position: absolute; top: 58px; left: 16px; right: 12px; bottom: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; padding: 6px 10px 6px 6px; }
.short { position: relative; flex: none; aspect-ratio: 9 / 16; width: 100%; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer;
  border: 2px solid var(--magenta); box-shadow: 0 0 10px rgba(224, 43, 255, .55), 0 0 24px rgba(154, 61, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: box-shadow .2s, border-color .2s; }
.short:hover { border-color: #ff7af3; box-shadow: 0 0 16px rgba(224, 43, 255, .9), 0 0 36px rgba(224, 43, 255, .5); }
.short img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.short:hover img { transform: scale(1.04); }
.short .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px; font-weight: 600; font-size: 13px;
  background: linear-gradient(transparent, rgba(7, 3, 14, .95)); }
.short .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; background: rgba(224, 43, 255, .85); box-shadow: 0 0 20px var(--magenta-glow); }
.short iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shortsfallback { aspect-ratio: 9 / 16; width: 100%; border: 2px solid var(--magenta); border-radius: 14px; box-shadow: 0 0 12px rgba(224, 43, 255, .55); }
.foot { text-align: center; color: var(--dim); font-size: 12px; padding: 20px; letter-spacing: .15em; text-transform: uppercase; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--line-hi); border-radius: 4px; }

/* ---------- small screens ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .shorts { min-height: 0; min-width: 0; }
  .shortslist { position: static; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
  .short, .shortsfallback { width: 200px; }
}
@media (max-width: 700px) {
  .layout { padding: 10px; gap: 10px; }
  .banner img { border-radius: 0 0 14px 14px; }
  .sliders { grid-template-columns: 1fr; }
  .chnum { font-size: 54px; }
}

/* offline card in the player */
.offline { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px;
  background: radial-gradient(60% 70% at 50% 40%, rgba(154, 61, 255, .35), transparent 70%), radial-gradient(40% 40% at 50% 100%, rgba(255, 90, 31, .18), transparent), #08030f; }
.offline img { width: min(70%, 420px); height: auto; filter: drop-shadow(0 0 18px rgba(224, 43, 255, .55)); }
.offline h3 { justify-content: center; margin: 6px 0 0; font: 800 clamp(18px, 3vw, 30px) var(--head); letter-spacing: .1em; color: #fff; text-shadow: 0 0 14px var(--magenta-glow); }
.offline p { margin: 0 0 8px; color: var(--dim); }
.offbtns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn.ghost { background: transparent; border: 2px solid var(--magenta); box-shadow: 0 0 12px rgba(224, 43, 255, .4); }
.tab.islive { animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { box-shadow: 0 0 22px var(--sunset-glow); } }
@media (max-width: 700px) { .offline img { width: 80%; } .offline p { display: none; } }

/* CB intro text */
.cbintro { margin: 0 0 12px; color: #d9cdee; font-size: 14px; line-height: 1.55; }
.cbintro b { color: #fff; }

/* ---------- Fourthwall shop carousel ---------- */
.hidden { display: none !important; }
.shophead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.btn.small { padding: 8px 14px; font-size: 13px; letter-spacing: .1em; }
.carousel { position: relative; overflow: hidden; border-radius: 14px; }
.track { display: flex; transition: transform .6s cubic-bezier(.3, .8, .3, 1); }
.product { flex: 0 0 33.333%; padding: 8px; box-sizing: border-box; }
.product a { display: block; text-decoration: none; color: inherit; border-radius: 14px; overflow: hidden; background: #0c0616;
  border: 2px solid var(--magenta); box-shadow: 0 0 10px rgba(224, 43, 255, .45); transition: box-shadow .2s, transform .2s; }
.product a:hover { transform: translateY(-3px); box-shadow: 0 0 20px rgba(224, 43, 255, .8); }
.product .pimg { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.product img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product .pinfo { padding: 10px 12px 12px; }
.product .pname { font-weight: 700; font-size: 14px; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .prow { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.product .price { font: 800 18px var(--head); color: var(--gold); letter-spacing: .04em; }
.product .buy { font: 800 12px var(--head); letter-spacing: .12em; padding: 6px 10px; border-radius: 8px; color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--magenta)); }
.navbtn { position: absolute; top: 40%; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--magenta); cursor: pointer;
  background: rgba(12, 6, 22, .85); color: #fff; font-size: 26px; line-height: 1; box-shadow: 0 0 12px rgba(224, 43, 255, .5); }
.navbtn.prev { left: 4px; } .navbtn.next { right: 4px; }
.navbtn:hover { background: var(--magenta); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line-hi); cursor: pointer; }
.dots button.on { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
@media (max-width: 1000px) { .product { flex-basis: 50%; } }
@media (max-width: 560px) { .product { flex-basis: 100%; } .navbtn { top: 35%; } }
