:root {
    --bg-pure: #000000;
    --surface-glass: rgba(15, 15, 15, 0.7);
    --surface-glass-hover: rgba(30, 30, 30, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --accent-glow: #00f2fe;
    --dynamic-accent: #4face6;
    --sidebar-width: 260px;
    --player-height: 90px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-pure);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, var(--dynamic-accent) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    transition: background 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#app-container {
    display: flex;
    width: 100vw;
    height: calc(100vh - var(--player-height));
    position: relative;
    z-index: 1;
}

/* Sidebar Layout */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(30px);
    border-right: 1px solid var(--border-glass);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #fff, var(--dynamic-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links li:hover, .nav-links li.active {
    color: var(--text-main);
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-links li.active {
    border-color: var(--dynamic-accent);
}

/* Content Frame */
.content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 40px;
    padding-bottom: 60px;
    scrollbar-width: none;
}
.content-area::-webkit-scrollbar { display: none; }

/* Dashboard Shelf Architecture */
.shelf {
    margin-bottom: 40px;
}
.shelf-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

/* Card Styling */
.card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-8px);
    background: var(--surface-glass-hover);
    border-color: var(--dynamic-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
.card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.card .card-title {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.card .card-desc {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Structural Components */
.search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.search-input-wrapper {
    position: relative;
    flex-grow: 1;
}
.search-input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 55px;
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    color: white;
    font-size: 16px;
    outline: none;
    backdrop-filter: blur(20px);
    transition: all 0.3s;
}
.search-input-wrapper input:focus {
    border-color: var(--dynamic-accent);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.voice-search-btn {
    padding: 0 20px;
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}
.voice-search-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--dynamic-accent);
}