:root {
    --bg-base: #000000; 
    --bg-panel: #1C1C1E;
    --bg-elevated: #2C2C2E;
    --accent: #FA243C;
    --accent-gradient: linear-gradient(135deg, #FA243C, #FF2B6D);
    --text-main: #FFFFFF;
    --text-muted: #8E8E93;
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
}

body.powerlift-mode {
    --bg-base: #000000;
    --bg-panel: #050505;
    --bg-elevated: #0a0a0a;
    --accent: #ff0000;
    --accent-gradient: linear-gradient(135deg, #ff0000, #aa0000);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); background-color: var(--bg-base); color: var(--text-main); overflow: hidden; -webkit-font-smoothing: antialiased; transition: background-color 0.5s; }

/* === АВТОРИЗАЦИЯ === */
#auth-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: radial-gradient(circle at center, var(--bg-panel) 0%, var(--bg-base) 100%); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.auth-box { background: rgba(28, 28, 30, 0.7); backdrop-filter: blur(25px); padding: 40px; border-radius: var(--radius-lg); width: 350px; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.08); }
.auth-logo { color: var(--accent); margin-bottom: 5px; font-weight: 700; letter-spacing: -0.5px; }
.auth-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 25px; font-weight: 500; }
.auth-box input { width: 100%; padding: 14px 16px; margin-bottom: 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: var(--radius-md); outline: none; transition: 0.2s ease; font-family: inherit; font-size: 15px; }
.auth-box input:focus { border-color: var(--accent); }
.auth-btn { width: 100%; padding: 14px; background: var(--accent-gradient); border: none; color: white; font-weight: 600; font-size: 16px; border-radius: var(--radius-pill); cursor: pointer; transition: transform 0.2s, opacity 0.2s; margin-bottom: 15px; }
.auth-btn:hover { transform: scale(0.98); opacity: 0.9; }
.auth-switch { font-size: 13px; color: var(--text-muted); }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* === МАКЕТ === */
#main-app { display: none; grid-template-columns: 260px 1fr; height: 100vh; }
.sidebar { background-color: var(--bg-base); padding: 24px 20px; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,0.08); z-index: 100; transition: background-color 0.5s; }
.logo { font-size: 22px; font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; color: var(--accent); }
.rank-badge { background: var(--bg-panel); color: var(--text-muted); font-size: 10px; padding: 4px 10px; border-radius: var(--radius-pill); align-self: flex-start; margin-bottom: 30px; font-weight: 600; text-transform: uppercase; }
.menu { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.menu a, .role-link a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 15px; transition: 0.2s; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--radius-md); }
.menu a i, .role-link a i { font-size: 18px; width: 22px; text-align: center; color: var(--accent); }
.menu a:hover, .role-link a:hover { background: var(--bg-panel); }
.menu a.active { background: var(--bg-panel); font-weight: 600; }

#nav-upload-container #nav-upload i { color: #0A84FF !important; }

.main-content { background: var(--bg-base); padding: 30px 40px 160px 40px; overflow-y: auto; position: relative; transition: background-color 0.5s; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; }
#page-title { font-size: 32px; font-weight: 700; letter-spacing: -1px; }

/* === ПРОФИЛЬ === */
.user-profile-wrapper { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; padding: 6px 16px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.08); transition: 0.2s; }
.user-profile-wrapper:hover { background: rgba(255,255,255,0.12); }
#user-profile-name { font-weight: 500; font-size: 14px; }
.avatar-circle { width: 28px; height: 28px; border-radius: 50%; background: #333; display: flex; align-items: center; justify-content: center; color: #FFF; font-size: 13px; }
.avatar-circle.large { width: 100px; height: 100px; font-size: 40px; }

.profile-dropdown { position: absolute; top: calc(100% + 10px); right: 0; background: rgba(28, 28, 30, 0.85); backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); width: 220px; padding: 8px; z-index: 200; box-shadow: 0 15px 35px rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transform: scale(0.95); transform-origin: top right; transition: 0.2s; }
.profile-dropdown.active { opacity: 1; visibility: visible; transform: scale(1); }
.profile-dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 500; border-radius: var(--radius-sm); transition: 0.2s; }
.profile-dropdown a:hover { background: rgba(255,255,255,0.1); }
.profile-dropdown .divider { height: 1px; background: rgba(255,255,255,0.1); margin: 6px 0; }

/* === ФОРМЫ И БЭЙДЖИ СТАТУСОВ === */
.content-form { background: var(--bg-panel); padding: 35px; border-radius: var(--radius-lg); width: 100%; max-width: 600px; border: 1px solid rgba(255,255,255,0.05); }
.content-form h3 { margin-bottom: 25px; font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.content-form label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-muted); font-size: 13px; }
.content-form input { width: 100%; padding: 14px 16px; margin-bottom: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: var(--radius-md); outline: none; font-family: inherit; font-size: 15px; transition: 0.2s; }
.content-form input:focus { border-color: var(--accent); background: rgba(255,255,255,0.08); }
.content-form input[readonly] { background: transparent; border-color: transparent; padding-left: 0; color: var(--text-muted); cursor: default; }

/* Стили для красивых статусов в Настройках */
.status-box { padding: 15px 20px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; transition: 0.2s; }
.status-box i { font-size: 18px; }
.status-box.approved { background: rgba(10, 132, 255, 0.1); border: 1px solid rgba(10, 132, 255, 0.3); color: #0A84FF; }
.status-box.admin { background: rgba(250, 36, 60, 0.1); border: 1px solid rgba(250, 36, 60, 0.3); color: var(--accent); }
.status-box.pending { background: rgba(255, 149, 0, 0.1); border: 1px solid rgba(255, 149, 0, 0.3); color: #FF9500; }
.status-box.rejected { background: rgba(142, 142, 147, 0.1); border: 1px solid rgba(142, 142, 147, 0.3); color: var(--text-muted); }

.custom-select { width: 100%; padding: 14px 16px; margin-bottom: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: var(--radius-md); outline: none; font-family: inherit; font-size: 15px; cursor: pointer; transition: 0.2s; appearance: none; background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%238E8E93" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>'); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px; }
.custom-select:focus { border-color: var(--accent); }
.custom-select option { background: var(--bg-panel); color: white; }

button.action-btn { width: 100%; padding: 14px; background: var(--accent-gradient); border: none; color: white; font-weight: 600; font-size: 15px; border-radius: var(--radius-pill); cursor: pointer; transition: transform 0.2s, opacity 0.2s; }
button.action-btn:hover:not(:disabled) { transform: scale(0.98); opacity: 0.9; }
button.action-btn:disabled { background: var(--bg-elevated); cursor: not-allowed; color: var(--text-muted); transform: none; }

/* Студия */
.upload-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; max-width: 1000px; }
.preview-wrapper { background: transparent; padding: 0; position: sticky; top: 20px; }
.preview-wrapper h3 { margin-bottom: 15px; font-size: 16px; color: var(--text-muted); font-weight: 600; }

.tag-container { display: flex; flex-wrap: wrap; gap: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 10px; border-radius: var(--radius-md); margin-bottom: 20px; position: relative; }
.tag { background: var(--bg-elevated); padding: 6px 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.1); }
.tag i { cursor: pointer; color: var(--text-muted); }
.tag i:hover { color: white; }
.tag-input { background: transparent !important; border: none !important; padding: 0 !important; margin: 0 !important; flex-grow: 1; min-width: 120px; box-shadow: none !important; color: white; }
.autocomplete-list { position: absolute; top: calc(100% + 5px); left: 0; width: 100%; background: rgba(28, 28, 30, 0.9); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); z-index: 50; max-height: 160px; overflow-y: auto; list-style: none; display: none; padding: 5px; }
.autocomplete-list li { padding: 10px 14px; cursor: pointer; font-size: 14px; font-weight: 500; border-radius: var(--radius-sm); color: var(--text-main); }
.autocomplete-list li:hover { background: rgba(255,255,255,0.1); }

/* === КАРТОЧКИ ТРЕКОВ === */
.tracks-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 25px 20px; }
.track-card { background-color: transparent; transition: transform 0.2s; cursor: pointer; position: relative; }
.track-card.hidden-track { opacity: 0.4; filter: grayscale(100%); }
.track-card:hover { transform: scale(1.02); }
.track-cover { position: relative; width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 12px; background: var(--bg-panel); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.track-cover img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }

.play-btn-overlay { position: absolute; bottom: 10px; right: 10px; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(10px); color: white; border: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.9); transition: 0.2s; z-index: 2; font-size: 18px; }
.track-card:hover .play-btn-overlay { opacity: 1; transform: scale(1); }
.play-btn-overlay:hover { background-color: var(--accent); transform: scale(1.05) !important; }

.admin-dots { position: absolute; top: 10px; right: 10px; color: white; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; opacity: 0; transition: 0.2s; z-index: 4; display: flex; align-items: center; justify-content: center; }
.track-card:hover .admin-dots { opacity: 1; }
.admin-dots:hover { background: var(--accent); }

.admin-menu { position: absolute; top: 48px; right: 10px; background: rgba(28, 28, 30, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); z-index: 10; display: none; flex-direction: column; box-shadow: 0 15px 35px rgba(0,0,0,0.8); padding: 6px; min-width: 150px; }
.admin-menu.active { display: flex; }
.admin-menu button { background: none; border: none; padding: 10px 14px; color: white; text-align: left; cursor: pointer; font-size: 13px; font-weight: 500; font-family: inherit; border-radius: var(--radius-sm); transition: 0.2s; }
.admin-menu button:hover { background: rgba(255,255,255,0.1); }
.admin-menu .admin-del-track:hover { background: rgba(255, 69, 58, 0.2); color: #FF453A; }

.track-info h3 { font-size: 15px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; letter-spacing: -0.3px; }
.track-info p { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.artist-link { transition: 0.2s; cursor: pointer; color: var(--text-muted); }
.artist-link:hover { color: white; text-decoration: underline; }

/* РАДИО СЕКЦИЯ */
.radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px 25px; }
.radio-card { background: var(--bg-panel); border-radius: var(--radius-lg); padding: 20px; text-align: center; cursor: pointer; transition: transform 0.2s; border: 1px solid rgba(255,255,255,0.02); }
.radio-card:hover { transform: scale(1.03); background: var(--bg-elevated); }
.radio-cover { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; background: #2C2C2E; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.radio-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.radio-card p { font-size: 13px; color: var(--text-muted); }

/* ПРОФИЛЬ АРТИСТА И КОМАНДА */
.artist-header { display: flex; align-items: center; gap: 25px; padding: 0 0 30px 0; }
.artist-meta h1 { font-size: 48px; font-weight: 800; letter-spacing: -2px; margin-bottom: 4px; }
.artist-meta p { color: var(--text-muted); font-weight: 600; font-size: 15px; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.staff-card { background: var(--bg-panel); padding: 25px 20px; border-radius: var(--radius-lg); text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.staff-card .avatar-circle { margin: 0 auto 12px auto; }
.staff-role { font-size: 11px; color: var(--text-muted); font-weight: 700; margin-top: 6px; text-transform: uppercase; }

/* АДМИН-ПАНЕЛЬ */
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--bg-panel); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-lg); padding: 25px; text-align: center; transition: 0.2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.stat-card h4 { color: var(--text-muted); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.stat-card .stat-value { font-size: 38px; font-weight: 800; color: var(--text-main); }
.admin-tabs { display: flex; gap: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 25px; padding-bottom: 10px; }
.admin-tab { background: transparent; border: none; color: var(--text-muted); font-size: 15px; font-weight: 600; padding: 10px 20px; cursor: pointer; border-radius: var(--radius-pill); transition: 0.2s; font-family: inherit; }
.admin-tab:hover { background: rgba(255,255,255,0.05); color: white; }
.admin-tab.active { background: var(--bg-elevated); color: white; }
.admin-table-wrapper { background: var(--bg-panel); border-radius: var(--radius-lg); padding: 10px 25px; border: 1px solid rgba(255,255,255,0.05); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 10px; margin-bottom: 10px; }
.admin-table th, .admin-table td { padding: 15px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; }
.admin-table th { color: var(--text-muted); font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }
.btn-sm { padding: 8px 14px; border: none; border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; font-size: 12px; color: white; transition: 0.2s; margin-right: 6px; margin-bottom: 4px; font-family: inherit; display: inline-block; }
.btn-sm:hover { transform: scale(0.95); opacity: 0.9; }
.btn-approve { background: rgba(50, 215, 75, 0.2); color: #32D74B; border: 1px solid rgba(50, 215, 75, 0.3); }
.btn-reject { background: rgba(255, 69, 58, 0.2); color: #FF453A; border: 1px solid rgba(255, 69, 58, 0.3); }
.btn-action { background: rgba(10, 132, 255, 0.2); color: #0A84FF; border: 1px solid rgba(10, 132, 255, 0.3); }

/* === ПЛАВАЮЩИЙ ПЛЕЕР === */
.floating-player { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%) translateY(150px); width: calc(100% - 40px); max-width: 900px; border-radius: var(--radius-lg); background: rgba(44, 44, 46, 0.85); backdrop-filter: blur(30px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 14px 25px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 20px 50px rgba(0,0,0,0.6); z-index: 500; transition: transform 0.5s; }
.floating-player.active { transform: translateX(-50%) translateY(0); }
.now-playing { display: flex; align-items: center; gap: 14px; width: 35%; flex-grow: 1; }
.player-cover-wrapper { position: relative; width: 54px; height: 54px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8); }
.player-cover-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.3s, transform 0.3s; }
.cover-overlay-actions { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.75); display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: opacity 0.3s; }
.player-cover-wrapper:hover .cover-overlay-actions { opacity: 1; }
.player-cover-wrapper:hover img { filter: blur(2px) brightness(0.5); transform: scale(1.05); }
.cover-action-btn { background: transparent; border: none; color: rgba(255, 255, 255, 0.6); font-size: 15px; cursor: pointer; padding: 4px; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.cover-action-btn:hover { color: #ffffff; transform: scale(1.2); }

.track-info-group { display: flex; align-items: center; gap: 12px; max-width: 100%; }
.track-meta { flex-grow: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
#player-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.3px; }
#player-author { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.like-btn { background: transparent; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; transition: 0.2s; padding: 5px; flex-shrink: 0; }
.like-btn:hover { color: white; transform: scale(1.1); }
.like-btn.liked { color: var(--accent); }

.player-controls { width: 35%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.buttons { display: flex; align-items: center; gap: 20px; }
.buttons button { background: none; border: none; color: var(--text-main); font-size: 18px; cursor: pointer; transition: 0.2s; opacity: 0.7; }
.buttons button:hover { opacity: 1; transform: scale(1.1); }
.buttons .play-pause { font-size: 32px; opacity: 1; }
.control-toggle.active { color: var(--accent); opacity: 1; }
.progress-bar { display: flex; align-items: center; gap: 12px; width: 100%; }
.time { font-size: 11px; color: var(--text-muted); font-weight: 600; min-width: 35px; text-align: center; font-variant-numeric: tabular-nums; }
.progress-slider, .volume-slider { -webkit-appearance: none; width: 100%; height: 5px; background: rgba(255,255,255,0.1); border-radius: var(--radius-pill); outline: none; cursor: pointer; }
.progress-slider::-webkit-slider-thumb, .volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 0px; height: 0px; border-radius: 50%; background: white; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.progress-slider:hover::-webkit-slider-thumb, .volume-slider:hover::-webkit-slider-thumb { width: 12px; height: 12px; }

.volume-controls { width: 25%; display: flex; justify-content: flex-end; align-items: center; gap: 10px; color: var(--text-muted); }
.usp-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); font-size: 14px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.usp-btn:hover { color: white; background: rgba(255,255,255,0.1); }
.usp-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(250, 36, 60, 0.1); }

/* ПОИСК */
.search-header { display: flex; align-items: center; background: rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 12px 20px; width: 100%; max-width: 500px; transition: 0.2s; }
.search-header:focus-within { background: rgba(255,255,255,0.15); }
.search-header input { flex-grow: 1; background: transparent; border: none; color: white; font-size: 16px; outline: none; margin-left: 12px; font-family: inherit; font-weight: 500; }

/* МОДАЛКИ И УВЕДОМЛЕНИЯ */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(15px); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; animation: fadeIn 0.3s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.unverified-badge { background: rgba(250, 36, 60, 0.2); color: var(--accent); font-size: 10px; padding: 4px 10px; border-radius: var(--radius-pill); font-weight: 700; text-transform: uppercase; margin-left: 10px; border: 1px solid rgba(250, 36, 60, 0.3); }

.toast-container { position: fixed; top: 30px; left: 50%; transform: translateX(-50%); z-index: 10000; display: flex; flex-direction: column; gap: 12px; align-items: center; pointer-events: none; }
.toast { background: rgba(28, 28, 30, 0.85); backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-main); padding: 12px 24px; border-radius: 999px; box-shadow: 0 15px 35px rgba(0,0,0,0.5); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 12px; transform: translateY(-100px); opacity: 0; transition: all 0.4s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.hide { transform: translateY(-50px); opacity: 0; }

.content-form input[type="file"] { padding: 8px; color: var(--text-muted); line-height: normal; }
.content-form input[type="file"]::file-selector-button { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-main); padding: 8px 16px; border-radius: var(--radius-sm); margin-right: 15px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 13px; transition: 0.2s; }
.content-form input[type="file"]::file-selector-button:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--accent); }

.hero-banner { background: linear-gradient(135deg, rgba(250,36,60,0.15) 0%, rgba(28,28,30,0) 100%), var(--bg-panel); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-lg); padding: 45px 40px; margin-bottom: 25px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-content h1 { font-size: 38px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 10px; }
.hero-content p { color: var(--text-muted); font-size: 15px; margin-bottom: 25px; max-width: 400px; line-height: 1.5; }
.hero-btn { width: auto; padding: 12px 30px; font-size: 14px; }

.quick-tags { display: flex; gap: 12px; margin-bottom: 40px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.quick-tags::-webkit-scrollbar { display: none; }
.tag-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-main); padding: 10px 20px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; cursor: pointer; transition: 0.2s; white-space: nowrap; font-family: inherit; }
.tag-btn:hover { background: rgba(255,255,255,0.1); }
.tag-btn.active { background: var(--text-main); color: var(--bg-base); font-weight: 600; border-color: var(--text-main); }
.section-heading { font-size: 22px; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.5px; display: flex; align-items: center; justify-content: space-between; }

/* === ПОЛНОЭКРАННЫЙ ПЛЕЕР === */
.fullscreen-player { position: fixed; top: 100vh; left: 0; width: 100vw; height: 100vh; background: var(--bg-base); z-index: 9999; transition: top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.5s; display: flex; flex-direction: column; padding: 30px 40px; }
.fullscreen-player.active { top: 0; }
.fs-header { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 40px; }
.fs-logo { font-size: 24px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px; }
.close-fs-btn { background: rgba(255,255,255,0.1); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.close-fs-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.fs-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 600px; margin: 0 auto; width: 100%; }
.fs-cover-wrapper { width: 100%; max-width: 400px; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.6); margin-bottom: 40px; }
.fs-cover { width: 100%; height: 100%; object-fit: cover; }
.fs-track-info { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 400px; margin-bottom: 30px; }
.fs-track-meta { min-width: 0; flex-grow: 1; }
#fs-title { font-size: 28px; font-weight: 700; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.5px; }
#fs-author { font-size: 18px; color: var(--text-muted); }
#fs-author .artist-link { font-size: 18px; color: var(--text-muted); }
#fs-author .artist-link:hover { color: white; }
.fs-controls-main { display: flex; align-items: center; justify-content: center; gap: 30px; width: 100%; max-width: 400px; }
.fs-controls-main button { background: none; border: none; color: white; font-size: 24px; cursor: pointer; transition: 0.2s; opacity: 0.8; }
.fs-controls-main button:hover { opacity: 1; transform: scale(1.1); }
.fs-controls-main .fs-play-btn { font-size: 60px; opacity: 1; }
.fs-progress .time { font-size: 13px; font-weight: 500; }

/* === DRIVE MODE (Оверлей для вождения) === */
.drive-mode-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.95); backdrop-filter: blur(30px); z-index: 10000; display: none; flex-direction: column; padding: 40px; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s; }
.drive-mode-overlay.active { display: flex; opacity: 1; }
#close-drive-mode { position: absolute; top: 40px; right: 40px; width: 60px; height: 60px; font-size: 30px; }
.drive-content { width: 100%; max-width: 800px; text-align: center; }
.drive-cover { width: 300px; height: 300px; border-radius: var(--radius-lg); object-fit: cover; margin-bottom: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); display: inline-block; }
.drive-meta h1 { font-size: 50px; font-weight: 800; margin-bottom: 10px; letter-spacing: -1px; }
.drive-meta h2 { font-size: 30px; color: var(--text-muted); font-weight: 500; margin-bottom: 50px; }
.drive-controls { display: flex; justify-content: center; align-items: center; gap: 60px; width: 100%; }
.drive-controls button { background: rgba(255,255,255,0.1); border: none; color: white; font-size: 50px; width: 120px; height: 120px; border-radius: 50%; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.drive-controls button:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.drive-controls #drive-play { background: var(--accent-gradient); width: 160px; height: 160px; font-size: 70px; box-shadow: 0 10px 30px var(--accent-glow); }
.drive-controls #drive-play:hover { transform: scale(1.05); }

/* АДАПТИВ */
.mobile-header, .mobile-only { display: none; }
.desktop-only { display: flex; }
@media (max-width: 950px) {
    .upload-grid { grid-template-columns: 1fr; }
    .preview-wrapper { position: static; max-width: 350px; margin: 0 auto; }
}
@media (max-width: 768px) {
    #main-app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .mobile-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: rgba(28, 28, 30, 0.8); backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 90; }
    #mobile-menu-btn { background: none; border: none; color: white; font-size: 22px; cursor: pointer; }
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    .sidebar { position: fixed; top: 0; left: -100%; width: 280px; height: 100vh; background: var(--bg-panel); z-index: 2000; transition: left 0.3s; box-shadow: 20px 0 50px rgba(0,0,0,0.8); }
    .sidebar.open { left: 0; }
    #mobile-close-btn { background: none; border: none; color: white; font-size: 24px; align-self: flex-end; margin-bottom: 20px; cursor: pointer; }
    .main-content { padding: 20px 15px 160px 15px; }
    .tracks-container { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 15px; }
    .floating-player { bottom: 15px; width: calc(100% - 30px); padding: 12px 15px; flex-direction: column; gap: 12px; border-radius: var(--radius-lg); }
    .now-playing, .player-controls { width: 100%; }
    .volume-controls { display: none; }
    .fullscreen-player { padding: 20px; }
    .drive-meta h1 { font-size: 32px; }
    .drive-meta h2 { font-size: 20px; }
    .drive-controls button { width: 80px; height: 80px; font-size: 30px; }
    .drive-controls #drive-play { width: 100px; height: 100px; font-size: 40px; }
}