* {



    margin: 0;



    padding: 0;



    box-sizing: border-box;



}







html, body {



    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;



    background-color: #f5f5f7;



    color: #1d1d1f;



}







/* Desktop: fixed height, no scroll on body */



@media (min-width: 601px) {



    body {



        height: 100vh;



        overflow: hidden;



    }



}







/* Mobile: body scrolls */



@media (max-width: 600px) {



    html, body {



        height: auto;



        overflow-y: auto;



        overflow-x: hidden;



        -webkit-overflow-scrolling: touch;



    }



}







/* ── Top Navigation Bar ── */



.top-nav {



    display: flex;



    align-items: center;



    background-color: #ffffff;



    padding: 0 16px;



    border-bottom: 1px solid #d2d2d7;



    height: 52px;



    gap: 0;



    position: relative;



}







/* LEFT */



.nav-left {



    flex-shrink: 0;



    width: 240px; /* matches sidebar width */



    display: flex;



    align-items: center;



    padding-right: 16px;



}







.jrntr-music-logo {



    display: flex;



    align-items: center;



    gap: 6px;



}







.nav-logo-img {



    height: 18px;



    width: auto;



}







.music-text {



    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;



    font-size: 20px;



    font-weight: 600;



    color: #000000;



    letter-spacing: -0.5px;



}







/* CENTER */



.nav-center {



    flex: 1;



    display: flex;



    align-items: center;



    justify-content: center;



    gap: 8px;



    min-width: 0;



}







/* Playback controls */



.playback-controls {



    display: flex;



    align-items: center;



    gap: 0;



    flex-shrink: 0;



}







.control-btn {



    background: none;



    border: none;



    cursor: pointer;



    padding: 5px 7px;



    border-radius: 4px;



    display: flex;



    align-items: center;



    justify-content: center;



    transition: background-color 0.15s;



}







.control-btn svg {



    fill: #86868b;



    display: block;



}







.control-btn:hover { background-color: #f0f0f0; }







.control-btn.play-pause svg { fill: #1d1d1f; }



.control-btn.active svg { fill: #fc3c44 !important; }







/* Album art box — grey square like Apple Music */



.nav-album-art {



    width: 42px;



    height: 42px;



    background: #e8e8ed;



    border-radius: 4px;



    flex-shrink: 0;



    display: flex;



    align-items: center;



    justify-content: center;



    overflow: hidden;



    border: 1px solid #d2d2d7;



}







/* Now playing text + progress stacked vertically */



.nav-now-playing-block {



    display: flex;



    flex-direction: column;



    gap: 3px;



    min-width: 0;



    flex: 1;



    max-width: 340px;



}







.nav-song-info {



    display: flex;



    flex-direction: column;



    min-width: 0;



    line-height: 1.2;



}







.nav-song-name {



    font-size: 12px;



    font-weight: 600;



    color: #1d1d1f;



    white-space: nowrap;



    overflow: hidden;



    text-overflow: ellipsis;



}







.nav-movie-name {



    font-size: 11px;



    color: #86868b;



    white-space: nowrap;



    overflow: hidden;



    text-overflow: ellipsis;



}







/* Progress bar */



.progress-container {



    display: flex;



    align-items: center;



    gap: 5px;



    width: 100%;



}







.progress-track {



    flex: 1;



    height: 3px;



    background: #d2d2d7;



    border-radius: 2px;



    cursor: pointer;



    position: relative;



    overflow: hidden;



}







.progress-bar {



    height: 100%;



    background: #86868b;



    border-radius: 2px;



    width: 0%;



    transition: width 0.3s linear;



}







.current-time, .total-time {



    font-size: 10px;



    color: #86868b;



    flex-shrink: 0;



    width: 28px;



    font-variant-numeric: tabular-nums;



}







.total-time { text-align: right; }







/* Volume */



.volume-control {



    display: flex;



    align-items: center;



    gap: 5px;



    flex-shrink: 0;



}







.volume-slider {



    width: 80px;



    height: 3px;



    background: #d2d2d7;



    outline: none;



    border-radius: 2px;



    -webkit-appearance: none;



    cursor: pointer;



}







.volume-slider::-webkit-slider-thumb {



    -webkit-appearance: none;



    width: 13px;



    height: 13px;



    background: #1d1d1f;



    border-radius: 50%;



    cursor: pointer;



    border: 2px solid #fff;



    box-shadow: 0 0 0 1px #d2d2d7;



}







/* RIGHT */



.nav-right {



    display: flex;



    align-items: center;



    gap: 2px;



    flex-shrink: 0;



}







.nav-right-item {



    display: flex;



    align-items: center;



    justify-content: center;



    cursor: pointer;



    border-radius: 6px;



    padding: 6px;



    transition: background-color 0.15s;



}







.nav-right-item:hover { background-color: #f0f0f0; }



.nav-right-item svg { display: block; }







.profile-icon {



    width: 30px;



    height: 30px;



    border-radius: 50%;



    display: flex;



    align-items: center;



    justify-content: center;



    cursor: pointer;



    padding: 0;



}















/* ── Main Layout ── */



.main-container {



    display: flex;



    height: calc(100vh - 52px);



    overflow: hidden;



    min-height: 0;



}







/* ── Sidebar ── */



.sidebar {



    width: 250px;



    background-color: #ffffff;



    border-right: 1px solid #e5e5ea;



    padding: 14px 10px 14px 10px;



    overflow-y: auto;



    overflow-x: hidden;



    flex-shrink: 0;



    display: flex;



    flex-direction: column;



}







/* Search bar */



.search-bar {



    display: flex;



    align-items: center;



    background-color: #f2f2f7;



    border-radius: 10px;



    padding: 7px 12px;



    margin-bottom: 8px;



    border: none;



    gap: 7px;



}







.search-svg-icon {



    width: 14px;



    height: 14px;



    flex-shrink: 0;



}







.search-bar input {



    background: none;



    border: none;



    color: #1d1d1f;



    outline: none;



    width: 100%;



    font-size: 14px;



    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;



}







.search-bar input::placeholder { color: #8e8e93; }







/* Nav items */



.main-nav { margin-bottom: 4px; }







.nav-item {



    display: flex;



    align-items: center;



    gap: 12px;



    padding: 8px 10px;



    color: #1d1d1f;



    text-decoration: none;



    border-radius: 8px;



    transition: background-color 0.15s;



    font-size: 15px;



    font-weight: 400;



    cursor: pointer;



    line-height: 1.3;



}







.nav-item:hover { background-color: #f2f2f7; }







.nav-item.active {



    background-color: #e5e5ea;



    font-weight: 700;



    color: #000;



}







.nav-item.active .nav-svg-icon {



    color: #fc3c44;



}







/* SVG icons in nav — red, like Apple Music */



.nav-svg-icon {



    width: 22px;



    height: 22px;



    display: flex;



    align-items: center;



    justify-content: center;



    flex-shrink: 0;



    color: #fc3c44;



}







.nav-svg-icon svg {



    width: 20px;



    height: 20px;



}







.nav-section {



    margin-top: 16px;



    margin-bottom: 4px;



}







.nav-section h3 {



    color: #8e8e93;



    font-size: 12px;



    font-weight: 500;



    text-transform: none;



    margin-bottom: 4px;



    padding: 2px 10px 6px 10px;



    letter-spacing: 0;



}







.library-nav,



.playlist-nav {



    display: flex;



    flex-direction: column;



    gap: 0;



}







/* Open in Music button */



.open-in-music {



    margin-top: auto;



    padding-top: 16px;



    border-top: 1px solid #e5e5ea;



    margin-top: 16px;



}







.open-btn {



    display: flex;



    align-items: center;



    gap: 10px;



    background: none;



    border: 1px solid #d2d2d7;



    color: #1d1d1f;



    padding: 9px 12px;



    border-radius: 10px;



    cursor: pointer;



    font-size: 14px;



    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;



    transition: background-color 0.2s;



    width: 100%;



}







.open-btn:hover { background-color: #f2f2f7; }







.open-btn-icon {



    width: 20px;



    height: 20px;



    display: flex;



    align-items: center;



    justify-content: center;



    color: #1d1d1f;



    flex-shrink: 0;



}







.open-btn-icon svg { width: 18px; height: 18px; }







.open-btn-arrow {



    width: 12px;



    height: 12px;



    margin-left: auto;



    color: #fc3c44;



    flex-shrink: 0;



}







/* ── Main Content ── */



.content {



    flex: 1;



    overflow-y: auto;



    background-color: #f5f5f7;



    display: flex;



    flex-direction: column;



    min-height: 0;



}







.home-section {



    padding: 24px 28px;



    flex: 1;



}







.songs-section {



    padding: 0 !important;



    background: #fff;



    display: flex;



    flex-direction: column;



    flex: 1;



    min-height: 0;



    overflow: hidden;



}







.home-section h1 {



    font-size: 28px;



    font-weight: 700;



    margin-bottom: 24px;



}







.section-header {



    margin-bottom: 16px;



    margin-top: 28px;



}







.section-header:first-of-type { margin-top: 0; }







.section-header h2 {



    font-size: 20px;



    font-weight: 600;



}







.section-header .arrow { color: #fc3c44; }







.songs-count {



    font-size: 13px;



    color: #86868b;



    margin-bottom: 16px;



}







.back-btn {



    background: none;



    border: 1px solid #d2d2d7;



    border-radius: 6px;



    padding: 6px 14px;



    font-size: 13px;



    cursor: pointer;



    margin-bottom: 20px;



    transition: background-color 0.2s;



}



.back-btn:hover { background-color: #f5f5f7; }







/* ── Browse Grid ── */



.browse-grid {



    display: grid;



    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));



    gap: 16px;



    margin-bottom: 8px;



}







.browse-card {



    position: relative;



    height: 140px;



    border-radius: 12px;



    overflow: hidden;



    cursor: pointer;



    transition: transform 0.3s ease;



}







.browse-card:hover { transform: scale(1.03); }







.browse-background {



    position: absolute;



    inset: 0;



    opacity: 0.9;



}







.browse-content {



    position: absolute;



    bottom: 0;



    left: 0;



    right: 0;



    padding: 16px;



    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);



    color: white;



}







.browse-content h3 { font-size: 16px; font-weight: 600; margin-bottom: 3px; }



.browse-content p { font-size: 12px; opacity: 0.8; }







/* ── Popular Songs Grid ── */



.songs-grid {



    display: grid;



    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));



    gap: 16px;



    margin-bottom: 8px;



}







.song-card {



    position: relative;



    height: 200px;



    border-radius: 12px;



    overflow: hidden;



    cursor: pointer;



    transition: transform 0.3s ease;



}







.song-card:hover { transform: scale(1.04); }







.song-background {



    position: absolute;



    inset: 0;



    opacity: 0.8;



}







.song-background img {



    width: 100%;



    height: 100%;



    object-fit: cover;



}







.song-content {



    position: absolute;



    bottom: 0;



    left: 0;



    right: 0;



    padding: 16px;



    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);



    color: white;



}







.song-content h3 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }



.song-content .album { font-size: 11px; opacity: 0.8; }







.play-overlay {



    position: absolute;



    inset: 0;



    background: rgba(0,0,0,0.3);



    display: flex;



    align-items: center;



    justify-content: center;



    opacity: 0;



    transition: opacity 0.2s;



}







.song-card:hover .play-overlay { opacity: 1; }







.play-overlay-btn {



    width: 44px;



    height: 44px;



    background: rgba(255,255,255,0.9);



    border-radius: 50%;



    display: flex;



    align-items: center;



    justify-content: center;



    font-size: 16px;



}







/* ── Legacy (kept for safety) ── */



.open-in-music-old { display: none; }







/* ── Movies Grid ── */



.movies-grid {



    display: grid;



    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));



    gap: 16px;



    margin-bottom: 8px;



}







.movies-full-grid {



    display: grid;



    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));



    gap: 20px;



}







.movie-card {



    cursor: pointer;



    border-radius: 10px;



    overflow: hidden;



    transition: transform 0.2s;



    background: #fff;



    box-shadow: 0 1px 4px rgba(0,0,0,0.08);



}







.movie-card:hover { transform: scale(1.04); }







/* Square wrapper — image always fills it, cropped from center-top */



.movie-poster-wrapper {



    width: 100%;



    aspect-ratio: 1 / 1;



    overflow: hidden;



    background: linear-gradient(135deg, #667eea, #764ba2);



    position: relative;



}







.movie-poster {



    width: 100%;



    height: 100%;



    object-fit: cover;



    object-position: center top;



    display: block;



}







.movie-poster-placeholder {



    width: 100%;



    height: 100%;



    display: flex;



    align-items: center;



    justify-content: center;



    font-size: 40px;



    color: white;



}







.movie-info {



    padding: 10px;



}







.movie-title {



    font-size: 13px;



    font-weight: 600;



    color: #1d1d1f;



    margin-bottom: 2px;



    white-space: nowrap;



    overflow: hidden;



    text-overflow: ellipsis;



}







.movie-year {



    font-size: 11px;



    color: #86868b;



}







/* ── Songs Page (Apple Music table style) ── */



.songs-section {



    padding: 0 !important;



    display: flex;



    flex-direction: column;



    height: 100%;



}







.songs-page-header {



    display: flex;



    align-items: center;



    justify-content: space-between;



    padding: 18px 28px 8px 28px;



}







.songs-page-header h1 {



    font-size: 22px;



    font-weight: 700;



    margin: 0;



}







.songs-sort-btn {



    display: flex;



    align-items: center;



    gap: 4px;



    cursor: pointer;



    padding: 4px 6px;



    border-radius: 4px;



    color: #1d1d1f;



}







.songs-sort-btn:hover { background: #f2f2f7; }







/* Table header row */



.songs-table-header {



    display: grid;



    grid-template-columns: 1fr 180px 260px 52px;



    padding: 6px 28px 6px 56px;



    border-bottom: 1px solid #e5e5ea;



    border-top: 1px solid #e5e5ea;



    background: #fff;



    position: sticky;



    top: 0;



    z-index: 2;



}







.songs-table-header div {



    font-size: 12px;



    font-weight: 500;



    color: #8e8e93;



    text-transform: none;



    letter-spacing: 0;



}







.col-time { text-align: right; }







/* Song list container */



#songsList {



    display: flex;



    flex-direction: column;



    overflow-y: auto;



    flex: 1;



    min-height: 0;



    padding-bottom: 20px;



}







/* Each song row */



.song-item {



    display: grid;



    grid-template-columns: 1fr 180px 260px 52px;



    align-items: center;



    padding: 0 28px 0 12px;



    height: 52px;



    border-radius: 0;



    cursor: pointer;



    transition: background-color 0.12s;



    border-bottom: none;



}







.song-item:hover { background-color: #f5f5f7; }



.song-item.playing { background-color: #f0f0f5; }



.song-item.playing .song-name { color: #fc3c44; font-weight: 500; }







/* Left: art + name block */



.song-name-cell {



    display: flex;



    align-items: center;



    gap: 10px;



    min-width: 0;



    padding-right: 12px;



}







.song-fav-star {



    width: 14px;



    flex-shrink: 0;



    color: #fc3c44;



    font-size: 12px;



    text-align: center;



}







.song-art {



    width: 36px;



    height: 36px;



    border-radius: 4px;



    overflow: hidden;



    flex-shrink: 0;



    background: linear-gradient(135deg, #667eea, #764ba2);



    display: flex;



    align-items: center;



    justify-content: center;



    color: white;



    font-size: 14px;



}







.song-art img {



    width: 100%;



    height: 100%;



    object-fit: cover;



    display: block;



}







.song-name-text {



    font-size: 14px;



    font-weight: 400;



    color: #1d1d1f;



    white-space: nowrap;



    overflow: hidden;



    text-overflow: ellipsis;



}







.song-item.playing .song-name-text { color: #fc3c44; }







/* Artist cell */



.song-artist-cell {



    font-size: 13px;



    color: #86868b;



    white-space: nowrap;



    overflow: hidden;



    text-overflow: ellipsis;



    padding-right: 12px;



}







/* Album cell */



.song-album-cell {



    font-size: 13px;



    color: #86868b;



    white-space: nowrap;



    overflow: hidden;



    text-overflow: ellipsis;



    padding-right: 12px;



}







/* Time cell */



.song-time-cell {



    font-size: 13px;



    color: #86868b;



    text-align: right;



    font-variant-numeric: tabular-nums;



}







/* Playing indicator */



.song-playing-indicator {



    color: #fc3c44;



    font-size: 11px;



    animation: pulse 1s infinite;



}







@keyframes pulse {



    0%, 100% { opacity: 1; }



    50% { opacity: 0.4; }



}







.song-item.selected {



    background-color: #e8e8ed;



}







.song-item.selected.playing {



    background-color: #ede8f5;



}







.album-detail-section {



    padding: 0 !important;



    background: #fff;



    overflow-y: auto;



}







.album-detail-section .back-btn {



    position: sticky;



    top: 0;



    z-index: 3;



    background: rgba(255,255,255,0.92);



    backdrop-filter: blur(8px);



    border-bottom: 1px solid #f0f0f5;



    border-radius: 0;



    width: 100%;



    text-align: left;



    padding: 10px 20px;



    font-size: 13px;



    border-left: none;



    border-right: none;



    border-top: none;



    color: #fc3c44;



    font-weight: 500;



}







.album-detail-section .back-btn:hover { background: rgba(245,245,247,0.95); }



.album-detail-wrap {



    padding: 0;



    background: #fff;



    min-height: 100%;



}







.album-detail-header {



    display: flex;



    gap: 32px;



    padding: 32px 32px 24px 32px;



    align-items: flex-start;



    background: #000000;



}







/* Poster */



.album-detail-poster-wrap {



    width: 200px;



    height: 200px;



    flex-shrink: 0;



    border-radius: 8px;



    overflow: hidden;



    box-shadow: 0 8px 32px rgba(0,0,0,0.18);



    background: linear-gradient(135deg, #667eea, #764ba2);



    position: relative;



}







.album-detail-poster {



    width: 100%;



    height: 100%;



    object-fit: cover;



    object-position: center top;



    display: block;



}







.album-detail-poster-fallback {



    width: 100%;



    height: 100%;



    display: flex;



    align-items: center;



    justify-content: center;



    font-size: 56px;



}







/* Meta */



.album-detail-meta {



    flex: 1;



    padding-top: 8px;



}







.album-detail-title {



    font-size: 22px;



    font-weight: 700;



    color: #1d1d1f;



    margin-bottom: 6px;



    line-height: 1.3;



}







.album-detail-artist {



    font-size: 16px;



    font-weight: 500;



    color: #fc3c44;



    margin-bottom: 4px;



}







.album-detail-sub {



    font-size: 13px;



    color: #86868b;



    margin-bottom: 24px;



    text-transform: uppercase;



    letter-spacing: 0.3px;



}







/* Action buttons */



.album-detail-actions {



    display: flex;



    align-items: center;



    gap: 10px;



}







.album-play-btn {



    display: flex;



    align-items: center;



    gap: 7px;



    background: #fc3c44;



    color: white;



    border: none;



    border-radius: 20px;



    padding: 9px 22px;



    font-size: 14px;



    font-weight: 600;



    cursor: pointer;



    transition: background 0.15s;



    font-family: inherit;



}







.album-play-btn:hover { background: #e0353d; }







.album-shuffle-btn {



    display: flex;



    align-items: center;



    gap: 7px;



    background: #fc3c44;



    color: white;



    border: none;



    border-radius: 20px;



    padding: 9px 22px;



    font-size: 14px;



    font-weight: 600;



    cursor: pointer;



    transition: background 0.15s;



    font-family: inherit;



}







.album-shuffle-btn:hover { background: #e0353d; }







.album-more-btn {



    background: none;



    border: 1px solid #d2d2d7;



    border-radius: 50%;



    width: 34px;



    height: 34px;



    font-size: 16px;



    cursor: pointer;



    display: flex;



    align-items: center;



    justify-content: center;



    color: #86868b;



    letter-spacing: 1px;



    transition: background 0.15s;



}







.album-more-btn:hover { background: #f5f5f7; }







/* Track list */



.album-tracks {



    padding: 0 0 8px 0;



    border-top: 1px solid #f0f0f5;



}







.album-track {



    display: flex;



    align-items: center;



    justify-content: space-between;



    padding: 10px 32px 10px 24px;



    cursor: pointer;



    transition: background 0.12s;



    border-bottom: 1px solid #f5f5f7;



}







.album-track:hover { background: #f9f9fb; }



.album-track.playing { background: #fff0f0; }



.album-track.selected { background: #ededf5; }







.album-track-left {



    display: flex;



    align-items: center;



    gap: 10px;



    min-width: 0;



    flex: 1;



}







.album-track-star {



    width: 16px;



    font-size: 11px;



    color: #fc3c44;



    flex-shrink: 0;



    text-align: center;



}







.album-track-num {



    width: 18px;



    font-size: 13px;



    color: #86868b;



    text-align: right;



    flex-shrink: 0;



}







.album-track-info {



    min-width: 0;



}







.album-track-name {



    font-size: 14px;



    font-weight: 400;



    color: #1d1d1f;



    white-space: nowrap;



    overflow: hidden;



    text-overflow: ellipsis;



}







.album-track.playing .album-track-name { color: #fc3c44; font-weight: 500; }







.album-track-artist {



    font-size: 12px;



    color: #86868b;



    white-space: nowrap;



    overflow: hidden;



    text-overflow: ellipsis;



}







.album-track-right {



    display: flex;



    align-items: center;



    gap: 12px;



    flex-shrink: 0;



}







.album-track-time {



    font-size: 13px;



    color: #86868b;



    font-variant-numeric: tabular-nums;



    min-width: 36px;



    text-align: right;



}







.album-track-more {



    background: none;



    border: none;



    cursor: pointer;



    font-size: 14px;



    color: #86868b;



    padding: 2px 6px;



    border-radius: 4px;



    opacity: 0;



    transition: opacity 0.15s;



    letter-spacing: 1px;



}







.album-track:hover .album-track-more { opacity: 1; }







/* Footer */



.album-footer {



    padding: 16px 32px 32px 32px;



    display: flex;



    flex-direction: column;



    gap: 3px;



}







.album-footer p {



    font-size: 12px;



    color: #86868b;



}















/* ── Recently Added Grid ── */



.recently-added-grid {



    display: grid;



    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));



    gap: 24px;



    padding-bottom: 40px;



}







.ra-card {



    cursor: pointer;



    transition: transform 0.18s;



}







.ra-card:hover { transform: scale(1.03); }







.ra-art {



    width: 100%;



    aspect-ratio: 1 / 1;



    border-radius: 8px;



    overflow: hidden;



    background: #e8e8ed;



    position: relative;



    box-shadow: 0 4px 16px rgba(0,0,0,0.12);



    margin-bottom: 10px;



}







.ra-art img {



    width: 100%;



    height: 100%;



    object-fit: cover;



    object-position: center top;



    display: block;



}







.ra-art-fallback {



    width: 100%;



    height: 100%;



    display: flex;



    align-items: center;



    justify-content: center;



    font-size: 48px;



}







.ra-play-overlay {



    position: absolute;



    inset: 0;



    background: rgba(0,0,0,0.25);



    display: flex;



    align-items: center;



    justify-content: center;



    opacity: 0;



    transition: opacity 0.18s;



    border-radius: 8px;



}







.ra-card:hover .ra-play-overlay { opacity: 1; }







.ra-play-btn {



    width: 48px;



    height: 48px;



    background: rgba(255,255,255,0.92);



    border-radius: 50%;



    display: flex;



    align-items: center;



    justify-content: center;



    font-size: 18px;



    box-shadow: 0 2px 8px rgba(0,0,0,0.2);



}







.ra-info { padding: 0 2px; }







.ra-title {



    font-size: 13px;



    font-weight: 500;



    color: #1d1d1f;



    line-height: 1.3;



    margin-bottom: 3px;



    display: -webkit-box;



    -webkit-line-clamp: 2;



    -webkit-box-orient: vertical;



    overflow: hidden;



}







.ra-artist {



    font-size: 12px;



    color: #86868b;



    white-space: nowrap;



    overflow: hidden;



    text-overflow: ellipsis;



}







/* ── Gradients ── */



.gradient-blue    { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }



.gradient-purple  { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }



.gradient-orange  { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }



.gradient-pink    { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }



.gradient-green   { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }



.gradient-red     { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }



.gradient-teal    { background: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%); }



.gradient-indigo  { background: linear-gradient(135deg, #9890e3 0%, #b1f4cf 100%); }







/* ── Scrollbar ── */



::-webkit-scrollbar { width: 6px; }



::-webkit-scrollbar-track { background: transparent; }



::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 3px; }



::-webkit-scrollbar-thumb:hover { background: #86868b; }







/* ══════════════════════════════════════════



   MOBILE  (≤ 600px) — Apple Music style



   ══════════════════════════════════════════ */



@media (max-width: 600px) {







    /* ── Hide desktop elements ── */



    .top-nav .nav-right .volume-control,



    .top-nav .nav-right .nav-right-item:not(.profile-icon),



    .sidebar { display: none !important; }







    /* ── Mobile top bar ── */



    .top-nav {



        height: 52px;



        padding: 0 16px;



        justify-content: space-between;



        position: fixed;



        top: 0; left: 0; right: 0;



        z-index: 100;



        background: #fff;



        border-bottom: 1px solid #e5e5ea;



        border-radius: 0 0 16px 16px;



        box-shadow: 0 2px 8px rgba(0,0,0,0.08);



    }







    /* Hide desktop left logo, show only hamburger */



    .nav-left {



        width: auto;



        display: flex;



        align-items: center;



    }







    .jrntr-music-logo { display: none; }







    /* Center: Apple logo + Music text */



    .nav-center {



        display: flex !important;



        position: absolute;



        left: 50%;



        transform: translateX(-50%);



        flex-direction: row;



        align-items: center;



        justify-content: center;



        gap: 5px;



        pointer-events: none;



        background: none;



        flex: none;



        width: auto;



    }







    /* Hide all center controls, only show mobile title */



    .playback-controls,



    .nav-album-art,



    .nav-now-playing-block,



    .progress-container { display: none !important; }







    /* Show Apple logo + Music text as the center title */



    .mobile-center-title {



        display: flex !important;



        align-items: center;



        gap: 5px;



        pointer-events: auto;



    }







    .mobile-center-title img {



        height: 20px;



        width: auto;



    }







    .mobile-center-title span {



        font-size: 19px;



        font-weight: 700;



        letter-spacing: -0.4px;



        color: #000000;



    }







    /* Hamburger button (mobile only) */



    .mobile-menu-btn {



        display: flex !important;



        background: none;



        border: none;



        cursor: pointer;



        padding: 4px;



        align-items: center;



        justify-content: center;



    }







    /* Show only profile in nav-right */



    .nav-right {



        display: flex !important;



        align-items: center;



    }







    .nav-right .volume-control,



    .nav-right .nav-right-item:not(.profile-icon) { display: none !important; }



    .nav-right .profile-icon { display: flex !important; }







    /* ── Main layout ── */



    .main-container {



        flex-direction: column;



        padding-top: 52px;



        padding-bottom: 100px;



        height: auto !important;



        min-height: 100vh;



        overflow: visible !important;



    }







    .content {



        height: auto !important;



        overflow: visible !important;



        min-height: 0;



        padding: 0 !important;



        background: #fff;



    }







    /* Songs section on mobile — let page scroll naturally */



    .songs-section {



        overflow: visible !important;



        min-height: 0;



        height: auto !important;



        flex: none !important;



    }







    #songsList {



        overflow: visible !important;



        height: auto !important;



        min-height: 0;



        flex: none !important;



    }







    .home-section {



        padding: 16px !important;



    }







    .songs-page-header {



        padding: 16px 16px 8px 16px;



    }







    .songs-table-header {



        padding-left: 12px;



    }







    /* Songs table — hide artist/album on mobile */



    .songs-table-header .col-artist,



    .songs-table-header .col-album,



    .song-item .song-artist-cell,



    .song-item .song-album-cell { display: none; }







    .songs-table-header {



        grid-template-columns: 1fr 52px;



        padding-left: 12px;



    }







    .song-item {



        grid-template-columns: 1fr 52px;



    }







    /* Recently Added — 2 column grid like screenshot */



    .recently-added-grid {



        grid-template-columns: 1fr 1fr !important;



        gap: 16px !important;



        padding: 0 0 100px 0 !important;



    }







    #section-recentlyadded {



        padding: 20px 16px 0 16px !important;



    }







    .ra-title { font-size: 13px; }



    .ra-artist { font-size: 12px; }



    .album-detail-header {



        flex-direction: column;



        align-items: center;



        text-align: center;



        padding: 20px 16px;



        gap: 16px;



    }







    .album-detail-poster-wrap { width: 180px; height: 180px; }



    .album-detail-title { font-size: 17px; }



    .album-detail-actions { justify-content: center; }



    .album-track { padding: 10px 16px; }







    /* ── Mobile slide-in menu overlay ── */



    .mobile-menu-overlay {



        display: none;



        position: fixed;



        inset: 0;



        background: rgba(0,0,0,0.4);



        z-index: 200;



    }







    .mobile-menu-overlay.open { display: block; }







    .mobile-menu {



        position: fixed;



        top: 0; left: 0; bottom: 0;



        width: 88vw;



        max-width: 340px;



        background: #fff;



        z-index: 201;



        display: flex;



        flex-direction: column;



        transform: translateX(-100%);



        transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);



        border-radius: 0 16px 16px 0;



        overflow-y: auto;



    }







    .mobile-menu-overlay.open .mobile-menu {



        transform: translateX(0);



    }







    /* Mobile menu header */



    .mobile-menu-header {



        display: flex;



        align-items: center;



        justify-content: space-between;



        padding: 14px 20px;



        border-bottom: 1px solid #f0f0f5;



        position: sticky;



        top: 0;



        background: #fff;



        z-index: 1;



    }







    .mobile-menu-title {



        display: flex;



        align-items: center;



        gap: 6px;



        font-size: 18px;



        font-weight: 700;



    }







    .mobile-close-btn {



        background: #f0f0f5;



        border: none;



        border-radius: 50%;



        width: 30px;



        height: 30px;



        display: flex;



        align-items: center;



        justify-content: center;



        cursor: pointer;



        font-size: 16px;



        color: #86868b;



    }







    /* Mobile menu body */



    .mobile-menu-body {



        padding: 8px 0 24px 0;



        flex: 1;



    }







    /* Top nav items (Home, New, Radio, Search) */



    .mobile-top-nav {



        padding: 8px 0;



        border-bottom: 1px solid #f0f0f5;



        margin-bottom: 8px;



    }







    .mobile-nav-item {



        display: flex;



        align-items: center;



        gap: 16px;



        padding: 13px 20px;



        font-size: 17px;



        color: #1d1d1f;



        cursor: pointer;



        border-radius: 10px;



        margin: 0 8px;



        text-decoration: none;



        transition: background 0.12s;



    }







    .mobile-nav-item:hover,



    .mobile-nav-item.active { background: #e8e8ed; }



    .mobile-nav-item.active { font-weight: 700; }







    .mobile-nav-icon {



        width: 26px;



        height: 26px;



        display: flex;



        align-items: center;



        justify-content: center;



        color: #fc3c44;



        flex-shrink: 0;



    }







    .mobile-nav-icon svg { width: 22px; height: 22px; }







    /* Section headers inside mobile menu */



    .mobile-section-header {



        display: flex;



        align-items: center;



        justify-content: space-between;



        padding: 16px 20px 6px 20px;



    }







    .mobile-section-title {



        font-size: 13px;



        color: #86868b;



        font-weight: 500;



        text-transform: none;



        letter-spacing: 0;



    }







    .mobile-section-edit {



        font-size: 13px;



        font-weight: 600;



        color: #1d1d1f;



    }







    /* Open in Music at bottom */



    .mobile-open-music {



        margin: 16px 20px 0 20px;



        border-top: 1px solid #f0f0f5;



        padding-top: 16px;



    }







    .mobile-open-music-btn {



        display: flex;



        align-items: center;



        gap: 10px;



        background: none;



        border: 1px solid #d2d2d7;



        border-radius: 10px;



        padding: 10px 14px;



        cursor: pointer;



        font-size: 14px;



        color: #1d1d1f;



        width: 100%;



    }







    /* ── Mobile mini-player ── */



    .mobile-mini-player {



        display: flex !important;



        position: fixed;



        bottom: 16px;



        left: 12px;



        right: 12px;



        background: rgba(242,242,247,0.95);



        backdrop-filter: blur(20px);



        -webkit-backdrop-filter: blur(20px);



        border-radius: 14px;



        padding: 10px 14px;



        align-items: center;



        gap: 10px;



        box-shadow: 0 4px 24px rgba(0,0,0,0.15);



        z-index: 100;



        cursor: pointer;



    }







    .mini-player-art {



        width: 41px;



        height: 42px;



        border-radius: 8px;



        overflow: hidden;



        background: #d2d2d7;



        flex-shrink: 0;



    }







    .mini-player-art img {



        width: 100%;



        height: 100%;



        object-fit: cover;



        object-position: center top;



    }







    .mini-player-info {



        flex: 1;



        min-width: 0;



    }







    .mini-player-name {



        font-size: 14px;



        font-weight: 500;



        color: #1d1d1f;



        white-space: nowrap;



        overflow: hidden;



        text-overflow: ellipsis;



    }







    .mini-player-movie {



        font-size: 12px;



        color: #86868b;



        white-space: nowrap;



        overflow: hidden;



        text-overflow: ellipsis;



    }







    .mini-player-controls {



        display: flex;



        align-items: center;



        gap: 4px;



        flex-shrink: 0;



    }







    .mini-player-btn {



        background: none;



        border: none;



        cursor: pointer;



        padding: 6px;



        display: flex;



        align-items: center;



        justify-content: center;



    }







    .mini-player-btn svg { fill: #1d1d1f; display: block; }



}







/* Hide mobile-only elements on desktop */



.mobile-menu-btn { display: none; }



.mobile-menu-overlay { display: none; }



.mobile-mini-player { display: none; }



.mobile-center-title { display: none; }







/* ── Music Player Modal ── */



.music-player-modal {



    display: none;



    position: fixed;



    inset: 0;



    z-index: 1000;



    align-items: center;



    justify-content: center;



}







.music-player-modal.open {



    display: flex;



}







.player-backdrop {



    position: absolute;







    .player-play-btn {



        background: #fff;



        border: none;



        border-radius: 50%;



        width: 64px;



        height: 64px;



        display: flex;



        align-items: center;



        justify-content: center;



        cursor: pointer;



        transition: transform 0.2s, background 0.2s;



        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);



    }







    .player-play-btn:hover {



        transform: scale(1.05);



        background: #f0f0f0;



    }



    justify-content: flex-end;



    padding: 16px 16px 8px 16px;



}







.player-close-btn {



    background: rgba(255, 255, 255, 0.1);



    border: none;



    border-radius: 50%;



    width: 36px;



    height: 36px;



    display: flex;



    align-items: center;



    justify-content: center;



    cursor: pointer;



    transition: background 0.2s;



}







.player-close-btn:hover {



    background: rgba(255, 255, 255, 0.2);



}







.player-close-btn svg {



    display: block;



    fill: #fff;



    background: #000;



    border-radius: 50%;



}







/* Main player area */



.player-main {



    flex: 1;



    padding: 0 24px 24px 24px;



    display: flex;



    flex-direction: column;



    align-items: center;



    gap: 20px;



}







/* Album art */



.player-album-art {



    width: 280px;



    height: 280px;



    border-radius: 12px;



    overflow: hidden;



    background: linear-gradient(135deg, #667eea, #764ba2);



    display: flex;



    align-items: center;



    justify-content: center;



    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);



}







.player-album-art img {



    width: 100%;



    height: 100%;



    object-fit: cover;



    display: block;



}







.player-album-fallback {



    display: flex;



    align-items: center;



    justify-content: center;



}







/* Song info */



.player-song-info {



    text-align: center;



    color: #fff;



}







.player-song-info h2 {



    font-size: 24px;



    font-weight: 700;



    margin-bottom: 4px;



    color: #fff;



}







.player-song-info p {



    font-size: 16px;



    color: #86868b;



    margin: 0;



}







/* Progress bar */



.player-progress {



    width: 100%;



    display: flex;



    align-items: center;



    gap: 8px;



}







.player-current-time,



.player-total-time {



    font-size: 12px;



    color: #86868b;



    font-variant-numeric: tabular-nums;



    min-width: 32px;



}







.player-progress-track {



    flex: 1;



    height: 4px;



    background: rgba(255, 255, 255, 0.2);



    border-radius: 2px;



    cursor: pointer;



    position: relative;



    overflow: hidden;



}







.player-progress-bar {



    height: 100%;



    background: #fc3c44;



    border-radius: 2px;



    width: 30%;



    transition: width 0.3s linear;



}







/* Playback controls */



.player-controls {



    display: flex;



    align-items: center;



    gap: 20px;



}







.player-control-btn {



    background: none;



    border: none;



    cursor: pointer;



    padding: 8px;



    display: flex;



    align-items: center;



    justify-content: center;



    border-radius: 50%;



    transition: background 0.2s;



}







.player-control-btn:hover {



    background: rgba(255, 255, 255, 0.1);



}







.player-control-btn svg {



    display: block;



}







.player-play-btn {



    background: #fff;



    border: none;



    border-radius: 50%;



    width: 64px;



    height: 64px;



    display: flex;



    align-items: center;



    justify-content: center;



    cursor: pointer;



    transition: transform 0.2s, background 0.2s;



    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);



}







.player-play-btn:hover {



    transform: scale(1.05);



    background: #f0f0f0;



}







.player-play-btn svg {



    display: block;



}







/* Volume control */



.player-volume {



    display: flex;



    align-items: center;



    gap: 8px;



    width: 100%;



}







.player-volume-btn {



    background: none;



    border: none;



    cursor: pointer;



    padding: 8px;



    display: flex;



    align-items: center;



    justify-content: center;



    border-radius: 50%;



    transition: background 0.2s;



    color: #86868b;



}







.player-volume-btn:hover {



    background: rgba(255, 255, 255, 0.1);



    color: #fff;



}







.player-volume-btn svg {



    display: block;



}







.player-volume-slider {



    flex: 1;



    height: 4px;



    background: rgba(255, 255, 255, 0.2);



    outline: none;



    border-radius: 2px;



    -webkit-appearance: none;



    appearance: none;



    cursor: pointer;



}







.player-volume-slider::-webkit-slider-thumb {



    -webkit-appearance: none;



    width: 16px;



    height: 16px;



    background: #fff;



    border-radius: 50%;



    cursor: pointer;



    border: 2px solid #fc3c44;



}







.player-volume-slider::-moz-range-thumb {



    width: 16px;



    height: 16px;



    background: #fff;



    border-radius: 50%;



    cursor: pointer;



    border: 2px solid #fc3c44;



    border: none;



}







/* Footer controls */



.player-footer {



    display: flex;



    justify-content: space-around;



    padding: 16px 24px;



    border-top: 1px solid rgba(255, 255, 255, 0.1);



}







.player-footer-btn {



    background: none;



    border: none;



    cursor: pointer;



    padding: 12px;



    display: flex;



    align-items: center;



    justify-content: center;



    border-radius: 50%;



    transition: background 0.2s;



}







.player-footer-btn:hover {



    background: rgba(255, 255, 255, 0.1);



}







.player-footer-btn svg {



    display: block;



}







/* Notification bubble */



.player-notification {



    position: absolute;



    top: 60px;



    left: 24px;



    right: 24px;



    background: rgba(255, 255, 255, 0.1);



    backdrop-filter: blur(20px);



    border: 1px solid rgba(255, 255, 255, 0.2);



    border-radius: 12px;



    padding: 12px 16px;



    display: flex;



    align-items: center;



    gap: 12px;



}







.notification-content h4 {



    font-size: 14px;



    font-weight: 600;



    color: #fff;



    margin: 0 0 2px 0;



}







.notification-content p {



    font-size: 12px;



    color: #86868b;



    margin: 0;



}







.notification-close {



    background: none;



    border: none;



    cursor: pointer;



    padding: 4px;



    margin-left: auto;



    flex-shrink: 0;



}







.notification-close svg {



    display: block;



}







/* Mobile responsive */



@media (max-width: 600px) {



    .player-content {



        width: 95%;



        max-width: none;



        margin: 10px;



        border-radius: 16px;



        max-height: 95vh;



        overflow-y: auto;



    }



    



    .player-album-art {



        width: 240px;



        height: 240px;



    }



    



    .player-main {



        padding: 0 20px 20px 20px;



        gap: 16px;



        min-height: 400px;



        background-color: #000;



    }



    



    .player-song-info h2 {



        font-size: 20px;



    }



    



    .player-song-info p {



        font-size: 14px;



    }



    



    .player-play-btn {



        width: 56px;



        height: 56px;



    }



    



    .player-notification {



        top: 50px;



        left: 20px;



        right: 20px;



    }



    



    .player-volume {



        margin-bottom: 10px;



    }



    



    .player-footer {



        padding: 12px 20px;



        margin-top: auto;



        background-color: black;



    }



}







/* ── Account Modal ────────────────────────────────────────────── */



.account-modal {



    position: fixed;



    top: 0;



    left: 0;



    right: 0;



    bottom: 0;



    z-index: 10000;



    display: none;



}







.account-modal.open {



    display: flex;



    align-items: center;



    justify-content: center;



}







.account-backdrop {



    position: absolute;



    inset: 0;



    background: rgba(0, 0, 0, 0.8);



    backdrop-filter: blur(10px);



}







.account-content {



    position: relative;



    width: 90%;



    max-width: 450px;



    max-height: 85vh;



    background: #000000;



    border-radius: 20px;



    overflow: hidden;



    display: flex;



    flex-direction: column;



    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);



}







.account-header {



    display: flex;



    align-items: center;



    justify-content: space-between;



    padding: 20px 25px;



    border-bottom: 1px solid rgba(255, 255, 255, 0.1);



}







.account-header h3 {



    color: #fff;



    font-size: 18px;



    font-weight: 600;



    margin: 0;



}







.account-close-btn {



    background: rgba(255, 255, 255, 0.1);



    border: none;



    border-radius: 50%;



    width: 40px;



    height: 40px;



    display: flex;



    align-items: center;



    justify-content: center;



    cursor: pointer;



    transition: all 0.3s ease;



}







.account-close-btn:hover {



    background: rgba(255, 255, 255, 0.2);



    transform: scale(1.05);



}







.account-body {



    padding: 25px;



    overflow-y: auto;



    flex: 1;



}







/* Auth Forms */



.auth-form {



    display: flex;



    flex-direction: column;



    gap: 20px;



}







.form-group {



    display: flex;



    flex-direction: column;



    gap: 8px;



}







.form-group label {



    color: #fff;



    font-size: 14px;



    font-weight: 500;



}







.form-group input {



    background: rgba(255, 255, 255, 0.1);



    border: 1px solid rgba(255, 255, 255, 0.2);



    border-radius: 8px;



    padding: 12px 16px;



    color: #fff;



    font-size: 14px;



    outline: none;



    transition: all 0.3s ease;



}







.form-group input:focus {



    border-color: #fc3c44;



    background: rgba(255, 255, 255, 0.15);



}







.form-group input::placeholder {



    color: #86868b;



}







.auth-btn {



    background: #fc3c44;



    border: none;



    border-radius: 8px;



    padding: 12px 24px;



    color: #fff;



    font-size: 14px;



    font-weight: 600;



    cursor: pointer;



    transition: all 0.3s ease;



}







.auth-btn:hover {



    background: #e6343c;



    transform: translateY(-1px);



}







.auth-btn.secondary {



    background: rgba(255, 255, 255, 0.1);



}







.auth-btn.secondary:hover {



    background: rgba(255, 255, 255, 0.2);



}







.form-actions {



    display: flex;



    gap: 12px;



}







.auth-switch {



    color: #86868b;



    font-size: 13px;



    text-align: center;



    margin: 0;



}







.auth-switch a {



    color: #fc3c44;



    text-decoration: none;



    font-weight: 500;



}







.auth-switch a:hover {



    text-decoration: underline;



}







/* Profile View */



.profile-view {



    display: flex;



    flex-direction: column;



    gap: 25px;



}







.profile-info h4 {



    color: #fff;



    font-size: 20px;



    font-weight: 600;



    margin: 0 0 8px 0;



}







.profile-info p {



    color: #86868b;



    font-size: 14px;



    margin: 4px 0;



}







.profile-stats {



    display: flex;



    gap: 30px;



    padding: 20px 0;



    border-top: 1px solid rgba(255, 255, 255, 0.1);



    border-bottom: 1px solid rgba(255, 255, 255, 0.1);



}







.stat {



    text-align: center;



}







.stat-number {



    display: block;



    color: #fff;



    font-size: 24px;



    font-weight: 600;



    margin-bottom: 4px;



}







.stat-label {



    color: #86868b;



    font-size: 12px;



    text-transform: uppercase;



    letter-spacing: 1px;



}







.profile-actions {



    display: flex;



    flex-direction: column;



    gap: 12px;



}







.profile-btn {



    background: rgba(255, 255, 255, 0.1);



    border: 1px solid rgba(255, 255, 255, 0.2);



    border-radius: 8px;



    padding: 12px 24px;



    color: #fff;



    font-size: 14px;



    font-weight: 500;



    cursor: pointer;



    transition: all 0.3s ease;



}







.profile-btn:hover {



    background: rgba(255, 255, 255, 0.2);



    transform: translateY(-1px);



}







.profile-btn.logout {



    background: rgba(236, 52, 52, 0.2);



    border-color: rgba(236, 52, 52, 0.3);



    color: #ec3434;



}







.profile-btn.logout:hover {



    background: rgba(236, 52, 52, 0.3);



    border-color: rgba(236, 52, 52, 0.4);



}







/* Notification System */



.notification {



    position: fixed;



    top: 20px;



    right: 20px;



    background: #000000;



    border: 1px solid rgba(255, 255, 255, 0.2);



    border-radius: 8px;



    padding: 16px 20px;



    color: #fff;



    font-size: 14px;



    font-weight: 500;



    z-index: 20000;



    transform: translateX(100%);



    transition: all 0.3s ease;



    max-width: 300px;



    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);



}







.notification.show {



    transform: translateX(0);



}







.notification.success {



    border-color: rgba(76, 175, 80, 0.5);



    background: rgba(76, 175, 80, 0.1);



    color: #4caf50;



}







.notification.error {



    border-color: rgba(244, 67, 54, 0.5);



    background: rgba(244, 67, 54, 0.1);



    color: #f44336;



}







/* Favorites Section */



.favorites-section {



    display: none;



}







.no-favorites {



    color: #86868b;



    text-align: center;



    font-style: italic;



    padding: 40px 20px;



}







/* Mobile responsive for account modal */



@media (max-width: 600px) {



    .account-content {



        width: 95%;



        max-height: 90vh;



        border-radius: 15px;



    }



    



    .account-header {



        padding: 15px 20px;



    }



    



    .account-header h3 {



        font-size: 16px;



    }



    



    .account-close-btn {



        width: 35px;



        height: 35px;



    }



    



    .account-body {



        padding: 20px;



    }



    



    .profile-stats {



        gap: 20px;



        padding: 15px 0;



    }



    



    .stat-number {



        font-size: 20px;



    }



    



    .notification {



        right: 10px;



        left: 10px;



        max-width: none;



    }



}
