:root {
    --bg-main: #000000;
    --bg-sec: #0f0f0f;
    --accent: #ff0055;
    --hifi-color: #00f2ff;
    --ia-color: #ffcc00;
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --safe-bottom: env(safe-area-inset-bottom);
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
    outline: none; 
    user-select: none; 
}

body {
    margin: 0; 
    background: var(--bg-main); 
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden; 
    display: flex; /* ИСПРАВЛЕННАЯ ОШИБКА */
    flex-direction: column;
}

/* ======================== 
   СТРАНИЦЫ И БАЗОВЫЙ ЛЕЙАУТ 
   ======================== */
.page {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    overflow-y: auto; 
    overflow-x: hidden; 
    padding-bottom: 160px;
    display: none; 
    z-index: 10;
}

.page.active { 
    display: block; 
}

/* ======================== 
   АНИМИРОВАННЫЙ ФОН (ГЛАВНАЯ) 
   ======================== */
.ai-scene {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 1; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    overflow: hidden; 
    pointer-events: none;
    margin-top: 20px;
}

.wave-container { 
    position: relative; 
    width: 100vw; 
    height: 180px; 
    max-width: 600px; 
    will-change: transform; 
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#waveCanvas {
    width: 100%;
    height: 100%;
    filter: blur(6px);
    opacity: 0.85;
    mix-blend-mode: screen;
}

.blob {
    position: absolute; 
    width: 100%; 
    height: 100%; 
    filter: blur(60px); 
    mix-blend-mode: screen; 
    opacity: 0.4; 
    animation: morph 20s infinite alternate ease-in-out;
    transform: translate3d(0,0,0);
}

.b-1 { 
    background: radial-gradient(circle, #ff00ff 0%, transparent 70%); 
    animation-duration: 12s; 
}

.b-2 { 
    background: radial-gradient(circle, #00ffff 0%, transparent 70%); 
    animation-duration: 15s; 
    animation-delay: -4s; 
}

@keyframes morph {
    0% { 
        transform: translate(-10%, -10%) scale(1) rotate(0deg); 
        border-radius: 30% 70% 70% 30%; 
    }
    100% { 
        transform: translate(5%, 10%) scale(1.2) rotate(180deg); 
        border-radius: 50%; 
    }
}

/* ======================== 
   ШАПКА И ПОИСК 
   ======================== */
header { 
    position: relative; 
    z-index: 100; 
    padding: 40px 20px 0; 
    text-align: center; 
}

.search-box { 
    position: relative; 
    max-width: 450px; 
    margin: 20px auto; 
}

#search {
    width: 100%; 
    padding: 15px 20px 15px 50px; 
    border-radius: 30px;
    background: rgba(255,255,255,0.08); 
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff; 
    backdrop-filter: blur(15px); 
    transition: 0.3s; 
    font-size: 16px;
}

#search:focus { 
    border-color: var(--accent); 
    background: rgba(255,255,255,0.15); 
}

.search-icon { 
    position: absolute; 
    left: 20px; 
    top: 50%; 
    transform: translateY(-50%); 
    opacity: 0.5; 
}

.search-results {
    position: absolute; 
    top: 110%; 
    left: 0; 
    right: 0; 
    background: rgba(15,15,15,0.98); 
    backdrop-filter: blur(25px);
    border-radius: 20px; 
    max-height: 350px; 
    overflow-y: auto;
    display: none; 
    z-index: 1000; 
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

.s-item { 
    padding: 15px 20px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    cursor: pointer; 
    text-align: left; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.s-item:hover { 
    background: rgba(255,255,255,0.1); 
}

.s-item i { 
    color: var(--accent); 
    font-size: 14px; 
}

.hero-wrap { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    height: 50vh; 
    position: relative; 
    z-index: 10; 
    text-align: center; 
    cursor: pointer; 
    transition: transform 0.2s;
}

.hero-h1 { 
    font-size: 3.5rem; 
    font-weight: 900; 
    margin: 0; 
    letter-spacing: -3px; 
    background: linear-gradient(#fff, #888); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* ======================== 
   СЕКЦИЯ "НОВОЕ ЗА ДЕНЬ" 
   ======================== */
.new-releases-section {
    padding: 20px 16px;
    background: transparent; 
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.btn-more {
    background: rgba(255, 255, 255, 0.08); 
    color: #fff;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.2s;
}

.btn-more:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
}

.track-card img {
    width: 56px;
    height: 56px;
    border-radius: 8px; 
    object-fit: cover;
}

.track-info {
    flex-grow: 1; 
}

.track-title {
    font-weight: 600;
    font-size: 15px;
    display: block;
    margin-bottom: 2px;
}

.track-artist {
    color: #888;
    font-size: 13px;
}

.track-actions {
    color: #555;
    padding: 10px;
    cursor: pointer;
}

/* ======================== 
   СТРАНИЦА КОЛЛЕКЦИИ 
   ======================== */
.col-header-top { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 40px 20px 10px; 
    position: sticky; 
    top: 0; 
    background: var(--bg-main); 
    z-index: 20;
}

.col-header-top h1 { 
    margin: 0; 
    font-size: 24px; 
    font-weight: 700; 
}

.col-header-icons i { 
    font-size: 20px; 
    margin-left: 20px; 
    color: var(--text-secondary); 
    cursor: pointer; 
}

.col-banner {
    margin: 15px 20px; 
    padding: 25px; 
    border-radius: 16px; 
    cursor: pointer;
    background: linear-gradient(135deg, #d500f9, #ff0055);
    text-align: center; 
    box-shadow: 0 10px 30px rgba(255, 0, 85, 0.3);
}

.col-banner p { 
    margin: 0 0 5px; 
    font-size: 13px; 
    opacity: 0.9; 
}

.col-banner h2 { 
    margin: 0; 
    font-size: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
}

.likes-section { 
    display: flex; 
    align-items: center; 
    padding: 20px; 
    cursor: pointer; 
}

.likes-icon { 
    width: 70px; 
    height: 70px; 
    background: linear-gradient(135deg, #ff4d4d, #b30000); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 30px; 
    margin-right: 15px; 
    box-shadow: inset 0 -4px 10px rgba(0,0,0,0.3);
}

.likes-info h2 { 
    margin: 0 0 5px; 
    font-size: 22px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.likes-info p { 
    margin: 0; 
    color: var(--text-secondary); 
    font-size: 14px; 
}

.track-list { 
    display: flex; 
    flex-direction: column; 
    padding: 0 10px; 
}

.track-item { 
    display: flex; 
    align-items: center; 
    padding: 10px; 
    border-radius: 10px; 
    cursor: pointer; 
    transition: 0.2s; 
}

.track-item:active { 
    background: rgba(255,255,255,0.05); 
}

.track-item img { 
    width: 55px; 
    height: 55px; 
    border-radius: 6px; 
    object-fit: cover; 
    margin-right: 15px; 
    background: #222; 
}

.track-item-info { 
    flex: 1; 
    overflow: hidden; 
}

.track-item-info b { 
    display: block; 
    font-size: 16px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    margin-bottom: 4px; 
}

.track-item-info span { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-size: 13px; 
    color: var(--text-secondary); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.track-item-actions { 
    display: flex; 
    gap: 20px; 
    color: var(--text-secondary); 
    padding-left: 15px; 
    font-size: 18px; 
}

.empty-state { 
    text-align: center; 
    padding: 40px 20px; 
    color: var(--text-secondary); 
}

/* ======================== 
   БЕЙДЖ ИНОАГЕНТА 
   ======================== */
.ia-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08); 
    color: #b0b0b0; 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    padding: 2px 8px;
    border-radius: 8px; 
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(8px); 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    transition: 0.3s ease;
}

.ia-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ======================== 
   АВТОРИЗАЦИЯ, ПРОФИЛЬ И ФОРМЫ 
   ======================== */
.profile-container { 
    padding: 20px; 
    padding-top: 40px; 
}

.auth-form { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    margin-top: 20px; 
}

.auth-input { 
    padding: 15px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.1); 
    background: rgba(255,255,255,0.05); 
    color: #fff; 
    outline: none; 
    font-size: 16px; 
    backdrop-filter: blur(10px); 
}

.auth-input:focus { 
    border-color: var(--accent); 
}

.auth-btn-primary { 
    padding: 15px; 
    border-radius: 12px; 
    border: none; 
    background: var(--accent); 
    color: #fff; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.2s; 
}

.auth-btn-primary:active { 
    transform: scale(0.98); 
}

.auth-btn-secondary { 
    padding: 15px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.2); 
    background: transparent; 
    color: #fff; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.2s; 
}

.auth-btn-secondary:active { 
    background: rgba(255,255,255,0.1); 
}

.user-card { 
    background: rgba(255,255,255,0.05); 
    padding: 30px 20px; 
    border-radius: 16px; 
    text-align: center; 
    border: 1px solid rgba(255,255,255,0.1); 
    backdrop-filter: blur(10px); 
}

.user-avatar { 
    width: 80px; 
    height: 80px; 
    background: rgba(255,255,255,0.1); 
    margin: 0 auto 15px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 32px; 
    color: #888; 
}

.logout-btn { 
    display: inline-block; 
    margin-top: 20px; 
    padding: 12px 24px; 
    border-radius: 8px; 
    background: rgba(255,0,85,0.15); 
    color: var(--accent); 
    text-decoration: none; 
    font-weight: 600; 
    border: 1px solid rgba(255,0,85,0.3); 
}

#resetForm {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 20px !important;
    border-radius: 24px !important;
    margin-top: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

#resetForm h3 {
    color: #fff !important;
    font-size: 16px !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    font-weight: 500 !important;
}

#resetForm input, 
.auth-page input, 
input[type="email"], 
input[type="text"], 
input[type="password"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px !important;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
    outline: none !important;
}

#resetForm input:focus,
.auth-page input:focus {
    border-color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.2);
}

#resetForm button {
    width: 100% !important;
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: transform 0.2s active;
}

#resetForm button:active {
    transform: scale(0.97);
}

.forgot-link {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    margin-top: 15px;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #fff;
}

/* ======================== 
   НИЖНЯЯ НАВИГАЦИЯ 
   ======================== */
.bottom-nav {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 65px; 
    background: rgba(15, 15, 15, 0.95); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    padding-bottom: 0;
    z-index: 1000;
}

.nav-btn { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    color: var(--text-secondary); 
    font-size: 22px; 
    cursor: pointer; 
    flex: 1; 
    transition: 0.2s; 
}

.nav-btn span { 
    font-size: 10px; 
    margin-top: 5px; 
    font-weight: 600; 
}

.nav-btn.active { 
    color: #fff; 
}

/* ======================== 
   МИНИ-ПЛЕЕР 
   ======================== */
.mini-player {
    position: fixed; 
    bottom: calc(75px + var(--safe-bottom)); 
    left: 10px; 
    right: 10px;
    height: 60px; 
    background: #202020; 
    border-radius: 12px;
    display: flex !important; 
    align-items: center; 
    padding: 10px 15px; 
    z-index: 200;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); 
    cursor: pointer; 
    transition: transform 0.3s;
    gap: 12px;
}

.mini-player:active { 
    transform: scale(0.97); 
}

.m-thumb { 
    width: 44px; 
    height: 44px; 
    border-radius: 6px; 
    background: #111; 
    object-fit: cover; 
}

.m-info { 
    flex: 1; 
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    white-space: nowrap;
}

.m-info b, 
.m-info span { 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.m-info b { 
    font-size: 14px; 
}

.m-info span { 
    font-size: 12px; 
    color: var(--text-secondary); 
    display: flex;
    align-items: center;
    gap: 4px;
}

.m-ctrls { 
    display: flex !important; 
    gap: 8px; 
    align-items: center; 
}

.m-nav { 
    font-size: 18px; 
    padding: 10px; 
    color: #fff; 
    opacity: 0.7; 
    cursor: pointer; 
}

.m-play-circle { 
    width: 38px; 
    height: 38px; 
    background: rgba(255, 255, 255, 0.15); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}

#mPlayBtn { 
    font-size: 14px; 
}

/* ======================== 
   ПОЛНОЭКРАННЫЙ ПЛЕЕР 
   ======================== */
.full-player {
    position: fixed; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to bottom, #1a1a1a, #000);
    z-index: 500; 
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; 
    flex-direction: column; 
    padding: 40px 30px; 
    will-change: transform;
    contain: strict;
}

.full-player.active { 
    transform: translateY(-100%); 
}

.pull-bar { 
    width: 45px; 
    height: 6px; 
    background: rgba(255,255,255,0.2); 
    border-radius: 10px; 
    margin: 0 auto 30px; 
    cursor: pointer; 
}

.f-art-container { 
    position: relative; 
    width: 100%; 
    max-width: 350px; 
    margin: 0 auto; 
    aspect-ratio: 1; 
}

.f-art { 
    width: 100%; 
    height: 100%; 
    border-radius: 12px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
    object-fit: cover; 
    transition: 0.3s; 
}

#visualizer, 
#fImg {
    will-change: transform;
    box-shadow: none !important; 
    transition: none !important;
}

.f-meta { 
    margin-top: 30px; 
    text-align: left; 
    max-width: 380px; 
    width: 100%; 
    margin-inline: auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent); 
    padding: 15px; 
    border-radius: 20px;
}

.f-meta h2 { 
    margin: 0; 
    font-size: 22px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.f-meta p { 
    margin: 5px 0 0; 
    color: var(--text-secondary); 
    font-size: 16px; 
    display: flex; 
    align-items: center; 
    gap: 6px;
}

.f-meta i { 
    font-size: 24px; 
    cursor: pointer; 
    transition: 0.2s; 
}

.progress-area { 
    margin-top: 30px; 
    max-width: 380px; 
    width: 100%; 
    margin-inline: auto; 
}

.bar-bg { 
    width: 100%; 
    height: 4px; 
    background: rgba(255,255,255,0.2); 
    border-radius: 4px; 
    position: relative; 
    cursor: pointer; 
}

.bar-fill { 
    height: 100%; 
    background: #fff; 
    width: 0%; 
    border-radius: 4px; 
    pointer-events: none; 
}

.f-ctrls { 
    margin-top: 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 380px; 
    width: 100%; 
    margin-inline: auto; 
}

.f-ctrls i { 
    font-size: 24px; 
    cursor: pointer; 
    opacity: 0.8; 
}

.play-btn { 
    width: 65px; 
    height: 65px; 
    background: #fff; 
    border-radius: 50%; 
    color: #000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 26px; 
    cursor: pointer; 
}

/* ======================== 
   ВЫБОР КАЧЕСТВА (СВИТЧЕРЫ) 
   ======================== */
.mini-switcher {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2px;
    margin: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 38px;
}

.sw-btn {
    flex: 1;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    cursor: pointer;
    transition: color 0.3s ease;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.sw-btn.active {
    color: #fff;
}

.sw-bg {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-switcher:has(.sw-btn[data-q="lossless"].active) .sw-bg {
    transform: translateX(100%);
    background: rgba(0, 242, 255, 0.15);
    border-color: rgba(0, 242, 255, 0.3);
}

.hq-toggle { 
    margin-top: 20px; 
    align-self: center; 
    padding: 4px 12px; 
    border-radius: 15px; 
    font-size: 11px; 
    font-weight: bold; 
    text-transform: uppercase; 
    border: 1px solid rgba(255,255,255,0.2); 
    color: rgba(255,255,255,0.5); 
    transition: 0.3s; 
    cursor: pointer;
}

.hq-toggle.active { 
    color: var(--hifi-color); 
    border-color: var(--hifi-color); 
    background: rgba(0, 242, 255, 0.1); 
    animation: hifi-pulse 2s infinite; 
}

@keyframes hifi-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 242, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); }
}

.quality-container {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    padding: 0 5px;
}

.quality-option {
    flex: 1;
    min-height: 65px; 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quality-option:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.1);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.option-content i {
    font-size: 20px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.option-text {
    display: flex;
    flex-direction: column;
}

.option-text .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.option-text .desc {
    font-size: 10px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.quality-option.active {
    background: rgba(255, 0, 85, 0.1);
    border-color: var(--accent);
}

.quality-option.active i {
    color: var(--accent);
}

.quality-option.active:last-child {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--hifi-color);
}

.quality-option.active:last-child i {
    color: var(--hifi-color);
}

@media (max-width: 360px) {
    .quality-container {
        flex-direction: column;
    }
    .quality-option {
        min-height: 55px;
    }
}

/* ======================== 
   УВЕДОМЛЕНИЯ О СЕТИ И ИИ 
   ======================== */
#netStatus {
    position: fixed;
    top: -150px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999; 
    width: 280px;
    padding: 12px 20px;
    border-radius: 40px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

#netStatus.show {
    top: 30px; 
}

/* ======================== 
   СТРАНИЦА АРТИСТА (ВОССТАНОВЛЕННАЯ) 
   ======================== */
.artist-page-header {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
}

.artist-header-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    z-index: -1;
}

.artist-info-overlay {
    color: white;
}

.artist-name-big {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.listeners-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.artist-header {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    background: #111;
}

#artist-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.artist-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
}

.artist-back-btn {
    position: absolute;
    top: 30px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-back-btn:active {
    transform: scale(0.9);
}

.artist-stats {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ======================== 
   АДАПТАЦИЯ ДЛЯ ПК (ОДИН ОБЩИЙ БЛОК)
   ======================== */
.pc-close-btn {
    display: none;
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 605;
}

.pc-close-btn i {
    font-size: 20px;
    color: #fff;
}

.pc-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg); 
}

@media (min-width: 768px) {
    .pc-close-btn {
        display: flex;
    }

    .bottom-nav { 
        display: none !important; 
    }
    
    body {
        background: radial-gradient(circle at top right, #1a0008, #000); 
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        overflow: hidden;
    }

    .page {
        position: relative; 
        max-width: 420px;
        height: 85vh; 
        margin: 0 auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 32px; 
        box-shadow: 0 20px 50px rgba(0,0,0,0.8);
        background: var(--bg-main);
        left: unset !important; 
        padding-bottom: 100px;
    }

    .mini-player, 
    .full-player {
        max-width: 420px;
        left: 50% !important;
        transform: translateX(-50%);
        border-radius: 24px 24px 0 0;
    }
    
    .mini-player {
        margin: 0;
        bottom: 30px; 
        background: rgba(30, 30, 30, 0.6); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .full-player { 
        justify-content: center; 
    }

    .page::-webkit-scrollbar { 
        width: 4px; 
    }

    .page::-webkit-scrollbar-thumb { 
        background: var(--accent); 
        border-radius: 10px; 
    }
}

/* Уведомление об ИИ треке */
.ai-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 10000;
    width: 90%;
    max-width: 350px;
    background: rgba(255, 204, 0, 0.15); /* Цвет --ia-color с прозрачностью */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 20px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

/* Когда уведомление активно */
.ai-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.ai-icon-circle {
    width: 35px;
    height: 35px;
    background: var(--ia-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 16px;
    flex-shrink: 0;
}

.ai-text-content {
    display: flex;
    flex-direction: column;
}

.ai-text-content .ai-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--ia-color);
    letter-spacing: 1px;
}

.ai-text-content .ai-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 15px;
    transition: transform 0.2s;
}

.glass-card:active { transform: scale(0.97); }

.favorite-card {
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.2), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 0, 85, 0.3);
}

.card-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}

.favorite-card .card-icon { background: var(--accent); color: white; }

.apple-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: none; z-index: 10000; align-items: flex-end;
}

.modal-blur-bg {
    position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    width: 100%; height: 80vh;
    border-radius: 30px 30px 0 0 !important;
    padding: 25px; position: relative;
    overflow-y: auto;
}

.search-bar-glass {
    background: rgba(255,255,255,0.1);
    border-radius: 12px; padding: 10px 15px;
    display: flex; align-items: center; gap: 10px; margin: 15px 0;
}
.search-bar-glass input { background: none; border: none; color: white; flex: 1; }