/* ═══════════════════════════════════════════════════════════════════
   BigTimeFM — Website (Design „Neon Glass")
   Tokens 1:1 aus der App (src/renderer/style.css) übernommen, Layout
   für eine responsive Single-Page-Website. Dunkel (Standard) & Hell.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Design-Tokens ─────────────────────────────────────────────── */
:root {
  --accent:        #ff8a00;
  --accent-soft:   #ffb04d;
  --accent-deep:   #e06c00;
  --accent-grad:   linear-gradient(135deg, #ffa326 0%, #ff7300 100%);
  --on-accent:     #2b1500;

  --bg:            #0b0b0f;
  --bg-layer:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 122, 0, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(255, 122, 0, 0.08), transparent 55%),
    radial-gradient(500px 300px at 50% 50%, rgba(255, 255, 255, 0.02), transparent 70%);
  --surface:        rgba(22, 22, 28, 0.66);
  --surface-strong: rgba(14, 14, 18, 0.92);
  --field:          rgba(8, 8, 12, 0.55);
  --border:         rgba(255, 255, 255, 0.07);
  --border-accent:  rgba(255, 138, 0, 0.42);
  --text:           #f4f4f6;
  --text-muted:     #9a9aa6;
  --ok:             #5ad17c;
  --err:            #ff7a7a;

  --glow:        0 0 8px rgba(255, 138, 0, 0.75), 0 0 24px rgba(255, 138, 0, 0.4), 0 0 48px rgba(255, 138, 0, 0.15);
  --glow-soft:   0 0 14px rgba(255, 138, 0, 0.35);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);

  --glass-blur:      blur(34px) saturate(185%);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 0 0 0.5px rgba(255, 255, 255, 0.05);

  --radius-card: 20px;
  --radius-btn:  12px;
  --radius-field: 10px;

  --discord: #5865f2;
  --header-h: 64px;
  --player-h: 76px;
  --maxw: 1100px;
}

:root[data-theme="light"] {
  --bg:            #f6f2ec;
  --bg-layer:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 122, 0, 0.12), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(255, 150, 40, 0.08), transparent 55%);
  --surface:        rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --field:          rgba(255, 255, 255, 0.85);
  --border:         rgba(25, 20, 35, 0.09);
  --border-accent:  rgba(225, 108, 0, 0.45);
  --text:           #1c1a22;
  --text-muted:     #6e6c78;
  --accent:         #e06c00;
  --accent-soft:    #ff9933;
  --on-accent:      #ffffff;
  --glow:           0 0 10px rgba(255, 138, 0, 0.35), 0 0 28px rgba(255, 138, 0, 0.18);
  --glow-soft:      0 0 12px rgba(255, 138, 0, 0.2);
  --shadow-card:    0 10px 26px rgba(140, 100, 50, 0.14);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    --bg:            #f6f2ec;
    --surface:        rgba(255, 255, 255, 0.74);
    --surface-strong: rgba(255, 255, 255, 0.95);
    --field:          rgba(255, 255, 255, 0.85);
    --border:         rgba(25, 20, 35, 0.09);
    --text:           #1c1a22;
    --text-muted:     #6e6c78;
    --accent:         #e06c00;
    --on-accent:      #ffffff;
    --shadow-card:    0 10px 26px rgba(140, 100, 50, 0.14);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
  }
}

/* ── 2. Basis ─────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-layer);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: var(--player-h);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

.bg-art {
  position: fixed; inset: 0; z-index: -1;
  background: url('assets/background.jpg') center / cover no-repeat;
  opacity: 0.18;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
}
:root[data-theme="light"] .bg-art { opacity: 0.10; }

a { color: inherit; text-decoration: none; }

.glass {
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card), var(--glass-highlight);
}

.muted { color: var(--text-muted); }

.placeholder { color: var(--text-muted); padding: 24px; text-align: center; width: 100%; }

/* ── 3. Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-btn);
  border: 1px solid var(--border); background: var(--field); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--border-accent); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }

.btn-accent {
  background: var(--accent-grad); color: var(--on-accent);
  border-color: transparent; box-shadow: var(--glow-soft);
}
.btn-accent:hover { box-shadow: var(--glow); border-color: transparent; }

.btn-ghost { background: var(--surface); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }

.btn-discord { background: var(--discord); color: #fff; border-color: transparent; }
.btn-discord:hover { box-shadow: 0 0 18px rgba(88, 101, 242, 0.5); border-color: transparent; }

.btn-icon { padding: 9px; }

.ico { width: 20px; height: 20px; flex: none; }

/* ── 4. Header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(16px, 4vw, 32px);
  background: var(--surface-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--glow-soft); }
.brand-name { font-weight: 800; letter-spacing: .5px; font-size: 19px; }
.brand-name em { font-style: normal; color: var(--accent); text-shadow: var(--glow-soft); }
.brand-name.small { font-size: 15px; }

.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a {
  padding: 8px 12px; border-radius: 10px; color: var(--text-muted);
  font-weight: 600; font-size: 14px; transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text); background: var(--field); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Theme-Icons: je nach Theme passendes Symbol zeigen */
.ico-sun { display: none; }
:root[data-theme="light"] .ico-moon { display: none; }
:root[data-theme="light"] .ico-sun { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) .ico-moon { display: none; }
  :root:not([data-theme="dark"]):not([data-theme="light"]) .ico-sun { display: block; }
}

/* ── 5. Hero ──────────────────────────────────────────────────────── */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

.hero { padding: clamp(48px, 9vw, 96px) 0 clamp(36px, 6vw, 64px); }
.hero-inner { max-width: 760px; }
.eyebrow {
  font-weight: 800; letter-spacing: 3px; font-size: 13px; color: var(--text-muted);
  margin-bottom: 14px;
}
.eyebrow em { font-style: normal; color: var(--accent); }
.hero-title { font-size: clamp(34px, 6.5vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -.5px; }
.grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 16px; font-size: clamp(16px, 2.2vw, 19px); color: var(--text-muted); }

.twitch-banner {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(145, 70, 255, 0.14); border: 1px solid rgba(145, 70, 255, 0.5);
  color: var(--text); font-size: 14px;
}
.twitch-banner .dot { width: 9px; height: 9px; border-radius: 50%; background: #9146ff; box-shadow: 0 0 10px #9146ff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.now-card {
  display: flex; align-items: center; gap: 16px; margin-top: 36px;
  padding: 14px; border-radius: var(--radius-card); max-width: 460px;
  background: var(--surface); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border); box-shadow: var(--shadow-card), var(--glass-highlight);
}
.now-cover, .now-cover-ph {
  width: 64px; height: 64px; border-radius: 14px; flex: none;
  object-fit: cover; background: var(--field);
}
.now-cover-ph { display: grid; place-items: center; font-size: 26px; color: var(--text-muted); }
.now-cover[src=""], .now-cover:not([src]) { display: none; }
.now-text { display: flex; flex-direction: column; min-width: 0; }
.now-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.now-title { font-weight: 700; font-size: 17px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-dj { color: var(--text-muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 6. Sektionen ─────────────────────────────────────────────────── */
.section { padding: clamp(28px, 5vw, 48px) 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 3.5vw, 30px); font-weight: 800; letter-spacing: -.3px; }

/* Sendeplan */
.sp-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.sp-day-tab {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--field); color: var(--text-muted); font-weight: 700; font-size: 14px;
  cursor: pointer; white-space: nowrap; flex: none; transition: all .15s;
}
.sp-day-tab:hover { color: var(--text); }
.sp-day-tab.active { background: var(--accent-grad); color: var(--on-accent); border-color: transparent; box-shadow: var(--glow-soft); }
.sp-day-tab small { display: block; font-weight: 500; font-size: 11px; opacity: .8; }

.sp-list { border-radius: var(--radius-card); padding: 8px; margin-top: 14px; }
.sp-item {
  display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 12px;
}
.sp-item + .sp-item { border-top: 1px solid var(--border); }
.sp-item:hover { background: var(--field); }
.sp-item.now { background: rgba(255, 138, 0, 0.10); }
.sp-time { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--accent); min-width: 56px; }
.sp-right { display: flex; flex-direction: column; min-width: 0; }
.sp-show { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-dj { color: var(--text-muted); font-size: 13px; }
.sp-live-badge { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--accent); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.team-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 20px 14px; border-radius: var(--radius-card); cursor: pointer;
  background: var(--surface); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border); box-shadow: var(--shadow-card), var(--glass-highlight);
  transition: transform .15s ease, border-color .2s ease;
}
.team-card:hover { transform: translateY(-3px); border-color: var(--border-accent); }
.team-avatar, .team-avatar-ph {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border-accent); background: var(--field);
}
.team-avatar-ph { display: grid; place-items: center; font-size: 30px; font-weight: 800; color: var(--accent); }
.team-name { font-weight: 700; }
.team-role { font-size: 13px; color: var(--text-muted); }

/* App / Discord */
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.app-card { padding: 26px; border-radius: var(--radius-card); }
.app-card h3 { font-size: 20px; font-weight: 800; }
.app-card p { color: var(--text-muted); margin: 10px 0 20px; }
.app-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.discord-card { display: flex; flex-direction: column; }
.discord-card .btn-discord { margin-top: auto; align-self: flex-start; }

/* ── 7. Footer ────────────────────────────────────────────────────── */
.site-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 32px clamp(16px, 4vw, 32px) 48px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--border); font-size: 14px;
}

/* ── 8. Sticky Player ─────────────────────────────────────────────── */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: var(--player-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 clamp(14px, 4vw, 28px);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border);
}
.player-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-cover, .player-cover-ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--field); }
.player-cover-ph { display: grid; place-items: center; color: var(--text-muted); }
.player-cover[src=""], .player-cover:not([src]) { display: none; }
.player-meta { display: flex; flex-direction: column; min-width: 0; }
.player-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-dj { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.play-btn {
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent-grad); color: var(--on-accent);
  display: grid; place-items: center; box-shadow: var(--glow-soft);
  transition: transform .12s ease, box-shadow .2s ease;
}
.play-btn:hover { transform: scale(1.06); box-shadow: var(--glow); }
.play-btn .ico { width: 26px; height: 26px; }

.player-volume { display: flex; align-items: center; gap: 10px; justify-content: flex-end; color: var(--text-muted); }
.player-volume input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 120px; height: 5px; border-radius: 999px;
  background: var(--field); outline: none; cursor: pointer;
}
.player-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); box-shadow: var(--glow-soft);
}
.player-volume input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border: none; border-radius: 50%; background: var(--accent);
}

/* Play/Pause/Lade-Icon-Umschaltung */
.ico-pause, .ico-load { display: none; }
.is-playing .ico-play { display: none; }
.is-playing .ico-pause { display: block; }
.is-loading .ico-play, .is-loading .ico-pause { display: none; }
.is-loading .ico-load { display: block; animation: spin 1s linear infinite; }
#hero-play.is-loading .hero-play-label::after { content: ' …'; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 9. Modal ─────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(520px, 100%); max-height: 85vh; overflow-y: auto; border-radius: var(--radius-card); padding: 26px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--field); color: var(--text); cursor: pointer; font-size: 14px; }
.tm-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.tm-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-accent); }
.tm-head h3 { font-size: 22px; font-weight: 800; }
.tm-role { color: var(--accent); font-weight: 600; }
.tm-bio { color: var(--text-muted); white-space: pre-line; }
.tm-info { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.tm-info li { display: flex; gap: 10px; font-size: 14px; }
.tm-info .label { color: var(--text-muted); min-width: 100px; }

/* ── 10. Responsive ───────────────────────────────────────────────── */
@media (max-width: 760px) {
  .site-nav { display: none; }
  .app-cards { grid-template-columns: 1fr; }
  .player { grid-template-columns: 1fr auto; }
  .player-volume { display: none; }
  .header-actions .discord-link span { display: none; }
}
@media (max-width: 420px) {
  .now-card { gap: 12px; }
  .hero-cta .btn-lg { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
