/* ============================================================
   MrBeast21r — медиаархив, радио и файлы
   Светлая тема (эталон дизайна: index_white2.html)
   ============================================================ */

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

:root {
    --bg: #f7f8fa;
    --bg-card: #ffffff;
    --bg-card-hover: #fafbfc;
    --bg-elevated: #f3f4f7;
    --text: #1a1d24;
    --text-muted: #5f6368;
    --text-dim: #9aa0a6;
    --accent: #ff4d2e;
    --accent-hover: #e63a1f;
    --accent-soft: rgba(255, 77, 46, 0.10);
    --border: #e4e7ec;
    --border-hover: #d1d5db;
    --success: #16a34a;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(15, 17, 21, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 17, 21, 0.06);
    --shadow-lg: 0 8px 24px rgba(15, 17, 21, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ============ Шапка ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #ff8c42);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    flex: none;
}

.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; color: var(--text); line-height: 1.2; }
.brand-tagline { font-size: 11px; color: var(--text-dim); margin-top: -2px; }

/* ============ Навигация (табы) ============ */
.main-nav { display: flex; gap: 4px; align-items: center; }

.nav-tab {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-tab:hover { background: var(--bg-elevated); color: var(--text); }
.nav-tab.active { background: var(--accent-soft); color: var(--accent); }
.nav-tab .icon { font-size: 16px; }

.mobile-menu-btn { display: none; padding: 8px; border-radius: 8px; color: var(--text); }

/* ============ Hero ============ */
.hero {
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(ellipse at top, rgba(255, 77, 46, 0.06), transparent 60%);
}

.hero h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--text);
    background: linear-gradient(135deg, #1a1d24 0%, #4a4f5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p { font-size: 16px; color: var(--text-muted); max-width: 720px; margin-bottom: 0; }

/* ============ Вкладки и страницы разделов ============ */
.tab-content { display: none; padding: 40px 0 80px; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }

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

.page-main { padding: 40px 0 80px; }

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}
.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
    flex: none;
}

.sub-section { margin-top: 48px; }

/* ============ Новости ============ */
.news-grid { display: grid; gap: 16px; }

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.news-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.news-date { color: var(--text-dim); }

.news-tag {
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-tag.tag-update { background: rgba(22, 163, 74, 0.10); color: var(--success); }
.news-tag.tag-radio { background: rgba(245, 158, 11, 0.12); color: var(--warning); }

.news-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.news-card p { color: var(--text-muted); font-size: 14px; }

/* ============ Панель фильтров и поиска ============ */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
    padding: 7px 14px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.chip:hover { border-color: var(--border-hover); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.search-box { position: relative; flex: 1; max-width: 320px; min-width: 200px; }

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}

/* ============ Сетка медиа-карточек ============ */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.media-card:hover,
.media-card:focus-visible {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.media-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.media-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #e4e7ec, #f3f4f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    position: relative;
    overflow: hidden;
}
.media-thumb.music { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.media-thumb.video { background: linear-gradient(135deg, #ec4899, #f43f5e); font-size: 36px; color: rgba(255, 255, 255, 0.9); }
.media-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.2));
}

.media-info { padding: 14px; }

.media-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.media-meta {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.media-badge {
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-elevated);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* ============ Внешние видео (VK / Rutube) ============ */
.ext-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.ext-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.ext-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: inherit;
}

.letter-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.badge-vk { background: #0077ff; }
.badge-rutube { background: #d92d20; }

.ext-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ext-title { font-weight: 600; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-sub { font-size: 12px; color: var(--text-dim); }

/* ============ Состояния загрузки / пусто / ошибка ============ */
.tab-loading { color: var(--text-dim); font-size: 14px; padding: 8px 0; }
.empty, .load-error { color: var(--text-muted); font-size: 14px; padding: 12px 0; }
.load-error a, .note a { color: var(--accent); }
.note { color: var(--text-muted); font-size: 14px; }

.plain-list { list-style: none; margin-top: 10px; }
.plain-list li { padding: 3px 0; }
.plain-list a { color: var(--accent); }

/* ============ Радио ============ */
.radio-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* Левая колонка: плеер + Premium. Статична — скроллится только список станций справа */
.radio-left {
    display: grid;
    gap: 24px;
    align-self: start;
}

.radio-player {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.radio-cover {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff8c42);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    box-shadow: 0 20px 60px rgba(255, 77, 46, 0.25);
    animation: pulse 3s ease-in-out infinite;
}

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

.radio-now-playing {
    font-size: 13px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.radio-track { font-size: 20px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.radio-artist { color: var(--text-muted); margin-bottom: 24px; }

.radio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(255, 77, 46, 0.35);
}
.play-btn:hover { background: var(--accent-hover); transform: scale(1.05); }

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.control-btn:hover { background: var(--border); color: var(--text); }

/* Громкость */
.radio-volume {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.volume-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.volume-btn:hover { color: var(--text); }
.volume-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.radio-volume input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    outline: none;
    cursor: pointer;
}
.radio-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: transform 0.15s;
}
.radio-volume input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.radio-volume input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.radio-quality {
    display: inline-flex;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border-radius: 20px;
    font-size: 12px;
    align-items: center;
}

.quality-free { color: var(--text-muted); }
.quality-premium { color: var(--warning); }
.q-sep { color: var(--text-dim); }

.radio-hint {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-dim);
    border: 1px dashed var(--border-hover);
    border-radius: 10px;
    padding: 10px 12px;
    transition: all 0.25s;
}
.radio-hint.flash {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.radio-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.radio-info h3 { font-size: 16px; margin-bottom: 16px; color: var(--text); }

/* Список станций скроллится внутри себя — плеер слева остаётся на месте */
.radio-stations {
    display: grid;
    gap: 8px;
    align-content: start;
    margin-bottom: 20px;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 6px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
}
.radio-stations::-webkit-scrollbar { width: 8px; }
.radio-stations::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
.radio-stations::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

.station {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border-radius: 10px;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.station:hover { background: var(--border); }
.station.active { background: var(--accent-soft); border-left-color: var(--accent); }
.station:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.station-name { font-size: 14px; font-weight: 500; color: var(--text); }
.station-listeners { font-size: 12px; color: var(--text-dim); }

.station-arrow { color: var(--text-dim); font-size: 12px; }
.station.active .station-arrow { color: var(--accent); }

.listeners-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 6px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.radio-cta {
    padding: 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(255, 77, 46, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 0;
}

.radio-cta h4 { color: var(--warning); font-size: 14px; margin-bottom: 6px; }
.radio-cta p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

.btn-premium {
    padding: 8px 20px;
    background: var(--warning);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}
.btn-premium:hover { background: #d97706; }

.radio-soon-note { font-size: 12px; color: var(--warning); margin-top: 8px; }

.radio-links h4 { font-size: 13px; margin-bottom: 6px; color: var(--text); }
.radio-links p { font-size: 13px; color: var(--text-muted); }
.radio-links a { color: var(--accent); font-weight: 600; }

/* Радио внутри вкладки (iframe на главной) */
.radio-frame {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.radio-frame iframe { display: block; width: 100%; height: 880px; border: 0; }

/* radio.html, открытый внутри iframe: без шапки и подвала */
body.in-frame .site-header,
body.in-frame .site-footer { display: none; }
body.in-frame .page-main { padding: 0; }

/* ============ О нас ============ */
.about-content { max-width: 720px; }

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.about-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--accent); }
.about-card p { color: var(--text-muted); font-size: 15px; }
.about-card a { color: var(--accent); font-weight: 500; }

/* ============ Подвал ============ */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    padding: 32px 0;
    color: var(--text-dim);
    font-size: 13px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent); }

/* ============ Модальное окно (плеер) ============ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 17, 21, 0.6);
}
.modal[hidden] { display: none; }

.modal-card {
    background: var(--bg-card);
    border-radius: 16px;
    width: 100%;
    max-width: 820px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    box-shadow: var(--shadow-lg);
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px 0;
}
.modal-head h3 { margin: 0; font-size: 17px; line-height: 1.4; }

.modal-close {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    flex: none;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.modal-close:hover { border-color: var(--border-hover); color: var(--text); }

.modal-body { padding: 14px 20px 20px; }

#media-box video {
    display: block;
    width: 100%;
    max-height: 66vh;
    background: #000;
    border-radius: 10px;
    margin-bottom: 12px;
}
#media-box audio { display: block; width: 100%; margin-bottom: 12px; }

.player-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.player-nav .nav-btn { padding: 7px 14px; font-size: 13px; }
.player-nav .nav-btn[disabled] { opacity: 0.45; cursor: default; pointer-events: none; }
.player-nav .nav-count { color: var(--text-muted); font-size: 13px; white-space: nowrap; }

.embed-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.embed-box iframe { display: block; width: 100%; height: 100%; border: 0; }

.modal-meta { margin: 0 0 6px; font-size: 13px; color: var(--text-muted); word-break: break-word; }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ============ Доступность ============ */
.nav-tab:focus-visible, .chip:focus-visible, .play-btn:focus-visible,
.control-btn:focus-visible, .btn:focus-visible, .btn-premium:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================================
   Совместимость: подстраницы /files/*, /files и 404.html
   (они используют классы прежней вёрстки и общий style.css)
   ============================================================ */
.site-title { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -0.3px; }
.site-title a { color: var(--text); }
.site-title a:hover { color: var(--accent); }

.main-nav a:not(.nav-tab) {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}
.main-nav a:not(.nav-tab):hover { background: var(--bg-elevated); color: var(--text); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 18px; margin: 0 0 12px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
th {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
tr:last-child td { border-bottom: none; }
td a { color: var(--accent); }
td.size, td.date { color: var(--text-dim); white-space: nowrap; }

.path-badge {
    display: inline-block;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 8px;
    color: var(--accent-hover);
    white-space: nowrap;
}

.breadcrumb { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }
.breadcrumb a { color: var(--accent); }

.btn {
    display: inline-block;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--border-hover); text-decoration: none; color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.error-card { text-align: center; padding: 48px 26px; }
.error-code { font-size: 64px; font-weight: 800; color: var(--accent); margin: 0; line-height: 1.1; }

/* ============ Адаптив ============ */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { display: flex; }

    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }

    .nav-tab { width: 100%; justify-content: flex-start; }

    .brand-tagline { display: none; }

    .hero { padding: 32px 0 24px; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 14px; }

    .tab-content, .page-main { padding: 24px 0 48px; }
    .section-title { font-size: 18px; }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    .media-info { padding: 10px; }
    .media-title { font-size: 13px; }

    .ext-grid { grid-template-columns: 1fr; }

    .radio-container { grid-template-columns: 1fr; }
    .radio-player { padding: 24px 16px; }
    .radio-cover { width: 160px; height: 160px; font-size: 60px; }
    .radio-track { font-size: 18px; }

    .radio-frame iframe { height: 1360px; }

    .toolbar { flex-direction: column; align-items: stretch; }
    .search-box { max-width: none; }

    .footer-row { flex-direction: column; text-align: center; }
}
