@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap");

:root {
    --bg-cta-button: #fdfdfdbd;
    --text-color-light: #333333;
    --text-color-dark: #ffffff;
    --fallback-bg-color-light: #f5f5f5;
    --fallback-bg-color-dark: #121212;
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --accent-color: #2196F3;
    --bg-icon: #03618c;
    --bg-gr: rgb(55 59 74);
    --bg-dark: rgb(61 65 81);
    --bg-white: #2b2b2b;
    --bg-white-top: #262626;
    --bg-leading: #f7f7f7;
    --bg-button: #212121;
    --color-button: #ffffff;
    --text-color-icon: white;
    --bg-button-fn: #304419;
    --spotify-color: #1DB954;
    --youtube-color: #FF0000;
    --amazon-color: #FF9900;
    --apple-music-color: #FA243C;
    --deezer-color: #FEAA2D;
    --tidal-color: #00FFFF;
    --soundcloud-color: #FF3300;
    --bandcamp-color: #629AA9;
    --facebook-color: #1877F2;
    --instagram-color: #E4405F;
    --twitter-color: #1DA1F2;
    --tiktok-color: #FE2C55;
    --bg-gradient-80: rgb(0 0 0 / 80%);
    --bg-gradient-60: rgb(0 0 0 / 60%);
    --bg-gradient-40: rgb(0 0 0 / 40%);
    --bg-gradient-20: rgb(0 0 0 / 20%);
    --bg-gradient-10: rgb(0 0 0 / 10%);
    --bg-hover: #ffffff2b;
    --bg-hover-20: #ffffff4f;
    --bg-hover-30: #ffffff63;
    --engagement-text: #ffffffe3;
    --text-color-link: #ffffff;
    --text-color: #000000;
    --text-color-footer: #ffffff;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    font-family: Montserrat, sans-serif;
    background-color: var(--bg-dark);
    overflow-x: hidden;
    width: 100%;
    min-width: 100%;
    position: sticky;
    top: 60px;
}

@media screen and (prefers-color-scheme:dark) {
    body {
        --fallback-bg-color: var(--fallback-bg-color-dark);
        --bg-cta-button: #535353bd;
        --text-color-light: #f1f1f1;
        --accent-color: #e1f0fc;
    }
}

@media screen and (prefers-color-scheme:light) {
    body {
        --fallback-bg-color: var(--fallback-bg-color-light);
        --secondary-color: #ffffff;
        --bg-cta-button: #fdfdfdbd;
        --bg-gr: rgb(113, 122, 151);
        --bg-dark: rgb(91 98 121);
        --bg-white: white;
        --bg-white-top: #f6f6f6;
        --bg-button-fn: #3a8a3d;
        --bg-button: #ffffff;
        --color-button: #282828;
        --bg-leading: #f7f7f7;
        --text-color: #555555;
        --text-color-icon: #6e6b6b;
        --engagement-text: #ffffffe3;
        --bg-gradient-20: rgb(255 255 255 / 20%);
        --bg-gradient-10: rgb(255 255 255 / 10%);
    }
}


main {}

.engagement-metrics {
    position: sticky;
    display: flex;
    top: 4rem;
    bottom: 1rem;
    margin-top: 32px;
    margin-bottom: 14px;
    gap: 16px;
    z-index: 10;
    justify-content: flex-end;
}

.metric {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--engagement-text);
    margin-left: 5px;
    border: 1px solid var(--engagement-text);
    padding: 4px 1px 4px 15px;
    border-radius: 19px;
    background: var(--bg-gradient-40);
}

.view-metric .view-metric,
.metric.like-metric .like-btn span {
    color: var(--engagement-text);
    position: sticky;
    font-size: 11px;
    margin-top: -27px;
    background: var(--bg-gradient-80);
    padding: 3px 6px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid var(--amazon-color);
}

.like-btn {
    background: none;
    border: medium;
    color: var(--engagement-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0px;
}

.like-btn i {
    transition: 0.3s;
}

.like-btn.liked i {
    animation: 0.5s heart-beat;
    color: rgb(255, 77, 77);
}

.like-btn:hover i {
    transform: scale(1.1);
}

.private-notice {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
    background: rgb(248, 249, 250);
    color: rgb(220, 53, 69);
    font-size: 1.5rem;
    font-weight: bold;
}

.ito-spotify {
    color: var(--spotify-color);
}

.ito-youtube {
    color: var(--youtube-color);
}

.ito-applemusic {
    color: var(--apple-music-color);
}

.ito-deezer {
    color: var(--deezer-color);
}

.ito-tidal {
    color: var(--tidal-color);
}

.ito-soundcloud {
    color: var(--soundcloud-color);
}

.ito-bandcamp {
    color: var(--bandcamp-color);
}

.ito-facebook {
    color: var(--facebook-color);
}

.ito-instagram {
    color: var(--instagram-color);
}

.ito-twitter {
    color: var(--twitter-color);
}

.ito-tiktok {
    color: var(--tiktok-color);
}

.ito-amazon {
    color: var(--amazon-color);
}

.ito-book {
    color: rgb(121, 85, 72);
}

.ito-podcast {
    color: rgb(138, 90, 68);
}

.hero {
    position: sticky;
    min-height: 53vh;
    max-width: 20rem;
    margin: 1rem auto;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: 0.43s;
    background: linear-gradient(rgba(16, 16, 18, 0.8), rgba(25, 25, 25, 0)) padding-box, linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)) border-box;
    border: 1px solid transparent;
    border-radius: 32px;
}

.hero-background {
    position: absolute;
    top: 5%;
    left: 8%;
    width: 83%;
    height: 95%;
    padding-bottom: 100px;
    margin: auto;
    z-index: 0;
    animation: 2s ease-out forwards fadeIn, 8s ease-in-out infinite subtleZoom;
    transform-origin: center center;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes subtleZoom {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.51);
    border-radius: 22px;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 18vh 200% 200%;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.17));
}

section.label {
    margin: -58px auto auto;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: sticky;
    top: 0px;
}

.release-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-top: 13px;
    color: rgb(200, 231, 255);
    opacity: 1;
    animation: 1s 1s forwards fadeInUp;
    text-shadow: rgba(0, 0, 0, 0.5) 0px 2px 5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.release-artist {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 0px;
    color: rgb(200, 231, 255);
    opacity: 1;
    animation: 1s 1s forwards fadeInUp;
    text-shadow: rgba(0, 0, 0, 0.5) 0px 2px 5px;
    text-align: center;
    border-top: 1px solid var(--bg-button);
    padding-top: 4px;
    margin-top: 6px;
}

.cta-button {
    position: sticky;
    bottom: 20px;
    right: 20px;
    border: 2px solid var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 26px;
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--bg-cta-button);
    color: var(--accent-color);
    z-index: 999;

}

/* stato ridotto */
.cta-button.shrink {
    font-size: 0.8rem;
    padding: 8px 20px;
    border-radius: 20px;
    opacity: 0.8;
    transform: scale(0.8);
}

/* hover sempre valido */
.cta-button:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: scale(1.1);
    opacity: 1;
}


.platforms-section {
    padding: 40px 0px 80px;
    background-color: var(--bg-white-top);
    max-width: 20rem;
    margin: 105px auto auto;
    transition: 0.43s;
}

.platforms-section .container {
    max-width: 100%;
    text-align: center;
    padding: 0;
    padding-bottom: 0px;
    margin: auto;
}

.wave-divider {
    color: var(--bg-white-top);
    margin: -93px auto auto;
    display: flex;
    position: absolute;
    width: 100%;
    max-width: 20rem;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    justify-content: center;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 56px;
}

.platforms-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 38px;
    text-align: center;

}

.description-section {
    position: relative;
    margin: auto;
    margin-top: 0.2rem;
    padding: 2rem;
    max-width: 20rem;
    background: var(--bg-white);
    border-radius: 0px 0px 20px 20px;

}

.description-section .container {
    position: relative;
    display: block;
    margin: auto;
    max-width: 480px;
    padding: 1rem;
    font-size: 13px;
    line-height: 1.52;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
    transition: 0.43s;

}

.platforms-grid a {
    margin: auto;
    color: var(--text-color-light);
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 13px;
    text-decoration: none;
    min-width: 240px;
    display: flex;
    align-items: center;
    border-radius: 0;
    border: 1px solid var(--bg-dark);
    box-shadow: none;
    transition: 0.43s;

}

.platforms-grid a:first-child {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding-top: 18px;
}

.platforms-grid a:last-child {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding-bottom: 16px;
}

.platforms-grid a i {
    font-size: 29px;
    padding-bottom: 3px;
    display: flex;
    opacity: 1;

}

.container h2,
.container p {
    color: var(--color-button);
}

.platforms-grid a span {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 7px 2px;
    text-align: center;
    display: inline-flex;
    position: relative;
    transition: 0.43s;
    justify-content: start;
    align-items: center;

}

.platforms-grid a span:hover {
    box-shadow: none !important;
    background: transparent !important;
}

.platforms-grid a:hover {
    background: var(--bg-hover);
    box-shadow: none;
    color: var(--text-color-icon);
    transition: 0.43s;
}

body a {
    background: rgba(240, 248, 255, 0.84);
}

.platform-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.14);
    transition: 0.3s;
    position: relative;
}

.platform-item:hover {
    background-color: rgba(76, 175, 80, 0.33);
    transform: translateY(-5px);
}

.platform-item img {
    max-width: 80%;
    max-height: 60%;
    opacity: 0.9;
    mix-blend-mode: screen;
    filter: contrast(0.35);
}

body .platform-item img,
body a {
    background: var(--bg-button);
    color: var(--color-button);

}

body .platform-item,
body a {
    text-decoration: none;
    transition: 0.43s;
}

.platforms-grid a:after {
    content: "⟫";
    position: relative;
    font-size: 1.9em;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

body a:hover:after {
    opacity: 1;
    /* Piena visibilità al hover */
}

body footer a {
    mix-blend-mode: multiply;
    background: none !important;
}

body i {
    color: inherit;
}

body .platform-item:hover,
body a span:hover {
    background: var(--bg-button);
    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 5px 0px, rgba(0, 0, 0, 0.15) 0px 5px 4px 0px;
}

.platform-item[data-platform="youtube"] img,
.platform-item[data-platform="tidal"] img {
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, max-content));
    justify-content: center;
    gap: 13px;
    margin: 40px auto 20px;
    align-items: center;
    max-width: -webkit-fill-available;
    padding: 0px 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(66, 61, 15, 0.54);
    border: 1px solid rgba(255, 215, 0, 0.56);
    color: rgb(232, 232, 232);
    font-size: 25px;
    transition: 0.3s;
}

.social-links a:hover {
    background: rgba(80, 80, 80, 0.5);
    transform: scale(1.1);
}

.cookie-banner {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    z-index: 1000;
    display: none;
    border-top: 1px solid var(--accent-color);
}

.cookie-content {
    max-width: 1200px;
    margin: 0px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.cookie-text {
    flex: 1 1 0%;
    font-size: 0.8rem;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    background: none;
    color: white;
    border: 1px solid var(--accent-color);
    padding: 8px 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

.cookie-btn.accept {
    background: var(--accent-color);
    color: black;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.theme-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.settings-btn {
    display: flex;
    background: var(--bg-button-fn);
    color: white;
    border: 1px solid var(--accent-color);
    padding: 9px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
    text-transform: uppercase;
    justify-content: center;
    align-items: center;
}

.settings-btn:hover {
    background: var(--accent-color);
    color: black;
}

footer {
    padding: 30px 0px;
    text-align: center;
    font-size: 12px;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: rgba(255, 255, 255, 0.1);
    margin: auto 37px;
    color: var(--text-color-footer);
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: none;
    color: var(--accent-color);
}

footer .powered-by .powered-link {
    color: var(--text-color-footer);
    text-decoration: none;
    filter: none !important;
    mix-blend-mode: normal !important;
}

footer .powered-by .powered-link:hover {
    color: var(--accent-color);
}


.disclaimer {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 20px;
}

/* =========================
   SOCIAL LINKS
   ========================= */
.social-links {
    display: flex;
    flex-wrap: wrap;
    /* Va a capo se mancano spazi */
    justify-content: center;
    /* Centra orizzontalmente */
    gap: 13px;
    /* Distanza tra bottoni */
    margin: 1rem auto 20px;
    padding: 0 20px;
    max-width: 800px;
    width: 100%;
}

.social-links a {
    color: var(--primary-color);
    background: var(--bg-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 25px;
    transition: 0.3s;
    text-decoration: none;
}

.social-links i {
    font-size: 20px !important;
    line-height: 1;
    /* evita spostamenti verticali */
}

.social-links a:hover {
    color: rgba(194, 255, 1, 0.42);
}


/* =========================
   SHARE BUTTONS
   ========================= */
.share-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.share-preview {
    font-size: 14px;
    color: #aaa;
    text-align: center;
    margin-bottom: 6px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 1.5rem auto;
    border-top: 1px solid var(--bg-hover-20);
    padding-top: 2rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--bg-button);
    cursor: pointer;
    font-size: 18px;
    transition: background 0.25s, transform 0.25s;

}

.share-btn:hover {
    background: #ddd;
    transform: scale(1.08);
}

.share-facebook {
    color: #3b5998;
}

.share-twitter {
    color: #1da1f2;
}

.share-linkedin {
    color: #0077b5;
}

.share-whatsapp {
    color: #25d366;
}

.share-telegram {
    color: #0088cc;
}

.share-email {
    color: #ea4335;
}

.share-copy {
    color: #6c757d;
}

/* =========================
   RESPONSIVE ADJUSTMENTS
   ========================= */
@media (max-width: 768px) {
    .social-links {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        gap: 10px;
    }

    .social-links a {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .share-buttons {
        gap: 8px;
    }

    .share-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 8px;
        padding: 0 10px;
    }

    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .share-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .share-preview {
        font-size: 12px;
    }
}


@media (max-width: 768px) {
    .hero {
        height: inherit;
        max-width: 100%;
        margin: auto;
        border-radius: 0px;
        width: 100%;
    }

    .hero-content {
        padding: 40vh 20px 20px;
    }

    .release-artist {}

    .release-subtitle {
        font-size: 0.99rem;
    }

    .cta-button {
        padding: 12px 30px !important;
        border-radius: 0;
    }

    .platforms-section {
        margin: 106px auto auto;
        max-width: 100%;
    }

    .description-section {
        margin: auto;
        max-width: 100%;
    }

    .description-section {
        border-radius: 0px;
    }

    .wave-divider {
        color: var(--bg-white-top);
        margin: -93px auto auto;
        display: flex;
        position: absolute;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        line-height: 0;
        transform: rotate(180deg);
        justify-content: center;
    }

    .platform-link {
        min-width: 249px !important;

    }

    .metric {
        font-size: 17px;
    }
}

.heart-effect {
    position: fixed;
    pointer-events: none;
    animation: 2s ease-out forwards heart-float;
    font-size: 20px;
    color: rgb(255, 77, 77);
    opacity: 0;
    z-index: 1000;
}

@keyframes heart-float {
    0% {
        transform: translateY(0px) scale(0.5);
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

.like-btn {
    background: none;
    border: medium;
    color: var(--engagement-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0px;
    transition: 0.3s;
    font-size: 19px;
}

.like-btn i {
    transition: 0.3s;
}

.like-btn.liked i {
    color: rgb(255, 77, 77);
    animation: 0.5s heart-beat;
    font-size: 19px;
}

.chart-container {
    position: relative;
    min-height: 300px;
    margin-bottom: 20px;
}

.engagement-summary {
    margin-top: 15px;
    padding: 12px;
    background: rgb(248, 249, 250);
    border-radius: 8px;
    font-size: 14px;
}

.engagement-summary .summary-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.engagement-summary h4 {
    margin: 0px 0px 10px;
    font-size: 15px;
    color: rgb(51, 51, 51);
}

.engagement-summary .summary-row {
    display: flex;
    justify-content: space-between;
}

.engagement-summary .summary-row span {
    color: rgb(102, 102, 102);
}

.engagement-summary .summary-row strong {
    color: rgb(51, 51, 51);
    font-weight: 600;
}

.no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgb(102, 102, 102);
    font-size: 14px;
}

.no-data i {
    font-size: 24px;
    margin-bottom: 10px;
    color: rgb(204, 204, 204);
}

@keyframes heart-beat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}