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

  --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);
}

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

.content-area{
  margin-left: var(--nav-w);
  padding-top: calc(var(--header-h) + 18px);
  padding-bottom: calc(var(--footer-h) + 26px);
  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:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:16px;
}

.schedule-day-card{
  text-align:left;
}

.schedule-day-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.badge-live{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,220,160,.28);
  background:rgba(255,220,160,.10);
  font-weight:700;
}

.schedule-empty{
  opacity:.85;
  padding:10px;
  background:rgba(0,0,0,.25);
  border-radius:12px;
}

.schedule-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.schedule-row{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px;
  border-radius:12px;
  background: rgba(255,220,160,.06);
  border:1px solid rgba(194,138,74,.55);
  box-shadow: inset 0 0 10px rgba(0,0,0,.45);
}

.schedule-row.current-hour{
  outline:2px solid rgba(255,210,138,.65);
}

.schedule-time{
  min-width:86px;
  font-weight:700;
  color:var(--accent);
}

.schedule-show{
  font-weight:700;
}


/* ================= 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{grid-template-columns:1fr;}


  .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);
}


/* Force schedule cards vertical on the Schedule page */
.page-schedule .schedule-grid{
  grid-template-columns: 1fr;
}
