/* =========================================================================
   FinalCraft Staffel 4 – Design "Next Chapter"
   Wird NACH style.css und live.css geladen und legt das Staffel-4-Design darüber.
   Alle Regeln hängen an .theme-s4 (Body-Klasse), Funktionen bleiben unverändert.
   ========================================================================= */

/* Überschriften & Zahlen: Chakra Petch (Foundry: Cadson Demak).
   Auch unter den alten Namen 'Orbitron' / 'Space Grotesk' hinterlegt, weil einzelne Seiten diese direkt im Inline-Style nutzen. */
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(https://fonts.gstatic.com/s/chakrapetch/v13/cIflMapbsEk7TDLdtEz1BwkebIl1R5_F.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url(https://fonts.gstatic.com/s/chakrapetch/v13/cIflMapbsEk7TDLdtEz1BwkeQI51R5_F.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(https://fonts.gstatic.com/s/chakrapetch/v13/cIflMapbsEk7TDLdtEz1BwkeJI91R5_F.woff2) format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(https://fonts.gstatic.com/s/chakrapetch/v13/cIflMapbsEk7TDLdtEz1BwkebIl1R5_F.woff2) format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 600; font-display: swap; src: url(https://fonts.gstatic.com/s/chakrapetch/v13/cIflMapbsEk7TDLdtEz1BwkeQI51R5_F.woff2) format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(https://fonts.gstatic.com/s/chakrapetch/v13/cIflMapbsEk7TDLdtEz1BwkeJI91R5_F.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(https://fonts.gstatic.com/s/chakrapetch/v13/cIflMapbsEk7TDLdtEz1BwkebIl1R5_F.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(https://fonts.gstatic.com/s/chakrapetch/v13/cIflMapbsEk7TDLdtEz1BwkeQI51R5_F.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(https://fonts.gstatic.com/s/chakrapetch/v13/cIflMapbsEk7TDLdtEz1BwkeJI91R5_F.woff2) format('woff2'); }

/* ---------- Design-Tokens ---------- */
.theme-s4 {
    --s4-bg: #07080c;
    --s4-bg-raised: #0d0f15;
    --s4-surface: rgba(255, 255, 255, 0.035);
    --s4-surface-hover: rgba(255, 255, 255, 0.06);
    --s4-line: rgba(255, 255, 255, 0.08);
    --s4-line-strong: rgba(255, 255, 255, 0.14);
    --s4-accent: #ffc83d;
    --s4-accent-2: #ff8a3d;
    --s4-grad: linear-gradient(135deg, #ffd866 0%, #ffb23d 45%, #ff8a3d 100%);
    --s4-glow: none;
    --s4-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --s4-radius: 18px;
    /* Fließtext: System-Schrift des Geräts, Überschriften: Chakra Petch */
    --s4-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --s4-font-display: 'Chakra Petch', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --s4-radius-sm: 12px;

    /* Bestehende Variablen auf die neue Palette umlenken (wirken auch in allen Inline-Styles der Seiten) */
    --dark-primary: var(--s4-bg);
    --dark-secondary: #11131a;
    --cyan-neon: var(--s4-accent);
    --cyan-deep: #b86b1f;
    --cyan-bright: #ffe08a;
    --border-color: rgba(255, 200, 61, 0.22);
    --text-foreground: #f4f5f7;
    --text-muted-foreground: #d8dae0; /* heller für besseren Kontrast auf Dunkel */
    --green-status: #4ade80;
    --red-eliminated: #f87171;
    --red-destructive: #b91c1c;
    --online-green: #4ade80;
    --live-red: #ef4444;
    --gold: #ffc83d;
}

/* ---------- Grundlayout & Hintergrund ---------- */
.theme-s4 {
    background:
        radial-gradient(1100px 520px at 50% -8%, rgba(255, 184, 61, 0.13), transparent 62%),
        radial-gradient(700px 420px at -10% 30%, rgba(255, 138, 61, 0.06), transparent 60%),
        var(--s4-bg);
    background-attachment: fixed;
    font-family: var(--s4-font-body);
}
/* Statt des unscharfen Hintergrundbilds: feines Block-Raster, das nach unten ausblendet */
.theme-s4::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center top;
    filter: none;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.theme-s4 ::selection { background: rgba(255, 200, 61, 0.35); color: #fff; }
.theme-s4 .page-content { padding-top: 6.5rem; }

/* ---------- Typografie ---------- */
.theme-s4 .section-title {
    font-family: var(--s4-font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
@media (min-width: 768px) { .theme-s4 .section-title { font-size: 3rem; } }
.theme-s4 .text-purple-neon-color {
    color: var(--s4-accent);
    text-shadow: none;
}
.theme-s4 .description-text { color: var(--text-muted-foreground); line-height: 1.7; }
.theme-s4 .text-block-paragraph { color: var(--text-muted-foreground); line-height: 1.7; }
.theme-s4 .text-block-title { font-family: var(--s4-font-display); letter-spacing: 0; }
.theme-s4 a { text-underline-offset: 3px; }

/* ---------- Navigation ---------- */
.theme-s4 .navbar {
    top: 0.75rem;
    width: min(1200px, calc(100% - 1.5rem));
    box-sizing: border-box; /* Padding zählt zur Breite, sonst ragt die Leiste bei mittleren Breiten über den Rand */
    padding: 0.5rem 0.6rem 0.5rem 1rem;
    background: #0c0d13;
    border: 1px solid var(--s4-line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
/* Logo links, Links mittig: drei Spalten, die rechte bleibt frei */
.theme-s4 .navbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 0; }

/* Logo links (war bisher ausgeblendet) */
.theme-s4 .navbar .navbar-brand { display: flex !important; align-items: center; flex-shrink: 0; }
.theme-s4 .navbar a.navbar-logo-link {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.25rem 0.25rem; border: none; background: none; box-shadow: none; text-shadow: none; transform: none;
    text-transform: none; letter-spacing: normal;
}
.theme-s4 .navbar a.navbar-logo-link:hover { background: none; box-shadow: none; transform: none; }
.theme-s4 .navbar-logo-icon-wrapper {
    width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)) 6px 6px / 7px 7px no-repeat,
        linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)) 13px 13px / 7px 7px no-repeat,
        var(--s4-grad);
}
.theme-s4 .navbar-title {
    margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: 0;
    color: var(--text-foreground); animation: none; text-shadow: none;
}
/* "4" als normaler Text in derselben Schrift, in Gold wie "Craft" */
.theme-s4 .navbar-season {
    margin-left: 0.3rem;
    color: var(--s4-accent);
}

/* Links: minimal, nur Text - goldene Verlaufslinie darunter (aktiv: voll, Hover: wächst aus der Mitte) */
.theme-s4 .navbar-nav { gap: 0.25rem; flex-wrap: nowrap; }
.theme-s4 .navbar .navbar-nav a,
.theme-s4 .navbar .navbar-nav a[href*="ranking"],
.theme-s4 .navbar .navbar-nav a[href*="clips"] {
    font-family: var(--s4-font-body);
    font-size: 0.9rem; font-weight: 500;
    text-transform: none; letter-spacing: 0;
    color: var(--text-muted-foreground);
    padding: 0.55rem 0.85rem; margin: 0;
    border: none; border-radius: 0;
    background: transparent; box-shadow: none; text-shadow: none; transform: none;
    transition: color 0.25s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.theme-s4 .navbar .navbar-nav a::after {
    content: '';
    position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem;
    height: 2px; border-radius: 2px;
    background: var(--s4-grad);
    transform: scaleX(0); transform-origin: center;
    opacity: 0.7;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, box-shadow 0.25s ease;
}
.theme-s4 .navbar .navbar-nav a:hover,
.theme-s4 .navbar .navbar-nav a:focus-visible {
    color: var(--text-foreground);
    background: transparent; box-shadow: none; text-shadow: none; transform: none; outline: none;
}
.theme-s4 .navbar .navbar-nav a:hover::after,
.theme-s4 .navbar .navbar-nav a:focus-visible::after {
    transform: scaleX(0.55);
}
.theme-s4 .navbar .navbar-nav a.active {
    color: var(--text-foreground);
    background: transparent; box-shadow: none; text-shadow: none; transform: none;
}
.theme-s4 .navbar .navbar-nav a.active::after {
    transform: scaleX(1); opacity: 1;
}
.theme-s4 .navbar .navbar-nav a.active:hover::after { transform: scaleX(1); }
/* Klick: Link federt kurz ein, Linie schießt auf volle Breite und leuchtet auf */
.theme-s4 .navbar .navbar-nav a:active { transform: scale(0.95); color: var(--s4-accent); }
.theme-s4 .navbar .navbar-nav a:active::after {
    transform: scaleX(1); opacity: 1;
    transition-duration: 0.12s;
}
/* Kleiner grüner Punkt am Ranking: hier gibt es Live-Daten */
.theme-s4 .navbar .navbar-nav a[href*="ranking"]::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; margin-right: 0.45rem;
    background: var(--online-green);
}

/* Mittlere Breiten: Logo ausblenden, damit alle Links in eine Zeile passen */
@media (max-width: 1100px) {
    .theme-s4 .navbar .navbar-brand { display: none !important; }
    .theme-s4 .navbar-inner { display: flex; justify-content: center; }
    .theme-s4 .navbar-nav { padding: 0; }
}
@media (max-width: 768px) {
    .theme-s4 .navbar { top: 0; width: 100%; border-radius: 0 0 16px 16px; border-top: none; padding: 0.6rem 0.5rem; }
    .theme-s4 .navbar-inner { gap: 0.4rem; }
    .theme-s4 .navbar-nav { flex-wrap: wrap; justify-content: center; gap: 0.2rem; }
    .theme-s4 .navbar .navbar-nav a,
    .theme-s4 .navbar .navbar-nav a[href*="ranking"],
    .theme-s4 .navbar .navbar-nav a[href*="clips"] { font-size: 0.82rem; padding: 0.45rem 0.6rem; }
    .theme-s4 .navbar .navbar-nav a::after { left: 0.6rem; right: 0.6rem; bottom: 0.1rem; }
    .theme-s4 .page-content { padding-top: 7rem; }
}

/* ---------- Buttons ---------- */
.theme-s4 .btn {
    font-family: var(--s4-font-body); font-weight: 600; letter-spacing: 0;
    border-radius: var(--s4-radius-sm); padding: 0.85rem 1.6rem;
}
.theme-s4 .btn-primary {
    background: var(--s4-grad);
    color: #1a1205;
    border: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.theme-s4 .btn-primary::before { display: none; }
.theme-s4 .btn-primary:hover {
    background: var(--s4-grad);
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.theme-s4 .btn-outline {
    border: 1px solid var(--s4-line-strong);
    color: var(--text-foreground);
    background: var(--s4-surface);
}
.theme-s4 .btn-outline:hover {
    background: var(--s4-surface-hover);
    border-color: var(--border-color);
    color: var(--text-foreground);
    transform: translateY(-2px);
}
/* FinalRaid: kein Lila mehr, ruhiger Sekundär-Button */
.theme-s4 .btn-twitch-purple {
    border-radius: var(--s4-radius-sm);
    background: var(--s4-bg-raised); color: var(--text-foreground);
    border: 1px solid var(--s4-line-strong); box-shadow: none;
}
.theme-s4 .btn-twitch-purple:hover { background: #161922; border-color: rgba(255, 200, 61, 0.45); transform: translateY(-2px); }

/* ---------- Startseite: Logo / Hero ---------- */
.theme-s4 .finalcraft-logo-inner {
    background: none;
    border: none;
    box-shadow: none;
    padding: 1rem 0 0;
}
.theme-s4 .finalcraft-title {
    animation: none;
    color: var(--text-foreground);
    text-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
    letter-spacing: 0.02em;
}
.theme-s4 .finalcraft-title .text-purple-neon-color,
.theme-s4 .logo-version-number {
    color: var(--s4-accent);
}
.theme-s4 .logo-version-number { margin-left: 0.15em; }
.theme-s4 .logo-subtitle-teams {
    font-family: var(--s4-font-display);
    font-size: 0.95rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.45em;
    color: var(--text-muted-foreground);
    text-shadow: none;
    margin: 1rem 0 0;
    padding: 0 0 0 0.45em; /* gleicht den Buchstabenabstand nach dem letzten Zeichen aus, damit der Text mittig sitzt */
    border: none;
    background: none;
}

/* ---------- Startseite: Ankündigung & Countdown ---------- */
.fc4-announce { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; margin: 2.5rem auto 3.5rem; max-width: 760px; width: 100%; }
.fc4-headline {
    margin: 0; font-family: var(--s4-font-display); font-weight: 700;
    font-size: clamp(1.75rem, 4.5vw, 2.75rem); line-height: 1.12; letter-spacing: -0.01em;
    color: var(--text-foreground);
}
.fc4-sub { margin: 0; font-size: 1.1rem; color: var(--text-muted-foreground); }
.fc4-sub strong { color: var(--text-foreground); font-weight: 600; }

.fc4-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1.25rem; width: 100%; max-width: 620px; }
.cd-unit {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
    padding: 1.1rem 0.5rem 0.9rem; border-radius: 18px;
    background: var(--s4-surface); border: 1px solid var(--s4-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* Doppelpunkt-Trenner zwischen den Kacheln */
.cd-unit + .cd-unit::before {
    content: ':'; position: absolute; left: -0.95rem; top: 50%; transform: translateY(-62%);
    font-family: var(--s4-font-display); font-size: 1.75rem; font-weight: 700; color: var(--s4-line-strong);
}
.cd-value {
    font-family: var(--s4-font-display); font-weight: 700; line-height: 1;
    font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
    color: var(--s4-accent);
}
.cd-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted-foreground); }
.fc4-countdown-caption { margin: 0; min-height: 1.2em; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted-foreground); }
.fc4-countdown.is-done .cd-unit { border-color: rgba(255, 200, 61, 0.45); }
.fc4-actions { margin-top: 1.25rem; }
.theme-s4 .btn-lg { padding: 1.1rem 2.6rem; font-size: 1.15rem; border-radius: 14px; }
@media (max-width: 600px) {
    .fc4-countdown { gap: 0.5rem; }
    .cd-unit { padding: 0.85rem 0.25rem 0.7rem; border-radius: 14px; }
    .cd-unit + .cd-unit::before { display: none; }
    .cd-label { font-size: 0.62rem; letter-spacing: 0.06em; }
    .fc4-sub { font-size: 1rem; }
}
/* ---------- Karten & Boxen ---------- */
.theme-s4 .info-box {
    background: var(--s4-surface);
    background-image: none;
    border: 1px solid var(--s4-line);
    border-radius: var(--s4-radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.25s ease, background 0.25s ease;
}
.theme-s4 .info-box:hover { border-color: var(--s4-line-strong); }

.theme-s4 .quest-category-title {
    font-family: var(--s4-font-display);
    letter-spacing: 0;
    color: var(--text-foreground);
    border-bottom: 1px solid var(--s4-line);
    display: flex; align-items: center; gap: 0.75rem;
}
.theme-s4 .quest-category-title::before {
    content: ''; width: 4px; height: 1.1em; border-radius: 4px; background: var(--s4-grad); flex-shrink: 0;
}

.theme-s4 .rule-number-circle,
.theme-s4 .stat-icon {
    border-radius: 12px;
    background: var(--s4-grad);
    color: #1a1205;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.theme-s4 .rule-title { font-family: var(--s4-font-display); letter-spacing: -0.01em; }

.theme-s4 .global-section-separator {
    border-top: 1px solid var(--s4-line);
    border-image: none;
}

/* ---------- Teilnehmer-Karten ---------- */
.theme-s4 .streamer-card {
    background: var(--s4-surface);
    background-image: none;
    border: 1px solid var(--s4-line);
    border-radius: 16px;
    padding: 0.85rem;
}
.theme-s4 .streamer-card::before { display: none; }
.theme-s4 .streamer-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 200, 61, 0.35);
    box-shadow: var(--s4-shadow);
}
.theme-s4 .card-overlay {
    background: rgba(7, 8, 12, 0.88);
}
.theme-s4 .overlay-text {
    font-family: var(--s4-font-body); font-weight: 600; font-size: 0.9rem;
    color: var(--text-foreground);
    padding: 0.5rem 1rem; border-radius: 999px;
    border: 1px solid var(--s4-line-strong); background: rgba(255, 255, 255, 0.06);
}
.theme-s4 .overlay-text::after { content: ' \2197'; }
.theme-s4 .streamer-name { font-family: var(--s4-font-display); letter-spacing: -0.01em; font-size: 1rem; }
/* Minecraft-Kopf + Name als Zeile unter dem Twitch-Namen */
.theme-s4 .status-details { flex: 1; }
/* Browser-Standardabstand über dem Namen entfernen - schafft den Platz für die MC-Zeile, Karte bleibt gleich hoch */
.theme-s4 .streamer-card .streamer-name { margin-top: 0; margin-bottom: 0.1rem; }
.theme-s4 .mc-identity {
    display: flex; align-items: center; gap: 0.4rem; min-width: 0;
    margin-bottom: 0.2rem;
}
.theme-s4 .mc-identity-head {
    width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0;
    image-rendering: pixelated;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.theme-s4 .mc-identity-name {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 0.78rem; font-weight: 500; color: var(--text-muted-foreground);
}
/* Gerade auf dem MC-Server online: Name grün + leuchtender Punkt dahinter */
.theme-s4 .mc-identity.is-online .mc-identity-name { color: var(--online-green); }
.theme-s4 .mc-identity.is-online::after {
    content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
    background: var(--online-green);
}
.theme-s4 .streamer-card .streamer-meta { margin-bottom: 0.1rem !important; }
.theme-s4 .avatar-container { border: 2px solid var(--s4-line-strong); }
.theme-s4 .avatar-container.live {
    border-color: var(--live-red);
    box-shadow: none;
    animation: none;
}
.theme-s4 .streamer-card.is-eliminated { border-color: rgba(248, 113, 113, 0.35); }
.theme-s4 .card-live-meta .card-points { font-family: var(--s4-font-display); }

/* ---------- Social & Videos ---------- */
.theme-s4 .social-links { gap: 0.6rem; }
.theme-s4 .social-button {
    padding: 0.6rem 1.15rem;
    font-size: 0.9rem; font-weight: 500;
    color: var(--text-muted-foreground);
    border: 1px solid var(--s4-line);
    border-radius: 999px;
    background: var(--s4-surface);
}
.theme-s4 .social-button:hover {
    color: var(--text-foreground);
    background: var(--s4-surface-hover);
    border-color: var(--s4-line-strong);
    transform: translateY(-2px);
    box-shadow: none;
}
.theme-s4 .video-embed-wrapper {
    border-radius: var(--s4-radius);
    border: 1px solid var(--s4-line);
    box-shadow: var(--s4-shadow);
}
.theme-s4 .video-embed-wrapper:hover { transform: translateY(-3px); border-color: rgba(255, 200, 61, 0.35); }

/* ---------- Clips ---------- */
.theme-s4 .clip-card {
    background: var(--s4-surface);
    border: 1px solid var(--s4-line);
    border-radius: 16px;
    overflow: hidden;
}
.theme-s4 .clip-card:hover { border-color: rgba(255, 200, 61, 0.35); box-shadow: var(--s4-shadow); }
.theme-s4 .clip-title { font-family: var(--s4-font-display); letter-spacing: -0.01em; }
.theme-s4 .clip-modal-content { border-radius: var(--s4-radius); border: 1px solid var(--s4-line); }

/* ---------- Live: Ranking & Statistiken ---------- */
.theme-s4 .phase-pill {
    font-family: var(--s4-font-display); font-weight: 600; letter-spacing: -0.01em;
    background: var(--s4-surface); border: 1px solid var(--s4-line-strong); color: var(--text-foreground);
    box-shadow: none;
}
.theme-s4 .live-counter {
    background: var(--s4-surface); border: 1px solid var(--s4-line); border-radius: 14px; padding: 0.65rem 1rem;
}
.theme-s4 .live-counter strong { font-family: var(--s4-font-display); font-size: 1.5rem; letter-spacing: 0; }
.theme-s4 .live-banner { border-radius: 14px; }
.theme-s4 .live-banner.is-info { background: rgba(255, 200, 61, 0.06); border-color: rgba(255, 200, 61, 0.2); }

.theme-s4 .rank-row {
    background: var(--s4-surface);
    border: 1px solid var(--s4-line);
    border-radius: 14px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.theme-s4 .rank-row:hover { background: var(--s4-surface-hover); border-color: var(--s4-line-strong); }
.theme-s4 .rank-row.is-online { border-color: rgba(74, 222, 128, 0.22); }
.theme-s4 .rank-row.is-live { border-color: rgba(239, 68, 68, 0.3); }
.theme-s4 .rank-pos, .theme-s4 .rank-points, .theme-s4 .podium-points, .theme-s4 .podium-name { font-family: var(--s4-font-display); letter-spacing: 0; }
.theme-s4 .rank-points, .theme-s4 .podium-points, .theme-s4 .leader-value {
    color: var(--s4-accent); text-shadow: none;
}
.theme-s4 .rank-points small, .theme-s4 .podium-points small { -webkit-text-fill-color: var(--text-muted-foreground); }
.theme-s4 .rank-avatar img { border-radius: 10px; }

.theme-s4 .podium-place { background: var(--s4-surface); border: 1px solid var(--s4-line); border-radius: 20px;}
.theme-s4 .podium-place.place-1 {
    background: linear-gradient(160deg, rgba(255, 200, 61, 0.12), rgba(255, 255, 255, 0.03) 55%);
    border-color: rgba(255, 200, 61, 0.4);
    box-shadow: var(--s4-glow);
}
.theme-s4 .podium-place.place-2 { border-color: rgba(203, 213, 225, 0.25); }
.theme-s4 .podium-place.place-3 { border-color: rgba(217, 119, 6, 0.3); }
.theme-s4 .podium-rank { font-family: var(--s4-font-display); border-radius: 10px; }

.theme-s4 .ranking-search, .theme-s4 .stats-finder input {
    background: var(--s4-surface); border: 1px solid var(--s4-line-strong); border-radius: 12px;
}
.theme-s4 .ranking-search:focus, .theme-s4 .stats-finder input:focus { border-color: rgba(255, 200, 61, 0.6); box-shadow: none; outline: 2px solid rgba(255, 200, 61, 0.35); outline-offset: 1px; }
.theme-s4 .filter-chip { border-color: var(--s4-line-strong); background: var(--s4-surface); }
.theme-s4 .filter-chip.active { background: var(--s4-grad); border-color: transparent; color: #1a1205; }

.theme-s4 .stat-entry { border-radius: 8px; }
.theme-s4 .stat-entry:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
/* Platz 1: dezenter Goldschimmer (überschreibt das Zebra-Muster) */
.theme-s4 .stat-entry.rank-1 { background: linear-gradient(90deg, rgba(255, 200, 61, 0.16), rgba(255, 200, 61, 0.02)); }
.theme-s4 .stat-entry.is-me { background: rgba(255, 200, 61, 0.12); }
.theme-s4 .stat-card .stat-icon { border-radius: 9px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.theme-s4 .stat-more { border-radius: 8px; }
.theme-s4 .stat-title { font-family: var(--s4-font-display); letter-spacing: 0; }
.theme-s4 .stat-more { border-color: var(--s4-line-strong); color: var(--text-foreground); background: var(--s4-surface); }
.theme-s4 .stat-more:hover { border-color: rgba(255, 200, 61, 0.4); background: var(--s4-surface-hover); }

.theme-s4 .live-toast { background: #0e0f15; border: 1px solid var(--s4-line-strong); border-radius: 14px;}
.theme-s4 .live-toast.is-danger { border-color: rgba(239, 68, 68, 0.45); }

/* ---------- Footer ---------- */
.theme-s4 .footer {
    background: #08090d;
    border-top: 1px solid var(--s4-line);
    padding: 2rem 1rem 1.25rem;
    margin-top: 4rem;
}
.theme-s4 .imprint-section strong { font-family: var(--s4-font-display); letter-spacing: -0.01em; font-weight: 600; }
.theme-s4 .copyright-notice { border-top-color: var(--s4-line); color: #6b7280; }

/* ---------- Diverses ---------- */
.theme-s4 .scroll-to-top-btn { border-radius: 12px; background: var(--s4-surface); border: 1px solid var(--s4-line-strong);}
.theme-s4 .fr-modal { border-radius: var(--s4-radius); border: 1px solid var(--s4-line-strong); background: var(--s4-bg-raised); }

/* Admin & Anmeldung (eigene Seiten ohne Header) */
.theme-s4 .admin-container, .theme-s4 .reg-container {
    background: #0e0f15;
    border: 1px solid var(--s4-line);
    border-radius: 22px;
    box-shadow: var(--s4-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.theme-s4 .form-group input, .theme-s4 .form-group textarea, .theme-s4 .form-group select,
.theme-s4 textarea.clip-input {
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--s4-line-strong); border-radius: 12px;
}
.theme-s4 .form-group input:focus, .theme-s4 .form-group textarea:focus, .theme-s4 textarea.clip-input:focus {
    border-color: rgba(255, 200, 61, 0.6); box-shadow: none; outline: 2px solid rgba(255, 200, 61, 0.35); outline-offset: 1px;
}
.theme-s4 .entry, .theme-s4 .clip-admin-card, .theme-s4 .topbar, .theme-s4 .member-block { border-radius: 14px; }
.theme-s4 .modal-content { background: var(--s4-bg-raised); border: 1px solid var(--s4-line-strong); border-radius: 20px; box-shadow: var(--s4-shadow); }

/* =========================================================================
   Feinschliff nach Design-Check (23.10.2026): ohne Glas-Effekt, ohne farbige Glows,
   ohne Lila. Überschreibt Reste aus style.css, live.css und den Inline-Styles der Seiten.
   Status-Anzeigen (Live / Online / Leben) bleiben erkennbar - über Farbe, Ränder und Punkte statt Leuchten.
   ========================================================================= */
.theme-s4 *, .theme-s4 *::before, .theme-s4 *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* Live: roter Badge pulsiert über die Deckkraft statt über einen Glow */
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.theme-s4 .live-badge { box-shadow: none; }
.theme-s4 .online-badge, .theme-s4 .online-badge::before { box-shadow: none; }
.theme-s4 .phase-pill.is-running::before { box-shadow: none; }
.theme-s4 .heart-full, .theme-s4 .lives-row svg { filter: none; }
.theme-s4 .live-toast.is-danger { box-shadow: none; }
.theme-s4 .dot-online, .theme-s4 .status-dot.ok, .theme-s4 .status-dot.bad, .theme-s4 .status-dot.warn { box-shadow: none; }

/* Ranking: Online/Live über einen festen farbigen Rahmen am Kopf */
.theme-s4 .rank-row.is-online .rank-avatar img { box-shadow: none; border-color: var(--online-green); }
.theme-s4 .rank-row.is-live .rank-avatar img { box-shadow: none; border-color: var(--live-red); animation: none; }
.theme-s4 .podium-place .podium-rank { box-shadow: none; }
.theme-s4 .podium-place .podium-body, .theme-s4 .podium-place.is-online .podium-body { filter: none; }
.theme-s4 .podium-points { text-shadow: none; }

/* Clips: Twitch-Lila durch das Gold der Seite ersetzt */
.theme-s4 .clip-card:hover { border-color: rgba(255, 200, 61, 0.45); box-shadow: var(--s4-shadow); }
.theme-s4 .clip-broadcaster { color: var(--s4-accent); }
.theme-s4 .clip-modal-content { border-color: var(--s4-line-strong); box-shadow: none; background: var(--s4-bg-raised); }
.theme-s4 .close-modal-btn:hover { color: var(--s4-accent); }

/* Anmeldung & Admin: Glows an Eingabefeldern und Dialogen neutralisieren */
.theme-s4 .reg-container .form-group input:focus, .theme-s4 .reg-container .form-group textarea:focus { box-shadow: none; }
.theme-s4 .modal-content { box-shadow: var(--s4-shadow); }
.theme-s4 .avatar-container.live, .theme-s4 .avatar-container.eliminated { box-shadow: none; animation: none; }

@media (prefers-reduced-motion: reduce) {
    .theme-s4 .streamer-card:hover, .theme-s4 .btn:hover, .theme-s4 .video-embed-wrapper:hover { transform: none; }
}
