/* Misfit Radio — Dark Cinematic Theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --border: #2a2a3a;
  --amber: #f59e0b;
  --amber-dim: #b45309;
  --amber-glow: rgba(245,158,11,.15);
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius: 10px;
}

html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.6; }

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* NAV */
.site-nav { display: flex; align-items: center; justify-content: space-between; padding: .85rem 2rem; background: var(--bg2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-brand { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--amber); }
.nav-tagline { font-size: .75rem; color: var(--text-muted); margin-left: .4rem; font-weight: 400; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.nav-links a:hover { color: var(--amber); text-decoration: none; }
.nav-admin { background: var(--amber); color: #000 !important; padding: .25rem .85rem; border-radius: 99px; font-weight: 700; }
.nav-admin:hover { background: #fbbf24; text-decoration: none; }

.site-main { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.site-footer { text-align: center; padding: 2rem; color: var(--text-muted); font-size: .85rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.site-footer a { color: var(--text-muted); }

/* HERO / PLAYER */
.hero { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; margin-bottom: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
.hero-title { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; }
.hero-tagline { color: var(--text-muted); font-size: 1.05rem; }
.live-badge { display: inline-flex; align-items: center; gap: .4rem; background: #ef4444; color: #fff; padding: .2rem .7rem; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.off-air { display: inline-flex; align-items: center; gap: .4rem; background: var(--bg3); color: var(--text-muted); padding: .2rem .7rem; border-radius: 99px; font-size: .78rem; }
.player-controls { display: flex; align-items: center; gap: 1rem; }
.btn-play { background: var(--amber); color: #000; border: none; padding: .7rem 2rem; border-radius: 99px; font-size: 1rem; font-weight: 700; cursor: pointer; font-family: var(--font-display); transition: background .2s; }
.btn-play:hover { background: #fbbf24; }
.listener-count { color: var(--text-muted); font-size: .9rem; }

/* CURRENT SHOW */
.current-show { color: var(--amber); font-size: .9rem; }

/* CARDS GRID */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.card:hover { border-color: var(--amber-dim); }
.card-img { width: 100%; height: 160px; object-fit: cover; background: var(--bg3); }
.card-img-placeholder { width: 100%; height: 160px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.card-body { padding: 1rem; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.card-meta { font-size: .82rem; color: var(--text-muted); }
.card-genre { display: inline-block; background: var(--amber-glow); color: var(--amber); font-size: .75rem; padding: .15rem .55rem; border-radius: 99px; margin-top: .5rem; }
.card a { color: inherit; }
.card a:hover { text-decoration: none; }

/* SECTION */
.section-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 1.25rem; }
.section-title span { color: var(--amber); }
section { margin-bottom: 3rem; }

/* SONG LIST */
.song-list { display: flex; flex-direction: column; gap: .5rem; }
.song-item { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: .65rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.song-info strong { font-size: .95rem; }
.song-info span { font-size: .82rem; color: var(--text-muted); margin-left: .4rem; }
.song-time { font-size: .78rem; color: var(--text-muted); }

/* FORMS */
.form-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; max-width: 520px; }
.form-group { margin-bottom: 1rem; }
label { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: .35rem; }
input[type=text], input[type=url], input[type=number], textarea, select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border); color: var(--text);
  padding: .55rem .8rem; border-radius: 7px; font-family: var(--font-body); font-size: .93rem;
  transition: border-color .2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--amber); }
textarea { resize: vertical; min-height: 80px; }
.btn { display: inline-block; padding: .55rem 1.4rem; border-radius: 7px; font-size: .9rem; font-weight: 600; cursor: pointer; border: none; font-family: var(--font-display); transition: background .2s; }
.btn-primary { background: var(--amber); color: #000; }
.btn-primary:hover { background: #fbbf24; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--amber); }
.btn-sm { padding: .3rem .75rem; font-size: .8rem; }

/* FLASH */
.flash { padding: .7rem 1rem; border-radius: 7px; margin-bottom: 1.25rem; background: var(--amber-glow); border: 1px solid var(--amber-dim); color: var(--amber); font-size: .9rem; }

/* DJ PROFILE */
.dj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.dj-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.dj-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--bg3); }
.dj-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.dj-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.dj-bio { font-size: .88rem; color: var(--text-muted); }
.dj-socials { display: flex; gap: .75rem; font-size: .82rem; }

/* SCHEDULE */
.schedule-day { margin-bottom: 2rem; }
.schedule-day-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .65rem; padding-bottom: .4rem; border-bottom: 1px solid var(--border); }
.schedule-day.today .schedule-day-title { color: #fff; background: var(--amber-glow); padding: .4rem .75rem; border-radius: 7px 7px 0 0; border-color: var(--amber); }
.slot-list { display: flex; flex-direction: column; gap: .5rem; }
.slot-item { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: .65rem 1rem; display: flex; align-items: center; gap: 1rem; }
.slot-time { font-size: .82rem; color: var(--amber); font-weight: 600; min-width: 110px; }
.slot-show { font-size: .93rem; }
.slot-dj { font-size: .8rem; color: var(--text-muted); }
.no-slots { color: var(--text-muted); font-size: .88rem; padding: .5rem 0; }

/* SHOW DETAIL */
.show-detail-hero { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2.5rem; flex-wrap: wrap; }
.show-detail-img { width: 220px; height: 220px; object-fit: cover; border-radius: var(--radius); background: var(--bg3); flex-shrink: 0; }
.show-detail-img-placeholder { width: 220px; height: 220px; border-radius: var(--radius); background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 4rem; flex-shrink: 0; }
.show-detail-info h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.show-detail-info p { color: var(--text-muted); max-width: 540px; }

/* ADMIN */
.admin-body { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar { width: 210px; background: var(--bg2); border-right: 1px solid var(--border); padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex-shrink: 0; }
.sidebar-brand { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--amber); display: block; margin-bottom: 1rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: .15rem; }
.sidebar-nav a { color: var(--text-muted); padding: .5rem .65rem; border-radius: 7px; font-size: .9rem; transition: background .2s, color .2s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--amber-glow); color: var(--amber); text-decoration: none; }
.sidebar-nav hr { border: none; border-top: 1px solid var(--border); margin: .5rem 0; }
.admin-content { flex: 1; display: flex; flex-direction: column; overflow: auto; }
.admin-header { padding: 1.2rem 2rem; border-bottom: 1px solid var(--border); background: var(--bg2); }
.admin-header h1 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.admin-body-inner { padding: 2rem; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--amber); }
.stat-label { font-size: .82rem; color: var(--text-muted); margin-top: .2rem; }

/* TABLE */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; padding: .6rem .9rem; font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
td { padding: .65rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg3); }

/* STATUS BADGES */
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.badge-pending { background: rgba(251,191,36,.15); color: #fbbf24; }
.badge-played { background: rgba(34,197,94,.15); color: #22c55e; }
.badge-declined { background: rgba(239,68,68,.15); color: #ef4444; }

/* INLINE FORM ROW */
.form-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.form-row .form-group { flex: 1; min-width: 140px; margin-bottom: 0; }

/* MODAL OVERLAY */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; width: 100%; max-width: 480px; }
.modal h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.modal-footer { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.25rem; }

@media (max-width: 640px) {
  .site-nav { flex-direction: column; gap: .75rem; padding: 1rem; }
  .show-detail-hero { flex-direction: column; }
  .admin-sidebar { display: none; }
}
