:root {
    --bg: #14151f;
    --surface: #1e2030;
    --surface-hover: #262940;
    --text: #f0f1f8;
    --text-secondary: #a3a6c2;
    --accent: #6c7bff;
    --accent-hover: #8593ff;
    --border: #2c2f47;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.seo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.75rem;
}
.seo-logo { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.seo-logo:hover { color: var(--text); text-decoration: none; }
.seo-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.seo-cta-small {
    background: var(--accent); color: #fff; padding: 0.45rem 0.9rem;
    border-radius: 999px; font-weight: 600; font-size: 0.9rem;
}
.seo-cta-small:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }

.seo-container { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.breadcrumbs { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.breadcrumbs a { color: var(--text-secondary); }

h1 { font-size: 1.9rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 1rem; }

.station-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.station-favicon { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--surface); }
.station-favicon-fallback { display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.station-tags { color: var(--text-secondary); margin: 0.3rem 0 0; font-size: 0.95rem; }

.player-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem;
}
.player-box audio { width: 100%; }
.btn-telegram {
    display: inline-flex; align-self: flex-start; align-items: center; gap: 0.4rem;
    background: #229ed9; color: #fff; padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 600;
}
.btn-telegram:hover { background: #1b8cc4; color: #fff; text-decoration: none; }

.station-description { color: var(--text-secondary); max-width: 65ch; }

.station-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.5rem 0; padding: 1rem; background: var(--surface); border-radius: 12px; }
.station-specs dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); }
.station-specs dd { margin: 0.15rem 0 0; font-weight: 600; }

.station-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem; }
.station-card {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text);
}
.station-card:hover { background: var(--surface-hover); text-decoration: none; }
.station-card-icon { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg); flex-shrink: 0; }
.station-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.card-icon-fallback { font-size: 1.4rem; }
.station-card-name { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-card-meta { font-size: 0.8rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.country-list, .genre-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem; }
.country-list li, .genre-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.65rem 0.9rem; display: flex; justify-content: space-between; }
.count { color: var(--text-secondary); font-size: 0.85rem; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2.5rem; color: var(--text-secondary); font-size: 0.9rem; }

.seo-footer { text-align: center; padding: 2rem 1.5rem; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 0.85rem; }
.seo-footer p { margin: 0.3rem 0; }

@media (max-width: 520px) {
    .seo-header { flex-direction: column; align-items: flex-start; }
    h1 { font-size: 1.5rem; }
}
