/* assets/css/style.css */
:root {
    --primary: #0ea5e9; --primary-dark: #0284c7; --primary-light: #e0f2fe;
    --accent: #14b8a6; --accent-dark: #0d9488; --accent-light: #ccfbf1;
    --success: #10b981; --success-dark: #059669; --danger: #ef4444; --danger-dark: #dc2626;
    --bg: #f5f7fa; --bg-card: #ffffff; --dark: #0f172a;
    --gray: #64748b; --gray-light: #94a3b8; --border: #e2e8f0;
    --radius: 12px; --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 16px rgba(15,23,42,0.06);
    --shadow-lg: 0 12px 40px rgba(15,23,42,0.08);
    --gradient: linear-gradient(135deg, #0ea5e9, #14b8a6);
}
[data-theme="dark"] {
    --bg: #0f172a; --bg-card: #1e293b; --dark: #f1f5f9;
    --gray: #94a3b8; --gray-light: #64748b; --border: #334155;
    --primary: #38bdf8; --primary-dark: #0ea5e9; --primary-light: #0c4a6e;
    --accent: #2dd4bf; --accent-light: #134e4a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--dark); font-size: 15px; line-height: 1.6; padding-bottom: 90px; transition: background 0.3s, color 0.3s; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
header { background: rgba(255,255,255,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 14px 0; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); transition: background 0.3s; }
[data-theme="dark"] header { background: rgba(30,41,59,0.85); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); font-size: 1.15rem; letter-spacing: -0.3px; }
.logo-mark { width: 38px; height: 38px; background: var(--gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1rem; box-shadow: 0 4px 12px rgba(14,165,233,0.3); }
.logo-text span { display: block; font-size: 0.65rem; color: var(--gray); font-weight: 500; letter-spacing: 0; }
.nav-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-left: auto; }
nav ul { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
nav ul li a { font-size: 0.86rem; font-weight: 500; color: var(--gray); transition: color 0.2s; white-space: nowrap; }
nav ul li a:hover, nav ul li a.active { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-bar { background: var(--bg); padding: 9px 16px; border-radius: 22px; display: flex; align-items: center; gap: 8px; width: 240px; border: 1px solid transparent; transition: all 0.2s; }
[data-theme="dark"] .search-bar { background: #0f172a; }
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,0.12); background: var(--bg-card); }
.search-bar input { border: none; background: transparent; outline: none; width: 100%; font-size: 0.85rem; color: var(--dark); font-family: inherit; }
.btn-icon { padding: 9px 16px; border-radius: 22px; background: var(--bg); border: 1px solid var(--border); cursor: pointer; font-size: 0.78rem; font-weight: 600; color: var(--dark); transition: all 0.2s; font-family: inherit; white-space: nowrap; text-decoration: none; display: inline-block; }
[data-theme="dark"] .btn-icon { background: #0f172a; }
.btn-icon:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.btn-admin { background: var(--gradient); color: white; border: none; box-shadow: 0 4px 12px rgba(14,165,233,0.25); }
.btn-admin:hover { background: var(--primary-dark); color: white; opacity: 0.95; }
.main-wrap { padding: 30px 0; }
.content-wrapper { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.main-column { min-width: 0; }
.section { margin-bottom: 45px; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.section-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.4px; color: var(--dark); }
.view-all { font-size: 0.82rem; color: var(--primary); font-weight: 700; transition: all 0.2s; }
.view-all:hover { color: var(--primary-dark); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
.music-card { cursor: pointer; transition: transform 0.25s; background: transparent; }
.music-card:hover { transform: translateY(-4px); }
.card-img { position: relative; width: 100%; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.75rem; text-align: center; padding: 8px; letter-spacing: 1px; box-shadow: var(--shadow-sm); transition: box-shadow 0.25s; }
.music-card:hover .card-img { box-shadow: var(--shadow-md); }
.cover-1 { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.cover-2 { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.cover-3 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cover-4 { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.cover-5 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.cover-6 { background: linear-gradient(135deg, #ec4899, #be185d); }
.cover-7 { background: linear-gradient(135deg, #6366f1, #4338ca); }
.cover-8 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.play-overlay { position: absolute; bottom: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.95); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; opacity: 0; transform: scale(0.85); transition: all 0.25s; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.music-card:hover .play-overlay { opacity: 1; transform: scale(1); }
.card-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.2px; }
.card-info .director-link { font-size: 0.73rem; color: var(--primary); display: block; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.card-info .label-text { font-size: 0.68rem; color: var(--gray-light); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar { position: sticky; top: 90px; height: calc(100vh - 120px); display: flex; flex-direction: column; }
.widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; flex: 1; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-sm); }
.widget-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.2px; flex-shrink: 0; }
.widget-list { display: flex; flex-direction: column; overflow-y: auto; flex: 1; padding-right: 6px; }
.widget-list::-webkit-scrollbar { width: 4px; }
.widget-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.widget-item { padding: 10px 0; font-size: 0.85rem; font-weight: 500; color: var(--dark); cursor: pointer; transition: color 0.2s; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.widget-item:last-child { border-bottom: none; }
.widget-item:hover { color: var(--primary); }
.player { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--bg-card); box-shadow: 0 -4px 30px rgba(15,23,42,0.08); padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; z-index: 1000; border-top: 1px solid var(--border); }
[data-theme="dark"] .player { box-shadow: 0 -4px 30px rgba(0,0,0,0.4); }
.player-info { display: flex; align-items: center; gap: 14px; width: 25%; }
.player-art { width: 44px; height: 44px; border-radius: 10px; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: white; font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; flex-shrink: 0; }
.player-text h5 { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-text p { font-size: 0.72rem; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.player-controls { display: flex; flex-direction: column; gap: 6px; width: 50%; align-items: center; }
.player-buttons { display: flex; gap: 20px; align-items: center; font-size: 0.85rem; font-weight: 600; }
.player-buttons span { cursor: pointer; color: var(--dark); padding: 4px 10px; border-radius: 8px; transition: all 0.2s; font-size: 0.78rem; }
.player-buttons span:hover { background: var(--primary-light); color: var(--primary); }
.player-buttons .main-btn { background: var(--primary); color: white; padding: 8px 22px; border-radius: 20px; font-size: 0.8rem; box-shadow: 0 4px 12px rgba(14,165,233,0.25); }
.player-buttons .main-btn:hover { background: var(--primary-dark); color: white; }
.player-progress { display: flex; align-items: center; gap: 12px; width: 100%; font-size: 0.7rem; color: var(--gray); }
.progress-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; position: relative; cursor: pointer; }
.progress-fill { width: 40%; height: 100%; background: var(--gradient); border-radius: 2px; position: relative; }
.player-actions { display: flex; align-items: center; gap: 12px; width: 25%; justify-content: flex-end; font-size: 0.75rem; color: var(--gray); font-weight: 600; }
.volume-bar { width: 80px; height: 4px; background: var(--border); border-radius: 2px; }
.volume-fill { width: 70%; height: 100%; background: var(--gradient); border-radius: 2px; }
footer { background: var(--bg-card); padding: 10px 0; border-top: 1px solid var(--border); margin-top: 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: 0.75rem; color: var(--gray); }
.footer-copy { font-size: 0.75rem; color: var(--gray); white-space: nowrap; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.footer-links a { font-size: 0.75rem; color: var(--gray); transition: color 0.2s; white-space: nowrap; }
.footer-links a:hover { color: var(--primary); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--gray); font-size: 0.88rem; grid-column: 1/-1; }
.empty-state strong { display: block; font-size: 1rem; color: var(--dark); margin-bottom: 6px; }
@media screen and (max-width: 1024px) {
    .container { padding: 0 20px; }
    .nav-actions { margin-left: 0; width: 100%; justify-content: space-between; flex-wrap: wrap; }
    nav { order: 2; width: 100%; overflow-x: auto; white-space: nowrap; }
    nav::-webkit-scrollbar { display: none; }
    nav ul { display: inline-flex; gap: 16px; }
    .header-actions { order: 1; margin-left: auto; }
    .search-bar { width: 200px; }
    .content-wrapper { grid-template-columns: 1fr; gap: 24px; }
    .sidebar { position: static; height: auto; }
    .widget { max-height: 400px; }
    .player { padding: 12px 20px; }
    .volume-bar { display: none; }
}
@media screen and (max-width: 600px) {
    .container { padding: 0 16px; }
    .search-bar { display: none; }
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
    .section-title { font-size: 1.1rem; }
    .player { padding: 10px 12px; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .player-info { width: 100%; justify-content: center; text-align: center; }
    .player-controls { width: 100%; }
    .player-actions { display: none; }
    .footer-inner { justify-content: center; text-align: center; }
}