/* =====================================================================
   Jazz Lounge – Stylesheet
   Farben hier oben anpassen (Orange aus dem Logo).
   ===================================================================== */
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #16171b;
  --bg-2: #1b1c21;
  --surface: #212329;
  --surface-2: #2a2d34;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eeebe5;
  --muted: #a19d95;
  --faint: #6f6c66;
  --accent: #f08a24;
  --accent-2: #ffa24a;
  --accent-deep: #b9560f;
  --accent-soft: rgba(240, 138, 36, .12);
  --danger: #e5484d;
  --ok: #4cc38a;

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1200px;
  --player-h: 76px;
  --header-h: 72px;
  --display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  padding-bottom: var(--player-h);
}
body.admin { padding-bottom: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.12; font-weight: 700; font-family: var(--display); letter-spacing: -.015em; }
h1, h2, .h2 { font-weight: 800; letter-spacing: -.03em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2, .h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3, .h3 { font-size: 1.15rem; font-weight: 600; }
.h4 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section-tight { padding: 8px 0 72px; }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.more { color: var(--accent); font-weight: 600; font-size: .9rem; }
.empty { color: var(--muted); padding: 32px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--sans); cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
  color: var(--text); background: var(--surface-2); white-space: nowrap;
}
.btn svg { fill: currentColor; stroke: none; width: 1.05em; height: 1.05em; }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: #1a1208; }
.btn-accent:hover { background: var(--accent-2); color: #1a1208; }
.btn-outline { background: transparent; border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(229, 72, 77, .35); }
.btn-danger:hover { background: rgba(229, 72, 77, .12); color: var(--danger); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: .15s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; }

.badge {
  display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--accent); color: #1a1208;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle;
}
.badge-sm { padding: 3px 8px; font-size: .62rem; margin-left: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(240, 138, 36, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 138, 36, .55); } 70% { box-shadow: 0 0 0 8px rgba(240, 138, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 138, 36, 0); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(22, 23, 27, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--muted); font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: .15s;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a.active { color: var(--text); background: var(--surface-2); }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; padding: 10px; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Flash ---------- */
.flashes { padding-top: 20px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: .95rem; border: 1px solid var(--line); background: var(--surface); }
.flash-ok { border-color: rgba(76, 195, 138, .35); background: rgba(76, 195, 138, .1); }
.flash-error { border-color: rgba(229, 72, 77, .35); background: rgba(229, 72, 77, .1); }
.flash-info { border-color: rgba(240, 138, 36, .3); background: var(--accent-soft); }

/* ---------- Hero / On Air ---------- */
.hero { padding-top: 40px; }
.now-song {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 14px 14px 14px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.now-song-art, .player-art {
  width: 64px; height: 64px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--accent-deep), #3a2412) center/cover no-repeat;
  position: relative; overflow: hidden;
}
.now-song-art:not(.has-art)::after, .player-art:not(.has-art)::after {
  content: "♪"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.75); font-size: 1.5rem;
}
.now-song-meta { flex: 1; min-width: 0; }
.now-song-meta .eyebrow { margin-bottom: 4px; }
.now-song-title { font-family: var(--display); letter-spacing: -.015em; font-size: 1.25rem; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-song-artist { color: var(--muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.show-hero {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 4px);
  min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--line); isolation: isolate;
}
.show-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(240, 138, 36, .35), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(185, 86, 15, .35), transparent 60%),
    linear-gradient(160deg, #2a2019 0%, #1c1b1f 60%);
}
.show-hero:not(.has-image) .show-hero-bg::after {
  /* dezente Schallplatten-Rillen als Deko, wenn kein Bild gesetzt ist */
  content: ""; position: absolute; right: -140px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.045) 0 1px, transparent 1px 7px);
  mask: radial-gradient(circle, transparent 17%, #000 18%, #000 70%, transparent 71%);
  -webkit-mask: radial-gradient(circle, transparent 17%, #000 18%, #000 70%, transparent 71%);
}
.show-hero.has-image .show-hero-bg {
  background: var(--show-image) center/cover no-repeat;
}
.show-hero.has-image .show-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(16, 16, 19, .94) 0%, rgba(16, 16, 19, .55) 45%, rgba(16, 16, 19, .1) 100%),
              linear-gradient(90deg, rgba(16, 16, 19, .6), transparent 70%);
}
.show-hero-content { padding: 48px; max-width: 760px; }
.show-hero-title { font-size: clamp(2.6rem, 7vw, 5rem); margin: 16px 0 8px; letter-spacing: -.04em; line-height: 1.02; }
.show-hero-time { font-size: 1.1rem; font-weight: 600; color: var(--accent-2); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.show-hero-desc { color: rgba(238, 235, 229, .82); font-size: 1.1rem; max-width: 55ch; margin: 0; }
.show-hero-next {
  position: absolute; right: 24px; top: 24px;
  display: flex; flex-direction: column; gap: 2px; text-align: right;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(22, 23, 27, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line);
}
.show-hero-next .eyebrow { margin: 0; color: var(--muted); justify-content: flex-end; }
.show-hero-next span:last-child { color: var(--muted); font-size: .9rem; }

/* ---------- Section head / Carousel ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-note { color: var(--faint); font-size: .85rem; margin: 0; }
.carousel-controls { display: flex; gap: 8px; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }

.post-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: var(--line-2); transform: translateY(-2px); color: var(--text); }
.post-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.img-fallback { width: 100%; height: 100%; background: radial-gradient(400px 200px at 80% 0%, rgba(240,138,36,.35), transparent 60%), linear-gradient(160deg, #2a2019, #1c1b1f); }
.post-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-body time { font-size: .8rem; color: var(--faint); margin-bottom: 6px; }
.post-card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.post-card-body p { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-body .more { margin-top: auto; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Sendeplan ---------- */
.tabs {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 24px;
}
.tab {
  position: relative; background: none; border: 0; color: var(--muted); cursor: pointer;
  font: 500 .95rem/1 var(--sans); padding: 12px 8px; border-radius: 999px; transition: .15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--accent); color: #1a1208; font-weight: 600; }
.tab small { font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.tab-short { display: none; }
.day-panel { display: none; }
.day-panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.schedule { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.slot {
  display: grid; grid-template-columns: 110px 64px 1fr; align-items: center; gap: 20px;
  padding: 14px 20px 14px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s;
}
.slot:hover { border-color: var(--line-2); }
.slot.past { opacity: .55; }
.slot.live { border-color: rgba(240, 138, 36, .55); background: linear-gradient(90deg, var(--accent-soft), var(--surface) 55%); }
.slot-time { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.slot-time strong { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.slot-time span { color: var(--faint); font-size: .85rem; }
.slot-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); font-size: 1.3rem; }
.slot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slot-info h3 { margin: 0 0 2px; }
.slot-info p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Teaser ---------- */
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.teaser {
  display: block; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s;
}
.teaser:hover { border-color: rgba(240, 138, 36, .45); color: var(--text); }
.teaser h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.teaser p { color: var(--muted); }

/* ---------- Unterseiten ---------- */
.page-head { padding: 64px 0 32px; }
.page-head h1 { margin-bottom: 12px; }
.error-page { padding: 120px 0; }
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: .9rem; }

.article { padding-top: 48px; }
.article h1 { margin-bottom: 16px; }
.article-image { margin: 36px auto; }
.article-image img { width: 100%; max-height: 620px; object-fit: cover; border-radius: calc(var(--radius) + 4px); }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Playlist ---------- */
.date-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 20px;
  scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; scroll-snap-type: x proximity;
}
.date-pill {
  flex: none; scroll-snap-align: start; min-width: 84px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); transition: .15s;
}
.date-pill small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.date-pill strong { color: var(--text); font-variant-numeric: tabular-nums; }
.date-pill:hover { border-color: var(--line-2); color: var(--text); }
.date-pill.active { background: var(--accent); border-color: var(--accent); color: #3a2208; }
.date-pill.active strong { color: #1a1208; }

.history-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.history-heading { font-size: 1.15rem; font-weight: 700; margin: 0; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 40px !important; width: 300px; max-width: 100%; border-radius: 999px !important; }
.history { min-height: 200px; transition: opacity .2s; }
.history.loading { opacity: .4; }
.history-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.track { display: grid; grid-template-columns: 64px 44px 1fr; align-items: center; gap: 16px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.track:last-child { border-bottom: 0; }
.track:hover { background: rgba(255, 255, 255, .02); }
.track time { color: var(--accent-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.track-art { width: 44px; height: 44px; border-radius: 7px; overflow: hidden; background: var(--surface-2); }
.track-art img { width: 100%; height: 100%; object-fit: cover; }
.track-meta { min-width: 0; display: flex; flex-direction: column; }
.track-meta strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-meta span { color: var(--muted); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Formulare ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.card-soft { background: linear-gradient(160deg, rgba(240,138,36,.1), var(--surface) 60%); }
.form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 18px; color: var(--text); }
.form label > input:not([type=checkbox]), .form label > textarea, .form label > select { display: block; margin-top: 6px; }
.form label > small { display: block; margin-top: 6px; }
.form .opt { color: var(--faint); font-weight: 400; }
input:not([type=checkbox]):not([type=file]), textarea, select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: 400 1rem/1.4 var(--sans); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 90px; }
input[type=file] { color: var(--muted); font-size: .9rem; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; font: 600 .85rem var(--sans); }
.form label.check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.contact-info h2 { font-size: 1.6rem; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.info-list span { white-space: pre-line; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 24px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; padding-top: 40px; padding-bottom: 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { margin: 0; color: var(--muted); font-size: .9rem; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: var(--muted); font-size: .9rem; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { grid-column: 1 / -1; margin: 0; color: var(--faint); font-size: .8rem; }

/* ---------- Sticky Player ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--player-h);
  background: rgba(27, 28, 33, .92); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line-2);
}
.player-inner { display: flex; align-items: center; gap: 16px; height: 100%; }
.player-play {
  width: 50px; height: 50px; border-radius: 50%; border: 0; flex: none; cursor: pointer;
  background: var(--accent); color: #1a1208; display: grid; place-items: center; transition: transform .15s, background .15s;
  box-shadow: 0 6px 18px rgba(240, 138, 36, .3);
}
.player-play:hover { background: var(--accent-2); transform: scale(1.05); }
.player-play svg { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.player-art { width: 48px; height: 48px; border-radius: 8px; }
.player-art::after { font-size: 1.1rem !important; }
.player-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.player-label { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.player-label .live-dot { width: 6px; height: 6px; }
.player-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-show { display: flex; flex-direction: column; line-height: 1.3; padding: 0 20px; border-left: 1px solid var(--line); max-width: 260px; }
.player-show span:last-child { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Admin ---------- */
.admin-header { border-bottom: 1px solid var(--line); background: var(--bg-2); height: 64px; }
.admin-header .logo img { height: 32px; }
.admin-tag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(240,138,36,.4); padding: 3px 8px; border-radius: 999px; }
.admin-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.admin-nav a { color: var(--muted); padding: 7px 12px; border-radius: 999px; font-size: .9rem; }
.admin-nav a:hover { color: var(--text); background: var(--surface); }
.admin-nav a.active { color: var(--text); background: var(--surface-2); }
.admin-main { padding: 40px 0 80px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.admin-head p { margin: 4px 0 0; max-width: 70ch; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-thumb { width: 88px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--surface-2); flex: none; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-row-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row-actions, .row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-row-actions form, .row-actions form { margin: 0; }
.status { font-size: .8rem; color: var(--faint); }
.status-on { color: var(--ok); }
.post-form { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.post-form .card { margin: 0 0 20px; }
.img-preview { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.post-form-side input[type=file] { margin-bottom: 6px; }
.post-form-side .check { margin-top: 14px; }
.login-box { max-width: 400px; margin: 10vh auto 0; text-align: center; }
.login-box img { margin: 0 auto 16px; height: 44px; width: auto; }
.login-box .form { text-align: left; margin-top: 20px; }
.login-box .btn { width: 100%; }
.show-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.show-admin { margin: 0; padding: 18px; display: flex; flex-direction: column; }
.show-admin-img { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--surface-2); margin-bottom: 14px; display: grid; place-items: center; }
.show-admin-img img { width: 100%; height: 100%; object-fit: cover; }
.show-admin h2 { margin-bottom: 2px; }
.show-admin input[type=file] { margin: 8px 0 14px; }
.show-admin label { margin-bottom: 14px; }
.show-admin .row-actions { margin-top: auto; }
.msg-list .msg header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; }
.msg-unread { border-left: 3px solid var(--accent); }
.msg-body { white-space: pre-wrap; margin: 0; color: var(--text); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 500; }
.code { background: var(--bg-2); padding: 16px; border-radius: 8px; overflow: auto; max-height: 520px; font-size: .8rem; line-height: 1.5; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .carousel { grid-auto-columns: calc((100% - 20px) / 2); }
  .player-show { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px 16px 20px;
    background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav-open .main-nav { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 12px; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .nav-toggle { display: block; margin-left: 0; }
  .header-listen { margin-left: auto; }
  .tab-long { display: none; }
  .tab-short { display: inline; }
  .tab small { display: none; }
  .tab.active::after { content: ""; }
  .contact-grid, .teaser-grid, .post-form { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .show-hero { min-height: 400px; }
  .show-hero-content { padding: 28px; }
  .show-hero-next { position: static; margin: 0 28px 28px; text-align: left; align-self: flex-start; }
  .show-hero-next .eyebrow { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .admin-header { height: auto; padding: 12px 0; }
  .admin-header .header-inner { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 600px) {
  :root { --player-h: 68px; }
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .section-tight { padding: 4px 0 52px; }
  .hero { padding-top: 20px; }
  .header-listen { display: none; }
  .nav-toggle { margin-left: auto; }
  .now-song { flex-wrap: wrap; gap: 14px; }
  .now-song-art { width: 52px; height: 52px; }
  .now-song .btn { width: 100%; }
  .carousel { grid-auto-columns: 86%; gap: 14px; }
  .carousel-controls { display: none; }
  .tabs { border-radius: var(--radius); gap: 2px; padding: 4px; }
  .tab { padding: 11px 0; font-size: .9rem; }
  .slot { grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 16px; }
  .slot-thumb { display: none; }
  .slot-time strong { font-size: 1.1rem; }
  .track { grid-template-columns: 50px 1fr; padding: 10px 14px; gap: 12px; }
  .track-art { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 20px; }
  .post-grid { grid-template-columns: 1fr; }
  .search, .search input { width: 100%; }
  .player-inner { gap: 12px; }
  .player-open { display: none; }
  .player-art { display: none; }
  .player-play { width: 46px; height: 46px; }
  .admin-row { flex-wrap: wrap; }
  .admin-row-actions { width: 100%; }
}
