/* =========================================
   8 MILO — PREMIUM MUSIC PLAYER
   Main Stylesheet | Version 1.0
========================================= */

:root {
    --bg: #101010;
    --sidebar: #151515;
    --surface: #1c1c1c;
    --surface-light: #252525;
    --surface-hover: #303030;
    --accent: #e9bd54;
    --accent-hover: #f5ce70;
    --danger: #e53935;
    --danger-hover: #d32f2f;
    --text: #ffffff;
    --text-secondary: #a4a4a4;
    --text-muted: #686868;
    --border: rgba(255,255,255,0.07);
    --radius: 16px;
    --font: 'DM Sans', sans-serif;
    --heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button {
    border: none;
    cursor: pointer;
    color: inherit;
}

button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

#app {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* =========================================
   SIDEBAR & MOBILE BACKDROP
========================================= */

.sidebar {
    width: 250px;
    min-width: 250px;
    background: var(--sidebar);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    z-index: 40;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 35;
}

.sidebar-backdrop.active {
    display: block;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 55px;
}

.brand-logo {
    width: 39px;
    height: 39px;
    background: var(--accent);
    color: #111;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-family: var(--heading);
    font-size: 25px;
    font-weight: 800;
}

.brand-name {
    font-family: var(--heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-name span {
    color: var(--accent);
}

.sidebar-section {
    margin-bottom: 38px;
}

.section-label {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 17px;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: left;
    transition: 0.25s ease;
}

.nav-item:hover {
    background: var(--surface);
    color: white;
}

.nav-item.active {
    background: rgba(233,189,84,0.12);
    color: var(--accent);
}

.nav-icon {
    font-size: 21px;
    width: 23px;
    text-align: center;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-playlist {
    background: transparent;
    color: var(--text-secondary);
    font-size: 23px;
    margin-top: -15px;
}

.add-playlist:hover {
    color: var(--accent);
}

.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.empty-playlists {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.sidebar-playlist {
    padding: 10px;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    text-align: left;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.2s ease;
}

.sidebar-playlist:hover {
    background: var(--surface);
    color: white;
}

.sidebar-playlist.active {
    background: rgba(233,189,84,0.12);
    color: var(--accent);
}

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-tagline {
    color: var(--text-secondary);
    font-family: var(--heading);
    font-size: 13px;
    margin-bottom: 9px;
}

.sidebar-version {
    color: var(--text-muted);
    font-size: 9px;
    letter-spacing: 1.5px;
}

/* =========================================
   MAIN CONTENT
========================================= */

.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.topbar {
    height: 75px;
    min-height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 42px;
    border-bottom: 1px solid var(--border);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-button {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 22px;
}

.history-button:hover {
    background: var(--surface-hover);
    color: white;
}

.offline-label {
    color: var(--text-muted);
    font-size: 9px;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.status-dot {
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background: #74b88c;
    box-shadow: 0 0 10px rgba(116,184,140,0.5);
}

.profile-button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--accent);
    color: #111;
    font-weight: 700;
}

.mobile-menu {
    display: none;
    background: transparent;
    font-size: 23px;
}

.page-container {
    flex: 1;
    overflow-y: auto;
    padding: 45px 45px 150px;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   WELCOME SECTION
========================================= */

.welcome-section {
    margin-bottom: 55px;
}

.eyebrow {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
}

.welcome-section h1,
.page-heading h1 {
    font-family: var(--heading);
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -2px;
}

.welcome-section h1 span,
.page-heading h1 span {
    color: var(--accent);
}

.welcome-description {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 13px;
    line-height: 1.7;
}

/* =========================================
   CONTENT SECTIONS
========================================= */

.content-section {
    margin-bottom: 48px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 21px;
}

.section-title-row h2 {
    font-family: var(--heading);
    font-size: 20px;
    font-weight: 600;
}

.text-button {
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
}

.text-button:hover {
    color: var(--accent);
}

.muted-text {
    color: var(--text-muted);
    font-size: 9px;
    letter-spacing: 1.5px;
}

/* =========================================
   QUICK ACCESS CARDS
========================================= */

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.quick-card {
    min-height: 100px;
    border-radius: var(--radius);
    padding: 21px;
    display: flex;
    align-items: center;
    gap: 17px;
    cursor: pointer;
    transition: 0.25s ease;
}

.quick-card:hover {
    transform: translateY(-3px);
}

.favorites-card {
    background: linear-gradient(120deg, #352a16, #252017);
    border: 1px solid rgba(233,189,84,0.12);
}

.recently-card {
    background: linear-gradient(120deg, #202a32, #1c2228);
    border: 1px solid rgba(255,255,255,0.06);
}

.quick-card-icon {
    width: 49px;
    height: 49px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 25px;
    background: rgba(255,255,255,0.08);
    color: var(--accent);
}

.quick-card h3 {
    font-family: var(--heading);
    font-size: 14px;
    margin-bottom: 5px;
}

.quick-card p {
    color: var(--text-secondary);
    font-size: 11px;
}

/* =========================================
   EMPTY STATES
========================================= */

.empty-state {
    min-height: 200px;
    width: 100%;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 15px;
}

.empty-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 15px;
}

.empty-state h3 {
    font-family: var(--heading);
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}

.library-preview {
    min-height: 100px;
}

.library-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
    background: var(--surface);
    border-radius: var(--radius);
}

.library-empty span {
    color: var(--accent);
    font-size: 28px;
}

.library-empty p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* =========================================
   SEARCH PAGE
========================================= */

.page-heading {
    margin-bottom: 35px;
}

.search-container {
    height: 57px;
    max-width: 650px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 18px;
    margin-bottom: 30px;
}

.search-container:focus-within {
    border-color: var(--accent);
}

.search-icon {
    font-size: 24px;
    color: var(--accent);
}

.search-container input {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 13px;
}

.search-container input::placeholder {
    color: var(--text-muted);
}

/* =========================================
   LIBRARY PAGE & TOOLBAR
========================================= */

.library-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 30px;
}

.library-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.library-tab {
    padding: 9px 16px;
    background: var(--surface);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 11px;
    transition: 0.2s ease;
}

.library-tab.active,
.library-tab:hover {
    background: var(--accent);
    color: #111;
}

.import-button {
    background: var(--accent);
    color: #111;
    padding: 11px 19px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.import-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.import-button span {
    font-size: 17px;
    margin-right: 5px;
}

.empty-import {
    display: inline-block;
    margin-top: 20px;
}

/* =========================================
   MUSIC CARDS & BUTTONS
========================================= */

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
}

.music-card {
    background: var(--surface);
    border-radius: 13px;
    padding: 12px;
    cursor: pointer;
    transition: 0.25s ease;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.music-card:hover {
    background: var(--surface-hover);
    transform: translateY(-3px);
}

.music-art {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 9px;
    background: linear-gradient(135deg, #554324, #171717);
    display: grid;
    place-items: center;
    font-size: 42px;
    color: var(--accent);
    margin-bottom: 13px;
    overflow: hidden;
}

.music-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-card h3 {
    font-family: var(--heading);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.music-card p {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.music-card-play {
    position: absolute;
    right: 18px;
    bottom: 48px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #111;
    opacity: 0;
    transform: translateY(6px);
    transition: 0.2s ease;
    display: grid;
    place-items: center;
}

.music-card:hover .music-card-play {
    opacity: 1;
    transform: translateY(0);
}

.playlist-add-button {
    background: var(--surface-light);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    align-self: flex-start;
    margin-top: auto;
    transition: 0.2s ease;
}

.playlist-add-button:hover {
    background: var(--accent);
    color: #111;
}

/* =========================================
   PLAYLIST DETAIL VIEW
========================================= */

.playlist-view {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.playlist-view-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #2a2214, #181818);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.playlist-view-header .music-art {
    width: 130px;
    height: 130px;
    min-width: 130px;
    margin-bottom: 0;
    font-size: 55px;
}

.playlist-view-header h2 {
    font-family: var(--heading);
    font-size: clamp(24px, 4vw, 36px);
    margin: 6px 0;
    word-break: break-word;
}

.playlist-view-header p {
    color: var(--text-secondary);
    font-size: 12px;
}

.playlist-view-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.playlist-main-play {
    background: var(--accent);
    color: #111;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    transition: 0.2s ease;
}

.playlist-main-play:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.playlist-main-play:not(:disabled):hover {
    background: var(--accent-hover);
    transform: scale(1.03);
}

.playlist-back-button {
    background: var(--surface);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 12px;
    transition: 0.2s ease;
}

.playlist-back-button:hover {
    background: var(--surface-hover);
    color: white;
}

.playlist-song-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playlist-song-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.playlist-song-row:hover {
    background: var(--surface-hover);
    border-color: var(--border);
}

.playlist-song-number {
    width: 25px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.playlist-song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.playlist-song-info strong {
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-song-info span {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-song-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-light);
    color: white;
    font-size: 12px;
    display: grid;
    place-items: center;
    transition: 0.2s ease;
}

.playlist-song-play:hover {
    background: var(--accent);
    color: #111;
}

.playlist-remove-button {
    background: rgba(229, 57, 53, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(229, 57, 53, 0.3);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.playlist-remove-button:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

/* =========================================
   SETTINGS
========================================= */

.settings-content {
    max-width: 700px;
    display: grid;
    gap: 13px;
}

.settings-card {
    padding: 22px;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.settings-card h3 {
    font-family: var(--heading);
    font-size: 15px;
    margin-bottom: 7px;
}

.settings-card p {
    color: var(--text-secondary);
    font-size: 12px;
}

.settings-value {
    display: block;
    margin-top: 16px;
    color: var(--accent);
    font-size: 11px;
}

/* =========================================
   BOTTOM MUSIC PLAYER
========================================= */

.player-bar {
    height: 95px;
    min-height: 95px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #191919;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    align-items: center;
    gap: 20px;
    padding: 12px 25px;
    z-index: 30;
}

.player-track {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.track-art {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 8px;
    background: linear-gradient(135deg, #554324, #171717);
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 23px;
    overflow: hidden;
}

.track-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info {
    min-width: 0;
}

.track-info h4 {
    font-family: var(--heading);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.track-info p {
    color: var(--text-secondary);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.like-button {
    background: transparent;
    color: var(--text-secondary);
    font-size: 22px;
}

.like-button:hover {
    color: var(--accent);
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.control-buttons button {
    background: transparent;
    color: var(--text-secondary);
    font-size: 15px;
}

.control-buttons button:hover {
    color: white;
}

.control-buttons .play-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: #111;
    font-size: 14px;
    display: grid;
    place-items: center;
    transition: 0.2s ease;
}

.control-buttons .play-button:hover {
    background: var(--accent);
    transform: scale(1.08);
}

.progress-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-container span {
    color: var(--text-muted);
    font-size: 9px;
    min-width: 29px;
    text-align: center;
}

input[type="range"] {
    accent-color: var(--accent);
    cursor: pointer;
}

.progress-container input {
    flex: 1;
    height: 3px;
}

.player-extra {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 13px;
}

.player-extra button {
    background: transparent;
    color: var(--text-secondary);
    font-size: 17px;
}

.player-extra button:hover {
    color: var(--accent);
}

#volumeSlider {
    width: 75px;
    height: 3px;
}

#volumeSlider,
#progressBar,
#fullProgress {
    accent-color: var(--accent);
}

/* =========================================
   FULL SCREEN PLAYER
========================================= */

.full-player {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 15%, #44351c 0%, transparent 45%),
        #101010;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.hidden {
    display: none !important;
}

.close-player {
    position: absolute;
    top: 30px;
    left: 35px;
    background: var(--surface);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 22px;
}

.full-player-content {
    width: 100%;
    max-width: 430px;
}

.full-artwork {
    width: min(75vw, 330px);
    aspect-ratio: 1;
    border-radius: 17px;
    margin: 0 auto 38px;
    background: linear-gradient(135deg, #6d5125, #171717);
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 100px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    overflow: hidden;
}

.full-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full-track-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.full-track-info h1 {
    font-family: var(--heading);
    font-size: 25px;
    overflow-wrap: anywhere;
}

.full-track-info p:last-child {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 7px;
}

.full-track-info > button {
    background: transparent;
    color: var(--accent);
    font-size: 27px;
}

.full-progress input {
    width: 100%;
}

.full-time {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 10px;
    margin-top: 9px;
}

.full-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
}

.full-controls button {
    background: transparent;
    color: white;
    font-size: 19px;
}

.full-controls .full-play-button {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--accent);
    color: #111;
    font-size: 23px;
}

/* =========================================
   PLAYLIST MODAL
========================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(7px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    padding: 35px;
    background: #202020;
    border: 1px solid var(--border);
    border-radius: 18px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 25px;
}

.modal-content h2 {
    font-family: var(--heading);
    font-size: 25px;
    margin-bottom: 23px;
}

.modal-content input {
    width: 100%;
    height: 48px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: white;
    padding: 0 13px;
    outline: none;
    margin-bottom: 17px;
}

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

.create-playlist-button {
    width: 100%;
    height: 45px;
    background: var(--accent);
    color: #111;
    border-radius: 9px;
    font-weight: 700;
    font-size: 12px;
}

.create-playlist-button:hover {
    background: var(--accent-hover);
}

/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 1000px) {

    .sidebar {
        width: 210px;
        min-width: 210px;
    }

    .page-container {
        padding: 35px 25px 140px;
    }

    .topbar {
        padding: 0 25px;
    }

    .player-bar {
        grid-template-columns: 1fr 1.3fr;
    }

    .player-extra {
        display: none;
    }
}

/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media (max-width: 650px) {

    body {
        overflow: hidden;
    }

    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -270px;
        width: 250px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 15px 0 40px rgba(0,0,0,0.5);
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .main-content {
        width: 100%;
    }

    .topbar {
        height: 63px;
        min-height: 63px;
        padding: 0 16px;
        gap: 10px;
    }

    .mobile-menu {
        display: block;
    }

    .history-button {
        width: 29px;
        height: 29px;
        font-size: 19px;
    }

    .offline-label {
        font-size: 7px;
        letter-spacing: 0.7px;
    }

    .profile-button {
        width: 30px;
        height: 30px;
    }

    .page-container {
        padding: 24px 16px 135px;
    }

    .welcome-section {
        margin-bottom: 38px;
    }

    .welcome-section h1,
    .page-heading h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .section-title-row h2 {
        font-size: 17px;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .quick-card {
        min-height: 85px;
        padding: 15px;
    }

    .music-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .music-card {
        padding: 9px;
    }

    .music-card h3 {
        font-size: 11px;
    }

    .music-card p {
        font-size: 10px;
    }

    .library-toolbar {
        align-items: flex-start;
    }

    .library-tabs {
        width: 100%;
    }

    .library-tab {
        padding: 7px 12px;
        font-size: 10px;
    }

    .playlist-view-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }

    .playlist-view-header .music-art {
        width: 100px;
        height: 100px;
        min-width: 100px;
        font-size: 40px;
    }

    .playlist-song-row {
        padding: 10px 12px;
        gap: 10px;
    }

    .playlist-song-number {
        display: none;
    }

    .playlist-remove-button {
        padding: 6px 10px;
        font-size: 10px;
    }

    .player-bar {
        height: 78px;
        min-height: 78px;
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 9px 12px;
    }

    .track-art {
        width: 43px;
        height: 43px;
        min-width: 43px;
    }

    .track-info h4 {
        font-size: 10px;
    }

    .track-info p {
        font-size: 9px;
    }

    .like-button {
        font-size: 19px;
    }

    .player-controls {
        gap: 0;
    }

    .control-buttons {
        gap: 13px;
    }

    .control-buttons button {
        font-size: 12px;
    }

    .control-buttons button:first-child,
    .control-buttons button:last-child {
        display: none;
    }

    .control-buttons .play-button {
        width: 36px;
        height: 36px;
    }

    .progress-container {
        display: none;
    }

    .full-player {
        padding: 22px;
    }

    .full-artwork {
        width: min(80vw, 300px);
        margin-bottom: 32px;
    }

    .full-track-info h1 {
        font-size: 21px;
    }

    .close-player {
        top: 20px;
        left: 20px;
    }

    .modal-content {
        padding: 27px 22px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .offline-label {
        display: none;
    }

    .welcome-section h1,
    .page-heading h1 {
        font-size: 30px;
    }

    .player-track {
        gap: 7px;
    }

    .track-art {
        width: 37px;
        height: 37px;
        min-width: 37px;
    }

    .control-buttons {
        gap: 9px;
    }
}
/* =========================================
   8 MILO — BIG VIEW SCROLLABLE LYRICS
========================================= */

.full-player-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    z-index: 10;
}

.player-tab-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #888;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-tab-btn.active {
    background: var(--accent, #e9bd54);
    color: #111;
    border-color: var(--accent, #e9bd54);
}

.full-lyrics-container {
    width: 100%;
    max-width: 420px;
    height: 320px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.lyrics-scroll-box {
    height: 100%;
    overflow-y: auto;
    padding: 24px 20px;
    text-align: center;
    -webkit-overflow-scrolling: touch;
}

.lyric-text {
    font-family: inherit;
    font-size: 16px;
    line-height: 2.2;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.lyrics-placeholder {
    color: #777;
    font-size: 14px;
    margin-top: 120px;
}
/* =========================================
   MILO MUSIC DISCOVERY
========================================= */

.discover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 28px 0 14px;
    flex-wrap: wrap;
}

.discover-header h2 {
    font-size: 22px;
    margin: 5px 0 0;
    font-weight: 700;
}

.discover-header h2 span {
    color: var(--accent);
}

.discover-badge {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--accent);
    border: 1px solid rgba(233, 189, 84, 0.35);
    border-radius: 30px;
    padding: 8px 12px;
    background: rgba(233, 189, 84, 0.07);
    font-weight: 700;
}

.search-status {
    color: #999;
    font-size: 12px;
    margin: 12px 0 18px;
    line-height: 1.6;
}

.external-music-card {
    position: relative;
}

.external-music-card .external-provider {
    font-size: 10px;
    color: var(--accent);
    margin-top: 5px;
}

.external-music-card .external-listen-link {
    display: inline-block;
    margin-top: 9px;
    color: var(--accent);
    font-size: 11px;
    text-decoration: none;
    font-weight: 700;
}

.external-music-card .external-listen-link:hover {
    text-decoration: underline;
}

.external-music-card .external-preview-button {
    cursor: pointer;
}

.external-music-card .external-preview-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 650px) {
    .discover-header h2 {
        font-size: 19px;
    }

    .discover-badge {
        font-size: 9px;
    }
}
.search-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 25px 0 15px;
}

.search-section-heading h3 {
    font-size: 16px;
    margin: 0;
}

.search-section-heading span {
    color: #999;
    font-size: 11px;
}

