/* =========================================================
   MUSIC PAGE — FULL RESPONSIVE OVERRIDE
   Works for:
   Desktop
   Laptop
   Tablet
   iPad
   Android phones
   iPhone
   Small phones
========================================================= */


/* =========================================================
   GLOBAL MOBILE SAFETY
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
}

.container {
    width: 100%;
}

.music-page,
.music-hero,
.music-albums-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}


/* =========================================================
   HERO — TABLET
========================================================= */

@media (max-width: 991px) {

    .music-hero {
        min-height: auto;
        height: auto;
        margin-top: 0;
        padding: 150px 20px 90px !important;
    }

    .music-hero .container {
        width: 100%;
        max-width: 760px;
    }

    .music-hero .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .music-hero .col-lg-4,
    .music-hero .col-lg-8 {
        width: 100%;
        max-width: 100%;
        transform: none !important;
    }

    .music-hero .col-lg-8 {
        margin-top: 55px;
        text-align: center;
    }

    .album-cover {
        position: relative;
        top: 0 !important;
        width: 280px;
        max-width: 80%;
        height: auto;
    }

    .artist-name {
        font-size: clamp(2.4rem, 6vw, 3.5rem);
        line-height: 1.15;
        word-break: normal;
    }

    .artist-description {
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.5rem;
        line-height: 1.6;
    }

    .artist-description.typing span {
        white-space: normal;
        width: auto;
        overflow: visible;
        animation: none;
    }

    .hero-buttons {
        justify-content: center;
    }
}


/* =========================================================
   MUSIC CONTENT — TABLET
========================================================= */

@media (max-width: 1100px) {

    .music-page {
        padding: 80px 25px !important;
    }

    .music-container {
        width: 100%;
        max-width: 850px;
        margin: auto;
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 60px !important;
    }

    .music-left {
        width: 100%;
        position: relative !important;
        top: 0 !important;
        text-align: center;
    }

    .music-right {
        width: 100%;
    }

    /* Hide desktop vertical divider */
    .music-container::after {
        display: none !important;
    }

    .album-showcase {
        width: 300px;
        height: 380px;
        margin: auto;
    }

    .vinyl-record {
        right: -55px;
        width: 210px;
        height: 210px;
    }

    .music-title {
        font-size: 3rem;
    }

    .music-right h2 {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        font-size: 18px;
        line-height: 1.7;
    }

    .album-tracklist-container {
        width: 100%;
        max-width: 750px;
        margin: auto;
        height: 600px;
    }
}


/* =========================================================
   MUSIC CONTENT — MOBILE
========================================================= */

@media (max-width: 768px) {

    .music-page {
        padding: 65px 15px !important;
    }

    .music-container {
        gap: 45px !important;
    }

    /* Album */

    .album-showcase {
        width: 250px;
        height: 315px;
    }

    .music-left .album-cover {
        width: 230px;
        max-width: 85%;
    }

    .vinyl-record {
        width: 170px;
        height: 170px;
        right: -45px;
    }

    /* Title */

    .music-title {
        font-size: 2.4rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .music-title-divider {
        width: 120px;
        margin-bottom: 30px;
    }

    .music-right h2 {
        font-size: 16px;
        line-height: 1.7;
        text-align: left;
        text-indent: 0;
        margin: 15px 5px 25px;
    }

    /* Song container */

    .album-tracklist-container {
        height: 540px;
        padding: 10px !important;
        border-radius: 18px;
    }

    /* Song row */

    .album-tracklist-container .song {
        display: grid;
        grid-template-columns: 35px minmax(0, 1fr) 50px;
        gap: 8px;
        padding: 14px 8px;
        min-width: 0;
    }

    .song-number {
        font-size: 14px !important;
        width: auto;
    }

    .song-info {
        min-width: 0;
    }

    .song-info h4,
    .song-info h3 {
        font-size: 15px !important;
        line-height: 1.35;
        margin: 0;
        overflow-wrap: anywhere;
    }

    .song-info p {
        font-size: 11px !important;
        margin-top: 3px;
    }

    .song-duration {
        font-size: 11px !important;
        white-space: nowrap;
    }

    /* Prevent hover play icon from covering text */

    .song::before {
        display: none;
    }
}


/* =========================================================
   SMALL PHONES — 576px
========================================================= */

@media (max-width: 576px) {

    .music-hero {
        padding: 125px 15px 70px !important;
    }

    .music-hero .col-lg-8 {
        margin-top: 40px;
    }

    /* Hero album */

    .music-hero .album-cover {
        width: 210px;
        max-width: 75%;
    }

    /* Hero text */

    .music-type {
        font-size: 10px;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }

    .artist-name {
        font-size: clamp(1.65rem, 8vw, 2.2rem) !important;
        line-height: 1.2;
        letter-spacing: 0;
        word-break: normal;
    }

    .artist-description {
        font-size: 1.1rem !important;
        line-height: 1.55;
        padding: 0 5px;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: auto;
        padding: 12px 20px;
    }


    /* Main music section */

    .music-page {
        padding: 55px 12px !important;
    }

    .album-showcase {
        width: 205px;
        height: 265px;
    }

    .music-left .album-cover {
        width: 190px;
    }

    .vinyl-record {
        width: 135px;
        height: 135px;
        right: -32px;
    }

    /* Song list heading */

    .music-title {
        font-size: 2rem !important;
    }

    .music-title-divider {
        width: 90px;
        margin-bottom: 25px;
    }

    .music-right h2 {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 20px;
    }

    /* Tracklist */

    .album-tracklist-container {
        height: 500px;
        padding: 7px !important;
        border-radius: 15px;
    }

    .album-tracklist-container .song {
        grid-template-columns: 30px minmax(0, 1fr) 45px;
        gap: 6px;
        padding: 12px 5px;
    }

    .song-number {
        font-size: 12px !important;
    }

    .song-info h4,
    .song-info h3 {
        font-size: 14px !important;
        line-height: 1.3;
    }

    .song-info p {
        font-size: 10px !important;
    }

    .song-duration {
        font-size: 10px !important;
    }
}


/* =========================================================
   VERY SMALL PHONES — 400px
========================================================= */

@media (max-width: 400px) {

    .music-hero {
        padding-top: 115px !important;
    }

    .music-hero .album-cover {
        width: 180px;
    }

    .artist-name {
        font-size: 1.55rem !important;
    }

    .artist-description {
        font-size: 1rem !important;
    }

    .album-showcase {
        width: 180px;
        height: 235px;
    }

    .music-left .album-cover {
        width: 170px;
    }

    .vinyl-record {
        width: 115px;
        height: 115px;
        right: -25px;
    }

    .music-title {
        font-size: 1.8rem !important;
    }

    .music-right h2 {
        font-size: 14px;
    }

    .album-tracklist-container {
        height: 470px;
    }

    .album-tracklist-container .song {
        grid-template-columns: 25px minmax(0, 1fr) 40px;
        gap: 4px;
        padding: 11px 3px;
    }

    .song-info h4,
    .song-info h3 {
        font-size: 13px !important;
    }
}


/* =========================================================
   ALBUM COLLECTION
========================================================= */

@media (max-width: 991px) {

    .music-albums-section {
        padding: 75px 20px !important;
    }

    .album-folder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 25px;
    }

    .album-folder-card {
        max-width: 100%;
    }

    .album-folder-cover {
        height: 250px;
    }
}


@media (max-width: 700px) {

    .music-albums-section {
        padding: 60px 15px !important;
    }

    .music-albums-heading {
        margin-bottom: 35px;
    }

    .music-albums-heading h2 {
        font-size: 2.3rem !important;
    }

    .music-albums-heading p {
        font-size: 15px;
        line-height: 1.6;
    }

    .album-folder-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .album-folder-card {
        width: 100%;
        max-width: 360px;
        margin: auto;
    }

    .album-folder-cover {
        height: 250px;
    }

    .album-folder-info h3 {
        font-size: 20px;
    }

    .album-folder-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .album-folder-button,
    .spotify-button {
        width: 100%;
        justify-content: center;
        margin: 0 !important;
    }
}


/* =========================================================
   MUSIC PLAYER — TABLET
========================================================= */

@media (max-width: 991px) {

    .music-player {
        width: calc(100% - 30px) !important;
        max-width: 700px;
        padding: 18px !important;
        gap: 15px !important;
        border-radius: 20px;
        bottom: 15px !important;
    }

    .player-left {
        width: 30%;
        min-width: 0;
        gap: 10px;
    }

    .player-left img {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
    }

    .player-left h5 {
        font-size: 16px !important;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .music-page .music-player .player-left p {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .player-center {
        width: 45%;
        min-width: 0;
    }

    .player-right {
        width: 20%;
    }

    #volume {
        width: 70px;
    }
}


/* =========================================================
   MUSIC PLAYER — MOBILE
========================================================= */

@media (max-width: 650px) {

    .music-player {
        width: calc(100% - 20px) !important;
        max-width: none;
        padding: 12px !important;
        bottom: 10px !important;
        border-radius: 17px;
        gap: 8px !important;

        display: grid !important;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "info controls"
            "progress progress";
    }

    .player-left {
        grid-area: info;
        width: 100%;
        min-width: 0;
    }

    .player-left img {
        width: 45px;
        height: 45px;
        border-radius: 7px;
    }

    .player-left h5 {
        font-size: 14px !important;
        max-width: 150px;
    }

    .music-page .music-player .player-left p {
        font-size: 10px;
    }

    .player-center {
        grid-area: controls;
        width: auto;
    }

    .controls {
        gap: 7px !important;
        margin: 0 !important;
    }

    .controls button {
        font-size: 17px !important;
        width: 34px;
        height: 34px;
    }

    #playPauseBtn {
        width: 43px !important;
        height: 43px !important;
        font-size: 20px !important;
    }

    #progressBar {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 7px;
        width: calc(100% - 24px);
        height: 4px;
    }

    .player-right {
        display: none !important;
    }
}


/* =========================================================
   VERY SMALL PHONE PLAYER
========================================================= */

@media (max-width: 400px) {

    .music-player {
        padding: 10px !important;
        border-radius: 15px;
    }

    .player-left img {
        width: 40px;
        height: 40px;
    }

    .player-left h5 {
        font-size: 12px !important;
        max-width: 120px;
    }

    .music-page .music-player .player-left p {
        font-size: 9px;
    }

    .controls {
        gap: 3px !important;
    }

    .controls button {
        width: 30px;
        height: 30px;
        font-size: 15px !important;
    }

    #playPauseBtn {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
    }
}


/* =========================================================
   PLAYER MINIMIZED STATE
========================================================= */

@media (max-width: 650px) {

    .music-player.minimized {
        width: auto !important;
        max-width: 220px !important;
        height: auto !important;
        min-height: 55px;
        padding: 8px 12px !important;
    }

    .music-player.minimized .player-center,
    .music-player.minimized .player-right,
    .music-player.minimized #progressBar {
        display: none !important;
    }
}


/* =========================================================
   ALBUM MODAL — TABLET
========================================================= */

@media (max-width: 768px) {

    .album-modal {
        width: calc(100% - 20px);
        margin: auto;
        border-radius: 14px;
    }

    .album-modal .modal-header {
        padding: 18px 16px;
    }

    .album-modal .modal-title {
        font-size: 22px !important;
        line-height: 1.2;
        padding-right: 10px;
    }

    .album-modal .album-modal-artist {
        font-size: 12px;
    }

    .album-modal .modal-body {
        padding: 8px !important;
    }

    .album-modal .playlist-section {
        padding: 10px 5px !important;
    }

    .album-modal .playlist {
        max-height: 55vh;
        overflow-y: auto;
    }

    .album-modal .song {
        display: flex;
        gap: 8px;
        padding: 12px 5px;
    }

    .album-modal .song-number {
        width: 25px;
        flex-shrink: 0;
    }

    .album-modal .song-info {
        min-width: 0;
        flex: 1;
    }

    .album-modal .song-info h3 {
        font-size: 14px !important;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.35;
    }

    .album-modal .song-info p {
        font-size: 10px;
    }

    .album-modal .song-duration {
        font-size: 10px;
    }
}


/* =========================================================
   FOOTER MOBILE SAFETY
========================================================= */

@media (max-width: 768px) {

    .premium-footer {
        width: 100%;
        overflow: hidden;
        padding: 55px 15px 25px !important;
    }

    .footer-top {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
    }

    .footer-col {
        width: 100%;
        padding: 0 !important;
        text-align: center !important;
    }

    .footer-navigation,
    .footer-brand,
    .footer-connect {
        text-align: center !important;
    }

    .footer-col p {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-logo img {
        max-width: 150px;
        height: auto;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 8px;
        text-align: center;
    }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) and (pointer: coarse) {

    .album-folder-card:hover,
    .album-folder-card:hover .album-folder-cover img,
    .album-cover:hover,
    .hero-buttons .btn:hover {
        transform: none;
    }

    .song:hover {
        background: transparent;
    }
}


/* =========================================================
   LANDSCAPE PHONES
========================================================= */

@media (max-height: 500px) and (orientation: landscape) {

    .music-hero {
        min-height: auto;
        padding-top: 110px !important;
        padding-bottom: 50px !important;
    }

    .music-hero .album-cover {
        width: 150px;
    }

    .music-hero .col-lg-8 {
        margin-top: 25px;
    }

    .artist-name {
        font-size: 1.8rem !important;
    }

    .artist-description {
        font-size: 1rem !important;
    }

    .music-page {
        padding-top: 45px !important;
    }
}


/* =========================================================
   ACCESSIBILITY — REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   VERY SMALL HERO TITLE
========================================================= */

@media (max-width: 400px) {

    .music-hero .artist-name {
        white-space: nowrap;
        font-size: 1.25rem !important;
        letter-spacing: -1px;
    }
}


/* =========================================================
   MUSIC PLAYER ACTION BUTTONS
========================================================= */

@media (max-width: 650px) {

    .music-player .player-actions {
        top: 6px;
        right: 6px;
        z-index: 100;
    }

    .music-player .player-actions button {
        width: 42px;
        height: 42px;
        padding: 0;
        margin-left: 20px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .music-player .controls {
        gap: 18px !important;
        padding-right: 35px;
    }
}


/* =====================================================
   PLAYER COVER — KEEP COMPLETELY INSIDE PLAYER
===================================================== */

.music-player .player-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.music-player .player-left img#playerCover {
    position: static !important;

    width: 65px !important;
    height: 65px !important;

    min-width: 65px !important;
    max-width: 65px !important;

    min-height: 65px !important;
    max-height: 65px !important;

    display: block;

    flex: 0 0 65px;

    object-fit: contain !important;
    object-position: center;

    border-radius: 9px;
    overflow: hidden;

    margin: 0 !important;
    padding: 0 !important;

    background: #111;

    box-shadow: 0 5px 15px rgba(0, 0, 0, .35);
}


/* =====================================================
   PLAYER COVER — MOBILE
===================================================== */

@media (max-width: 650px) {

    .music-player .player-left {
        gap: 10px;
        min-width: 0;
    }

    .music-player .player-left img#playerCover {
        width: 48px !important;
        height: 48px !important;

        min-width: 48px !important;
        max-width: 48px !important;

        min-height: 48px !important;
        max-height: 48px !important;

        flex: 0 0 48px;

        border-radius: 7px;

        object-fit: contain !important;
    }
}


/* =====================================================
   PLAYER COVER — VERY SMALL PHONES
===================================================== */

@media (max-width: 400px) {

    .music-player .player-left img#playerCover {
        width: 42px !important;
        height: 42px !important;

        min-width: 42px !important;
        max-width: 42px !important;

        min-height: 42px !important;
        max-height: 42px !important;

        flex-basis: 42px;
    }
}


/* =========================================================
   HERO DESCRIPTION — SMALL PHONES
========================================================= */

@media (max-width: 576px) {

    .music-hero .artist-description {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 8px;
        font-size: 1.05rem !important;
        line-height: 1.5;
        text-align: center;
    }

    .music-hero .artist-description.typing span {
        display: block;
        width: 100% !important;
        white-space: normal !important;
        overflow: visible !important;
        animation: none !important;
    }
}