/* Responsive & adaptive overrides for tablet and mobile */

/* ========== Tablets and small laptops ========== */
@media (max-width: 1024px) {
    .nav {
        padding: 10px 24px;
    }

    .nav_list {
        gap: 28px;
    }

    .nav_link {
        font-size: 1.05rem;
    }

    .player {
        width: min(760px, 100%);
    }

    .bio-content {
        gap: 18px;
    }

    .contact-content {
        gap: 18px;
    }

    .footer-inner {
        padding: 24px 24px;
    }

    /* Reduce forced full-height on content sections to avoid big empty space */
    .hero {
        min-height: 100dvh;
    }

    .music,
    .bio,
    .contact {
        min-height: auto;
    }
}

/* ========== Portrait tablets and big phones ========== */
@media (max-width: 820px) {
    .title p {
        font-size: 1.25rem;
    }

    .player__title {
        font-size: 1.2rem;
    }

    .player__controls {
        gap: 8px;
    }

    .playlist button {
        padding: 10px;
    }

    .bio-media {
        flex: 0 1 clamp(220px, 40vw, 380px);
    }
}

/* ========== Phones ========== */
@media (max-width: 700px) {


    /* Header */
    .menu-button {
        top: 10px;
        right: 16px;
    }

    /* Sections */
    .music,
    .bio,
    .contact {
        padding: 72px 20px 48px;
    }

    /* Player */
    .player {
        padding: 14px 14px 16px;
        width: 100%;
        max-width: 100%;
    }

    .player__now {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .player__cover {
        width: 48px;
        height: 48px;
    }

    .player__seek {
        gap: 8px;
    }

    .time {
        font-size: 0.85rem;
    }

    /* Playlist */
    .playlist {
        margin-top: 12px;
    }

    .playlist button {
        padding: 10px 10px;
    }

    /* Bio */
    .bio-content {
        flex-direction: column;
        width: 100%;
    }

    .bio-media {
        width: 100%;
        flex-basis: auto;
    }

    .bio-quote {
        text-align: left;
    }

    /* Contact */
    .contact {
        justify-content: center;
        align-self: center;
    }

    .contact-wrapper {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        align-items: center;
        gap: 24px;
    }

    .contact-info {
        margin-right: 0;
        margin-bottom: 16px;
        width: 100%;
        text-align: center;
        /* center text blocks */
    }

    /* Keep contact info spacing tighter on mobile */
    .contact-info__block+.contact-info__block {
        margin-top: 8px;
    }

    .contact-info p {
        margin: 0 0 8px 0;
    }

    .contact-form {
        width: 100%;
    }

    /* Ensure left content block doesn't force a min width larger than viewport */
    .contact-content-left {
        width: 100%;
    }

    .contact-form .actions .btn {
        width: 100%;
    }

    /* Center headings and labels for a unified mobile layout */
    .contact h1,
    .contact-info h3 {
        text-align: center;
    }

    .contact-form label {
        text-align: start;
    }

    /* Ensure form fields span full width */
    .contact-form input,
    .contact-form textarea {
        width: 100%;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Removed albums carousel responsive rules */

    /* Allow footer nav links to wrap to new lines on small screens */
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 14px;
        /* row gap | column gap */
        width: 100%;
    }

    .footer-nav a {
        flex: 0 0 auto;
        /* prevent stretching and allow clean wrapping */
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .footer-title {
        width: 100%;
        justify-content: center;
        align-items: center;
    }
}

/* ========== Small phones ========== */
@media (max-width: 480px) {
    .nav_link {
        font-size: 1rem;
    }

    .lang-switch_link {
        font-size: 0.85rem;
        padding: 4px 8px;
    }

    .title p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 8px 12px;
    }


}



/* ========== Desktop refinements (center footer brand) ========== */
@media (min-width: 801px) {

    /* Center the brand across the full footer width, keep nav centered below */
    .footer-brand {
        grid-column: 1 / -1;
        justify-self: center;
        margin-bottom: 4px;
    }

    .footer-nav {
        grid-column: 2;
    }
}