:root{--bg:#0f1115;--card:#191d24;--soft:#242a34;--text:#f5f7fb;--muted:#9ba6b5;--accent:#f0b84b;--danger:#d85252;--light:#e8d8b5;--dark:#8d5d3b;--select:#77c56b}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top,#222936 0,#0f1115 46%);color:var(--text);font:16px/1.45 Inter,system-ui,Segoe UI,Arial,sans-serif;min-height:100vh}.topbar{height:64px;padding:0 max(18px,calc((100vw - 1200px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12;background:#0d0f13cc;backdrop-filter:blur(10px);position:sticky;top:0;z-index:20}.mark{font-size:30px;color:var(--accent);vertical-align:middle;margin-right:8px}.pill{padding:6px 10px;border-radius:99px;background:var(--soft);color:var(--muted);font-size:13px}main{max-width:1200px;margin:30px auto;padding:0 18px}.card,.panel{background:linear-gradient(145deg,#1b2028,#171a20);border:1px solid #ffffff12;border-radius:16px;box-shadow:0 16px 50px #0004}.lobby{padding:clamp(24px,5vw,60px)}.hero{max-width:700px}.eyebrow{color:var(--accent);font-weight:800;letter-spacing:.13em;font-size:12px}.hero h1{font-size:clamp(36px,7vw,70px);line-height:1;margin:10px 0 18px}.hero p{color:var(--muted);font-size:18px}.lobby-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:38px}.panel{padding:24px}.panel h2{margin-top:0}label{display:block;color:var(--muted);font-size:14px;margin:14px 0}input,select,button{width:100%;border:1px solid #ffffff18;border-radius:10px;padding:12px 13px;font:inherit}input,select{display:block;margin-top:6px;background:#101319;color:var(--text)}button{background:var(--accent);color:#241900;font-weight:800;cursor:pointer;border:0}button:hover{filter:brightness(1.08)}button.secondary{background:var(--soft);color:var(--text)}button.danger{background:var(--danger);color:white}.error{color:#ff8585;min-height:22px}.hidden{display:none!important}.game-heading{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.game-heading button{width:auto}.game-layout{display:grid;grid-template-columns:minmax(320px,760px) minmax(280px,1fr);gap:18px}.board-column{min-width:0}.player{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;margin:10px 0}.player.active{outline:2px solid var(--accent)}.clock{font-size:24px;font-variant-numeric:tabular-nums;font-weight:800}.board{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;overflow:hidden;border-radius:12px;box-shadow:0 18px 60px #0008;user-select:none}.square{display:grid;place-items:center;position:relative;font-size:clamp(27px,7vw,70px);cursor:pointer;line-height:1}.square.light{background:var(--light)}.square.dark{background:var(--dark)}.square.selected{box-shadow:inset 0 0 0 5px var(--select)}.square.target:after{content:"";width:22%;aspect-ratio:1;border-radius:50%;background:#1f6e2daa;position:absolute}.square .coord{position:absolute;font-size:10px;font-weight:800;opacity:.7}.square .file{right:4px;bottom:2px}.square .rank{left:4px;top:2px}.status{padding:14px 16px;margin-top:12px;text-align:center}.actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:12px;margin-top:10px}.side-column{display:grid;grid-template-rows:minmax(220px,.75fr) minmax(320px,1.25fr);gap:18px;min-height:700px}.moves-card,.chat-card{padding:16px;min-height:0}.moves-card h3,.chat-card h3{margin:0 0 12px}.moves{overflow:auto;max-height:280px;display:grid;grid-template-columns:42px 1fr 1fr;gap:4px 10px;font-variant-numeric:tabular-nums}.move-no{color:var(--muted)}.chat-card{display:flex;flex-direction:column}.chat-title{display:flex;justify-content:space-between}.chat-log{flex:1;overflow:auto;background:#101319;border-radius:10px;padding:10px;min-height:220px}.msg{padding:5px 2px;overflow-wrap:anywhere}.msg b{color:var(--accent)}.msg.system{color:var(--muted);font-style:italic}.chat-card form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px}.chat-card form input{margin:0}.chat-card form button{width:auto}.muted{color:var(--muted)}footer{text-align:center;color:var(--muted);padding:16px 20px 35px}@media(max-width:850px){.lobby-grid,.game-layout{grid-template-columns:1fr}.side-column{min-height:600px}.game-heading{align-items:flex-start;gap:12px;flex-direction:column}.square{font-size:clamp(28px,11vw,62px)}}@media(max-width:520px){main{padding:0 8px;margin-top:12px}.topbar{padding:0 12px}.lobby{padding:20px 14px}.panel{padding:18px}.actions{grid-template-columns:1fr}.game-heading button{width:100%}.square .coord{font-size:8px}}

/* ChatPinoy background override */
html,
body {
    min-height: 100%;
}

body {
    background-image:
        linear-gradient(
            rgba(5, 8, 12, 0.55),
            rgba(5, 8, 12, 0.65)
        ),
        url("/chatpinoy-chess-bg.png") !important;

    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-color: #0b0e12 !important;
}

main.chatpinoy-layout {
    background: transparent !important;
}

.chess-center {
    background: transparent !important;
}

.chatpinoy-layout .card {
    background: rgba(22, 27, 35, 0.88) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.external-chat {
    background: rgba(16, 20, 27, 0.90) !important;
}

/* =========================================================
   FINAL DESKTOP LAYOUT FIX
   Left chat | centered chess | right chat
   ========================================================= */

@media (min-width: 1201px) {

  body {
    overflow-x: hidden;
  }

  /* Center chess application */
  main,
  main.site-layout,
  main.chatpinoy-layout {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 0 40px !important;
  }

  .chess-content,
  .chess-center {
    display: block !important;
    width: min(760px, calc(100vw - 720px)) !important;
    min-width: 620px !important;
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .chess-content .lobby,
  .chess-center .lobby,
  main > .lobby {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
  }

  /* Both possible old/new chat class names */
  .irc-panel,
  .external-chat {
    position: fixed !important;
    top: 82px !important;
    bottom: 20px !important;

    width: clamp(280px, 19vw, 365px) !important;
    height: auto !important;
    min-height: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;
    z-index: 20 !important;

    border-radius: 14px !important;
    background: rgba(14, 18, 24, 0.94) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    box-shadow: 0 18px 60px rgba(0,0,0,0.55) !important;
  }

  .irc-left,
  .left-chat {
    left: 18px !important;
    right: auto !important;
  }

  .irc-right,
  .right-chat {
    right: 18px !important;
    left: auto !important;
  }

  .irc-panel iframe,
  .external-chat iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    border: 0 !important;
  }

  .irc-heading,
  .external-chat-header {
    display: flex !important;
    min-height: 62px !important;
    flex: 0 0 auto !important;
  }

  footer {
    width: min(760px, calc(100vw - 720px)) !important;
    margin: 0 auto !important;
  }
}

/* Tablet and smaller: chess first, chats below */
@media (max-width: 1200px) {

  main,
  main.site-layout,
  main.chatpinoy-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 20px auto !important;
    padding: 0 12px !important;
    gap: 18px !important;
  }

  .chess-content,
  .chess-center {
    order: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .irc-left,
  .left-chat {
    order: 2 !important;
  }

  .irc-right,
  .right-chat {
    order: 3 !important;
  }

  .irc-panel,
  .external-chat {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 580px !important;
    min-height: 580px !important;
  }
}

/* =========================================================
   WIDER FIXED CHAT ROOMS
   ========================================================= */

.locked-chat-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.locked-chat-frame iframe {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

.channel-dropdown-lock {
  position: absolute;
  z-index: 50;
  top: 9px;
  left: 10px;
  width: 205px;
  height: 43px;
  cursor: not-allowed;
  background: transparent;
}

.locked-chat-frame::before {
  content: "Fixed community room";
  position: absolute;
  z-index: 51;
  top: 11px;
  left: 24px;
  max-width: 165px;
  padding: 5px 9px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #f3f6fa;
  background: rgba(25, 30, 38, 0.96);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

@media (min-width: 1201px) {
  .irc-panel,
  .external-chat {
    width: clamp(322px, 21.85vw, 420px) !important;
  }

  .irc-left,
  .left-chat {
    left: 14px !important;
  }

  .irc-right,
  .right-chat {
    right: 14px !important;
  }

  .chess-content,
  .chess-center {
    width: min(760px, calc(100vw - 900px)) !important;
    min-width: 600px !important;
  }

  footer {
    width: min(760px, calc(100vw - 900px)) !important;
  }
}

.external-chat-header {
  min-height: 82px !important;
  padding: 14px 16px !important;
}

.external-chat-header strong {
  font-size: 16px !important;
}

.external-chat-header small {
  max-width: 270px;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

@media (max-width: 1200px) {
  .irc-panel,
  .external-chat {
    width: 100% !important;
  }
}


/* =========================================================
   PLAYERS LOBBY — LEFT PANEL
   ========================================================= */

.players-lobby {
  background: rgba(15, 19, 25, 0.94) !important;
}

.lobby-presence {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
}

.lobby-section {
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(27, 33, 42, 0.92);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
}

.lobby-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.lobby-section-title strong {
  font-size: 14px;
}

.lobby-section-title span {
  min-width: 27px;
  padding: 3px 8px;
  text-align: center;
  color: #f6bd46;
  background: rgba(246,189,70,0.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.lobby-player-list,
.open-room-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lobby-player,
.open-room-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding: 10px 11px;
  background: rgba(12, 16, 21, 0.78);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
}

.lobby-player strong,
.open-room-item strong {
  display: block;
  color: #f3f5f8;
  font-size: 13px;
}

.lobby-player small,
.open-room-item small {
  display: block;
  margin-top: 2px;
  color: #8996a8;
  font-size: 11px;
}

.presence-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: #33d17a;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(51,209,122,0.7);
}

.open-room-info {
  flex: 1 1 auto;
  min-width: 0;
}

.open-room-item button {
  width: auto;
  min-width: 58px;
  padding: 8px 11px;
  font-size: 11px;
}

.lobby-empty {
  margin: 0;
  padding: 16px 8px;
  color: #8996a8;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.lobby-help {
  padding: 14px;
  color: #aab5c3;
  background: rgba(246,189,70,0.08);
  border: 1px solid rgba(246,189,70,0.20);
  border-radius: 11px;
}

.lobby-help strong {
  display: block;
  margin-bottom: 5px;
  color: #f6bd46;
  font-size: 13px;
}

.lobby-help p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

/* Remove the previous channel-blocking overlays completely. */
.right-chat .channel-dropdown-lock,
.right-chat .locked-chat-frame::before {
  display: none !important;
}

.right-chat .locked-chat-frame {
  display: contents;
}

.right-chat iframe {
  pointer-events: auto !important;
}

/* =========================================================
   RIGHT UIC CHAT — 15% WIDER
   Left Players Lobby remains unchanged
   ========================================================= */

@media (min-width: 1201px) {

  .right-chat,
  .irc-right {
    width: clamp(370px, 25.15vw, 483px) !important;
    right: 14px !important;
    left: auto !important;
  }

  .right-chat iframe,
  .irc-right iframe {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
  }

  /* Shift the center slightly left to make room for wider right chat */
  .chess-center,
  .chess-content {
    transform: translateX(-30px);
  }
}

@media (max-width: 1200px) {
  .right-chat,
  .irc-right {
    width: 100% !important;
  }

  .chess-center,
  .chess-content {
    transform: none !important;
  }
}


/* =========================================================
   FINAL GAME LAYOUT — USE ALL REMAINING CENTER SPACE
   ========================================================= */

@media (min-width: 1201px) {

  /*
   * Side panels remain fixed.
   * Center fills everything between them.
   */
  main.chatpinoy-layout,
  main.site-layout {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 24px 0 42px !important;
  }

  .chess-center,
  .chess-content {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    /*
     * Left panel width + gap
     * Right panel width + gap
     */
    margin-left: clamp(340px, 23vw, 444px) !important;
    margin-right: clamp(390px, 27vw, 510px) !important;

    padding: 0 !important;
    transform: none !important;
  }

  .chess-center .game,
  .chess-content .game {
    width: 100% !important;
    max-width: none !important;
  }

  .game-heading {
    width: 100% !important;
  }

  /*
   * Board gets flexible remaining space.
   * Moves/chat sidebar remains readable.
   */
  .game-layout {
    width: 100% !important;
    display: grid !important;
    grid-template-columns:
      minmax(480px, 1fr)
      minmax(250px, 300px) !important;

    gap: 16px !important;
    align-items: start !important;
  }

  .board-column {
    width: 100% !important;
    min-width: 0 !important;
  }

  .side-column {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;

    grid-template-rows:
      minmax(220px, 0.75fr)
      minmax(340px, 1.25fr) !important;
  }

  /*
   * Keep the actual chessboard square and prevent it
   * from becoming excessively tall on very wide screens.
   */
  .board {
    width: 100% !important;
    max-width: min(100%, 690px) !important;
    aspect-ratio: 1 / 1 !important;

    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(8, minmax(0, 1fr)) !important;

    margin: 0 auto !important;
    overflow: hidden !important;
  }

  /*
   * Player bars, status and actions follow board width.
   */
  .board-column > .player,
  .board-column > .status,
  .board-column > .actions {
    width: 100% !important;
    max-width: min(100%, 690px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  footer {
    width: auto !important;
    margin-left: clamp(340px, 23vw, 444px) !important;
    margin-right: clamp(390px, 27vw, 510px) !important;
    transform: none !important;
  }
}


/* =========================================================
   CHESS SQUARE REPAIR
   Prevent global button styling from breaking the board
   ========================================================= */

.board .square {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-family:
    "DejaVu Sans",
    "Segoe UI Symbol",
    "Noto Sans Symbols 2",
    sans-serif !important;

  font-size: clamp(34px, 4.5vw, 66px) !important;
  line-height: 1 !important;

  overflow: hidden !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.board .square:hover {
  filter: none !important;
}

.board .square.light {
  background: var(--light) !important;
}

.board .square.dark {
  background: var(--dark) !important;
}

.board .square .coord {
  font-size: clamp(8px, 0.55vw, 11px) !important;
  line-height: 1 !important;
}


/* Slightly narrower desktop fallback */
@media (min-width: 1201px) and (max-width: 1500px) {

  .chess-center,
  .chess-content {
    margin-left: 345px !important;
    margin-right: 425px !important;
  }

  .game-layout {
    grid-template-columns:
      minmax(430px, 1fr)
      minmax(235px, 275px) !important;
  }

  footer {
    margin-left: 345px !important;
    margin-right: 425px !important;
  }
}


/* Tablet and mobile */
@media (max-width: 1200px) {

  .chess-center,
  .chess-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
  }

  .game-layout {
    grid-template-columns: 1fr !important;
  }

  .board {
    width: min(100%, 720px) !important;
    margin: 0 auto !important;
  }

  .board-column > .player,
  .board-column > .status,
  .board-column > .actions {
    width: min(100%, 720px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* =========================================================
   UIC ENGINEERS MINI RADIO
   ========================================================= */

.mini-radio {
  position: fixed;
  top: 67px;
  left: 50%;
  z-index: 90;

  width: min(520px, calc(100vw - 40px));
  min-height: 54px;
  padding: 7px 10px;

  display: flex;
  align-items: center;
  gap: 10px;

  transform: translateX(-50%);

  background:
    linear-gradient(
      135deg,
      rgba(109, 69, 190, 0.96),
      rgba(73, 43, 145, 0.96)
    );

  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.38);

  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mini-radio-live {
  flex: 0 0 auto;
  padding: 5px 9px;

  background: linear-gradient(135deg, #ff5a8e, #e92f74);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.mini-radio-details {
  flex: 1 1 auto;
  min-width: 0;
}

.mini-radio-details strong,
.mini-radio-details span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-radio-details strong {
  font-size: 13px;
}

.mini-radio-details span {
  margin-top: 2px;
  color: rgba(255,255,255,0.75);
  font-size: 11px;
}

.mini-radio-button {
  width: auto !important;
  min-width: 80px;
  padding: 8px 14px !important;

  color: #332600 !important;
  background: linear-gradient(#fff378, #ffd633) !important;
  border: 1px solid #fff29b !important;
  border-radius: 12px !important;

  font-size: 13px !important;
  font-weight: 900 !important;
}

.mini-radio-expand {
  width: 34px !important;
  height: 34px;
  padding: 0 !important;

  color: #fff !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  border-radius: 10px !important;
}

.mini-radio-frame-wrap {
  position: absolute;
  top: 61px;
  left: 0;

  width: 100%;
  height: 0;
  overflow: hidden;

  background: #11151c;
  border-radius: 0 0 14px 14px;

  opacity: 0;
  pointer-events: none;
  transition:
    height 180ms ease,
    opacity 180ms ease;
}

.mini-radio.expanded .mini-radio-frame-wrap {
  height: 190px;
  opacity: 1;
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,0.22);
}

.mini-radio-frame-wrap iframe {
  width: 100%;
  height: 520px;
  border: 0;

  /*
   * Move the embedded page upward so its player and metadata
   * appear inside the compact window.
   */
  transform: translateY(-25px);
  transform-origin: top left;
}

/* Push the main content below the radio bar */
@media (min-width: 1201px) {
  main.chatpinoy-layout,
  main.site-layout {
    padding-top: 88px !important;
  }

  .external-chat {
    top: 137px !important;
  }
}

@media (max-width: 1200px) {
  .mini-radio {
    position: relative;
    top: auto;
    left: auto;

    width: calc(100% - 20px);
    margin: 10px auto 0;

    transform: none;
  }

  .mini-radio-details span {
    max-width: 180px;
  }
}

@media (max-width: 600px) {
  .mini-radio {
    gap: 7px;
  }

  .mini-radio-details span {
    max-width: 120px;
  }

  .mini-radio-button {
    min-width: 68px;
    padding: 7px 10px !important;
  }
}


/* =========================================================
   CLEAN COMPACT RADIO PLAYER
   ========================================================= */

.mini-radio,
.mini-radio-frame-wrap,
.mini-radio-expand {
  display: none !important;
}

.mini-radio-compact {
  position: fixed;
  top: 72px;
  left: 50%;
  z-index: 100;

  width: min(430px, calc(100vw - 40px));
  min-height: 52px;
  padding: 8px 10px;

  display: flex;
  align-items: center;
  gap: 10px;

  transform: translateX(-50%);

  background: rgba(20, 25, 32, 0.96);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.38);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mini-radio-status {
  flex: 0 0 auto;

  padding: 5px 8px;

  color: #151515;
  background: #f6bd46;
  border-radius: 999px;

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.mini-radio-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.mini-radio-meta strong,
.mini-radio-meta span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-radio-meta strong {
  color: #f4f6f8;
  font-size: 12px;
}

.mini-radio-meta span {
  margin-top: 2px;
  color: #96a2b3;
  font-size: 11px;
}

.mini-radio-toggle {
  width: auto !important;
  min-width: 74px;

  padding: 8px 12px !important;

  color: #151515 !important;
  background: #f6bd46 !important;
  border: 0 !important;
  border-radius: 10px !important;

  font-size: 12px !important;
  font-weight: 900 !important;
}

.mini-radio-toggle:hover {
  filter: brightness(1.06);
}

.mini-radio-toggle.playing {
  color: #f4f6f8 !important;
  background: #303844 !important;
}

@media (min-width: 1201px) {
  main.chatpinoy-layout,
  main.site-layout {
    padding-top: 82px !important;
  }

  .external-chat {
    top: 132px !important;
  }
}

@media (max-width: 1200px) {
  .mini-radio-compact {
    position: relative;
    top: auto;
    left: auto;

    width: calc(100% - 20px);
    margin: 10px auto 0;

    transform: none;
  }
}

/* =========================================================
   UIC RADIO — SMALL EMBEDDED ORIGINAL PLAYER
   ========================================================= */

.mini-radio,
.mini-radio-compact,
.mini-radio-frame-wrap,
.mini-radio-expand {
  display: none !important;
}

.radio-embed-bar {
  position: fixed;
  top: 68px;
  left: 50%;
  z-index: 100;

  width: 430px;
  height: 72px;

  overflow: hidden;
  transform: translateX(-50%);

  background: rgba(20, 25, 32, 0.96);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.42);
}

.radio-embed-bar iframe {
  width: 100%;
  height: 520px;
  border: 0;

  /*
   * Crop the original radio page so only its player area shows.
   * Adjust these values if the player sits slightly too high/low.
   */
  transform: translateY(-10px) scale(0.82);
  transform-origin: top left;

  width: 122%;
}

@media (min-width: 1201px) {
  main.chatpinoy-layout,
  main.site-layout {
    padding-top: 92px !important;
  }

  .external-chat {
    top: 142px !important;
  }
}

@media (max-width: 700px) {
  .radio-embed-bar {
    position: relative;
    top: auto;
    left: auto;

    width: calc(100% - 20px);
    margin: 10px auto 0;

    transform: none;
  }
}

/* =========================================================
   SIMPLE UIC RADIO PLAYER
   ========================================================= */

.mini-radio,
.mini-radio-compact,
.radio-embed-bar {
  display: none !important;
}

.radioBox {
  position: fixed;
  top: 70px;
  left: 50%;
  z-index: 100;

  width: min(460px, calc(100vw - 30px));
  height: 56px;
  padding: 8px 10px;

  display: flex;
  align-items: center;
  gap: 10px;

  transform: translateX(-50%);

  background: rgba(20, 25, 32, 0.96);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.42);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.radioBadge {
  flex: 0 0 auto;

  padding: 5px 8px;

  color: #161616;
  background: #f6bd46;
  border-radius: 999px;

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.radioMeta {
  flex: 1 1 auto;
  min-width: 0;
}

.radioTitle,
.radioSub {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.radioTitle {
  color: #f4f6f8;
  font-size: 12px;
  font-weight: 800;
}

.radioSub {
  margin-top: 2px;
  color: #98a4b5;
  font-size: 11px;
}

.radioControls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radioBtn {
  width: auto !important;
  min-width: 76px;
  padding: 8px 12px !important;

  color: #151515 !important;
  background: #f6bd46 !important;
  border: 0 !important;
  border-radius: 10px !important;

  font-size: 12px !important;
  font-weight: 900 !important;
}

.radioBtn.playing {
  color: #f4f6f8 !important;
  background: #323a46 !important;
}

.radioStatus {
  min-width: 45px;
  color: #9ba6b5;
  font-size: 10px;
}

@media (min-width: 1201px) {
  main.chatpinoy-layout,
  main.site-layout {
    padding-top: 82px !important;
  }

  .external-chat {
    top: 132px !important;
  }
}

@media (max-width: 700px) {
  .radioBox {
    position: relative;
    top: auto;
    left: auto;

    width: calc(100% - 20px);
    margin: 10px auto 0;

    transform: none;
  }

  .radioStatus {
    display: none;
  }
}


/* Explicit waiting-list controls: visitors are not auto-listed. */
.waiting-list-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.waiting-list-actions button {
  padding: 9px 11px;
  font-size: 12px;
}
