
:root { --bg-base: #121212; --bg-surface: #1e1e1e; --bg-highlight: #2a2a2a; --text-primary: #FFFFFF; --text-secondary: #B3B3B3; --accent: #ff6b00; --accent-hover: #ff8533; --error: #e91429; }
* { box-sizing: border-box; }
body { background-color: var(--bg-base); color: var(--text-primary); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
.app-bar { background: #000; height: 70px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #333; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-svg { fill: var(--accent); width: 32px; height: 32px; }
.brand-text { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.5px; text-transform: uppercase; }
.brand-text span { color: var(--accent); }
.nav-link { cursor: pointer; font-weight: 700; color: var(--text-secondary); user-select: none; display: flex; align-items: center; gap: 10px; }
.nav-link:hover { color: white; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.user-dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; right: 0; top: 50px; background: #282828; min-width: 200px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); padding: 8px; z-index: 200; }
.dropdown-content.show { display: block; animation: fadeIn 0.2s; }
.dropdown-content a { display: block; padding: 10px 16px; color: #ddd; font-size: 0.9rem; border-radius: 4px; }
.dropdown-content a:hover { background: rgba(255,255,255,0.1); color: white; }
@keyframes fadeIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.container { max-width: 1400px; margin: 30px auto; padding: 0 32px; padding-bottom: 140px; display: flex; gap: 40px; position: relative; }
.main-content { flex: 1; }
.side-panel { width: 300px; flex-shrink: 0; border-left: 1px solid #333; padding-left: 30px; display: none; }
@media(min-width: 900px) { .side-panel { display: block; } }
.stats-header { display: flex; align-items: center; gap: 30px; margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 20px; }
.section-title { font-size: 1.5rem; font-weight: 700; color: white; border-left: 4px solid var(--accent); padding-left: 15px; margin:0; }
.stat-pill { background: #1e1e1e; padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; color: #aaa; border: 1px solid #333; }
.stat-pill strong { color: var(--accent); font-size: 1rem; margin-right: 5px; }
.music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.music-card { background: var(--bg-surface); padding: 16px; border-radius: 8px; transition: 0.3s; position: relative; }
.music-card:hover { background: var(--bg-highlight); transform: translateY(-5px); }
.music-img-wrap { position: relative; width: 100%; aspect-ratio: 1/1; margin-bottom: 12px; cursor: pointer; overflow: hidden; border-radius: 4px; }
.music-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.music-img-wrap:hover .music-img { transform: scale(1.1); opacity: 0.6; }
.play-overlay-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; opacity: 0; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.music-img-wrap:hover .play-overlay-icon { opacity: 1; }
.music-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-artist { color: var(--text-secondary); font-size: 0.875rem; }
.music-owner { font-size: 0.7rem; color: #666; margin-top: 5px; text-transform: uppercase; }
.open-link-btn { display: inline-block; margin-top: 5px; font-size: 0.75rem; color: var(--accent); font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid var(--accent); padding: 2px 8px; border-radius: 4px; transition: 0.2s; }
.open-link-btn:hover { background: var(--accent); color: white; }
.action-row { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; border-top: 1px solid #333; padding-top: 10px; }
.icon-btn { background: none; border: none; cursor: pointer; color: #777; padding: 5px; transition: 0.2s; }
.icon-btn:hover { color: white; }
.comm-btn { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #555; background: transparent; cursor: pointer; transition: 0.2s; position: relative; }
.comm-btn.active { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent); }
.comm-tooltip { display: none; position: absolute; bottom: 25px; left: -60px; width: 140px; background: #333; color: white; padding: 5px; font-size: 0.7rem; border-radius: 4px; text-align: center; pointer-events: none; }
.comm-btn:hover .comm-tooltip { display: block; }
.rating-stars { color: #444; font-size: 14px; cursor: pointer; }
.rating-stars span { transition: color 0.2s; }
.rating-stars span.active { color: var(--accent); }
.bottom-player { position: fixed; bottom: 0; left: 0; width: 100%; height: 110px; background: #181818; border-top: 1px solid #282828; display: flex; align-items: center; padding: 0 30px; z-index: 500; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); transform: translateY(0); }
.bp-left { display: flex; align-items: center; width: 25%; }
.bp-art { width: 70px; height: 70px; border-radius: 6px; margin-right: 20px; object-fit: cover; background: #333; }
.bp-info { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.bp-title { color: white; font-size: 1rem; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-artist { color: #b3b3b3; font-size: 0.8rem; }
.bp-center { display: flex; align-items: center; width: 60%; gap: 20px; }
.bp-controls-group { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.bp-btn-circle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #444; background: transparent; color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.bp-btn-circle:hover { border-color: white; background: #333; }
.bp-play-main { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: white; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 24px; box-shadow: 0 4px 10px rgba(255,107,0,0.4); }
.bp-play-main:hover { transform: scale(1.05); background: var(--accent-hover); }
.bp-timeline-group { flex-grow: 1; display: flex; align-items: center; gap: 10px; font-size: 0.75rem; color: #888; }
.bp-right { width: 15%; display: flex; justify-content: flex-end; position: relative; }
.vol-container { position: relative; display: flex; align-items: center; cursor: pointer; }
.vol-popup { display: none; position: absolute; bottom: 30px; left: -12px; width: 40px; height: 120px; background: #222; border-radius: 8px; border: 1px solid #333; align-items: center; justify-content: center; padding: 10px 0; }
.vol-container:hover .vol-popup { display: flex; }
.bp-vol-slider { writing-mode: bt-lr; -webkit-appearance: slider-vertical; width: 6px; height: 90px; background: #444; cursor: pointer; }
input[type=range] { width: 100%; height: 4px; border-radius: 2px; -webkit-appearance: none; background: #535353; cursor: pointer; accent-color: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 12px; width: 12px; border-radius: 50%; background: white; margin-top: -4px; box-shadow: 0 0 5px rgba(0,0,0,0.5); }
.comm-header { font-size: 1rem; color: #888; margin-bottom: 20px; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; }
.comm-list { display: flex; flex-direction: column; gap: 15px; }
.comm-item { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #222; }
.comm-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.comm-info { flex: 1; overflow: hidden; }
.comm-user { color: var(--accent); font-size: 0.8rem; font-weight: bold; }
.comm-song { color: white; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comm-more-btn { display: block; width: 100%; text-align: center; margin-top: 20px; color: #777; font-size: 0.8rem; padding: 10px; border: 1px solid #333; border-radius: 4px; }
.comm-more-btn:hover { border-color: var(--accent); color: var(--accent); }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.modal-overlay.open { display: flex; }
.modal-box { background: #1e1e1e; padding: 30px; border-radius: 12px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; text-align: center; position: relative; border: 1px solid #333; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.close-modal { position: absolute; top: 15px; right: 15px; font-size: 24px; cursor: pointer; color: #777; line-height: 1; }
.upload-form label { display: block; text-align: left; margin-bottom: 5px; color: #aaa; font-size: 0.85rem; }
.upload-form input, .upload-form textarea, .upload-form select { width: 100%; padding: 10px; margin-bottom: 15px; background: #111; border: 1px solid #444; color: white; border-radius: 4px; font-family: inherit; }
.upload-form textarea { height: 80px; resize: vertical; }
button.btn-save { background: var(--accent); color: white; padding: 12px; border: none; width: 100%; cursor: pointer; font-weight: bold; border-radius: 50px; text-transform: uppercase; margin-top: 10px; }
.users-table { width: 100%; border-collapse: collapse; margin-top: 20px; text-align: left; }
.users-table th { color: #777; font-size: 0.8rem; text-transform: uppercase; border-bottom: 1px solid #333; padding: 10px; }
.users-table td { padding: 10px; border-bottom: 1px solid #222; font-size: 0.9rem; }
.fab { position: fixed; bottom: 140px; right: 30px; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); cursor: pointer; z-index: 600; }
.player-body { margin: 0; overflow: hidden; height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; }
.blur-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; filter: blur(40px) brightness(0.4); z-index: -1; transform: scale(1.1); }
.player-ui-card { background: rgba(0,0,0,0.6); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); padding: 40px; border-radius: 24px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.player-art-rounded { width: 280px; height: 280px; border-radius: 20px; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,0.5); margin-bottom: 25px; }
.share-group { display: flex; gap: 10px; align-items: center; margin: 15px 0; }
.share-input { width: 100%; background: #111; border: 1px solid #444; color: #ccc; padding: 10px; border-radius: 4px; }
.copy-round-btn { width: 40px; height: 40px; border-radius: 50%; background: #333; border: 1px solid #444; color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition:0.2s; }
.copy-round-btn:hover { background: #555; border-color: white; }
.player-socials-area { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.social-icons { display: flex; gap: 15px; justify-content: center; margin-bottom: 10px; }
.social-link { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; transition: 0.2s; }
.social-link:hover { background: var(--accent); transform: translateY(-3px); }
.lyrics-content { max-height: 300px; overflow-y: auto; text-align: center; color: #ddd; white-space: pre-wrap; line-height: 1.8; margin-top: 15px; padding: 10px; background: #111; border-radius: 8px; border: 1px solid #333; font-size: 0.95rem; }
.lyrics-btn-public { margin-top: 20px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 0.8rem; transition: 0.2s; }
.lyrics-btn-public:hover { background: var(--accent); border-color: var(--accent); }
.toast-msg { opacity:0; transition:0.3s; margin-top:15px; color:var(--accent); font-weight:bold; height:1rem; font-size:0.9rem; }
@media(max-width:900px){ .side-panel { display: none; } .bp-info { display:none; } .bp-left { width: 60px; } .bp-center { width: auto; flex:1; } }
@media(max-width:600px){ .app-bar { padding: 0 16px; } .music-grid { grid-template-columns: 1fr 1fr; gap: 15px; } .player-ui-card { width: 95%; padding: 25px 15px; } .player-art-rounded { width: 100%; height: auto; aspect-ratio: 1/1; } }
