:root {
    --bg-black: #050505;
    --card-bg: rgba(20, 20, 20, 0.8);
    --blood-red: #aa0000;
    --bright-red: #ff0000;
    --text-primary: #efefef;
    --text-secondary: #aaaaaa;
    --accent-glow: rgba(170, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.05);

    --font-head: 'Anton', sans-serif;
    --font-ui: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Special Elite', monospace;

    --sidebar-width: 240px;
    --player-height: 80px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="light"] {
    --bg-black: #f5f5f5;
    --card-bg: rgba(255, 255, 255, 0.9);
    --blood-red: #cc0000;
    --bright-red: #ff3333;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent-glow: rgba(204, 0, 0, 0.1);
    --glass-border: rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100dvh;
    overflow: hidden;
    /* App-like feel */
}

/* App Layout */
.app-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: 1fr var(--player-height);
    height: 100dvh;
    width: 100vw;
}

/* Side Navigation */
.side-nav {
    background: var(--bg-black);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 100;
    height: 100%;
}

.nav-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    filter: grayscale(1) contrast(1.2);
}

.nav-brand {
    font-family: var(--font-head);
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--blood-red);
}

.nav-links {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 1.1rem;
    text-transform: uppercase;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 8px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--bright-red);
}

.nav-item i {
    width: 20px;
}

.nav-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 16px 0;
}

.btn-link {
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

/* Content Area */
.content-area {
    padding: 32px;
    overflow-y: auto;
    overflow-x: hidden;
    background: radial-gradient(circle at top right, rgba(170, 0, 0, 0.05), transparent 40%);
}

.mobile-header {
    display: none;
    /* Desktop hidden */
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Wide Layout - TV/Desktop with Schedule Sidebar */
.main-content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.schedule-sidebar {
    display: none; /* Hidden by default on narrow screens */
}

/* Show schedule sidebar on wide screens (1200px+) */
@media (min-width: 1200px) {
    .main-content-area {
        grid-template-columns: 2fr 1fr;
        max-width: 1600px;
    }
    
    .schedule-sidebar {
        display: flex;
        flex-direction: column;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        padding: 24px;
        height: fit-content;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
    
    .schedule-sidebar-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .schedule-title {
        font-family: var(--font-ui);
        font-size: 1.2rem;
        color: var(--text-primary);
        letter-spacing: 1px;
        margin: 0;
    }
    
    .sidebar-schedule-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .sidebar-schedule-list .fs-item {
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border-left: 3px solid transparent;
    }
    
    .sidebar-schedule-list .fs-item.active {
        background: rgba(170, 0, 0, 0.1);
        border-left-color: var(--blood-red);
    }
    
    .sidebar-schedule-list .fs-time {
        font-family: var(--font-mono);
        color: var(--bright-red);
        font-weight: bold;
        font-size: 0.9rem;
    }
    
    .sidebar-schedule-list .fs-name {
        font-family: var(--font-ui);
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.9rem;
        margin-top: 4px;
    }
    
    .sidebar-schedule-list .fs-desc {
        font-size: 0.75rem;
        color: var(--text-secondary);
        margin-top: 2px;
    }
}

/* Extra wide screens (1600px+) - larger schedule */
@media (min-width: 1600px) {
    .main-content-area {
        grid-template-columns: 3fr 1.2fr;
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

/* Hero Section */
.now-playing-hero {
    grid-column: 1 / -1;
    min-height: 500px;
    background-image: url('logo_malacara5.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: inset 0 0 100px #000;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blood-red);
    padding: 6px 16px;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 24px;
    box-shadow: 0 0 20px var(--accent-glow);
}

.dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1.2);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* Pulse animation for DALE PLAY! call to action */
.pulse-animation {
    animation: pulse 1.5s ease-in-out infinite;
    color: var(--bright-red) !important;
    font-weight: bold;
    text-shadow: 0 0 10px var(--accent-glow);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: #fff !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    letter-spacing: -1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--bright-red) !important;
    opacity: 1;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-meta {
    font-family: var(--font-ui);
    color: #fff !important;
    opacity: 0.8;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Now & Next Bar */
.now-next-bar {
    margin-top: 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: var(--font-ui);
    animation: fadeIn 1s ease-out;
    cursor: pointer;
    transition: var(--transition);
}

.now-next-bar:hover {
    background: rgba(170, 0, 0, 0.1);
    border-color: var(--blood-red);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nn-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nn-stack {
    display: flex;
    flex-direction: column;
}

.nn-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nn-value {
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
}

.nn-time {
    font-size: 0.75rem;
    color: var(--bright-red);
    font-family: var(--font-mono);
}

.current .nn-value {
    color: var(--bright-red);
}

.nn-divider {
    width: 1px;
    height: 30px;
    background: var(--glass-border);
}

/* Next Song Box */
.next-song-box {
    margin-top: 12px;
    padding-left: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 1.5s ease-out;
}

.ns-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.ns-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 4px;
}

/* Player Bar */
.player-bar {
    grid-column: 1 / 3;
    background: var(--bg-black);
    border-top: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    z-index: 200;
}

.player-bar .player-left,
.player-bar .player-right {
    justify-content: flex-end;
}

.player-bar .player-left {
    justify-content: flex-start;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.player-left > * {
    flex-shrink: 0;
}

.album-art-wrap {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: #111;
}

.bar-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bar-metadata {
    min-width: 0;
    overflow: hidden;
}

/* Rating System */
.bar-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-left: 10px;
}

.stars-wrap {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.star-btn {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.star-btn:hover,
.star-btn.hover {
    color: var(--bright-red);
    transform: scale(1.2);
}

.star-btn.active {
    color: var(--blood-red);
}

.rating-status {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--blood-red);
    text-transform: uppercase;
    height: 12px;
}

.bar-track-title {
    font-family: var(--font-ui);
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    letter-spacing: -0.3px;
}

.bar-track-artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.playback-controls {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-play-btn {
    width: 48px;
    height: 48px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-play-btn:hover {
    transform: scale(1.1);
}

.progress-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 50px;
}

/* Player Bar Visualizer */
.stream-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin: 0 20px;
}

.stream-visualizer span {
    width: 6px;
    background: linear-gradient(to top, var(--blood-red), var(--bright-red));
    height: 10%;
    border-radius: 3px 3px 0 0;
    transition: 0.1s;
}

@keyframes bounce {
    0% { height: 15%; }
    50% { height: 100%; }
    100% { height: 25%; }
}

.playing .stream-visualizer span:nth-child(1) { animation: bounce 0.6s infinite ease-in-out; }
.playing .stream-visualizer span:nth-child(2) { animation: bounce 0.8s infinite ease-in-out; animation-delay: 0.1s; }
.playing .stream-visualizer span:nth-child(3) { animation: bounce 0.5s infinite ease-in-out; animation-delay: 0.2s; }
.playing .stream-visualizer span:nth-child(4) { animation: bounce 0.7s infinite ease-in-out; animation-delay: 0.3s; }
.playing .stream-visualizer span:nth-child(5) { animation: bounce 0.9s infinite ease-in-out; animation-delay: 0.15s; }
.playing .stream-visualizer span:nth-child(6) { animation: bounce 0.4s infinite ease-in-out; animation-delay: 0.25s; }

.player-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: 0;
}

.volume-tool {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
}

.icon-btn:hover {
    color: var(--text-primary);
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

/* FX Panel */
.fx-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
}

.fx-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.fx-label {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.fx-slider {
    width: 100% !important;
}

.fx-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.toggle-text {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toggle-status {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    min-width: 35px;
    color: var(--text-secondary);
    pointer-events: none;
}

.fx-toggle-wrap input:checked~.toggle-status {
    color: var(--bright-red);
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sliding-check {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 24px;
}

.sliding-check:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.sliding-check {
    background-color: var(--blood-red);
}

input:checked+.sliding-check:before {
    transform: translateX(20px);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

.wide-modal {
    max-width: 600px;
}

.full-schedule-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.fs-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.fs-item.active {
    background: rgba(170, 0, 0, 0.1);
    border-left-color: var(--blood-red);
}

.fs-time {
    font-family: var(--font-mono);
    color: var(--bright-red);
    font-weight: bold;
    min-width: 60px;
}

.fs-name {
    font-family: var(--font-ui);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
}

.fs-weekdays {
    font-size: 0.7rem;
    opacity: 0.5;
    text-transform: none;
    font-weight: normal;
}

.fs-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sleep-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.sleep-opt {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: var(--transition);
}

.sleep-opt:hover,
.sleep-opt.active {
    background: var(--blood-red);
}

.sleep-opt.special {
    grid-column: 1 / 3;
    background: linear-gradient(45deg, var(--blood-red), #550000);
}

.close-btn {
    background: none;
    border: 1px solid #333;
    color: #666;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 16px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Responsive */
@media (max-width: 900px) {
    .app-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr var(--player-height);
        height: 100dvh;
        width: 100%;
        overflow-x: hidden;
    }

    .now-next-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .nn-item {
        width: 100%;
    }

    .nn-value {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .nn-divider {
        width: 100%;
        height: 1px;
    }

    .next-song-box {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 16px;
        gap: 4px;
        width: 100%;
    }

    .ns-value {
        width: 100%;
        font-size: 0.75rem;
        word-break: break-word;
    }

    .side-nav {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 280px;
        height: 100dvh;
        transition: var(--transition);
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }

    .side-nav.active {
        left: 0;
    }

    .content-area {
        padding: 16px;
        padding-bottom: 40px;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 24px;
        background: var(--bg-black);
        padding: 10px 0;
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .mobile-title {
        font-family: var(--font-head);
        font-size: 1.8rem;
        color: var(--blood-red);
        letter-spacing: 2px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .now-playing-hero {
        min-height: 350px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        letter-spacing: -1px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.3rem);
        letter-spacing: 0;
    }

    .player-bar {
        grid-template-columns: auto 1fr auto;
        padding: 0 12px;
        gap: 8px;
    }

    .player-left {
        gap: 8px;
        min-width: 0;
        flex: 1;
    }

    .album-art-wrap {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .bar-metadata {
        flex: 1;
        min-width: 0;
    }

    .bar-track-title {
        font-size: 0.8rem;
        max-width: 80px;
    }

    .bar-track-artist {
        font-size: 0.75rem;
        max-width: 80px;
    }

    .player-center {
        max-width: none;
        min-width: 0;
    }

    .playback-controls {
        gap: 16px;
    }

    .player-right {
        display: flex !important;
        gap: 2px;
        flex-shrink: 0;
    }

    .player-right .icon-btn {
        font-size: 1rem;
        padding: 6px;
    }

    .volume-tool .slider {
        display: none;
    }

    /* Ensure FX and Sleep toggles are visible */
    #fx-toggle, #sleep-toggle {
        display: flex !important;
    }

    .bar-rating {
        display: flex;
        margin-left: 5px;
    }

    .star-btn {
        font-size: 0.8rem;
    }

    .rating-status {
        display: none;
    }
}

@media (max-width: 600px) {
    .player-left {
        gap: 8px;
    }

    .bar-metadata {
        display: flex;
        flex-direction: column;
        min-width: 0;
        max-width: 120px;
    }

    .bar-track-title {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bar-track-artist {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bar-rating {
        display: flex;
        transform: scale(0.85);
        margin-left: -10px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .album-art-wrap {
        width: 40px;
        height: 40px;
    }

    .main-play-btn {
        width: 40px;
        height: 40px;
    }
}

/* Community Section */
.community-section {
    margin-top: 24px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.community-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.community-header-link {
    text-decoration: none;
    display: block;
}

.community-header-link:hover .community-header {
    color: var(--text-primary);
}

.community-external-icon {
    font-size: 0.7rem;
    margin-left: 4px;
    opacity: 0.5;
}

.community-header i {
    color: #1da1f2;
}

.community-feed {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.5;
}

.community-loading,
.community-error {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.8rem;
}

.community-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.community-item:last-child {
    border-bottom: none;
}

/* Audio Enhancement Panel */
.fx-modal {
    max-width: 450px;
}

.enhancement-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--glass-border);
}

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

.enhancement-title {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.enhancement-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.enhancement-active {
    background: var(--blood-red);
    color: #fff;
}

.enhancement-inactive {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.enhancement-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-style: italic;
}

.enhancement-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

/* VU Meter */
.vu-meter-container {
    margin: 16px 0;
}

.vu-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.vu-meter {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.vu-meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blood-red), var(--bright-red));
    border-radius: 4px;
    transition: width 0.1s ease-out;
}

/* Advanced Settings */
.advanced-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    margin-top: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.advanced-toggle:hover {
    border-color: var(--blood-red);
    color: var(--text-primary);
}

.advanced-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}