/* ============================================================
   RADIO ONLINE — COMMON CSS (deferred, below-the-fold)
   ============================================================ */

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 240px 1fr auto;
    gap: 40px;
    padding-block: 48px;
    align-items: start;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__name {
    font-family: var(--font-condensed);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.site-footer__tagline {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.site-footer__widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.site-footer__col { }
.site-footer__social nav { }

.social-nav { display: flex; gap: 12px; }

.social-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0;
    transition: background .2s, color .2s;
}

.social-nav a:hover { background: var(--accent); color: #fff; }

.site-footer__bottom {
    border-top: 1px solid var(--border);
    padding-block: 16px;
}

.site-footer__bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-footer__copy { font-size: 13px; color: var(--muted); }

.footer-nav { display: flex; gap: 20px; }

.footer-nav a {
    font-size: 13px;
    color: var(--muted);
    transition: color .2s;
}

.footer-nav a:hover { color: var(--text-secondary); }

/* ══════════════════════════════════════
   AUDIO PLAYER
══════════════════════════════════════ */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-player);
    height: var(--player-h);
    background: var(--bg-player);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    box-shadow: 0 -4px 24px rgba(0,0,0,.5);
}

.player__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.player__station {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
    flex-shrink: 0;
}

.player__live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.player__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 1.6s ease-in-out infinite;
}

.player__live-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.player__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.player__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player__meta {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
}

.player__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: color .2s, background .2s;
}

.player__btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.player__btn:disabled { opacity: .35; pointer-events: none; }

.player__btn--play {
    width: 52px;
    height: 52px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(227,6,19,.4);
    transition: background .2s, transform .15s, box-shadow .2s;
}

.player__btn--play:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(227,6,19,.5);
}

.player__btn--play.is-loading .icon-play,
.player__btn--play.is-loading .icon-pause { display: none !important; }
.player__btn--play.is-loading .icon-loading { display: block !important; animation: spin .8s linear infinite; }

.player__btn--play.is-playing .icon-play { display: none !important; }
.player__btn--play.is-playing .icon-pause { display: block !important; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.player__volume {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    flex-shrink: 0;
}

.player__volume-slider-wrap { flex: 1; }

.player__volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: var(--border-light);
    outline: none;
    cursor: pointer;
}

.player__volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(227,6,19,.25);
    transition: transform .15s;
}

.player__volume-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.player__volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
}

.player__progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    opacity: .5;
}

/* ══════════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination__list { display: flex; align-items: center; gap: 6px; }

.pagination__item a,
.pagination__item span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: background .2s, color .2s, border-color .2s;
}

.pagination__item a:hover { background: var(--accent); color: #fff; border-color: transparent; }
.pagination__item .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.widget { }

.widget__title {
    font-family: var(--font-condensed);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-recent-posts { display: flex; flex-direction: column; gap: 14px; }

.widget-recent-posts__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.widget-recent-posts__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: block;
}

.widget-recent-posts__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.widget-recent-posts__item:hover .widget-recent-posts__thumb img { transform: scale(1.05); }

.widget-recent-posts__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.widget-recent-posts__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.widget-recent-posts__title:hover { color: var(--text); }
.widget-recent-posts__date { font-size: 11px; color: var(--muted); }

/* ══════════════════════════════════════
   NO RESULTS
══════════════════════════════════════ */
.no-results {
    padding: 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.no-results__title { font-size: 24px; font-weight: 700; }
.no-results__text { font-size: 15px; color: var(--text-secondary); }

/* ══════════════════════════════════════
   SEARCH FORM (widget)
══════════════════════════════════════ */
.search-form { display: flex; gap: 8px; }

.search-form .search-field {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    outline: none;
}

.search-form .search-field:focus { border-color: var(--accent); }

.search-form .search-submit {
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.search-form .search-submit:hover { background: var(--accent-dark); }

/* ══════════════════════════════════════
   RESPONSIVE — COMMON
══════════════════════════════════════ */
@media (max-width: 1100px) {
    .site-footer__inner { grid-template-columns: 200px 1fr; }
    .site-footer__social { display: none; }
}

@media (max-width: 900px) {
    .archive-layout { grid-template-columns: 1fr; }
    .single-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .site-footer__widgets { grid-template-columns: repeat(2, 1fr); }
    .player__station { min-width: 160px; }
    .player__volume { min-width: 140px; }
    .player__btn--prev,
    .player__btn--next { display: none; }
}

@media (min-width: 641px) and (max-width: 768px) {
    .player__volume { display: none; }
    .player__inner {
        gap: 0;
        padding-inline: 16px;
        justify-content: space-between;
    }
    .player__station {
        min-width: 0;
        flex: 1;
        overflow: hidden;
        gap: 10px;
    }
    .player__controls { margin: 0; gap: 4px; flex-shrink: 0; align-items: center; }
    .player__btn--play { width: 44px; height: 44px; box-shadow: 0 2px 10px rgba(227,6,19,.4); }
}

@media (max-width: 640px) {
    .site-footer__widgets { grid-template-columns: 1fr; }
    .site-footer__bottom .container { flex-direction: column; text-align: center; }
    .footer-nav { flex-wrap: wrap; justify-content: center; gap: 12px; }

    .player {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: var(--player-h);
        z-index: var(--z-player);
        box-sizing: border-box;
    }

    .player__inner {
        gap: 0;
        padding-inline: 12px;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
    }
    .player__volume { display: none; }
    .player__btn--prev,
    .player__btn--next { display: none; }
    .player__station {
        min-width: 0;
        flex: 1;
        overflow: hidden;
        gap: 8px;
    }
    .player__live-badge { flex-shrink: 0; }
    .player__info { min-width: 0; flex: 1; }
    .player__name { font-size: 13px; }
    .player__meta {
        font-size: 11px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .player__controls {
        gap: 4px;
        flex-shrink: 0;
        margin: 0;
        align-items: center;
    }
    .player__btn { width: 36px; height: 36px; }
    .player__btn--play {
        width: 44px;
        height: 44px;
        box-shadow: 0 2px 10px rgba(227,6,19,.4);
    }
}
