/* ========================================================
   PlauderinselRadio Hörercharts - Stylesheet
   Ueberschriften: Quicksand Bold (Adobe Fonts)
   Lesetext und Bedienung: Source Sans 3
   ======================================================== */

/* Gemeinsame lokale Schrift der Plauderinsel-Startseite */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-sans-3/SourceSans3VF-Upright.ttf.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-sans-3/SourceSans3VF-Upright.ttf.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

:root {
  color-scheme: dark;
  --bg: #070f2c;
  --bg-deep: #050b22;
  --panel: rgba(13, 27, 46, 0.88);
  --panel-strong: rgba(16, 33, 54, 0.96);
  --panel-hover: rgba(22, 44, 72, 0.92);
  --line: rgba(179, 205, 229, 0.18);
  --line-strong: rgba(94, 234, 212, 0.42);
  --text: #f7fbff;
  --muted: #b4c6db;
  --soft: #8498b0;
  --cyan: #48d5cc;
  --aqua: #78f0d3;
  --blue: #6aa9ff;
  --amber: #f7c66b;
  --gold: #ffbe3b;
  --rose: #ff8aa8;
  --green: #4ade80;
  --red: #f87171;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
  --font-heading: "quicksand", "Source Sans 3", "Segoe UI", sans-serif;
}

html {
  scrollbar-gutter: stable;
  scrollbar-color: rgba(72, 213, 204, 0.55) rgba(7, 17, 31, 0.9);
  scrollbar-width: thin;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Source Sans 3", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 65% 45% at 50% 0%, rgba(72, 213, 204, 0.15), transparent 70%),
    radial-gradient(ellipse 50% 35% at 90% 25%, rgba(247, 198, 107, 0.09), transparent 60%),
    linear-gradient(135deg, rgba(72, 213, 204, 0.1) 0%, transparent 35%),
    linear-gradient(90deg, #050e1c 0%, #0a152d 52%, #06101f 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 88%);
  z-index: 0;
}

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

button, input, select, textarea {
  font: inherit;
}

/* Charakter fuer die Ueberschriften; Songtitel und UI bleiben in Source Sans 3. */
.charts-hero h1,
.settings-card-head h2,
.charts-info-card h3,
.charts-side-card h4 {
  font-family: var(--font-heading);
}

.charts-page {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 54px;
  z-index: 1;
}

/* ---------------- Topbar ---------------- */
.charts-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(179, 205, 229, 0.12);
}

.charts-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: clamp(22px, 2.5vw, 29px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.charts-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(72, 213, 204, 0.25), rgba(106, 169, 255, 0.2));
  border: 1px solid rgba(72, 213, 204, 0.5);
  font-size: 1rem;
}

.charts-logo span {
  color: var(--cyan);
}

.charts-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.charts-btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  transition: all 0.18s ease;
  cursor: pointer;
}

.charts-btn:hover,
.charts-btn:focus-visible {
  border-color: var(--line-strong);
  background: rgba(72, 213, 204, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.charts-btn-admin {
  border-color: rgba(247, 198, 107, 0.45);
  background: rgba(247, 198, 107, 0.12);
  color: #fff3db;
}

.charts-btn-admin:hover {
  border-color: rgba(247, 198, 107, 0.8);
  background: rgba(247, 198, 107, 0.22);
}

.charts-btn-primary {
  border-color: rgba(72, 213, 204, 0.66);
  background: linear-gradient(90deg, #0f8f8d 0%, #326fd1 100%);
  box-shadow: 0 8px 18px rgba(15, 143, 141, 0.25);
}

/* ---------------- Hero / Inselkopf (kompakt & lebendig) ---------------- */
.charts-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  min-height: 176px;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 76% 55%, rgba(247, 198, 107, 0.16), transparent 42%),
    radial-gradient(ellipse at 40% 100%, rgba(72, 213, 204, 0.16), transparent 65%),
    linear-gradient(135deg, rgba(72, 213, 204, 0.15), rgba(106, 169, 255, 0.07)),
    rgba(13, 27, 46, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.charts-hero::after {
  content: "";
  position: absolute;
  right: clamp(150px, 16vw, 280px);
  top: 50%;
  width: 310px;
  height: 310px;
  background: url("images/charts-musiknote.webp") center / contain no-repeat;
  opacity: 0.24;
  pointer-events: none;
  transform: translateY(-50%) rotate(-10deg);
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}

.charts-hero-copy {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .charts-hero::after {
    right: -35px;
    width: 250px;
    height: 250px;
    opacity: 0.13;
  }
}

.charts-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.charts-kicker {
  color: var(--amber);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.charts-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.charts-hero h1 {
  margin: 4px 0 0;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.charts-hero p {
  max-width: 680px;
  margin: 6px 0 0;
  color: #d6e4f4;
  font-size: 1.02rem;
  line-height: 1.45;
  min-height: 2.9em;
}

.charts-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.charts-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 14px;
  border: 1px solid rgba(72, 213, 204, 0.5);
  border-radius: 8px;
  background: rgba(72, 213, 204, 0.14);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1.4;
}

#chartsUsername { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.charts-user-badge .role-dot { flex-shrink: 0; }

/* Preserve confirmed team layout during revalidation without revealing controls. */
html[data-charts-team-layout="expanded"] #chartsAdminBar[hidden] {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}
html[data-charts-team-layout] #toggleAdminBtn[hidden] {
  display: inline-flex !important;
  visibility: hidden;
  pointer-events: none;
}

.charts-user-badge .role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.charts-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 12px;
  border: 1px solid rgba(247, 198, 107, 0.4);
  border-radius: 6px;
  background: rgba(10, 20, 36, 0.85);
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 800;
}

/* ---------------- Admin-Menü ---------------- */
.charts-admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(247, 198, 107, 0.35);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(38, 28, 12, 0.9) 0%, rgba(16, 28, 48, 0.92) 100%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.charts-admin-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.charts-admin-title span.tag {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(247, 198, 107, 0.22);
  font-size: 0.74rem;
}

.charts-admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.charts-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 11px;
  border: 1px solid rgba(247, 198, 107, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #faeed4;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.15s ease;
  cursor: pointer;
}

.charts-admin-btn:hover {
  border-color: rgba(247, 198, 107, 0.75);
  background: rgba(247, 198, 107, 0.2);
  color: #ffffff;
}

.charts-admin-btn.is-current {
  border-color: var(--amber);
  background: rgba(247, 198, 107, 0.25);
  color: #ffffff;
}

.charts-admin-btn:disabled { opacity: .5; cursor: default; }

/* ---------------- Einstellungen & Fragekatalog Unterseite ---------------- */
.settings-header {
  margin-bottom: 24px;
}

.settings-intro-card {
  padding: 16px 20px;
  border: 1px solid rgba(72, 213, 204, 0.3);
  border-radius: 10px;
  background: rgba(13, 27, 46, 0.7);
  color: #d6e4f4;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.settings-intro-card strong {
  color: var(--cyan);
}

.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.settings-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease;
}

.settings-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(179, 205, 229, 0.12);
}

.settings-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(247, 198, 107, 0.18);
  border: 1px solid rgba(247, 198, 107, 0.5);
  color: var(--amber);
  font-size: 0.95rem;
  font-weight: 900;
}

.settings-card-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.settings-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-decision {
  background: rgba(247, 198, 107, 0.18);
  border: 1px solid rgba(247, 198, 107, 0.45);
  color: var(--amber);
}

.status-recommend {
  background: rgba(74, 222, 128, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #86efac;
}

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

.option-box {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 20, 36, 0.65);
  transition: all 0.18s ease;
  cursor: pointer;
}

.option-box:hover {
  border-color: rgba(72, 213, 204, 0.45);
  background: rgba(16, 32, 58, 0.75);
}

.option-box.is-selected {
  border-color: var(--cyan);
  background: rgba(72, 213, 204, 0.1);
  box-shadow: 0 0 16px rgba(72, 213, 204, 0.15);
}

.option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.option-header strong {
  font-size: 1rem;
  color: #ffffff;
}

.option-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
}

.option-badge-rec {
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.option-badge-alt {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.option-description {
  margin: 0 0 12px;
  color: #c4d4e8;
  font-size: 0.88rem;
  line-height: 1.45;
  flex: 1;
}

.pros-cons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(179, 205, 229, 0.15);
  font-size: 0.8rem;
}

.pro-item {
  color: #86efac;
}

.con-item {
  color: #fca5a5;
}

.settings-note-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(247, 198, 107, 0.08);
  border: 1px solid rgba(247, 198, 107, 0.25);
  font-size: 0.86rem;
  color: #faeed4;
  line-height: 1.45;
}

.settings-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding: 16px 20px;
  border: 1px solid rgba(72, 213, 204, 0.45);
  border-radius: 10px;
  background: rgba(13, 27, 46, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ---------------- 2-Spalten Layout (Charts links, Werbung rechts) ---------------- */
.charts-layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.charts-main-content {
  min-width: 0;
}

/* ---------------- Tabs / Filterleiste ---------------- */
.charts-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(179, 205, 229, 0.14);
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.charts-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  transition: all 0.16s ease;
}

.charts-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.charts-tab.is-active {
  color: var(--cyan);
  border-color: rgba(72, 213, 204, 0.4);
  background: rgba(72, 213, 204, 0.12);
}

.charts-tab .count-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--text);
}

.charts-tab.is-active .count-badge {
  background: rgba(72, 213, 204, 0.25);
  color: var(--cyan);
}

/* ---------------- Chart-Liste (Gerüst & Zeilen) ---------------- */
.charts-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.charts-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 190, 59, 0.2), rgba(247, 198, 107, 0.08));
  border: 1px solid rgba(255, 190, 59, 0.4);
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.charts-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.chart-row {
  display: grid;
  grid-template-columns: 52px 34px 50px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: all 0.16s ease;
}

.chart-row:hover {
  border-color: rgba(94, 234, 212, 0.45);
  background: var(--panel-hover);
  transform: translateX(2px);
}

/* Platz-Zahl */
.chart-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(10, 20, 36, 0.8);
  border: 1px solid rgba(179, 205, 229, 0.15);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

/* Gold für Platz 1 */
.chart-row.is-top1 {
  border-color: rgba(247, 198, 107, 0.55);
  background: linear-gradient(90deg, rgba(247, 198, 107, 0.14) 0%, rgba(13, 27, 46, 0.92) 55%);
  box-shadow: 0 8px 24px rgba(247, 198, 107, 0.12);
}

.chart-row.is-top1 .chart-rank {
  border-color: rgba(247, 198, 107, 0.85);
  background: linear-gradient(135deg, rgba(247, 198, 107, 0.35), rgba(255, 190, 59, 0.15));
  color: #fff1c2;
  box-shadow: 0 0 14px rgba(247, 198, 107, 0.3);
}

/* Silber für Platz 2 */
.chart-row.is-top2 .chart-rank {
  border-color: rgba(220, 230, 242, 0.65);
  background: rgba(200, 215, 235, 0.18);
  color: #f1f5f9;
}

/* Bronze für Platz 3 */
.chart-row.is-top3 .chart-rank {
  border-color: rgba(217, 148, 98, 0.65);
  background: rgba(217, 148, 98, 0.18);
  color: #fcd5b8;
}

/* Tendenz Pfeile / Symbole */
.chart-trend {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.trend-up {
  color: var(--green);
  font-size: 0.92rem;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.trend-down {
  color: var(--red);
  font-size: 0.92rem;
  text-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

.trend-same {
  color: #9cb3c9;
  font-size: 0.95rem;
  font-weight: 700;
}

.trend-new {
  color: #ffd27d;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(247, 198, 107, 0.12);
  border: 1px solid rgba(247, 198, 107, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Kronen und Musiknote */
.chart-cover-badge {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  user-select: none;
}

/* Song Infos */
.chart-song-info {
  min-width: 0;
}

.chart-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.chart-artist {
  margin: 3px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Statistiken */
.chart-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(10, 20, 36, 0.5);
  font-size: 0.78rem;
  color: var(--soft);
  white-space: nowrap;
}

.chart-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-stat-item strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

/* Punkte Badge in Top 20 */
.chart-points {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 7px;
  background: rgba(10, 20, 36, 0.65);
  border: 1px solid rgba(72, 213, 204, 0.3);
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.chart-points strong {
  color: #ffffff;
  font-weight: 900;
  font-size: 0.98rem;
}

.chart-row.is-top1 .chart-points {
  border-color: rgba(247, 198, 107, 0.45);
  color: #f7c66b;
}

.chart-row.is-top1 .chart-points strong {
  color: #fff1c2;
}

.chart-row.is-top2 .chart-points {
  border-color: rgba(220, 230, 242, 0.45);
  color: #e2e8f0;
}

.chart-row.is-top3 .chart-points {
  border-color: rgba(217, 148, 98, 0.45);
  color: #fcd5b8;
}

/* Voten Button */
.chart-vote-action {
  display: flex;
  align-items: center;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 15px;
  border: 1px solid rgba(72, 213, 204, 0.45);
  border-radius: 7px;
  background: rgba(72, 213, 204, 0.12);
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.vote-btn:hover {
  border-color: rgba(72, 213, 204, 0.85);
  background: rgba(72, 213, 204, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(72, 213, 204, 0.25);
}

/* ---------------- Rechte Werbespalte (Sidebar) ---------------- */
.charts-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 16px;
}

.charts-ad-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 27, 46, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ad-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.charts-banner-bottom {
  margin-top: 20px;
  width: 100%;
}

.charts-banner-bottom-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 90px;
}

.charts-banner-bottom-slot .adsbygoogle {
  display: block;
  width: 100%;
  max-width: 728px;
  max-height: 120px;
  margin: 0 auto;
  text-align: center;
}

.charts-banner-bottom:has(.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}

.ad-slot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  width: 100%;
  border: 2px dashed rgba(179, 205, 229, 0.25);
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 10px, transparent 10px 20px),
    rgba(8, 17, 31, 0.7);
  text-align: center;
  padding: 18px;
}

.ad-slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ad-slot-icon {
  font-size: 2.2rem;
  margin-bottom: 2px;
}

.ad-slot-inner strong {
  color: var(--cyan);
  font-size: 0.98rem;
  font-weight: 800;
}

.ad-slot-inner small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.charts-side-card {
  padding: 16px;
  border: 1px solid rgba(247, 198, 107, 0.3);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(247, 198, 107, 0.09) 0%, rgba(13, 27, 46, 0.9) 65%);
}

.side-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(247, 198, 107, 0.18);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.charts-side-card h4 {
  margin: 8px 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.charts-side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* ---------------- Info & Regelkarten ---------------- */
.charts-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.charts-info-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.charts-info-card h3 {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 1.08rem;
  font-weight: 700;
}

.charts-info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* ---------------- Footer ---------------- */
.charts-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(179, 205, 229, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--soft);
}

.charts-footer a:hover {
  color: var(--cyan);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1040px) {
  .charts-layout-2col {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
  }

  .chart-stats {
    gap: 8px;
    padding: 3px 6px;
    font-size: 0.72rem;
  }

  .chart-stat-item strong {
    font-size: 0.82rem;
  }

  .ad-slot-placeholder {
    min-height: 420px;
  }
}

@media (max-width: 860px) {
  .chart-stats {
    display: none; /* Auf kleineren Tablets Platz für den Titel lassen */
  }

  .chart-row {
    grid-template-columns: 46px 28px 42px minmax(0, 1fr) auto auto;
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .charts-layout-2col {
    grid-template-columns: 1fr;
  }

  .charts-sidebar {
    position: static;
    margin-top: 16px;
  }

  .charts-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .charts-logo {
    align-self: flex-start;
  }

  .charts-nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .charts-btn {
    width: 100%;
    min-height: 34px;
    padding: 5px 8px;
    font-size: 0.82rem;
  }

  .charts-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
  }

  .charts-hero-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .charts-admin-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-row {
    grid-template-columns: 38px 24px 36px minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 8px 10px;
  }

  .chart-points {
    padding: 3px 8px;
    font-size: 0.8rem;
    gap: 3px;
  }

  .chart-rank {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .chart-cover-badge {
    width: 36px;
    height: 36px;
  }

  .chart-title {
    font-size: 0.96rem;
  }

  .chart-artist {
    font-size: 0.8rem;
  }

  .vote-btn {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 0.82rem;
  }

  .charts-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .chart-points .chart-points-unit {
    display: none;
  }
  .chart-points {
    padding: 2px 6px;
    font-size: 0.78rem;
  }
}
