/* === MusicEngine — Основные стили === */
:root {
    --bg: #0d0f13;
    --bg-card: #161922;
    --bg-card-hover: #1c2030;
    --text: #e4e6ed;
    --text-muted: #8b8fa5;
    --accent: #6c5ce7;
    --accent-hover: #7f71f0;
    --accent-soft: rgba(108,92,231,0.12);
    --border: #252836;
    --success: #00b894;
    --danger: #e74c3c;
    --radius: 10px;
    --radius-sm: 6px;
    --font: 'Manrope', -apple-system, sans-serif;
    --max-width: 1200px;
    --transition: 0.2s ease;
}

html[data-accent="forest"] { --accent:#39b98d; --accent-hover:#63d1aa; --accent-soft:rgba(57,185,141,.14); }
html[data-accent="amber"] { --accent:#dca84f; --accent-hover:#efc779; --accent-soft:rgba(220,168,79,.14); }
html[data-theme="light"][data-accent="forest"] { --accent:#087650; --accent-hover:#075e41; }
html[data-theme="light"][data-accent="amber"] { --accent:#94600b; --accent-hover:#754b08; }

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* === Header === */
.header {
    background: rgba(13,15,19,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}
.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
    flex-shrink: 0;
}
.logo-icon {
    font-size: 1.5rem;
    color: var(--accent);
}
.header__nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
}
.header__nav a {
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.header__nav a:hover, .header__nav a.active {
    color: var(--text);
    background: var(--accent-soft);
}
.header__search {
    display: flex;
    margin-left: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    flex: 0 1 320px;
}
.header__search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 8px 14px;
    font-size: 0.9rem;
    font-family: var(--font);
    outline: none;
}
.header__search input::placeholder { color: var(--text-muted); }
.header__search button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 12px;
    cursor: pointer;
}
.header__burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.header__burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* === Hero === */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}
.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.1rem; }
.hero__search {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.hero__search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 14px 20px;
    font-size: 1rem;
    font-family: var(--font);
    outline: none;
}
.hero__search input::placeholder { color: var(--text-muted); }
.hero__search button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: background var(--transition);
}
.hero__search button:hover { background: var(--accent-hover); }

/* === Sections === */
.section { margin: 40px 0; }
.section__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.section__header h2 { font-size: 1.4rem; font-weight: 700; }
.section__more { color: var(--text-muted); font-size: 0.9rem; }

/* === Tracks Grid === */
.tracks-grid { display: flex; flex-direction: column; gap: 2px; }
.track-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.track-card:hover { background: var(--bg-card-hover); }
.track-card__num { color: var(--text-muted); font-size: 0.85rem; width: 28px; text-align: center; flex-shrink: 0; }
.track-card__img { width: 50px; height: 50px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-card); }
.track-card__img img { width: 100%; height: 100%; object-fit: cover; }
.track-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.2rem;
    background: var(--bg-card);
}
.track-card__info { flex: 1; min-width: 0; }
.track-card__title {
    display: block;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.track-card__title:hover { color: var(--accent); }
.track-card__artist { color: var(--text-muted); font-size: 0.85rem; }
.track-card__duration { color: var(--text-muted); font-size: 0.85rem; flex-shrink: 0; }
.track-card__lyrics-badge {
    display: inline-block;
    font-size: 0.7rem;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Chart positions */
.track-card__position { font-weight: 700; font-size: 1.1rem; width: 40px; text-align: center; flex-shrink: 0; }
.track-card__change { font-size: 0.65rem; display: block; }
.track-card__change--up { color: var(--success); }
.track-card__change--down { color: var(--danger); }
.track-card__change--new { color: var(--accent); font-weight: 600; }

/* === Artists Grid === */
.artists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; }
.artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 8px;
    border-radius: var(--radius);
    transition: background var(--transition);
}
.artist-card:hover { background: var(--bg-card); }
.artist-card__img {
    width: 100px; height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--bg-card);
}
.artist-card__img img { width: 100%; height: 100%; object-fit: cover; }
.artist-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: var(--accent);
    background: var(--accent-soft);
}
.artist-card__name { color: var(--text); font-weight: 600; font-size: 0.9rem; }
.artist-card__genre { color: var(--text-muted); font-size: 0.8rem; }

/* === Genres === */
.genres-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.genre-tag:hover { border-color: var(--accent); color: var(--accent); }
.genre-tag__count { color: var(--text-muted); font-size: 0.8rem; }

/* === Charts === */
.charts-list { display: flex; flex-direction: column; gap: 8px; }
.chart-link, .chart-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border-radius: var(--radius);
    color: var(--text);
    transition: all var(--transition);
}
.chart-link:hover, .chart-card:hover { background: var(--bg-card-hover); transform: translateX(4px); }
.chart-link__name, .chart-card__name { font-weight: 600; flex: 1; }
.chart-link__count, .chart-card__count { color: var(--text-muted); font-size: 0.85rem; }

/* === Artist page === */
.artist-hero { display: flex; gap: 30px; margin-bottom: 30px; }
.artist-hero__img { width: 200px; height: 200px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--bg-card); }
.artist-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.artist-hero__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; font-weight: 800; color: var(--accent); background: var(--accent-soft); }
.artist-hero__info h1 { font-size: 2rem; margin-bottom: 8px; }
.artist-hero__genre { display: inline-block; background: var(--accent-soft); color: var(--accent); padding: 4px 12px; border-radius: 12px; font-size: 0.85rem; margin-bottom: 8px; }
.artist-hero__listeners { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.artist-hero__bio { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* === Track page === */
.track-hero { display: flex; gap: 30px; margin-bottom: 30px; }
.track-hero__img { width: 250px; height: 250px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--bg-card); }
.track-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.track-hero__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--accent); background: var(--accent-soft); }
.track-hero__info h1 { font-size: 1.8rem; margin-bottom: 8px; }
.track-hero__artist { font-size: 1.1rem; font-weight: 600; display: block; margin-bottom: 12px; }
.track-hero__album, .track-hero__duration, .track-hero__genre { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 4px; }
.track-hero__explicit { display: inline-block; background: var(--danger); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; }

/* === Platforms === */
.platforms { margin: 24px 0; }
.platforms__label { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.platforms--large h2 { margin-bottom: 16px; }
.platforms__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.platform-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    background: var(--platform-color, var(--accent));
    margin-right: 8px;
    margin-bottom: 6px;
    transition: opacity var(--transition);
}
.platform-btn:hover { color: #fff; opacity: 0.85; }
.platform-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.platform-card:hover { border-color: var(--platform-color, var(--accent)); transform: translateY(-2px); }
.platform-card__name { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.platform-card__action { font-size: 0.85rem; color: var(--platform-color, var(--accent)); }

/* === Lyrics === */
.lyrics-text { background: var(--bg-card); padding: 24px 28px; border-radius: var(--radius); font-size: 1rem; line-height: 1.8; white-space: pre-line; color: var(--text); border: 1px solid var(--border); }
.lyrics-text--truncated { max-height: 300px; overflow: hidden; position: relative; }
.lyrics-text--truncated::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, var(--bg-card)); }
.lyrics-preview .btn { margin-top: 12px; }

/* === Breadcrumbs === */
.breadcrumbs { margin: 16px 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.breadcrumbs li { font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs li::after { content: '›'; margin-left: 8px; }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* === Pagination === */
.pagination { margin: 30px 0; text-align: center; }
.pagination ul { display: inline-flex; gap: 4px; list-style: none; }
.pagination a, .pagination .current {
    display: block; padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 0.9rem; color: var(--text-muted);
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn--outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* === Misc === */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.error-page { text-align: center; padding: 40px 20px; max-width: 700px; margin: 0 auto; }
.error-page__hero { margin-bottom: 24px; }
.error-page__code { font-size: 6rem; font-weight: 800; color: var(--accent); opacity: 0.3; line-height: 1; display: block; }
.error-page h1 { font-size: 1.5rem; margin: 8px 0; }
.error-page p { color: var(--text-muted); margin-bottom: 16px; }
.error-page__search { display: flex; max-width: 460px; margin: 0 auto 20px; gap: 8px; }
.error-page__search input { flex: 1; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 1rem; }
.error-page__search button { padding: 12px 24px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-weight: 600; cursor: pointer; }
.error-page__nav { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.error-page__nav .btn { font-size: 0.85rem; }

.search-form { display: flex; max-width: 500px; margin: 0 auto; gap: 8px; }
.search-form input { flex: 1; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); }
.search-form button { padding: 12px 24px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-weight: 600; cursor: pointer; }

/* === Footer === */
.footer { margin-top: 60px; border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer__logo { font-weight: 700; color: var(--text); margin-bottom: 8px; display: block; }
.footer__desc { color: var(--text-muted); font-size: 0.85rem; }
.footer__col strong { display: block; color: var(--text); margin-bottom: 10px; font-size: 0.9rem; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 6px; }
.footer__col a { color: var(--text-muted); font-size: 0.85rem; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; }
.footer__bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* === Responsive === */
@media (max-width: 768px) {
    .header__nav { display: none; }
    .header__burger { display: flex; }
    .header__search { flex: 1; }
    .menu-open .header__nav {
        display: block;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 16px 20px;
    }
    .menu-open .header__nav ul { flex-direction: column; }
    .hero h1 { font-size: 1.6rem; }
    .artist-hero, .track-hero { flex-direction: column; align-items: center; text-align: center; }
    .artist-hero__img, .track-hero__img { width: 150px; height: 150px; }
    .artists-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .platforms__grid { grid-template-columns: 1fr 1fr; }
    .dl-cta .btn--download { padding: 14px 28px; font-size: 0.95rem; width: 100%; max-width: 320px; }
    .error-page__search { flex-direction: column; }
    .error-page__code { font-size: 4rem; }
    .track-card { gap: 8px; }
    .track-card__img { width: 48px; height: 48px; flex-shrink: 0; }
    .track-card__num { display: none; }
    .section__header { flex-wrap: wrap; gap: 6px; }
    .platforms { flex-wrap: wrap; gap: 6px; }
    .platform-btn { font-size: 0.8rem; padding: 6px 12px; }
    .tags-inline { gap: 4px; }
    .tag-badge { font-size: 0.75rem; padding: 3px 8px; }
    .hero__search { flex-direction: column; }
    .hero__search input, .hero__search button { width: 100%; }
    .subscribe-form { flex-direction: column; align-items: stretch; }
    .subscribe-form input[type="email"] { min-width: auto; }
}

/* === Preview Player === */
.preview-player { margin-top: 16px; }
.preview-player__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}
.preview-player__btn:hover { background: var(--accent-hover); }
.preview-player__btn.is-playing { background: var(--accent-hover); }
.preview-player__bar {
    display: flex; align-items: center; gap: 10px;
    margin-top: 8px;
}
.preview-player__progress {
    flex: 1; height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.preview-player__fill {
    height: 100%; width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s linear;
}
.preview-player__time { color: var(--text-muted); font-size: 0.8rem; min-width: 32px; }

.mini-play {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.mini-play:hover { background: var(--accent); color: #fff; }
.mini-play.is-playing { background: var(--accent); color: #fff; }

/* === Tags === */
.tags-inline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all var(--transition);
}
.tag-badge:hover { background: var(--accent); color: #fff; }

.tags-grid-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.tag-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: all var(--transition);
}
.tag-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tag-card__name { font-weight: 600; }
.tag-card__count { color: var(--text-muted); font-size: 0.8rem; }

.genre-tag--active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* === Collections === */
.collections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.collections-grid--home { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.collection-card {
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.collection-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.collection-card__img { height: 140px; overflow: hidden; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.collection-card__img img { width: 100%; height: 100%; object-fit: cover; }
.collection-card__placeholder { font-size: 2.5rem; }
.collection-card__info { padding: 14px; }
.collection-card__title { display: block; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.collection-card__meta { font-size: 0.8rem; color: var(--text-muted); }

.collections-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.collection-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.collection-link:hover { border-color: var(--accent); color: var(--accent); }

.collection-hero { display: flex; gap: 24px; margin-bottom: 30px; align-items: center; }
.collection-hero__img { width: 200px; height: 200px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.collection-hero__info h1 { font-size: 1.8rem; margin-bottom: 8px; }
.collection-hero__info p { color: var(--text-muted); margin-bottom: 8px; }
.collection-hero__meta { color: var(--text-muted); font-size: 0.9rem; }

.track-card__comment { display: block; font-size: 0.78rem; color: var(--accent); font-style: italic; }

/* === SEO text block === */
.seo-text { margin-top: 40px; padding: 24px; background: var(--bg-card); border-radius: var(--radius); color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

.section-desc { color: var(--text-muted); margin-bottom: 20px; }

@media (max-width: 768px) {
    .collections-grid { grid-template-columns: 1fr; }
    .collection-hero { flex-direction: column; text-align: center; }
    .collection-hero__img { width: 150px; height: 150px; }
    .tags-grid-page { grid-template-columns: 1fr 1fr; }
}

/* === Search Suggest === */
.header__search { position: relative; }
.search-suggest {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.suggest-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    color: var(--text);
    transition: background var(--transition);
    border-bottom: 1px solid var(--border);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover, .suggest-item--active { background: var(--bg-card-hover); }
.suggest-thumb { width: 32px; height: 32px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggest-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--accent-soft); border-radius: 4px; font-size: 0.9rem; }
.suggest-text { flex: 1; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-type { color: var(--text-muted); font-size: 0.75rem; flex-shrink: 0; }

/* === Blog === */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.blog-grid--small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.blog-card__img { height: 160px; overflow: hidden; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__placeholder { font-size: 2.5rem; }
.blog-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.blog-card__cat { color: var(--accent); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.blog-card__title { color: var(--text); font-weight: 600; font-size: 1rem; margin-bottom: 6px; display: block; }
.blog-card__excerpt { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }
.blog-card__date { color: var(--text-muted); font-size: 0.78rem; margin-top: auto; }

.blog-article__cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; max-height: 400px; }
.blog-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-article__meta { display: flex; gap: 8px; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; flex-wrap: wrap; }
.blog-article h1 { font-size: 2rem; margin-bottom: 20px; }
.blog-article__content { font-size: 1rem; line-height: 1.8; color: var(--text); }
.blog-article__content p { margin-bottom: 16px; }

/* === Album === */
.album-hero { display: flex; gap: 30px; margin-bottom: 30px; }
.album-hero__img { width: 250px; height: 250px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--bg-card); }
.album-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.album-hero__info { display: flex; flex-direction: column; justify-content: center; }
.album-hero__type { color: var(--accent); font-size: 0.8rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }

/* === Alphabet === */
.alphabet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; margin-top: 24px; }
.alphabet-letter {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.alphabet-letter:hover { border-color: var(--accent); transform: translateY(-2px); }
.alphabet-letter__char { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.alphabet-letter__count { font-size: 0.8rem; color: var(--text-muted); }

.alphabet-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 24px; }
.alphabet-nav__letter {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}
.alphabet-nav__letter:hover { border-color: var(--accent); color: var(--accent); }
.alphabet-nav__letter--active { background: var(--accent); color: #fff; border-color: var(--accent); }

.artists-list { display: flex; flex-direction: column; gap: 2px; }
.artist-list-item {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: background var(--transition);
}
.artist-list-item:hover { background: var(--bg-card-hover); }
.artist-list-item__img { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.artist-list-item__img img { width: 100%; height: 100%; object-fit: cover; }
.artist-list-item__name { font-weight: 600; }
.artist-list-item__meta { color: var(--text-muted); font-size: 0.85rem; }
.artist-list-item__info { display: flex; flex-direction: column; }

/* === Ad Slots === */
.ad-slot { margin: 16px 0; text-align: center; min-height: 20px; }
.ad-slot--header { margin: 0; padding: 8px 0; }
.ad-slot--between_tracks { margin: 8px 0; padding: 12px; background: var(--bg-card); border-radius: var(--radius-sm); }

/* === Infinite Scroll === */
.load-more { text-align: center; padding: 20px 0; }

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .album-hero { flex-direction: column; align-items: center; text-align: center; }
    .album-hero__img { width: 180px; height: 180px; }
    .alphabet-grid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
    .alphabet-nav__letter { width: 30px; height: 30px; font-size: 0.8rem; }
}

/* === Light Theme === */
[data-theme="light"] {
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --accent-soft: rgba(108,92,231,0.08);
}
[data-theme="light"] .header { background: rgba(245,247,250,0.95); }
[data-theme="light"] .hero h1 { -webkit-text-fill-color: unset; background: none; color: var(--text); }

/* === Theme Toggle === */
.theme-toggle {
    background: none; border: none; cursor: pointer;
    font-size: 1.2rem; padding: 6px;
    border-radius: 50%;
    transition: background var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover { background: var(--accent-soft); }

/* === Share Buttons === */
.share-buttons { display: flex; align-items: center; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.share-label { color: var(--text-muted); font-size: 0.85rem; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--share-color, var(--accent));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--transition), transform var(--transition);
}
.share-btn:hover { opacity: 0.85; transform: scale(1.1); color: #fff; }
.share-btn--copy { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border); }

/* === Subscribe Form === */
.subscribe-block { margin-bottom: 20px; }
.subscribe-form {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    justify-content: center;
}
.subscribe-label { color: var(--text-muted); font-size: 0.9rem; }
.subscribe-form input[type="email"] {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    min-width: 220px;
}
.subscribe-form button {
    padding: 8px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background var(--transition);
}
.subscribe-form button:hover { background: var(--accent-hover); }
.subscribe-msg { font-size: 0.8rem; }
.subscribe-msg--ok { color: var(--success); }
.subscribe-msg--err { color: var(--danger); }

/* === Radio Page === */
.radio-page { max-width: 900px; margin: 0 auto; }

.radio-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #6c5ce7 100%);
    border-radius: var(--radius);
    margin-bottom: 30px;
    color: #fff;
}
.radio-hero h1 { font-size: 2rem; margin-bottom: 8px; color: #fff; }
.radio-hero__icon { font-size: 2.2rem; vertical-align: middle; margin-right: 4px; }
.radio-hero p { opacity: 0.9; margin-bottom: 20px; font-size: 1.05rem; }
.radio-hero__actions .btn--lg { padding: 14px 36px; font-size: 1.1rem; background: rgba(255,255,255,0.2); color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.radio-hero__actions .btn--lg:hover { background: rgba(255,255,255,0.3); }
.radio-hero__actions .btn--lg span { margin-right: 6px; }

/* Mood Grid */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.mood-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.mood-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--mood-color);
}
.mood-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-color: var(--mood-color);
}
.mood-card__emoji { font-size: 2rem; margin-bottom: 8px; }
.mood-card__name { font-weight: 700; color: var(--text); font-size: 1rem; margin-bottom: 4px; }
.mood-card__desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; }

/* Radio Genre Buttons */
.radio-genres { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-genre-btn {
    display: inline-block;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--transition), border-color var(--transition);
}
.radio-genre-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Radio Artist Cards */
.radio-artists {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 14px;
}
.radio-artist-card {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none;
    text-align: center;
}
.radio-artist-card__img {
    width: 80px; height: 80px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
    background: var(--bg-card);
}
.radio-artist-card__img img { width: 100%; height: 100%; object-fit: cover; }
.radio-artist-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--text-muted); background: var(--bg-card);
}
.radio-artist-card__play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5);
    color: #fff; font-size: 1.3rem;
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: 50%;
}
.radio-artist-card:hover .radio-artist-card__play { opacity: 1; }
.radio-artist-card__name { font-size: 0.8rem; color: var(--text); font-weight: 500; line-height: 1.2; }

/* === Radio Station Header === */
.radio-station {
    display: flex; align-items: center; gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, var(--station-color) 0%, color-mix(in srgb, var(--station-color) 70%, #000) 100%);
    border-radius: var(--radius);
    margin-bottom: 20px;
    color: #fff;
}
.radio-station__img { width: 120px; height: 120px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.radio-station__img img { width: 100%; height: 100%; object-fit: cover; }
.radio-station__type { font-size: 0.85rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.05em; }
.radio-station h1 { font-size: 1.6rem; margin: 4px 0; color: #fff; }
.radio-station__count { font-size: 0.9rem; opacity: 0.8; }

/* === Radio Player === */
.radio-player {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    position: sticky;
    top: 10px;
    z-index: 50;
}
.radio-player__now {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 16px;
}
.radio-player__cover {
    width: 60px; height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0;
    background: var(--bg);
}
.radio-player__cover img { width: 100%; height: 100%; object-fit: cover; }
.radio-player__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--text-muted);
}
.radio-player__title { font-weight: 700; font-size: 1rem; color: var(--text); }
.radio-player__artist { font-size: 0.85rem; color: var(--text-muted); }

.radio-player__controls {
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}
.radio-ctrl {
    background: none; border: none; cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-muted);
    padding: 6px;
    transition: color var(--transition), transform var(--transition);
    border-radius: 50%;
}
.radio-ctrl:hover { color: var(--text); transform: scale(1.15); }
.radio-ctrl--play {
    width: 50px; height: 50px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.radio-ctrl--play:hover { background: var(--accent-hover); color: #fff; }
.radio-ctrl--playing { background: var(--accent-hover); }
.radio-ctrl--active { color: var(--accent); }

.radio-player__progress { margin-bottom: 10px; }
.radio-player__bar {
    width: 100%; height: 6px;
    background: var(--border);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-bottom: 4px;
}
.radio-player__fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    width: 0;
    transition: width 0.2s linear;
}
.radio-player__times {
    display: flex; justify-content: space-between;
    font-size: 0.75rem; color: var(--text-muted);
}

.radio-player__volume {
    display: flex; align-items: center; gap: 8px;
    justify-content: center;
}
.radio-player__vol-icon { font-size: 1rem; cursor: pointer; }
.radio-player__vol-slider {
    width: 100px;
    accent-color: var(--accent);
}

/* === Radio Playlist === */
.radio-playlist { margin-bottom: 20px; }
.radio-playlist__header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.radio-playlist__header h2 { margin: 0; font-size: 1.1rem; }
.radio-playlist__counter { font-size: 0.85rem; color: var(--text-muted); }

.radio-track {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
}
.radio-track:hover { background: var(--bg-hover); }
.radio-track--active { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.radio-track--active .radio-track__title { color: var(--accent); }
.radio-track--active .radio-track__num { color: var(--accent); font-weight: 700; }

.radio-track__num { width: 24px; text-align: center; font-size: 0.8rem; color: var(--text-muted); flex-shrink: 0; }
.radio-track__img { width: 40px; height: 40px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: var(--bg); }
.radio-track__img img { width: 100%; height: 100%; object-fit: cover; }
.radio-track__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; color: var(--text-muted);
}
.radio-track__info { flex: 1; min-width: 0; }
.radio-track__title { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-track__artist { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; }
.radio-track__artist:hover { color: var(--accent); }
.radio-track__duration { font-size: 0.8rem; color: var(--text-muted); flex-shrink: 0; }
.radio-track__link {
    font-size: 0.85rem; color: var(--text-muted);
    text-decoration: none;
    opacity: 0;
    transition: opacity var(--transition);
    flex-shrink: 0;
    padding: 4px 8px;
}
.radio-track:hover .radio-track__link { opacity: 1; }
.radio-track__link:hover { color: var(--accent); }

/* === Recommendations Block === */
.reco-section { margin: 30px 0; }
.reco-icon { margin-right: 4px; }

.reco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}
.reco-card { text-align: center; }
.reco-card__img {
    position: relative;
    width: 100%; aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    margin-bottom: 8px;
}
.reco-card__img img { width: 100%; height: 100%; object-fit: cover; }
.reco-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--text-muted);
}
.reco-card__play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.45);
    color: #fff; font-size: 1.8rem;
    opacity: 0;
    transition: opacity var(--transition);
    border: none; cursor: pointer;
    border-radius: var(--radius);
}
.reco-card:hover .reco-card__play { opacity: 1; }
.reco-card__title {
    display: block;
    font-size: 0.85rem; font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reco-card__title:hover { color: var(--accent); }
.reco-card__artist {
    font-size: 0.78rem; color: var(--text-muted); text-decoration: none;
}
.reco-card__artist:hover { color: var(--accent); }

/* === Mobile === */
@media (max-width: 600px) {
    .radio-hero h1 { font-size: 1.4rem; }
    .mood-grid { grid-template-columns: repeat(2, 1fr); }
    .radio-artists { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .radio-station { flex-direction: column; text-align: center; padding: 18px; }
    .radio-station__img { width: 80px; height: 80px; }
    .radio-station h1 { font-size: 1.2rem; }
    .radio-player { position: static; padding: 14px; }
    .radio-player__now { gap: 10px; }
    .radio-player__cover { width: 48px; height: 48px; }
    .radio-player__vol-slider { width: 70px; }
    .reco-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* === Download CTA Button === */
.dl-cta { text-align: center; margin: 24px 0; }
.btn--download {
    display: inline-flex; flex-direction: column; align-items: center;
    padding: 16px 44px;
    font-size: 1rem;
    line-height: 1.4;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    transition: transform var(--transition), box-shadow var(--transition);
}
.btn--download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}
.btn--download .btn__icon { font-size: 1.3rem; margin-bottom: 2px; }
.btn--download .btn__text { font-weight: 700; }
.btn--download .btn__sub { font-size: 0.7rem; opacity: 0.8; font-weight: 400; }

/* === Report Link === */
.report-link { text-align: center; margin: 16px 0; }
.report-link a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; opacity: 0.7; transition: opacity var(--transition); }
.report-link a:hover { opacity: 1; color: var(--danger); }

/* === Complaint Form === */
.complaint-page { max-width: 650px; margin: 0 auto; }
.complaint-intro { color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.complaint-entity {
    padding: 14px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-bottom: 20px;
}
.complaint-entity__label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.complaint-entity__link { display: block; font-size: 0.8rem; margin-top: 4px; word-break: break-all; }
.complaint-form .form-group { margin-bottom: 16px; }
.complaint-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.complaint-form label small { font-weight: 400; color: var(--text-muted); }
.complaint-form input, .complaint-form textarea, .complaint-form select {
    width: 100%; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 0.95rem;
}
.complaint-form textarea { resize: vertical; }
.complaint-form .form-row { display: flex; gap: 16px; }
.complaint-form .form-group--half { flex: 1; }
.complaint-legal { margin: 20px 0; font-size: 0.85rem; color: var(--text-muted); }
.complaint-legal input { width: auto; margin-right: 6px; }

/* === Blocked Page === */
.blocked-page { text-align: center; padding: 60px 20px; max-width: 550px; margin: 0 auto; }
.blocked-page__icon { font-size: 4rem; margin-bottom: 10px; display: block; }
.blocked-page h1 { font-size: 1.5rem; margin-bottom: 16px; }
.blocked-page__reason {
    padding: 16px 20px; background: color-mix(in srgb, var(--danger) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
    border-radius: var(--radius); font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px;
}
.blocked-page__info { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.blocked-page__info a { color: var(--accent); }
.blocked-page__nav { display: flex; gap: 8px; justify-content: center; }

/* === Alert styles === */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; }
.alert--success { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.alert--danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }

@media (max-width: 600px) {
    .complaint-form .form-row { flex-direction: column; gap: 0; }
    .blocked-page { padding: 40px 16px; }
}
