:root {
    --primary: #1D2532;
    --secondary: #323C60;
    --deep-accent: #2E4240;
    --accent: #52726D;
    --neutral: #7F7F7F;

    --bg: #0f131a;
    --card: #151b24;
    --card-2: #111720;
    --text: #f5f5f5;
    --muted: #c8ccd4;
    --line: rgba(255,255,255,0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, rgba(50,60,96,0.25), transparent 35%),
        linear-gradient(180deg, #0b0f15 0%, var(--bg) 100%);
    color: var(--text);
    padding: 24px;
}

.page-center {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.card {
    width: min(920px, calc(100vw - 32px));
    background: linear-gradient(180deg, rgba(29,37,50,0.96), rgba(21,27,36,0.96));
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 24px 70px rgba(0,0,0,.40);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.brand-kicker {
    color: var(--muted);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 14px;
}

.event-title {
    margin: 0 0 10px;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1;
}

.event-description {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 680px;
    line-height: 1.45;
}

.logo-box {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-box.logo-wide {
    width: 190px;
    height: 130px;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.now-playing {
    margin-top: 12px;
    margin-bottom: 26px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(50,60,96,0.35), rgba(17,23,32,0.95));
    border: 1px solid var(--line);
}

.now-layout {
    display: grid;
    grid-template-columns: 1fr 132px;
    gap: 20px;
    align-items: center;
}

.cover-placeholder {
    width: 132px;
    height: 132px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(82,114,109,.7), rgba(50,60,96,.65)),
        #111720;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.8);
    font-weight: 800;
}

.section-label {
    font-size: 0.95rem;
    font-weight: 800;
    color: #d7dbe4;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.track-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.track-artist {
    color: var(--muted);
    margin-bottom: 14px;
}

.progress {
    width: 100%;
    height: 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 999px;
    transition: width .3s ease;
}

.time-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.search {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0d1219;
    color: var(--text);
    font-size: 1rem;
    outline: none;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(82,114,109,0.25);
}

button, a.button {
    padding: 14px 18px;
    border-radius: 14px;
    border: 0;
    background: var(--secondary);
    color: white;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:hover, a.button:hover {
    background: var(--accent);
}

.queue, .panel {
    margin-top: 24px;
    padding: 20px;
    border-radius: 20px;
    background: var(--card-2);
    color: var(--muted);
    border: 1px solid var(--line);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    align-items: start;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.field label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}

.admin-link {
    margin-top: 24px;
}

@media (max-width: 820px) {
    .topbar,
    .admin-grid,
    .now-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .logo-box {
        width: 110px;
        height: 110px;
    }

    .logo-box.logo-wide {
        width: 170px;
        height: 110px;
    }

    .search {
        flex-direction: column;
    }

    .time-row {
        flex-direction: column;
        gap: 4px;
    }
}

.logo-clean {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
}

.logo-clean img {
    padding: 0;
}
.front-logo {
    width: clamp(96px, 14vw, 180px);
    height: clamp(96px, 14vw, 180px);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.front-logo:hover {
    transform: scale(1.04);
    box-shadow: 0 18px 48px rgba(0,0,0,.35);
}

.logo-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 13, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.logo-modal.is-open {
    display: flex;
}

.logo-modal img {
    max-width: min(90vw, 720px);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0,0,0,.6);
}

.logo-modal-close {
    position: fixed;
    top: 18px;
    right: 18px;
    background: var(--secondary);
    color: white;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 820px) {
    .topbar {
        align-items: flex-start;
    }

    .front-logo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 560px) {
    body {
        padding: 12px;
    }

    .card {
        width: 100%;
        padding: 22px;
        border-radius: 22px;
    }

    .topbar {
        gap: 16px;
    }

    .front-logo {
        width: 96px;
        height: 96px;
        border-radius: 18px;
    }

    .event-title {
        font-size: clamp(2rem, 13vw, 3.2rem);
    }

    .event-description {
        font-size: 1rem;
    }

    .now-playing {
        padding: 16px;
    }

    .cover-placeholder {
        width: 100%;
        height: 180px;
    }
}
.muted {
    color: var(--muted);
}

.flash {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
    border: 1px solid var(--line);
}

.flash-success {
    background: rgba(82, 114, 109, 0.28);
    color: #e9fff8;
}

.flash-error {
    background: rgba(140, 55, 65, 0.28);
    color: #ffe8ec;
}
.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.admin-actions form {
    margin: 0;
}