/* === Mobile (<=560px): remove side margins/gutters for index view === */
@media (max-width: 560px) {
    :root {
        --gutter-min: 0px;
        --gutter-max: 0px;
        --gutter: 0px;
        
    }

    .wrap,
    .page {
        margin-left: 0 !important;
        margin-right: 0 !important;
    padding-left: 1% !important;
        padding-right: 1% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .star {
        animation: none;
    }
}

@media (max-width: 860px) {
    .play-btn {
        position: absolute;
        margin-top: 37px !important;
        margin-left: 290px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }

    .artessa-sec {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }

    .fanzone {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }

.nav-link {
  
    font-size: 0.8rem;
 
}
}

/* On narrow screens, reduce gutters so content fits comfortably */
@media (max-width: 768px) {
    :root {
        --gutter-min: 16px;
        --gutter-max: 24px;
        --gutter: clamp(var(--gutter-min), 4vw, var(--gutter-max));
    }

.nav-link {

    font-size: 0.8rem;

}
}

@media (max-width: 1020px) {
    .link-grid {
        --cols: 2;
    }
}

@media (max-width: 560px) {
    .link-grid {
        --cols: 1;
    }

.nav-link {

    font-size: 0.8rem;

}
}

@media screen and (orientation: portrait) and (pointer: coarse) {
    .panel {
        width: 100% !important;
    }

    .now-playing {
        font-size: 2rem;
        color: #f78fb3;
        margin-bottom: 1rem;
        text-align: center;
    }
.nav-link {

    font-size: 0.8rem;

}
    .now-vote {
        font-size: 1.5rem;
        color: #f78fb3;
        margin-bottom: 0.2rem;
        text-align: center;
        display: inline-block;
        padding: 16px 22px;
        border-radius: 22px;
        margin-top: 50px;
    }

    .main-like {
        margin: 3rem auto 2rem;
        font-size: 1.5rem;
        border: 2px dashed #e74c3c;
    }

    .tab-buttons {
        margin-top: 4rem;
        font-size: 2.6rem;
        margin-bottom: 3rem;
        grid-template-columns: repeat(2, 1fr);
        padding-top: 24px;
    }

    .page {
        margin-top: 40px;
    }

    .tab-button {
        font-size: 1.0rem;
    }

    .tab-button.active {
        font-size: 1.2rem;
    }

    .tab-content.active {
        display: block;
        margin-top: 1.1rem;
    }

    h2 {
        font-size: 1.6rem;
        border-bottom: 2px solid #333;
    }

    .song-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
        border-bottom: 3px solid #222;
    }

    .song-info {
        align-items: flex-start;
        gap: 4px;
        font-size: .9rem !important;
    }

    .platform-links {
        flex-direction: row !important;
        gap: 10px;
        margin-left: 0 !important;
        margin-bottom: 3rem !important;
    }

    .song-number {
        width: 62px;
        margin-left: 1rem;
        font-size: 1.3rem !important;
    }

    .title {
        font-size: 1.3rem !important;
    }

    .like-button {
        font-size: 1.4rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .toast {
        width: 80%;
        bottom: 50px;
        font-size: 2rem !important;
    }

    .apple {
        margin-left: 1rem;
        width: 24px;
        height: 28px !important;
    }

    .spotify {
        margin-left: 0;
        width: 29px;
        height: 28px;
    }

    .youtube {
        margin-left: 1rem;
        width: 40px;
        height: 28px;
    }

    .about {
        margin-top: 2rem;
        font-size: 1.2rem !important;
        margin-left: 2%;
        max-width: 96%;
    }

    .st0 {
        fill: #ffffff;
    }

    /* === Responsive Enhancements (auto-injected) === */
    :root {
        /* Fluid type scale */
        --step--1: clamp(0.875rem, 0.80rem + 0.30vw, 1rem);
        --step-0: clamp(1rem, 0.90rem + 0.50vw, 1.125rem);
        --step-1: clamp(1.25rem, 1.05rem + 1.20vw, 1.50rem);
        --step-2: clamp(1.60rem, 1.20rem + 2.00vw, 2.125rem);
        --step-3: clamp(2.00rem, 1.50rem + 3.00vw, 2.75rem);
        --content-pad: clamp(12px, 3vw, 28px);
        --radius: 14px;
        --maxw: 1200px;
    }

    html {
        box-sizing: border-box;
    }

    *,
    *::before,
    *::after {
        box-sizing: inherit;
    }

    body {
        font-size: var(--step-0);
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
    }

    /* Make common wrappers fluid */
    .container,
    .wrapper,
    .site,
    .page {
        max-width: var(--maxw);
        width: min(100%, calc(100% - 2 * var(--content-pad)));
        margin-inline: auto;
        padding-inline: var(--content-pad);
        padding-left: 1% !important;
            padding-right: 1% !important;
    }

    /* Media: images/iframes/videos scale down */
    img,
    svg,
    video,
    canvas {
        max-width: 100%;
        height: auto;
    }

    iframe {
        max-width: 100%;
        border: 0;
        overflow: hidden;
    }

    /* Responsive media frame helper (use with iframes/videos) */
    .media-frame {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border-radius: var(--radius);
    }

    .media-frame>iframe,
    .media-frame>video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    /* Link/Card grids auto-fit */
    .link-grid,
    .card-grid,
    .grid-auto {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
        gap: clamp(12px, 2.4vw, 22px);
    }

    .link-card,
    .card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: clamp(8px, 1.2vw, 16px);
        padding: clamp(12px, 2.2vw, 18px);
        border-radius: var(--radius);
        min-height: 44px;
    }

    .link-card .label,
    .card .label {
        min-width: 0;
    }

    .link-card .label small,
    .card .label small {
        display: block;
        opacity: .75;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 40ch;
    }

    /* Headings scale */
    h1 {
        font-size: var(--step-3);
        line-height: 1.1;
    }

    h2 {
        font-size: var(--step-2);
        line-height: 1.2;
    }

    /* Prevent layout overflow from long strings */
    :where(h1, h2, h3, p, a, small, strong) {
        overflow-wrap: anywhere;
    }

    /* Forms */
    input,
    button,
    select,
    textarea {
        font: inherit;
        min-height: 44px;
    }

    form .row {
        display: grid;
        gap: 12px;
    }

    /* Breakpoints: consolidate */
    @media (min-width: 720px) {
        .hero {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            align-items: center;
            gap: clamp(16px, 3vw, 36px);
        }
    }

    @media (max-width: 719.98px) {
        .hero {
            display: grid;
            grid-template-columns: 1fr;
            gap: clamp(16px, 3vw, 28px);
        }
    }

    /* Respect user motion preferences */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation: none !important;
            transition: none !important;
            scroll-behavior: auto !important;
        }
    }

    /* === End Responsive Enhancements === */

    /* === Full-width layout with fixed 20px gutters (auto-injected) === */
    :root {
        --page-gutter: 0;
    }

    .container,
    .wrapper,
    .site,
    .page {
        max-width: none !important;
        width: calc(100vw - (2 * var(--page-gutter))) !important;
        margin-left: var(--page-gutter) !important;
        margin-right: var(--page-gutter) !important;
        padding-left: 1% !important;
        padding-right: 1% !important;
    }

    body {
        margin: 0;
    }

    

    img,
    video,
    canvas,
    iframe {
        max-width: 100%;
        height: auto;
    }

    /* === End full-width 20px gutters === */

    /* === Fix: remove desktop max-width cap on .wrap and .page; enforce 20px gutters === */
    :root {
        --page-gutter: 0;
    }

    .wrap,
    .page {
        max-width: none !important;
        width: calc(100vw - (2 * var(--page-gutter))) !important;
        margin-left: var(--page-gutter) !important;
        margin-right: var(--page-gutter) !important;
        padding-left: 1% !important;
        padding-right: 1% !important;
    }

    
   


}