/*
==========================================================
RadioBOSS Song Request System
Version 1.1.0
==========================================================
*/

* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;

    --page-background: #07152f;
    --panel-background: rgba(8, 22, 48, 0.92);
    --row-background: rgba(21, 31, 51, 0.94);
    --input-background: #102a56;

    --accent: #2b63ff;
    --accent-hover: #4d8cff;

    --text: #ffffff;
    --muted: #c9dbff;

    --success: #4ade80;
    --success-background: rgba(74, 222, 128, 0.12);

    --error: #f87171;
    --error-background: rgba(248, 113, 113, 0.12);

    --pending: #facc15;
    --pending-background: rgba(250, 204, 21, 0.12);

    --border: rgba(255, 255, 255, 0.12);
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 40px 20px;

    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);

    background:
        radial-gradient(
            circle at top,
            #123a75 0,
            transparent 45%
        ),
        var(--page-background);
}

.request-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.hero,
.search-panel {
    padding: 32px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--panel-background);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(10px);
}

.hero {
    margin-bottom: 24px;
    text-align: center;
}

.station-logo {
    display: block;

    max-width: 180px;
    max-height: 120px;

    margin: 0 auto 18px;

    object-fit: contain;
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 5vw, 2.7rem);
}

.hero p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 1.05rem;
}

.player-box iframe {
    width: 100%;
    height: 150px;

    border: 0;
    border-radius: 16px;

    overflow: hidden;
}

.search-label {
    display: block;

    margin-bottom: 10px;

    font-size: 1rem;
    font-weight: 700;
}

#searchBox {
    width: 100%;

    padding: 17px 18px;

    border: 1px solid transparent;
    border-radius: 13px;

    outline: none;

    background: var(--input-background);
    color: var(--text);

    font: inherit;
    font-size: 1.08rem;
}

#searchBox::placeholder {
    color: rgba(201, 219, 255, 0.72);
}

#searchBox:focus {
    border-color: var(--accent-hover);

    box-shadow:
        0 0 0 4px rgba(77, 140, 255, 0.18);
}

#searchBox:disabled {
    cursor: wait;
    opacity: 0.65;
}

.station-guard {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid rgba(250, 204, 21, 0.55);
    border-radius: 15px;
    background: rgba(250, 204, 21, 0.12);
}

.station-guard[hidden] {
    display: none;
}

.station-guard-icon {
    font-size: 2rem;
    color: var(--pending);
}

.station-guard-copy strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.08rem;
}

.station-guard-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.station-guard-link {
    padding: 12px 16px;
    border-radius: 11px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.station-guard-link:hover,
.station-guard-link:focus-visible {
    background: var(--accent-hover);
}

.station-blocked-status {
    color: var(--pending);
    font-weight: 700;
}

@media (max-width: 700px) {
    .station-guard {
        grid-template-columns: auto 1fr;
    }

    .station-guard-link {
        grid-column: 1 / -1;
        text-align: center;
        white-space: normal;
    }
}

.catalog-status {
    margin: 12px 2px 20px;

    color: var(--muted);
    font-size: 0.92rem;
}

.song-row {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 22px;

    margin-bottom: 12px;
    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--row-background);
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-title {
    display: flex;
    gap: 9px;

    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.music-note {
    flex-shrink: 0;
    color: var(--accent-hover);
}

.inline-message {
    width: 100%;
    min-height: 70px;

    margin-top: 13px;
    padding: 12px;

    border: 1px solid transparent;
    border-radius: 10px;

    outline: none;
    resize: vertical;

    background: var(--input-background);
    color: var(--text);

    font: inherit;
}

.inline-message::placeholder {
    color: rgba(201, 219, 255, 0.72);
}

.inline-message:focus {
    border-color: var(--accent-hover);

    box-shadow:
        0 0 0 3px rgba(77, 140, 255, 0.14);
}

.inline-message:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.request-actions {
    width: 150px;
    flex-shrink: 0;
}

.request-btn {
    width: 100%;

    padding: 12px 16px;

    border: 0;
    border-radius: 10px;

    background: var(--accent);
    color: var(--text);

    font: inherit;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        opacity 0.15s ease,
        transform 0.15s ease;
}

.request-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.request-btn:active:not(:disabled) {
    transform: translateY(0);
}

.request-btn:focus-visible {
    outline: 3px solid rgba(77, 140, 255, 0.45);
    outline-offset: 3px;
}

.request-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.request-status {
    margin-top: 12px;
    padding: 10px 12px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.07);

    font-size: 0.92rem;
    line-height: 1.4;
}

.request-status[hidden] {
    display: none;
}

.request-status.request-pending {
    border-color: rgba(250, 204, 21, 0.35);
    background: var(--pending-background);
    color: var(--pending);
}

.request-status.request-success {
    border-color: rgba(74, 222, 128, 0.35);
    background: var(--success-background);
    color: var(--success);
}

.request-status.request-error {
    border-color: rgba(248, 113, 113, 0.35);
    background: var(--error-background);
    color: var(--error);
}

.no-results,
.search-notice {
    margin-top: 12px;
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--row-background);

    text-align: center;
}

.search-notice {
    color: var(--muted);
}

.error-message {
    color: var(--error);
}

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

    .hero,
    .search-panel {
        padding: 22px 16px;
    }

    .song-row {
        flex-direction: column;
        gap: 16px;
    }

    .request-actions {
        width: 100%;
    }

    .request-btn {
        min-height: 46px;
    }
}


/* Central station selector */
.station-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 20px;
}

.station-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid currentColor;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.station-button:hover {
    transform: translateY(-1px);
}

.station-button.active {
    box-shadow: 0 0 0 2px currentColor inset;
}

@media (max-width: 640px) {
    .station-selector {
        display: grid;
        grid-template-columns: 1fr;
    }

    .station-button {
        width: 100%;
    }
}
