@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700&display=swap');
:root {
  --purple: #a05cff;
  --purple-dark: #7b3fe4;
  --gold: #c98a3e;
  --ink: #14141c;
  --glass: rgba(20, 20, 30, 0.55);
  --glass-light: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #f2eee7;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0c0c14;
  color: var(--text);
  overflow-x: hidden;
}

/* ---- Background video ---- */
.stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,20,0.65) 0%, rgba(10,10,20,0.45) 40%, rgba(10,10,20,0.85) 100%);
  z-index: -1;
  
}

/* ---- LAYOUT GRID STRATEGY ---- */
.layout-grid {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 1; /* Main UI stacking context */
  position: relative;
  flex: 1;
}

/* Hide SEO by default, visible below */
.seo-footer { display: none; }
.hidden-player {
  position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; z-index: -10; bottom: 0;
}

/* ---- GLOBAL PILL / GLASS STYLE ---- */
.pill {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* ---- COMPONENTS ---- */

/* 1. CLOCK */
.clock-pill { width: max-content; }
.pill-icon { font-size: 18px; }
.pill-main { font-weight: 700; font-size: 15px; }
.pill-sub { font-size: 11px; opacity: 0.7; margin-top: 2px; }

/* 2. LIVE INDICATOR */
.live-pill {
  background: rgba(160, 92, 255, 0.15);
  border: 1px solid rgba(160, 92, 255, 0.4);
  padding: 8px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 8px #4ade80;
}
.online-text { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #f2eee7; }

/* 3. BRANDING */
.widget-brand {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  z-index: 1;
}
.brandmark {
  display: flex; flex-direction: column; align-items: center;
  color: var(--gold); cursor: pointer; user-select: none;
}
.brand-orbit { color: var(--gold); opacity: 0.8; margin-bottom: -6px; }
.brand-name {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 22px;
  letter-spacing: 0.5px; border-bottom: 1px solid rgba(201,138,62,0.6); padding-bottom: 4px;
}
.hero { margin-top: 20px; }
.title { margin: 0; line-height: 0.95; }
.title-mood {
  display: block; font-family: 'Dancing Script', cursive; font-weight: 700;
  font-size: clamp(40px, 10vw, 70px); color: var(--purple);
  text-shadow: 0 0 22px rgba(160,92,255,0.6);
}
.title-wala {
  display: block; font-family: 'Baloo 2', sans-serif; font-weight: 800;
  font-size: clamp(42px, 11vw, 76px); color: var(--text); margin-top: -6px;
}
.tagline { margin-top: 12px; font-size: 14px; opacity: 0.8; font-weight: 500; }
.join-btn {
    margin-top: 30px; 
    padding: 16px 48px; 
    border-radius: 999px;
    
    /* 3D Glassy Transparent Effect */
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Chamakta hua borders aur shadows */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.3), 
        inset 0 2px 3px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
        
    color: #ffffff; 
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    font-size: 15px; 
    font-weight: 700; 
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.join-btn:hover { 
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.15) 100%);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.4), 
        inset 0 3px 5px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Global Hidden Utility */
.hidden { display: none !important; }

/* 4. LIVE STATUS */
.status-pill {
  padding: 16px 20px; width: 100%; border-radius: 20px;
}
.status-pill-grid {
  display: flex; width: 100%; justify-content: space-between; gap: 10px;
}
.status-col {
  flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  border-right: 1px solid var(--glass-border); padding: 0 10px;
}
.status-col:last-child { border-right: none; }
.status-icon { font-size: 20px; margin-bottom: 4px; }
.status-val { font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.status-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--gold); }
.status-sub { font-size: 10px; opacity: 0.6; margin-top: 4px; }
.admin-live-badge { color: var(--purple); }

/* 5. ROOM CONTROLS */
.widget-room { z-index: 10; }
.room-pill {
  flex-direction: column; align-items: stretch; padding: 20px; border-radius: 20px;
}
.room-pill-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.room-pill-title { font-weight: 700; font-size: 13px; letter-spacing: 1px; color: var(--purple); }
.room-not-joined { display: flex; flex-direction: column; gap: 16px; }
.room-invite-text { font-size: 14px; opacity: 0.8; margin: 0; }
.room-actions-cards { display: flex; flex-direction: column; gap: 12px; }

.room-card {
  display: flex; flex-direction: column; text-align: left;
  padding: 16px; border-radius: 16px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05); color: var(--text); cursor: pointer;
  transition: all 0.2s ease; position: relative; overflow: hidden;
}
.room-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.create-card { border-color: rgba(160,92,255,0.4); background: linear-gradient(145deg, rgba(160,92,255,0.1), rgba(160,92,255,0.05)); }
.create-card:hover { border-color: var(--purple); background: rgba(160,92,255,0.2); }
.join-card { border-color: rgba(6,182,212,0.4); background: linear-gradient(145deg, rgba(6,182,212,0.1), rgba(6,182,212,0.05)); cursor: default; }
.join-card:hover { border-color: var(--cyan); }
.card-icon { font-size: 24px; margin-bottom: 8px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.card-sub { font-size: 12px; opacity: 0.7; margin-bottom: 12px; }
.join-inputs { display: flex; gap: 8px; }
.room-input {
  flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
  padding: 10px 14px; border-radius: 8px; color: white; font-size: 14px; outline: none;
}
.join-btn-small {
  background: var(--cyan); color: #fff; border: none; padding: 10px 20px;
  border-radius: 8px; font-weight: 700; cursor: pointer; transition: background 0.2s;
}
.join-btn-small:hover { background: var(--cyan-dark); }

/* Room Joined UI */
.room-joined-card {
  display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(145deg, rgba(160,92,255,0.15), rgba(0,0,0,0.1));
  border: 1px solid rgba(160,92,255,0.3); padding: 20px; border-radius: 16px;
}
.room-joined-header { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--gold); }
.room-joined-info { display: flex; flex-direction: column; gap: 4px; }
.room-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.6); }
.room-code-badge { font-size: 24px; font-weight: 800; letter-spacing: 3px; color: var(--text); }
.room-joined-actions { display: flex; gap: 10px; margin-top: 4px; }
.room-btn {
  flex: 1; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 13px;
  cursor: pointer; border: 1px solid var(--glass-border); transition: all 0.2s;
}
.copy-btn { background: rgba(255,255,255,0.1); color: var(--text); }
.copy-btn:hover { background: rgba(255,255,255,0.2); }
.leave-btn { background: rgba(255,50,50,0.15); border-color: rgba(255,50,50,0.3); color: #ffcccc; }
.leave-btn:hover { background: rgba(255,50,50,0.3); }
.room-error { color: #ff6b6b; font-size: 13px; font-weight: 500; }

/* 6. ADMIN PANEL & PLAYLISTS */
.widget-admin { z-index: 10; }
.admin-panel { position: relative; overflow: hidden; contain: paint; border-radius: 26px !important; background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.07)) !important; backdrop-filter: blur(14px) saturate(150%) !important; -webkit-backdrop-filter: blur(14px) saturate(150%) !important; border: 1px solid rgba(255,255,255,0.22) !important; box-shadow: 0 24px 60px -12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(255,255,255,0.1), inset 8px 0 16px -10px rgba(255,255,255,0.35) !important; padding: 0; margin-bottom: 20px; }
.admin-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 90px; background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent); pointer-events: none; }
.admin-panel::after { content: ""; position: absolute; top: -30%; left: -60%; width: 40%; height: 160%; transform: rotate(20deg); pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent); animation: adminSweep 1.4s ease-out 0.4s 1 both; }
@keyframes adminSweep { from { transform: rotate(20deg) translateX(0); } to { transform: rotate(20deg) translateX(400%); } }
.admin-header { position: relative; display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,0.12) !important; background: linear-gradient(90deg, rgba(168,85,247,0.28), rgba(168,85,247,0.04)) !important; font-family: "Outfit", sans-serif; font-weight: 700; font-size: 18px !important; letter-spacing: 0.3px; color: #fff !important; }
.admin-section { position: relative; padding: 18px 22px !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; }
.admin-section:last-child { border-bottom: 0 !important; }
.admin-label { margin: 0 0 12px !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: 1.8px !important; text-transform: uppercase !important; color: #d8b4fe !important; display: flex; align-items: center; gap: 6px; }
.playlist-buttons { display: flex; flex-wrap: wrap; gap: 9px !important; }
.playlist-buttons button { font: 600 13px "Inter", sans-serif !important; color: #f4f1ff !important; padding: 11px 16px !important; border-radius: 999px !important; cursor: pointer; background: rgba(255,255,255,0.07) !important; border: 1px solid rgba(255,255,255,0.2) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.25) !important; transition: transform 0.15s, background 0.2s, box-shadow 0.2s !important; }
@media (hover: hover) { .playlist-buttons button:hover { transform: translateY(-2px); background: rgba(168,85,247,0.2) !important; } }
.playlist-buttons button.active { border-color: rgba(255,255,255,0.5) !important; background: linear-gradient(135deg, #c084fc, #8b5cf6) !important; box-shadow: 0 6px 18px rgba(139,92,246,0.55), inset 0 1px 0 rgba(255,255,255,0.6) !important; color: #fff !important; }
.link-row { display: flex; gap: 8px; }
.admin-input { flex: 1; min-width: 0; font: 400 16px "Inter", sans-serif !important; color: #f4f1ff !important; padding: 13px 14px !important; border-radius: 14px !important; outline: 0 !important; background: rgba(0,0,0,0.22) !important; border: 1px solid rgba(255,255,255,0.16) !important; box-shadow: inset 0 2px 6px rgba(0,0,0,0.25) !important; transition: border-color 0.2s, box-shadow 0.2s !important; }
.admin-input::placeholder { color: rgba(244,241,255,0.62) !important; }
.admin-input:focus { border-color: #c084fc !important; box-shadow: 0 0 0 3px rgba(192,132,252,0.28) !important; }
.admin-btn.play-btn { font: 700 14px "Outfit", sans-serif !important; letter-spacing: 0.4px !important; color: #fff !important; padding: 0 22px !important; min-height: 48px !important; border: 1px solid rgba(255,255,255,0.4) !important; border-radius: 14px !important; cursor: pointer; background: linear-gradient(180deg, #c084fc, #7c3aed) !important; box-shadow: 0 8px 20px rgba(124,58,237,0.5), inset 0 1px 0 rgba(255,255,255,0.6) !important; transition: transform 0.15s, filter 0.2s !important; width: auto !important; margin: 0 !important; }
@media (hover: hover) { .admin-btn.play-btn:hover { filter: brightness(1.1); transform: translateY(-1px); } }
.admin-btn.play-btn:active { transform: scale(0.96); }
.request-list { display: flex; flex-direction: column; gap: 10px !important; max-height: 250px; overflow-y: auto; }
.request-item { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; padding: 12px 14px !important; border-radius: 14px !important; cursor: pointer; background: rgba(255,255,255,0.07) !important; border: 1px solid rgba(255,255,255,0.14) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2) !important; transition: background 0.2s, transform 0.25s, opacity 0.25s !important; }
@media (hover: hover) { .request-item:hover { background: rgba(255,255,255,0.12) !important; } }
.request-item button { border: 0 !important; background: none !important; color: #fb7185 !important; font-size: 18px !important; line-height: 1 !important; cursor: pointer !important; min-width: 36px !important; min-height: 36px !important; border-radius: 10px !important; padding: 0 !important; }
@media (hover: hover) { .request-item button:hover { background: rgba(251,113,133,0.18) !important; } }


/* 7. SONG REQUEST BOX (Public) */
.widget-request { width: 100%; z-index: 10; }
.request-inner {
  display: flex; align-items: center; gap: 12px; background: var(--glass);
  backdrop-filter: blur(14px); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 8px 8px 8px 20px;
}
.req-icon { font-size: 18px; }
.request-inner input {
  flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-size: 14px;
}
#requestSendBtn {
  background: var(--purple); border: none; color: white; padding: 10px 24px;
  border-radius: 999px; font-weight: 700; cursor: pointer;
}

/* 8. NOW PLAYING DOCK */
.dock {
  background: var(--glass); backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border); border: 1px solid var(--glass-border);
  border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  z-index: 50; /* Ensure dock is above other layout elements */
}
.progress-track { width: 100%; height: 4px; background: rgba(255,255,255,0.1); cursor: default; }
.progress-track.admin-mode { cursor: pointer; height: 6px; }
.progress-fill { height: 100%; width: 0%; background: var(--purple); transition: width 0.3s linear; }
.dock-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; gap: 16px; }
.dock-left { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.album-art { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #222; flex-shrink: 0; }
.dock-info { min-width: 0; }
.dock-label { font-size: 10px; letter-spacing: 1px; color: var(--purple); font-weight: 700; }
.dock-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90%; }
.dock-artist { font-size: 12px; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90%; }
.dock-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.progress-time { font-size: 12px; opacity: 0.7; font-weight: 500; }
.volume-control { display: flex; align-items: center; gap: 8px; }
.volume-control input[type="range"] { width: 90px; accent-color: var(--purple); }
.live-tag { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--purple); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); animation: pulse 1.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(160,92,255,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(160,92,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(160,92,255,0); }
}

/* Modals & Helpers */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 100;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.modal-overlay[hidden], .widget-admin[hidden], .request-box[hidden], .dock[hidden], .widget-search[hidden], .widget-songlist[hidden], .admin-transport[hidden], .up-next-banner[hidden] {
  display: none !important;
}
.modal-box {
  background: #1a1a24; border: 1px solid var(--glass-border); border-radius: 20px;
  padding: 30px; width: 320px; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.modal-title { font-family: 'Playfair Display', serif; font-size: 20px; margin-bottom: 20px; color: var(--gold); }
.modal-box input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05); color: var(--text); font-size: 15px; margin-bottom: 20px; outline: none;
}
.modal-buttons { display: flex; gap: 12px; }
.modal-buttons button { flex: 1; padding: 12px; border-radius: 12px; border: none; font-weight: 700; cursor: pointer; }
#adminSubmitBtn { background: var(--purple); color: white; }
.modal-cancel { background: rgba(255,255,255,0.1); color: var(--text); }
.modal-error { margin-top: 12px; color: #ff6b6b; font-size: 13px; font-weight: 500; }

.up-next-banner {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: white; padding: 12px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 700; z-index: 100; box-shadow: 0 8px 24px rgba(160,92,255,0.5);
}
.admin-transport {
  position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%); display: flex; gap: 16px; z-index: 100;
}
.admin-transport button {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(160,92,255,0.5);
  background: var(--glass); backdrop-filter: blur(10px); color: var(--text); font-size: 20px; cursor: pointer;
}
.widget-search {
  background: var(--glass); backdrop-filter: blur(10px); border: 1px solid rgba(201,138,62,0.4);
  border-radius: 16px; padding: 16px; margin-top: 20px; z-index: 10;
}
.search-widget-header { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 10px; display: flex; justify-content: space-between;}
.search-widget-input-row input { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.3); color: white; outline: none; }
.search-results { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; cursor: pointer; }
.search-result-item:hover { background: rgba(160,92,255,0.15); }
.search-result-item img { width: 48px; height: 36px; border-radius: 6px; object-fit: cover; }
.search-result-item span { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.widget-songlist {
  background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 20px; max-height: 60vh; overflow-y: auto; z-index: 10;
}
.widget-songlist .panel-title { font-size: 12px; text-transform: uppercase; opacity: 0.7; margin-bottom: 12px; font-weight: 700;}
.song-list-item { padding: 10px 12px; border-radius: 10px; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-list-item:hover { background: rgba(160,92,255,0.2); }

/* =========================================
   RESPONSIVE DESIGN SYSTEM
   ========================================= */

/* ---- MOBILE FIRST (< 768px) ---- */
@media (max-width: 767px) {
  .layout-grid {
    display: flex; flex-direction: column; padding: 16px; padding-bottom: 140px; gap: 20px;
  }
  
  /* Explicit Z-Index and Order for Mobile Stack */
  .widget-clock { order: 1; margin-bottom: -40px; }
  .widget-live-indicator { order: 2; align-self: flex-end; margin-top: -30px; }
  .widget-brand { order: 3; margin-top: 20px; }
  .widget-status { order: 4; }
  .widget-room { order: 5; }
  .widget-search { order: 6; margin-top: 0; }
  .widget-admin { order: 7; }
  .widget-songlist { order: 8; margin-top: 0; }
  .widget-request { order: 9; }
  
  /* Make mobile dock super compact */
  .dock {
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    border-radius: 16px; z-index: 50;
  }
  .dock-row { padding: 10px 14px; gap: 12px; }
  .album-art { width: 44px; height: 44px; border-radius: 8px; }
  .dock-title { font-size: 14px; }
  .dock-artist { font-size: 11px; }
  .volume-control { display: none; } /* Hide volume on mobile space constraints */
  .dock-right .vol-icon { display: none; }
  .dock-right { gap: 12px; }
  
  .status-col { padding: 0 4px; }
  .status-val { font-size: 18px; }
  .status-label { font-size: 9px; }
}

/* ---- DESKTOP (>= 1024px) ---- */
@media (min-width: 1024px) {
  .layout-grid {
    display: grid;
    grid-template-columns: 340px 1fr 340px;
    grid-auto-rows: min-content;
    gap: 24px;
    padding-bottom: 140px; /* Safe space for dock */
    height: auto;
    min-height: 100vh;
  }

  /* Left Column Placement */
  .widget-clock { grid-column: 1; justify-self: start; }
  .widget-room { grid-column: 1; position: sticky; top: 20px; }
  .widget-search { grid-column: 1; position: sticky; top: 380px; margin-top: 20px;}

  /* Center Column Placement */
  .widget-brand { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: center; margin-top: 40px; }
  .widget-request { grid-column: 2; justify-self: center; align-self: end; width: 100%; max-width: 440px; margin-bottom: 20px; }
  
  /* Right Column Placement */
  .widget-status { grid-column: 3; position: sticky; top: 20px; margin-bottom: 0; }
  .widget-admin { grid-column: 3; position: sticky; top: 160px; }
  .widget-songlist { grid-column: 3; position: sticky; top: 160px; }

  /* Hidden on desktop */
  .widget-live-indicator { display: none; }

  /* Desktop Dock (Full width bottom bar) */
  .dock {
    position: fixed; bottom: 0; left: 0; right: 0; border-radius: 0;
    border-left: none; border-right: none; border-bottom: none; z-index: 50;
    padding: 0 40px;
  }
}

/* ---- TABLET (768px - 1023px) ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  .layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: min-content;
    gap: 20px;
    padding-bottom: 140px;
  }

  .widget-clock { grid-column: 1; justify-self: start; }
  .widget-live-indicator { grid-column: 2; justify-self: end; }
  .widget-brand { grid-column: 1 / -1; justify-self: center; }
  
  .widget-room { grid-column: 1; }
  .widget-search { grid-column: 1; margin-top: 0; }
  
  .widget-status { grid-column: 2; }
  .widget-admin { grid-column: 2; }
  .widget-songlist { grid-column: 2; }

  .widget-request { grid-column: 1 / -1; justify-self: center; margin-top: 20px;}
  
  .dock {
    position: fixed; bottom: 16px; left: 16px; right: 16px; border-radius: 20px; z-index: 50;
  }
}