cat > assets/css/home-redesign.css <<'CSS'
/* =========================================================
   SUPERAPE 2027
   Home redesign
   Mobile first
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 4px 0 22px;
    margin: 0 0 24px;

    text-align: left;

    border-bottom: 2px solid var(--accent);
}

.hero-logo {
    display: inline-flex;
    align-items: center;

    margin: 0 0 22px;
}

.hero-logo img {
    display: block;
    width: auto;
    height: 38px;
}

.hero h1 {
    max-width: 950px;

    margin: 0 0 22px;

    color: #ffffff;

    font-size: clamp(36px, 10vw, 58px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.055em;

    text-transform: uppercase;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 720px;

    margin: 0 0 18px;

    color: #d4d4da;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.hero-proof {
    display: block;

    width: auto;
    max-width: 100%;

    margin: 0;
    padding: 8px 0 8px 12px;

    color: #9f9faa;
    background: transparent;

    border: 0;
    border-left: 3px solid var(--accent);
    border-radius: 0;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}


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

@media (max-width: 700px) {

    /* -----------------------------------------------------
       Catalog controls
       ----------------------------------------------------- */

    .topbar {
        gap: 14px;
        margin: 0 0 14px;
    }

    .topbar-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .topbar-meta {
        width: 100%;
        gap: 0;
    }

    .topbar-meta .results-meta:first-child {
        font-size: 15px;
        font-weight: 800;
        line-height: 1.2;
        color: #ffffff;
    }

    .topbar-meta .results-meta:last-child {
        margin-top: 3px;

        color: #777782;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 11px !important;
        line-height: 1.2;
    }


    /* -----------------------------------------------------
       Languages + cart
       ----------------------------------------------------- */

    .topbar-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;

        width: 100%;
        gap: 8px;
    }

    .lang-switcher {
        display: grid;
        grid-template-columns: repeat(5, 1fr);

        width: 100%;
        min-width: 0;

        gap: 0;
        padding: 0;

        background: transparent;

        border: 1px solid #303038;
        border-radius: 2px;

        overflow: hidden;
    }

    .lang-switcher a {
        position: relative;

        display: flex;
        align-items: center;
        justify-content: center;

        min-width: 0;
        min-height: 40px;

        padding: 0 6px;

        border-radius: 0;

        color: #888893;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
    }

    .lang-switcher a + a {
        border-left: 1px solid #282830;
    }

    .lang-switcher a.is-active {
        color: #ffffff;
        background: transparent;
    }

    .lang-switcher a.is-active::after {
        content: '';

        position: absolute;
        left: 7px;
        right: 7px;
        bottom: 0;

        height: 3px;

        background: var(--accent);
    }

    .cart-link {
        width: auto;
        min-width: 96px;
        min-height: 40px;

        justify-content: center;

        gap: 8px;
        padding: 0 11px;

        background: transparent;

        border: 1px solid #303038;
        border-radius: 0;

        color: #ffffff;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        text-transform: uppercase;

        font-size:  11px;
        font-weight:  800;
    }

    .cart-count {
        min-width: 19px;
        height: 19px;

        padding: 0 5px;

        border-radius: 0;

        font-size: 10px;
        font-weight: 800;
    }


    /* -----------------------------------------------------
       Search
       ----------------------------------------------------- */

    .searchbox input {
        min-height: 46px;

        padding: 12px 14px;

        background: #111116;

        border: 1px solid #303038;
        border-radius: 2px;

        color: #ffffff;

        font-size: 14px;

        box-shadow: none;
    }

    .searchbox input:focus {
        border-color: #666672;
    }


    /* -----------------------------------------------------
       Sort + filter
       ----------------------------------------------------- */

    .results-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;

        width: 100%;
        gap: 8px;
    }

    .results-row > .results-meta {
        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        color: #8e8e98;

        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .sortbox {
        width: 100%;
    }

    .sortbox select {
        width: 100%;
        min-width: 0;
        min-height: 42px;

        padding: 9px 12px;

        background: #111116;

        border: 1px solid #303038;
        border-radius: 2px;

        color: #ffffff;

        font-size: 12px;
        font-weight: 700;
    }

    .results-row .mobile-filters {
        display: block;

        margin: 0;
    }

    .results-row .mobile-filters button {
        width: auto;
        min-width: 92px;
        min-height: 42px;

        padding: 9px 11px;

        background: transparent;

        border: 1px solid var(--accent);
        border-radius: 2px;

        color: #ffffff;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        white-space: nowrap;

        box-shadow: none;
    }


    /* -----------------------------------------------------
       Catalog
       ----------------------------------------------------- */

    .content-box {
        padding: 0;

        background: transparent;

        border: 0;
        border-radius: 0;
    }

    .grid {
        gap: 16px;
    }

    .beat-card {
        background: #101014;

        border: 1px solid #303038;
        border-radius: 2px;

        box-shadow: none;
    }


    /* -----------------------------------------------------
       Artwork
       ----------------------------------------------------- */

    .beat-cover {
        aspect-ratio: 1 / 1;
    }

    .beat-cover img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }


    /* -----------------------------------------------------
       Beat metadata
       ----------------------------------------------------- */

    .beat-meta {
        gap: 6px;
        margin-bottom: 12px;
    }

    .pill {
        padding: 5px 7px;

        background: transparent;

        border: 1px solid #303038;
        border-radius: 2px;

        color: #9f9faa;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 10px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.03em;

        text-transform: uppercase;
    }


    /* -----------------------------------------------------
       License
       ----------------------------------------------------- */

    .license-box {
        margin: 2px 0 14px;
    }

    .license-select-card {
        width: 100%;
        min-height: 46px;

        padding: 11px 38px 11px 12px;

        background: #0d0d11;
        color: #ffffff;

        border: 1px solid #3a3a43;
        border-radius: 2px;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.015em;

        box-shadow: none;
    }


    /* -----------------------------------------------------
       Price
       ----------------------------------------------------- */

    .beat-footer {
        gap: 14px;
    }

    .price-area {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: end;
        gap: 5px 12px;

        padding: 2px 0 0;
    }

    .price {
        grid-row: 1 / span 2;

        color: #ffffff;

        font-size: 30px;
        font-weight: 900;
        line-height: 0.9;
        letter-spacing: -0.05em;
    }

    .value-copy {
        align-self: end;

        color: #8f8f99;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 10px;
        line-height: 1.3;
    }

    .scarcity-copy {
        align-self: start;

        padding: 0;

        background: transparent;

        border: 0;
        border-radius: 0;

        color: var(--accent);

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 10px;
        font-weight: 800;
        line-height: 1.2;
        text-transform: uppercase;
    }


    /* -----------------------------------------------------
       Actions
       ----------------------------------------------------- */

    .card-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;

        margin-top: 2px;
    }

    .btn-cart {
        width: 100%;
        min-height: 48px;

        padding: 12px 14px;

        background: var(--accent);
        color: #ffffff;

        border: 1px solid var(--accent);
        border-radius: 2px;

        font-size: 13px;
        font-weight: 900;
        letter-spacing: -0.01em;

        box-shadow: none;
    }

    .btn-cart:hover,
    .btn-cart:active {
        background: #f04440;
        border-color: #f04440;

        transform: none;
        box-shadow: none;
    }

    .trust-copy {
        margin: 0;

        color: #70707a;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 9px;
        font-weight: 600;
        line-height: 1.35;
        text-align: left;
    }

    .btn {
        width: 100%;
        min-height: 40px;

        padding: 9px 12px;

        background: transparent;
        color: #a8a8b2;

        border: 1px solid #303038;
        border-radius: 2px;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;

        box-shadow: none;
    }

    .btn:hover,
    .btn:active {
        background: #17171c;
        color: #ffffff;

        border-color: #4a4a54;
    }
}


/* =========================================================
   TABLET / DESKTOP
   ========================================================= */

@media (min-width: 700px) {

    .hero {
        padding: 10px 0 32px;
        margin-bottom: 30px;
    }

    .hero-logo {
        margin-bottom: 28px;
    }

    .hero-logo img {
        height: 52px;
    }

    .hero h1 {
        margin-bottom: 26px;

        font-size: clamp(58px, 7vw, 92px);
        line-height: 0.9;
        letter-spacing: -0.065em;
    }

    .hero-subtitle {
        margin-bottom: 20px;

        font-size: 18px;
        line-height: 1.4;
    }

    .hero-proof {
        padding: 9px 0 9px 15px;

        border-left-width: 4px;

        font-size: 12px;
    }
}
CSS
/* =========================================================
   MOBILE DETAILS CTA
   ========================================================= */

@media (max-width: 700px) {
    .card-actions .btn {
        min-height: 42px;
        font-size: 12px;
        letter-spacing: 0.035em;
    }
}

/* =========================================================
   MOBILE CARD RHYTHM
   ========================================================= */

@media (max-width: 700px) {

    .beat-body {
        padding: 15px 14px 16px;
    }

    .beat-title {
        margin: 0 0 6px;

        font-size: 21px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: -0.035em;
    }

    .beat-context {
        margin: 0 0 12px;

        color: #a9a9b3;

        font-size: 12px;
        line-height: 1.35;
    }

    .beat-meta {
        margin-bottom: 14px;
    }

    .license-box {
        margin: 0 0 16px;
    }

    .beat-footer {
        gap: 13px;
    }

    .price-area {
        margin-bottom: 2px;
    }

    .card-actions {
        gap: 8px;
    }

    .trust-copy {
        padding: 1px 0 2px;
    }
}

/* =========================================================
   DESKTOP — CATALOG STRUCTURE
   ========================================================= */

@media (min-width: 701px) {

    /* -----------------------------------------------------
       Top controls
       ----------------------------------------------------- */

    .topbar {
        gap: 16px;
        margin: 0 0 18px;
    }

    .topbar-links {
        align-items: center;
    }

    .topbar-meta .results-meta {
        color: #b0b0ba;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 12px;
        font-weight: 600;
    }


    /* -----------------------------------------------------
       Languages
       ----------------------------------------------------- */

    .lang-switcher {
        display: grid;
        grid-template-columns: repeat(5, auto);

        gap: 0;
        padding: 0;

        background: transparent;

        border: 1px solid #303038;
        border-radius: 2px;

        overflow: hidden;
    }

    .lang-switcher a {
        position: relative;

        display: flex;
        align-items: center;
        justify-content: center;

        min-height: 38px;

        padding: 0 13px;

        border-radius: 0;

        color: #8f8f99;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 11px;
        font-weight: 700;
    }

    .lang-switcher a + a {
        border-left: 1px solid #282830;
    }

    .lang-switcher a.is-active {
        color: #ffffff;
        background: transparent;
    }

    .lang-switcher a.is-active::after {
        content: '';

        position: absolute;
        left: 9px;
        right: 9px;
        bottom: 0;

        height: 3px;

        background: var(--accent);
    }


    /* -----------------------------------------------------
       Cart
       ----------------------------------------------------- */

    .cart-link {
        min-height: 38px;

        padding: 0 13px;

        background: transparent;

        border: 1px solid #303038;
        border-radius: 0;

        font-size: 12px;
    }


    /* -----------------------------------------------------
       Search
       ----------------------------------------------------- */

    .searchbox input {
        min-height: 48px;

        padding: 12px 15px;

        background: #111116;

        border: 1px solid #303038;
        border-radius: 2px;

        box-shadow: none;
    }


    /* -----------------------------------------------------
       Sorting
       ----------------------------------------------------- */

    .results-row > .results-meta {
        color: #8e8e98;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .sortbox select {
        min-height: 42px;

        background: #111116;

        border: 1px solid #303038;
        border-radius: 2px;

        font-size: 12px;
    }


    /* -----------------------------------------------------
       Catalog containers
       ----------------------------------------------------- */

    .sidebar,
    .content-box {
        background: transparent;

        border: 1px solid #303038;
        border-radius: 2px;

        box-shadow: none;
    }

    .sidebar h3 {
        font-size: 18px;
        font-weight: 900;
        letter-spacing: -0.02em;
    }

    .filter-group select,
    .filter-group input {
        background: #0d0d11;

        border: 1px solid #303038;
        border-radius: 2px;

        box-shadow: none;
    }
}

/* =========================================================
   DESKTOP — BEAT CARDS
   ========================================================= */

@media (min-width: 701px) {

    .beat-card {
        background: #101014;

        border: 1px solid #303038;
        border-radius: 2px;

        box-shadow: none;

        transition:
            border-color 0.18s ease,
            transform 0.18s ease;
    }

    .beat-card:hover {
        transform: translateY(-2px);

        border-color: #5a5a64;

        box-shadow: none;
    }

    .beat-cover {
        aspect-ratio: 1 / 1;
    }

    .beat-cover img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }

    .beat-body {
        padding: 15px;
    }

    .beat-title {
        margin: 0 0 6px;

        font-size: 20px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: -0.035em;
    }

    .beat-context {
        margin: 0 0 12px;

        color: #9f9faa;

        font-size: 12px;
        line-height: 1.35;
    }

    .beat-meta {
        gap: 6px;
        margin-bottom: 14px;
    }

    .pill {
        padding: 5px 7px;

        background: transparent;

        border: 1px solid #303038;
        border-radius: 2px;

        color: #9f9faa;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 10px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.03em;

        text-transform: uppercase;
    }

    .license-box {
        margin: 0 0 14px;
    }

    .license-select-card {
        min-height: 44px;

        padding: 10px 36px 10px 11px;

        background: #0d0d11;
        color: #ffffff;

        border: 1px solid #3a3a43;
        border-radius: 2px;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 11px;
        font-weight: 700;

        box-shadow: none;
    }

    .price {
        color: #ffffff;

        font-size: 28px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .value-copy,
    .trust-copy {
        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;
    }

    .value-copy {
        color: #8f8f99;

        font-size: 10px;
    }

    .btn-cart {
        min-height: 46px;

        background: var(--accent);

        border: 1px solid var(--accent);
        border-radius: 2px;

        font-size: 12px;
        font-weight: 900;

        box-shadow: none;
    }

    .btn-cart:hover {
        transform: none;
        box-shadow: none;
    }

    .trust-copy {
        color: #70707a;

        font-size: 9px;
        text-align: left;
    }

    .card-actions .btn {
        min-height: 40px;

        background: transparent;

        border: 1px solid #303038;
        border-radius: 2px;

        color: #a8a8b2;

        font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }
}

/* =========================================================
   LICENSE SECTION
   Mobile first
   ========================================================= */

.license-intro {
    margin: 34px 0 0;
    padding-top: 24px;

    border-top: 2px solid #ffffff;
}

.license-section-head {
    margin-bottom: 18px;
}

.license-section-head h2 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 26px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;

    text-transform: uppercase;
}

.license-section-head p {
    max-width: 680px;
    margin: 0;

    color: #92929c;

    font-size: 13px;
    line-height: 1.45;
}

.license-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;

    border-top: 1px solid #303038;
}

.license-card {
    position: relative;

    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 10px;

    padding: 16px 4px;

    background: transparent;

    border: 0;
    border-bottom: 1px solid #303038;
    border-radius: 0;

    overflow: visible;

    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.license-card::after {
    display: none;
}

.license-card::before {
    color: var(--accent);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.license-card:nth-child(1)::before { content: '01'; }
.license-card:nth-child(2)::before { content: '02'; }
.license-card:nth-child(3)::before { content: '03'; }
.license-card:nth-child(4)::before { content: '04'; }

.license-card h3 {
    grid-column: 2;

    margin: 0 0 5px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 900;
    line-height: 1.1;

    text-transform: uppercase;
}

.license-card p {
    grid-column: 2;

    margin: 0;

    color: #8f8f99;

    font-size: 12px;
    line-height: 1.4;
}

.license-card:hover {
    transform: none;

    background: #131317;
    border-color: #555560;

    box-shadow: none;
}


/* Desktop */

@media (min-width: 700px) {

    .license-intro {
        margin-top: 46px;
        padding-top: 30px;
    }

    .license-section-head {
        margin-bottom: 22px;
    }

    .license-section-head h2 {
        font-size: 34px;
    }

    .license-section-head p {
        font-size: 14px;
    }

    .license-grid {
        grid-template-columns: repeat(4, 1fr);

        border: 1px solid #303038;
    }

    .license-card {
        display: block;

        min-height: 155px;

        padding: 18px;

        border: 0;
        border-radius: 0;
    }

    .license-card + .license-card {
        border-left: 1px solid #303038;
    }

    .license-card::before {
        display: block;

        margin-bottom: 28px;

        font-size: 11px;
    }

    .license-card h3,
    .license-card p {
        display: block;
    }

    .license-card h3 {
        margin-bottom: 7px;

        font-size: 16px;
    }

    .license-card p {
        font-size: 12px;
    }
}

/* =========================================================
   NEWSLETTER
   Mobile first
   ========================================================= */

.newsletter-section {
    margin: 34px 0 0;
    padding: 22px 0;

    background: transparent;

    border: 0;
    border-top: 2px solid var(--accent);
    border-bottom: 1px solid #303038;
    border-radius: 0;

    overflow: visible;
}

.newsletter-section::after {
    display: none;
}

.newsletter-inner {
    display: grid;
    gap: 20px;
}

.newsletter-copy h2 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 26px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;

    text-transform: uppercase;
}

.newsletter-copy p {
    margin: 0;

    max-width: 620px;

    color: #92929c;

    font-size: 13px;
    line-height: 1.45;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.newsletter-form input[type="email"] {
    min-height: 46px;

    padding: 12px 14px;

    background: #0d0d11;
    color: #ffffff;

    border: 1px solid #303038;
    border-radius: 2px;

    font-size: 14px;

    box-shadow: none;
}

.newsletter-form input[type="email"]:focus {
    border-color: #666672;
}

.newsletter-form button {
    min-height: 46px;

    padding: 11px 14px;

    background: var(--accent);
    color: #ffffff;

    border: 1px solid var(--accent);
    border-radius: 2px;

    font-size: 13px;
    font-weight: 900;

    box-shadow: none;
}

.newsletter-form button:hover {
    background: #f04440;
    border-color: #f04440;

    transform: none;
    box-shadow: none;
}

.newsletter-note {
    color: #70707a;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 9px;
    line-height: 1.4;
}


/* Desktop */

@media (min-width: 700px) {

    .newsletter-section {
        margin-top: 46px;
        padding: 30px 0;
    }

    .newsletter-inner {
        grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
        align-items: center;

        gap: 50px;
    }

    .newsletter-copy h2 {
        font-size: 34px;
    }

    .newsletter-copy p {
        font-size: 14px;
    }
}

/* =========================================================
   FOOTER AUDIO PLAYER
   Brutalist / editorial
   ========================================================= */

.footer-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;

    transform: translateY(100%);
    transition: transform 0.18s ease;

    background: #08080a;

    border-top: 3px solid var(--accent);

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    box-shadow: none;
}

.footer-player.visible {
    transform: translateY(0);
}

.footer-player-inner {
    width: min(100% - 24px, 1400px);

    margin: 0 auto;
    padding: 11px 0 12px;

    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}


/* ---------------------------------------------------------
   MAIN
   --------------------------------------------------------- */

.footer-player-main {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 0;
}

.footer-player-toggle {
    position: relative;

    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    padding: 0;

    background: #f2f2ef;

    border: 1px solid #f2f2ef;
    border-radius: 0;

    cursor: pointer;

    box-shadow: none;
}

.footer-player-toggle:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.footer-player-toggle::before {
    content: '';

    position: absolute;
    top: 50%;
    left: 50%;

    width: 0;
    height: 0;

    transform: translate(-38%, -50%);

    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #08080a;
}

.footer-player-toggle.is-playing::before {
    width: 13px;
    height: 14px;

    border: 0;

    background: #08080a;

    transform: translate(-50%, -50%);

    clip-path:
        polygon(
            0 0,
            35% 0,
            35% 100%,
            0 100%,
            0 0,
            65% 0,
            100% 0,
            100% 100%,
            65% 100%
        );
}


/* ---------------------------------------------------------
   META
   --------------------------------------------------------- */

.footer-player-meta {
    min-width: 0;
}

.footer-player-title {
    margin: 0 0 4px;

    color: #ffffff;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.02em;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-player-sub {
    color: #666670;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;

    text-transform: uppercase;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ---------------------------------------------------------
   PROGRESS
   --------------------------------------------------------- */

.footer-player-bar {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;

    gap: 8px;
    align-items: center;
}

.footer-player-time {
    color: #777781;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 9px;
    font-weight: 700;
    line-height: 1;

    text-align: center;
    font-variant-numeric: tabular-nums;
}

.footer-player-progress {
    width: 100%;
    height: 14px;

    margin: 0;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;

    cursor: pointer;

    accent-color: var(--accent);
}

.footer-player-progress::-webkit-slider-runnable-track {
    width: 100%;
    height: 3px;

    background: #34343b;

    border-radius: 0;
}

.footer-player-progress::-webkit-slider-thumb {
    width: 10px;
    height: 10px;

    margin-top: -3.5px;

    appearance: none;
    -webkit-appearance: none;

    background: var(--accent);

    border: 0;
    border-radius: 0;
}

.footer-player-progress::-moz-range-track {
    height: 3px;

    background: #34343b;

    border: 0;
    border-radius: 0;
}

.footer-player-progress::-moz-range-progress {
    height: 3px;

    background: var(--accent);

    border-radius: 0;
}

.footer-player-progress::-moz-range-thumb {
    width: 10px;
    height: 10px;

    background: var(--accent);

    border: 0;
    border-radius: 0;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 700px) {

    .footer-player-inner {
        grid-template-columns:
            minmax(220px, 0.45fr)
            minmax(400px, 1fr);

        align-items: center;

        gap: 28px;

        padding-top: 10px;
        padding-bottom: 10px;
    }

    .footer-player-toggle {
        flex-basis: 50px;

        width: 50px;
        height: 50px;
    }

    .footer-player-title {
        font-size: 16px;
    }

    .footer-player-bar {
        grid-template-columns: 40px minmax(0, 1fr) 40px;

        gap: 10px;
    }

    .footer-player-time {
        font-size: 10px;
    }
}

/* =========================================================
   FOOTER PLAYER — PAUSE ICON FIX
   ========================================================= */

.footer-player-toggle::after {
    content: '';
    display: none;
}

.footer-player-toggle.is-playing::before,
.footer-player-toggle.is-playing::after {
    content: '';

    position: absolute;
    top: 50%;

    width: 4px;
    height: 16px;

    background: #08080a;

    border: 0;
    clip-path: none;

    transform: translate(-50%, -50%);
}

.footer-player-toggle.is-playing::before {
    left: calc(50% - 5px);
}

.footer-player-toggle.is-playing::after {
    display: block;

    left: calc(50% + 5px);
}

/* =========================================================
   PLAYING CARD — CLEAN ACTIVE STATE
   ========================================================= */

.beat-card.playing {
    border-color: #303038;
    box-shadow: none;
}

/* =========================================================
   COVER PLAY BUTTON
   fix pausa + active state più chiaro
   ========================================================= */

.beat-card .play-btn {
    overflow: hidden;
}

.beat-card.playing .play-btn {
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.10),
        0 0 0 6px rgba(229,57,53,0.14);
}

.beat-card.playing .play-btn::before,
.beat-card.playing .play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 5px;
    height: 16px;
    background: #ffffff;
    border-radius: 1px;
    transform: translateY(-50%);
    clip-path: none;
}

.beat-card.playing .play-btn::before {
    left: calc(50% - 6px);
}

.beat-card.playing .play-btn::after {
    left: calc(50% + 1px);
}

/* =========================================================
   NOW PLAYING
   segnale moderno ma discreto
   ========================================================= */

.beat-card.playing .beat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.beat-card.playing .beat-title::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(229,57,53,0.45);
    animation: superapePlayingPulse 1.6s infinite;
    flex: 0 0 auto;
}

.beat-card.playing .beat-cover img {
    filter: brightness(1.02) contrast(1.02);
}

@keyframes superapePlayingPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229,57,53,0.45);
        opacity: 1;
    }
    70% {
        box-shadow: 0 0 0 10px rgba(229,57,53,0);
        opacity: 0.9;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(229,57,53,0);
        opacity: 1;
    }
}

/* =========================================================
   HOME — PRIMARY SITE NAV
   ========================================================= */

.home-primary-nav {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 0.72fr 1.35fr;

    margin: 0 0 18px;

    border: 1px solid #303038;
}

.home-primary-nav-link {
    min-width: 0;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    padding: 8px 6px;

    background: transparent;
    color: #8f8f99;

    border-right: 1px solid #303038;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.03em;

    text-align: center;
    text-transform: uppercase;
}

.home-primary-nav-link:last-child {
    border-right: 0;
}

.home-primary-nav-link:hover {
    background: #111114;
    color: #ffffff;
}

.home-primary-nav-link.is-current {
    color: #ffffff;
}

.home-primary-nav-link.is-current::after {
    content: "";

    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;

    height: 3px;

    background: #e53935;
}


@media (min-width: 800px) {

    .home-primary-nav {
        display: flex;

        width: fit-content;
        margin-bottom: 20px;
    }

    .home-primary-nav-link {
        min-width: 130px;
        min-height: 42px;

        padding: 8px 16px;

        font-size: 10px;
    }

    .home-primary-nav-link:last-child {
        min-width: 170px;
    }
}

/* HOME — PRIMARY NAV DESKTOP SIZE FIX */
@media (min-width: 800px) {

    .home-primary-nav {
        display: grid;
        grid-template-columns: 130px 100px 170px;

        width: 400px;
        margin-bottom: 20px;
    }

    .home-primary-nav-link,
    .home-primary-nav-link:last-child {
        width: auto;
        min-width: 0;
    }
}
