:root{
  --header-h: 22px;
  --footer-h: 90px;
  --nav-w: 260px;

  /* reserve space for the fixed player so it never covers footer/content */
  --sv-player-offset: 86px;

  --panel: rgba(26,13,7,0.82);
  --border: #c28a4a;
  --text: #f7e3c5;
  --accent: #ffd28a;
}

/* ================= GLOBAL FIX ================= */

/* Prevent padding/borders causing overflow */
*, *::before, *::after{
  box-sizing: border-box;
}

/* ================= BASE ================= */

html,body{
  height:100%;
}

body{
  margin:0;
  background:#120a06;
  font-family: Georgia, serif;
  color: var(--text);
  /* Keep the fixed floating player from covering the footer/content */
  padding-bottom: var(--sv-player-offset);
}

/* ================= CONTENT AREA ================= */

.content-area{
  margin-left: var(--nav-w);
  padding-top: calc(var(--header-h) + 18px);
  /* footer + breathing room for the fixed bottom player */
  padding-bottom: calc(var(--footer-h) + 110px);
  min-height:100vh;
  position:relative;
  z-index:1;
}

/* ================= BACKGROUND IMAGE ================= */

.content-area::before{
  content:"";
  position: fixed;
  top: var(--header-h);
  bottom: var(--footer-h);
  left: var(--nav-w);
  right: 0;

  background: url('/img/backgrounds/main-bg.png') no-repeat;
  background-position: 60% center;
  background-size: 100% auto;

  opacity:.75;
  pointer-events:none;
  z-index:0;
}

/* ================= LIGHT OVERLAY ================= */

.content-area::after{
  content:"";
  position: fixed;
  top: var(--header-h);
  bottom: var(--footer-h);
  left: var(--nav-w);
  right: 0;

  background: radial-gradient(circle at 65% 40%,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.28) 55%,
    rgba(0,0,0,0.45) 100%);

  pointer-events:none;
  z-index:1;
}

.content-wrapper{
  max-width:1100px;
  margin:0 auto;
  padding:20px;
  position:relative;
  z-index:2;

  /* prevents accidental horizontal overflow */
  overflow-x:hidden;
}

/* ================= SCROLLING DIVIDER ================= */

.smurf-divider{
  width:100%;
  height:70px;
  margin:26px 0;

  background-image:url('/img/dividers/divider.png');
  background-repeat:repeat-x;
  background-size:auto 70px;
  background-position:0 center;

  animation:scrollDivider 25s linear infinite;

  opacity:.95;
  filter:drop-shadow(0 0 10px rgba(0,0,0,.55));
}

@keyframes scrollDivider{
  from{background-position:0 center;}
  to{background-position:-2000px center;}
}

/* ================= CARDS ================= */

.content-card,
.schedule-box,
.clock-box,
.admin-card{
  background:var(--panel);
  border:2px solid var(--border);
  border-radius:14px;
  padding:24px;
  margin-bottom:26px;

  box-shadow:
    0 0 18px rgba(255,200,120,.35),
    inset 0 0 10px rgba(0,0,0,.55);

  backdrop-filter:blur(4px);
  text-align:center;
}

/* Exceptions */

.page-schedule .content-card,
.page-djs .content-card,
.page-friends .content-card{
  text-align:left;
}

/* ================= BUTTONS ================= */

.admin-btn,
.button,
.play-btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,220,160,.28);
  background:rgba(255,220,160,.10);
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  font-weight:700;
  transition:.15s ease;
}

.admin-btn:hover,
.button:hover,
.play-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 0 14px rgba(255,220,160,.25);
  background:rgba(255,220,160,.16);
}

.admin-btn.primary{
  background:linear-gradient(135deg,#ffb347,#ffcc33);
  color:#3b1b0a;
  font-weight:900;
}

/* ================= LISTEN BUTTONS ================= */

.listen-buttons,
.listen-inline{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:12px;
}

.listen-buttons a,
.listen-inline a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,220,160,.35);
  background:rgba(255,220,160,.10);
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  box-shadow:
    0 0 12px rgba(255,200,120,.18),
    inset 0 0 10px rgba(0,0,0,.45);
}

.listen-buttons a:hover,
.listen-inline a:hover{
  background:rgba(255,220,160,.18);
  box-shadow:
    0 0 16px rgba(255,220,160,.25),
    inset 0 0 10px rgba(0,0,0,.55);
}

/* ================= FORMS ================= */

.form{
  max-width:760px;
  margin:0 auto;
}

.input-field{
  width:100%;
  max-width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(194,138,74,.55);
  background:rgba(0,0,0,.25);
  color:var(--text);
  margin:10px 0;
}

.input-field:focus{
  border-color:rgba(255,220,160,.65);
  box-shadow:0 0 12px rgba(255,220,160,.25);
}

/* ================= REQUEST FORMS ================= */

.request-wrapper{
  width:100%;
  max-width:760px;
  margin:0 auto;
}

.request-box{
  width:100%;
  background:rgba(255,220,160,.06);
  border:1px solid rgba(194,138,74,.55);
  border-radius:14px;
  padding:16px;
  margin:14px 0;
  box-shadow:inset 0 0 10px rgba(0,0,0,.45);
}

.request-field{
  text-align:left;
  margin-bottom:12px;
}

.request-field label{
  display:block;
  font-weight:700;
  margin-bottom:8px;
  color:var(--accent);
}

.request-input,
.request-textarea{
  width:100%;
  max-width:100%;
  display:block;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(194,138,74,.55);
  background:rgba(0,0,0,.25);
  color:var(--text);
}

.request-textarea{
  min-height:120px;
  resize:vertical;
}

.request-button{
  padding:12px 18px;
  border-radius:12px;
  border:1px solid rgba(255,220,160,.28);
  background:rgba(255,220,160,.14);
  color:var(--text);
  font-weight:900;
  cursor:pointer;
}

/* ================= CLOCKS ================= */

.clock-flex{
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
}

.clock-box{
  min-width:180px;
  background:rgba(255,220,160,.08);
  border:1px solid rgba(194,138,74,.55);
}

/* ================= SCHEDULE ================= */

.schedule-grid{
  display:flex;
  gap:16px;
}

.schedule-box{
  flex:1;
  background:rgba(255,220,160,.08);
  border:1px solid rgba(194,138,74,.55);
}

/* ================= ADMIN ================= */

.admin-wrap{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:20px;
}

.admin-title{
  color:#ffd8a8;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin-bottom:15px;
}

/* ================= MOBILE ================= */

@media (max-width:1100px){

  .content-area{
    margin-left:0;
  }

  .content-area::before,
  .content-area::after{
    left:0;
  }

  .schedule-grid{
    flex-direction:column;
  }

  .clock-flex{
    flex-direction:column;
    gap:14px;
  }

  .admin-wrap{
    grid-template-columns:1fr;
  }
}

/* ================= ADMIN GRID (added for merged admin panel) ================= */

.admin-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
}

.admin-card-link{
  display:block;
  padding:16px 14px;
  border-radius:14px;
  border:2px solid var(--border);
  background:rgba(255,220,160,.08);
  color:var(--text);
  text-decoration:none;
  font-weight:800;
  text-align:center;

  box-shadow:
    0 0 14px rgba(255,200,120,.20),
    inset 0 0 10px rgba(0,0,0,.45);
  transition:.15s ease;
}

.admin-card-link:hover{
  transform:translateY(-1px);
  background:rgba(255,220,160,.14);
  box-shadow:
    0 0 18px rgba(255,220,160,.28),
    inset 0 0 10px rgba(0,0,0,.55);
}


/* ================= MSG BANNERS ================= */
.msg{
  padding:10px 12px;
  border-radius:12px;
  margin:10px 0;
  border:1px solid rgba(255,220,160,.35);
  background:rgba(255,220,160,.10);
}
.msg.success{
  border-color:rgba(120,255,170,.45);
  background:rgba(120,255,170,.10);
}
.msg.error{
  border-color:rgba(255,80,120,.55);
  background:rgba(255,80,120,.10);
}


/* ================== OUTRAGEOUS ADD-ONS ================== */
.smurf-nowplaying{
  display:flex; gap:14px; align-items:center;
  padding:14px 16px; margin-top:14px;
}
.smurf-nowplaying .np-art{
  width:64px; height:64px; border-radius:12px;
  border:1px solid rgba(255,210,138,.35);
  background: rgba(0,0,0,.25);
  overflow:hidden; flex:0 0 auto;
}
.smurf-nowplaying .np-art img{ width:100%; height:100%; object-fit:cover; display:block; }
.smurf-nowplaying .np-title{ font-weight:800; letter-spacing:.08em; font-size:.85rem; opacity:.9; }
.smurf-nowplaying .np-track{ font-size:1.15rem; font-weight:800; margin-top:4px; }
.smurf-nowplaying .np-sub{ opacity:.9; font-size:.95rem; margin-top:2px; }
.smurf-nowplaying .np-meta{ opacity:.85; font-size:.9rem; margin-top:6px; }
.smurf-nowplaying .dot{ margin:0 8px; opacity:.6; }

.card-glow{
  border:1px solid rgba(255,210,138,.35);
  box-shadow: 0 0 18px rgba(255,210,138,.12);
  background: var(--panel);
  border-radius: 16px;
}

.sv-floating-player{
  position:fixed; left:0; right:0; bottom:0;
  z-index:9999;
  background: rgba(10,5,2,.86);
  border-top:1px solid rgba(255,210,138,.35);
  backdrop-filter: blur(10px);
}
.sv-player-inner{
  max-width: 1150px;
  margin: 0 auto;
  padding: 10px 14px;
  display:flex; gap:12px; align-items:center; justify-content:space-between;
}
.sv-player-left{ display:flex; gap:12px; align-items:center; min-width: 240px; }
.sv-player-btn{
  border:1px solid rgba(255,210,138,.35);
  background: rgba(0,0,0,.25);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor:pointer;
  font-weight:800;
}
.sv-player-btn:hover{ box-shadow: 0 0 18px rgba(255,210,138,.18); }

.sv-player-min{
  border:1px solid rgba(255,210,138,.35);
  background: rgba(0,0,0,.18);
  color: var(--text);
  border-radius: 12px;
  width: 34px;
  height: 34px;
  cursor:pointer;
  font-weight:900;
  line-height: 1;
}
.sv-player-min:hover{ box-shadow: 0 0 18px rgba(255,210,138,.18); }

/* Collapsed / auto-hide behavior */
.sv-floating-player.sv-collapsed .sv-player-mid,
.sv-floating-player.sv-collapsed .sv-player-vol{
  display:none;
}
.sv-floating-player.sv-collapsed .sv-player-inner{
  padding: 6px 10px;
}

/* slide down when auto-hidden; hover brings it back (handled by JS) */
.sv-floating-player{
  transform: translateY(0);
  transition: transform .25s ease;
}
.sv-floating-player.sv-autohide{
  transform: translateY(62px);
}
.sv-player-track{ font-weight:800; }
.sv-player-meta{ opacity:.85; font-size:.9rem; margin-top:2px; }
.sv-player-mid{ flex:1; min-width: 200px; }
.sv-player-vol{
  width: 140px;
}
@media (max-width: 720px){
  .sv-player-meta{ display:none; }
  .sv-player-vol{ width: 90px; }
}

.sv-chat-box{
  height: 380px;
  overflow:auto;
  padding: 10px;
  border-radius: 14px;
  border:1px solid rgba(255,210,138,.25);
  background: rgba(0,0,0,.18);
}
.sv-chat-row{
  display:flex; gap:10px;
  padding: 6px 8px;
  border-bottom:1px dashed rgba(255,210,138,.12);
}
.sv-chat-time{ opacity:.65; min-width: 54px; }
.sv-chat-nick{ font-weight:800; min-width: 140px; }
.sv-chat-msg{ flex:1; opacity:.95; }
.sv-chat-form{
  display:flex; gap:10px; margin-top:12px; flex-wrap:wrap;
}
.sv-chat-input{
  flex:1;
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,210,138,.25);
  background: rgba(0,0,0,.18);
  color: var(--text);
}
.sv-chat-hint{ margin-top:8px; opacity:.75; font-size:.9rem; }

/* Requests board */
.sv-req-board{ display:grid; gap:10px; margin-bottom:18px; }
.sv-req-item{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,210,138,.25);
  background: rgba(0,0,0,.14);
}
.sv-req-title{ font-weight:800; }
.sv-req-vote{ display:flex; align-items:center; gap:10px; }
.sv-req-vote button{ padding:6px 10px; border-radius:999px; }
