@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-deep: #050505;
    --bg-panel: rgba(12, 12, 14, 0.72);
    --bg-card: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --accent-cyan: #00F0FF;
    --accent-magenta: #FF00A0;
    --accent-gold: #FFD700;
    --accent-lime: #A3E635;
    --text: #F5F5F7;
    --text-muted: rgba(255, 255, 255, 0.60);
    --text-dim: rgba(255, 255, 255, 0.40);
    --scrollbar-thumb: rgba(0, 240, 255, 0.22);
    --scrollbar-thumb-hover: rgba(0, 240, 255, 0.38);
    --scrollbar-track: rgba(255, 255, 255, 0.03);
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --surface-input-bg: rgba(255, 255, 255, 0.05);
    --surface-input-focus-bg: rgba(0, 240, 255, 0.08);
    --surface-card-hover: rgba(0, 240, 255, 0.08);
    --surface-elevated-bg: linear-gradient(160deg, rgba(20, 24, 36, 0.82), rgba(20, 24, 36, 0.56));
    --hero-overlay: linear-gradient(135deg, rgba(5, 12, 24, 0.74), rgba(11, 16, 28, 0.64));
    --hero-accent-gradient: linear-gradient(135deg, rgba(0,240,255,0.12), rgba(255,0,160,0.10));
    --hero-radial-glow: radial-gradient(circle at 80% 20%, rgba(0,240,255,0.15), transparent 50%);
}

body.sky-dawn {
    --bg-panel: rgba(12, 18, 30, 0.78);
    --bg-card: rgba(14, 22, 38, 0.22);
    --border: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.24);
    --text-muted: rgba(255, 255, 255, 0.78);
    --text-dim: rgba(255, 255, 255, 0.56);
    --surface-input-bg: rgba(11, 24, 42, 0.22);
    --surface-input-focus-bg: rgba(0, 240, 255, 0.10);
    --surface-elevated-bg: linear-gradient(160deg, rgba(16, 24, 40, 0.80), rgba(22, 30, 44, 0.58));
    --hero-overlay: linear-gradient(135deg, rgba(10, 18, 34, 0.72), rgba(26, 20, 32, 0.60));
}

body.sky-day {
    --bg-panel: rgba(6, 20, 38, 0.84);
    --bg-card: rgba(8, 24, 46, 0.30);
    --border: rgba(255, 255, 255, 0.16);
    --border-strong: rgba(255, 255, 255, 0.28);
    --text-muted: rgba(255, 255, 255, 0.84);
    --text-dim: rgba(255, 255, 255, 0.66);
    --surface-input-bg: rgba(8, 22, 42, 0.30);
    --surface-input-focus-bg: rgba(0, 240, 255, 0.14);
    --surface-card-hover: rgba(0, 240, 255, 0.14);
    --surface-elevated-bg: linear-gradient(160deg, rgba(8, 24, 46, 0.86), rgba(12, 28, 48, 0.64));
    --hero-overlay: linear-gradient(135deg, rgba(8, 22, 42, 0.74), rgba(9, 24, 44, 0.62));
    --hero-radial-glow: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 52%);
}

body.sky-dusk {
    --bg-panel: rgba(14, 16, 34, 0.80);
    --bg-card: rgba(18, 18, 38, 0.22);
    --border: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.24);
    --text-muted: rgba(255, 255, 255, 0.80);
    --text-dim: rgba(255, 255, 255, 0.58);
    --surface-input-bg: rgba(18, 18, 40, 0.24);
    --surface-elevated-bg: linear-gradient(160deg, rgba(18, 18, 40, 0.82), rgba(30, 18, 38, 0.56));
    --hero-overlay: linear-gradient(135deg, rgba(12, 16, 36, 0.70), rgba(32, 16, 30, 0.58));
}

body.sky-night {
    --bg-panel: rgba(8, 10, 22, 0.78);
    --bg-card: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.20);
    --text-muted: rgba(255, 255, 255, 0.74);
    --text-dim: rgba(255, 255, 255, 0.48);
    --surface-input-bg: rgba(255, 255, 255, 0.06);
    --surface-elevated-bg: linear-gradient(160deg, rgba(18, 24, 40, 0.78), rgba(18, 24, 40, 0.50));
    --hero-overlay: linear-gradient(135deg, rgba(6, 10, 24, 0.68), rgba(10, 12, 28, 0.54));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    width: 100%;
    background: var(--bg-deep);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Dynamic Sky Background */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 1.2s ease;
}

body.sky-dawn #bg-canvas { opacity: 1; }
body.sky-day #bg-canvas { opacity: 1; }
body.sky-dusk #bg-canvas { opacity: 1; }
body.sky-night #bg-canvas { opacity: 1; }

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Custom Cursor (deaktiviert – Standard-Cursor auf Desktop) */
#cursor {
    position: fixed;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
    transform: translate(-50%, -50%);
}
#cursor.expanded {
    width: 52px;
    height: 52px;
    border-color: var(--accent-magenta);
    background: rgba(255, 0, 160, 0.08);
}
#cursor.ui-hover {
    width: 8px;
    height: 8px;
    background: #fff;
    border-color: #fff;
}

/* Background Canvas (kept for compatibility, currently unused) */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Glass Panel Utility */
.glass {
    background: var(--bg-panel);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Layout Grid */
.app {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 260px 1fr 360px;
    grid-template-rows: 80px 1fr;
    gap: 22px;
    height: 100vh;
    padding: 22px;
    pointer-events: none;
}
.app > * { pointer-events: auto; }

/* Header */
header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-radius: var(--radius);
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-logo {
    height: 50px;
    width: auto;
    max-width: 234px;
    object-fit: contain;
    display: block;
}

.search-bar {
    flex: 1;
    max-width: 520px;
    margin: 0 40px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-radius: 50px;
    background: var(--surface-input-bg);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.search-bar:focus-within {
    border-color: var(--accent-cyan);
    background: var(--surface-input-focus-bg);
}
.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}
.search-bar input::placeholder { color: var(--text-dim); }
.search-icon { color: var(--text-dim); font-size: 1.2rem; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.live-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 50px;
    background: rgba(255, 0, 160, 0.12);
    border: 1px solid rgba(255, 0, 160, 0.25);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.live-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-magenta);
    border-radius: 50%;
    animation: pulse-live 1.6s infinite;
}
@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 160, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(255, 0, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 160, 0); }
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.1);
}
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.4rem;
    place-items: center;
}

/* Left Sidebar */
.sidebar-left {
    grid-row: 2;
    border-radius: var(--radius);
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}
.sidebar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 14px;
}
#category-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    width: 100%;
    background: transparent;
    font: inherit;
    text-align: left;
}
.nav-item:hover, .nav-item.active {
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-cyan);
    border-color: rgba(0, 240, 255, 0.18);
}
.nav-item.active .nav-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}
.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: var(--transition);
}
.nav-spacer { flex: 1; }

/* Main Content */
.main {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    border-radius: var(--radius);
}

/* Hero */
.hero {
    position: relative;
    min-height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--hero-overlay), var(--hero-accent-gradient);
    border: 1px solid var(--border-strong);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-radial-glow);
    pointer-events: none;
}
.hero-tag {
    position: relative;
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 50px;
    background: var(--accent-gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hero h1 {
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    max-width: 70%;
    margin-bottom: 16px;
}
.hero p {
    position: relative;
    color: var(--text-muted);
    max-width: 60%;
    line-height: 1.6;
    margin-bottom: 24px;
}
.hero-actions {
    position: relative;
    display: flex;
    gap: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}
.btn-primary {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(0, 240, 255, 0.4); }
.btn-ghost {
    background: var(--surface-input-bg);
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-input-focus-bg); border-color: var(--border-strong); }
.btn-magenta {
    background: var(--accent-magenta);
    color: #fff;
    box-shadow: 0 0 24px rgba(255, 0, 160, 0.25);
}
.btn-magenta:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(255, 0, 160, 0.4); }
.btn-block { width: 100%; }

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 4px 0;
}
.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}
.section-header a {
    font-size: 0.82rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
}
.section-header a:hover { text-decoration: underline; }

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.filter-bar select, .filter-bar input {
    background: var(--surface-input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--accent-cyan); background: var(--surface-input-focus-bg); }
.filter-bar select option,
.form-group select option,
select option {
    background: #111;
    color: #f5f5f7;
}
.filter-bar select option:checked,
.form-group select option:checked,
select option:checked {
    background: #1d2738;
    color: #ffffff;
}

.podcast-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 28px 0 8px;
}

.podcast-pagination-meta {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.cards-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.podcast-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    transition: var(--transition);
    cursor: default;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}
.podcast-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    background: var(--surface-card-hover);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.podcast-card .card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}
.card-play-btn {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--accent-cyan);
    color: #000;
    font-size: 1rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.25);
    z-index: 5;
}
.podcast-card:hover .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}
.card-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}
.card-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    position: relative;
    overflow: hidden;
}
.card-cover.news-cover {
    aspect-ratio: 16 / 9;
}
.card-cover::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transition: var(--transition);
}
.podcast-card:hover .card-cover::after { opacity: 1; }
.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.card-cat { color: var(--accent-gold); }
.card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}
.card-host {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.card-waveform {
    display: flex;
    gap: 2px;
    height: 18px;
    align-items: flex-end;
    margin-top: auto;
}
.wf-bar {
    flex: 1;
    background: rgba(255,255,255,0.25);
    border-radius: 1px;
    transition: height 0.3s;
}
.podcast-card:hover .wf-bar { background: var(--accent-cyan); }

/* Right Sidebar */
.sidebar-right {
    grid-row: 2;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.feed-header {
    padding: 24px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.feed-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.feed-list {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.news-card {
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: var(--bg-card);
    transition: var(--transition);
    cursor: pointer;
}
.news-card:hover {
    border-color: var(--accent-cyan);
    background: var(--surface-card-hover);
}
.nc-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nc-cat { color: var(--accent-gold); }
.nc-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 10px;
}
.nc-waveform {
    display: flex;
    gap: 2px;
    height: 16px;
    align-items: flex-end;
}

/* Detail View */
.detail-view {
    position: fixed;
    top: 0;
    right: -760px;
    width: 720px;
    max-width: 100vw;
    height: 100vh;
    z-index: 200;
    border-left: 1px solid var(--accent-cyan);
    box-shadow: -30px 0 80px rgba(0,0,0,0.7);
    transition: right 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.detail-view.active { right: 0; }
.detail-header {
    padding: 36px 36px 24px;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.detail-close {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255,255,255,0.05);
}
.detail-close:hover { color: var(--accent-magenta); background: rgba(255,0,160,0.1); transform: rotate(90deg); }
.detail-cat {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent-cyan);
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.detail-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
}
.detail-meta {
    display: flex;
    gap: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.detail-meta span { display: flex; align-items: center; gap: 6px; }
.player-sim {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(0,0,0,0.35);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
}
.play-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent-cyan);
    display: grid;
    place-items: center;
    color: #000;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.3);
    transition: var(--transition);
    flex-shrink: 0;
}
.play-btn:hover { transform: scale(1.08); }
.player-info { flex: 1; min-width: 0; }
.player-info h4 { font-size: 0.95rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-info p { font-size: 0.75rem; color: var(--text-dim); }
.player-wave {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.pw-bar {
    width: 4px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: pulse-bar 1.1s infinite ease-in-out;
}
@keyframes pulse-bar {
    0%, 100% { height: 6px; opacity: 0.5; }
    50% { height: 28px; opacity: 1; }
}
.detail-body {
    flex: 1;
    padding: 28px 36px 36px;
    overflow-y: auto;
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--text-muted);
}
.detail-body p { margin-bottom: 18px; }
.detail-body blockquote {
    border-left: 3px solid var(--accent-magenta);
    padding-left: 20px;
    margin: 28px 0;
    font-style: italic;
    color: var(--text);
}
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.tag {
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    padding: 50px 20px;
    text-align: center;
    color: var(--text-dim);
}
.empty-state h3 { color: var(--text); margin-bottom: 8px; }

/* Podspot Loader */
.podspot-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 60px 20px;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 420px;
    grid-column: 1 / -1;
}

.podspot-loader > * {
    margin-left: auto;
    margin-right: auto;
}

.cards-grid:has(> .podspot-loader:only-child) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.podspot-loader-ring {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, var(--accent-cyan) 35%, var(--accent-magenta) 70%, transparent 100%);
    animation: loader-spin 1.4s linear infinite;
    filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.35));
}

.podspot-loader-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--bg-deep);
}

.podspot-loader-ring::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-cyan);
    border-bottom-color: var(--accent-magenta);
    animation: loader-spin-reverse 1s linear infinite;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes loader-spin-reverse {
    to { transform: rotate(-360deg); }
}

.podspot-loader-waves {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 34px;
}

.podspot-loader-waves span {
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-magenta));
    animation: loader-wave 1.2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.podspot-loader-waves span:nth-child(1) { height: 14px; animation-delay: 0s; }
.podspot-loader-waves span:nth-child(2) { height: 26px; animation-delay: 0.1s; }
.podspot-loader-waves span:nth-child(3) { height: 18px; animation-delay: 0.2s; }
.podspot-loader-waves span:nth-child(4) { height: 30px; animation-delay: 0.3s; }
.podspot-loader-waves span:nth-child(5) { height: 20px; animation-delay: 0.4s; }

@keyframes loader-wave {
    0%, 100% { transform: scaleY(0.45); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

.podspot-loader-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.podspot-loader-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
    max-width: 320px;
    line-height: 1.5;
}

/* Inline loader for small placeholders */
.podspot-loader-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Podcast Community: Ratings & Comments */
.podcast-community {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.community-section {
    border-radius: var(--radius);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    padding: 28px;
}

.community-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rating-average {
    font-size: 2.6rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-count {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.star-rating {
    display: inline-flex;
    gap: 6px;
    font-size: 1.6rem;
    line-height: 1;
}

.star-rating .star {
    color: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
    user-select: none;
}

.star-rating .star.filled,
.star-rating .star:hover,
.star-rating .star.hovered {
    color: var(--accent-gold);
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.star-rating .star:hover {
    transform: scale(1.15);
}

.star-rating.readonly .star {
    cursor: default;
}

.star-rating.readonly .star:hover {
    transform: none;
}

.rating-actions {
    margin-top: 14px;
    min-height: 24px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.comment-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.comment-form .form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.comment-form .char-count {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comment-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #000;
    flex-shrink: 0;
}

.comment-body {
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: var(--text);
}

.comment-date {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.comment-text {
    color: var(--text-muted);
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.community-login-hint {
    padding: 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px dashed var(--border-strong);
    text-align: center;
    color: var(--text-dim);
}

.community-login-hint a {
    color: var(--accent-cyan);
    font-weight: 500;
}

.empty-comments {
    text-align: center;
    color: var(--text-dim);
    padding: 30px 20px;
}

.podspot-loader-inline .podspot-loader-ring {
    width: 20px;
    height: 20px;
}

.podspot-loader-inline .podspot-loader-ring::before { inset: 3px; }
.podspot-loader-inline .podspot-loader-ring::after { inset: 5px; border-width: 1.5px; }

/* Mobile Navigation Overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(5,5,5,0.92);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 100px 40px;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.mobile-nav.active { opacity: 1; pointer-events: auto; }
.mobile-nav .nav-item { font-size: 1.1rem; padding: 16px; }
.mobile-close {
    position: absolute;
    top: 28px;
    right: 28px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* ============================
   PODCAST DETAIL PAGE
   ============================ */
.podcast-hero {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: linear-gradient(135deg, rgba(0,240,255,0.08), rgba(255,0,160,0.06));
}
.podcast-hero-cover {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.podcast-hero-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.podcast-hero-info h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
}
.podcast-hero-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.podcast-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.episode-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.episode-item:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
}
.episode-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--accent-cyan);
    cursor: pointer;
    transition: var(--transition);
}
.episode-play:hover {
    background: var(--accent-cyan);
    color: #000;
}
.episode-info h4 {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.episode-info p {
    font-size: 0.8rem;
    color: var(--text-dim);
}
.episode-meta {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================
   AUTH PAGES (Login/Register)
   ============================ */
.auth-layout {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 22px;
    position: relative;
    z-index: 10;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 42px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.auth-card .brand {
    justify-content: center;
    margin-bottom: 10px;
}
.auth-card h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 6px;
}
.auth-card p.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
    background: var(--surface-input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-cyan);
    background: var(--surface-input-focus-bg);
}
.form-group input::placeholder { color: var(--text-dim); }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-cyan);
}
.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================
   MEMBER AREA
   ============================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.dashboard-card {
    padding: 24px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dashboard-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}
.dashboard-card .stat {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-cyan);
}
.dashboard-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.saved-list, .queue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.saved-item, .queue-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.saved-item:hover, .queue-item:hover {
    border-color: var(--accent-cyan);
}
.saved-thumb, .queue-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
}
.saved-info h4, .queue-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.saved-info p, .queue-info p {
    font-size: 0.8rem;
    color: var(--text-dim);
}
.saved-actions, .queue-actions {
    display: flex;
    gap: 8px;
}
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--transition);
}
.icon-btn:hover {
    background: var(--accent-magenta);
    border-color: var(--accent-magenta);
    color: #fff;
}

/* ============================
   SETTINGS
   ============================ */
.settings-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    height: 100vh;
    padding: 22px;
    position: relative;
    z-index: 10;
}
.settings-main {
    overflow-y: auto;
    padding-right: 6px;
}
.settings-section {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 22px;
}
.settings-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 22px;
}
.settings-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.9fr);
    gap: 20px;
    align-items: end;
}
.settings-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.settings-summary-card,
.settings-preview-card {
    padding: 20px;
    border-radius: var(--radius-sm);
    background: var(--surface-elevated-bg);
    border: 1px solid rgba(255,255,255,0.14);
}
.settings-summary-card {
    justify-self: end;
    max-width: 320px;
}
.settings-summary-label,
.settings-preview-eyebrow {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.settings-summary-card strong,
.settings-preview-card strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.settings-summary-card p,
.settings-preview-card p,
.settings-section-intro p,
.settings-help,
.settings-status {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.settings-section-intro {
    margin-bottom: 20px;
}
.settings-section-intro h2 {
    margin-bottom: 8px;
}
.settings-design-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 18px;
    align-items: start;
}
.settings-help {
    margin-top: 16px;
}
.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.settings-status {
    margin-top: 16px;
    min-height: 1.6em;
}
.settings-status[data-state="success"] {
    color: var(--accent-lime);
}
.settings-status[data-state="error"] {
    color: #ff8ea8;
}
.settings-status[data-state="pending"] {
    color: var(--accent-gold);
}
.form-group input[readonly] {
    opacity: 0.88;
    cursor: default;
}
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row div h4 { font-size: 0.98rem; margin-bottom: 4px; }
.toggle-row div p { font-size: 0.82rem; color: var(--text-dim); }
.toggle {
    width: 48px;
    height: 26px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}
.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: var(--transition);
}
.toggle.active {
    background: var(--accent-cyan);
}
.toggle.active::after {
    left: 25px;
}

/* Responsive */
@media (max-width: 1200px) {
    .app { grid-template-columns: 240px 1fr; }
    .sidebar-right { display: none; }
}
@media (max-width: 900px) {
    body.desktop { cursor: auto; }
    #cursor { display: none; }
    .app { grid-template-columns: 1fr; grid-template-rows: 70px 1fr; padding: 14px; gap: 14px; }
    .sidebar-left { display: none; }
    .search-bar { margin: 0 16px; }
    .menu-toggle { display: grid; }
    .hero { min-height: 280px; padding: 26px; }
    .hero h1, .hero p { max-width: 100%; }
    .detail-view { width: 100vw; right: -105vw; }
    .podcast-hero { grid-template-columns: 1fr; text-align: center; }
    .podcast-hero-cover { margin: 0 auto; }
    .podcast-hero-actions { justify-content: center; }
    .settings-hero,
    .settings-design-grid { grid-template-columns: 1fr; }
    .settings-summary-card { justify-self: stretch; max-width: none; }
    .settings-layout { grid-template-columns: 1fr; padding: 14px; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .header-actions .live-pill { display: none; }
    .search-bar { display: none; }
    .cards-grid, .cards-grid.large { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .episode-item { grid-template-columns: 44px 1fr; }
    .episode-meta { grid-column: 1 / -1; text-align: left; }
    .saved-item, .queue-item { grid-template-columns: 64px 1fr; }
    .saved-actions, .queue-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
