* {
    box-sizing: border-box;
}

:root {
    --text: #f2f2f2;
    --text2: rgb(128, 128, 128)2;
    --background: #0f0f0f;
    --primary: #f2f2f2;
    --secondary: #FB2BD7;
    --accent: #02E6D9;
}

html {
    width: 100% !important;
    max-width: 100% !important;
    filter: auto;
    -webkit-filter: auto;
    transition: filter 0.6s ease, background-color 0.6s ease;
    overflow-x: hidden;
}

html.lang-en {
    filter: saturate(3) sepia(0.42) contrast(1.5) invert(1) hue-rotate(54deg);
}

body {
    mix-blend-mode: normal;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    background-color: var(--background);
    color: var(--text);

    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--primary);

    background: #8c1879;
    background: -webkit-linear-gradient(0deg, rgb(19, 3, 16) 20%, rgba(15, 15, 15, 1) 50%);
    background: -moz-linear-gradient(0deg, rgb(19, 3, 16) 20%, rgba(15, 15, 15, 1) 50%);
    background: linear-gradient(0deg, rgb(19, 3, 16) 20%, rgba(15, 15, 15, 1) 50%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#8C1879",
            endColorstr="#0F0F0F",
            GradientType=1);

    opacity: 0;
    transition: all 1s ease-in;
}

::-webkit-scrollbar {
    background-color: var(--background);
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

/* Skrytí šipek */
::-webkit-scrollbar-button {
    display: none;
}

header {
    /*background-color: rgb(41, 13, 37);*/
    position: fixed;
    z-index: 100;
    display: none;
    /*display: flex;*/
    justify-content: space-around;
    bottom: 30px;
    height: 7vh;
    width: 80%;
    margin: 0 auto;
    left: 0;
    right: 0;
}

#header_mobile {
    display: none !important;
    position: fixed;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    bottom: 30px;
    height: 7vh;
    width: 80%;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.button-85 {
    position: relative;
    width: 200px;
    height: 100%;
    vertical-align: middle;
    text-align: center;

    text-decoration: none;
    color: var(--primary);
    font-size: 1.6rem;

    border-radius: 10px;
    background-color: var(--background);

    font-family: "Sedgwick Ave Display", cursive;
    font-weight: 400;
    font-style: normal;
}

.button-85::before {
    content: "";
    background: linear-gradient(45deg,
            var(--primary),
            #FF29D7,
            #ca1daa,
            #a5178b,
            #81126d,
            #a5178b,
            #ca1daa,
            #FF29D7,
            var(--primary));
    position: absolute;
    /*top: -2px;
    left: -2px;*/
    background-size: 400%;
    z-index: -1;
    filter: blur(2px) brightness(2);
    -webkit-filter: blur(5px) brightness(4);
    width: calc(200px + 6px);
    height: calc(7vh + 6px);
    margin-left: -103px;
    margin-top: -3px;
    animation: glowing-button-85 21s ease infinite;
    border-radius: 10px;

    opacity: 0.8;
    transition: 0.2s ease-in-out;
}

.button-85:hover::before {
    opacity: 1;
    filter: blur(0px) brightness(2);
    -webkit-filter: blur(0px) brightness(2);
}

@keyframes glowing-button-85 {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 200% 0;
    }

    100% {
        background-position: 00% 0;
    }
}

/* první tlačítko začne hned */
.button-85:nth-of-type(1)::before {
    animation-delay: 0s;
}

/* druhé tlačítko začne později */
.button-85:nth-of-type(2)::before {
    animation-delay: 4s;
    /* posunout podle délky animace */
}

/* třetí tlačítko ještě později */
.button-85:nth-of-type(3)::before {
    animation-delay: 8s;
}

.button-85p {
    margin: 0;
    line-height: 7.8vh;
    vertical-align: middle;
}

section {
    padding: 20px 0;
    width: 90%;
    margin: 0 auto 80px auto;
}

section h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.4em;

    font-family: "Sedgwick Ave Display", cursive;
    font-weight: 400;
    font-style: normal;
}

/*SECTIONS*/
#translate_section {
    mix-blend-mode: normal;
    height: auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    position: relative;
    z-index: 5;
}

#landing_page_section {
height: 95vh;
    margin-top: -26px;
    max-width: 100vw !important;
    overflow: visible !important;
    position: relative;

    /* OPRAVA OPERY: Přesunutá perspektiva na rodiče. Tím se vytvoří stabilní 3D prostor */
    perspective: 1000px;
    transform-style: preserve-3d;
}

#music_player_section {
    height: auto;
    /*background-color: #270606;*/
}

#events_section {
    height: auto;
    width: 75%;
}

.no_events {
    text-align: center;
    margin: 30px auto 0 auto;
}

#socials_section {
    height: auto;
    margin-bottom: 200px;
    /*background-color: #270606;*/
}

/*TRANSLATE HEADER*/
.translate_section_button {
    mix-blend-mode: normal;
    padding: 8px;
    background: none;
    border: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

.translate_section_button:hover {
    opacity: 1;
}

/*LANDING PAGE*/
#landing_page_section_img {
    position: absolute;
    display: block;
    height: auto;
    max-height: 80%;
    top: 50%;
    left: 50%;

    /* ZÁKLAD: Tvé původní hodnoty, převedené na translate3d kvůli hardwarové akceleraci */
    transform: translate3d(-50%, -54%, 0);
    opacity: 1;
    filter: blur(0px);
    -webkit-filter: blur(0px);

    /* Změněno z 'all' na konkrétní vlastnosti, což uleví procesoru a zamezí sekání */
    transition: transform 0.8s ease, opacity 0.8s ease, filter 0.8s ease, -webkit-filter 0.8s ease;

    /* Vynucení plynulosti a oprava blikání */
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/*MUSIC PLAYER*/
.player {
    height: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.details {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin-top: 25px;
}

.track-album {
    color: var(--text2);
    margin: -12px auto 16px auto;
    color: var(--secondary);
    opacity: 0.7;
    font-weight: 800;
}

/*.track-lyrics-container {
  width: 100%;
  overflow: hidden;
  max-height: 0;
  transition: 0.8s ease-in-out;
}

.track-lyrics-container.open {
  max-height: 50vh;
  overflow-y: auto;
}*/

.track-lyrics {
    margin: 0 auto;
    height: auto;
    width: auto;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 15px;
    padding: 0 50px;

    max-height: 0vh;
    /* transition: 0.8s ease-in-out; - Upraveno níže, aby se maska zbytečně neanimovala */
    transition: max-height 0.8s ease-in-out;
    overflow-y: hidden;

    scrollbar-width: thin;
    scrollbar-color: var(--secondary) transparent;

    /* MIZENÍ DO ZTRACENA: Průhledné okraje nahoře (0-15%) a dole (85-100%) */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.track-lyrics.open {
    max-height: 50vh;
}

.track-lyrics::-webkit-scrollbar-button {
    display: none;
}

.track-lyrics-inner {
    display: inline-block;
    will-change: transform;

    /* EFEKT PŘÍJEZDU: Vytvoří prázdný prostor nad a pod textem, aby mohl přijet z neviditelna */
    padding: 60vh 0;

    /* FIX PROTI ROZMAZÁVÁNÍ TEXTU: Vynucení GPU vrstvy a vypnutí problikávání */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.lyric-line {
    opacity: 0.35;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: pre-line;
    margin-bottom: 2.5rem;
}

.lyric-line.active {
    opacity: 1;
    transform: scale(1.03); /* Volitelné jemné zvětšení */
}

.verse-label {
    color: var(--text2);
    color: var(--secondary);
    opacity: 0.7;
    font-weight: 1000;
    font-size: 0.9rem;
}

.now-playing {
    font-size: 1rem;
    margin-bottom: 5px;
}

.track-name {
    font-size: 3rem;
    text-transform: uppercase;

    font-family: "Sedgwick Ave Display", cursive;
    font-weight: 400;
    font-style: normal;

    margin-bottom: 10px;

    text-align: center;
}

.track-artist {
    font-size: 1.5rem;
}

.buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.playpause-track,
.prev-track,
.next-track {
    padding: 0px;
    margin: 20px;
    opacity: 0.8;

    /* Smoothly transition the opacity */
    transition: opacity .2s;
}

.playpause-track {
    color: var(--secondary);
}

.playpause-track:hover,
.prev-track:hover,
.next-track:hover {
    opacity: 1.0;
    cursor: pointer;
}

.slider_container {
    width: 75%;
    /*max-width: 400px;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modify the appearance of the slider */
.seek_slider,
.volume_slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 5px;
    background: var(--primary);
    border-radius: 20px;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

/* Modify the appearance of the slider thumb */
.seek_slider::-webkit-slider-thumb,
.volume_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: var(--secondary);
    cursor: pointer;
    border-radius: 50%;
}

.seek_slider:hover,
.volume_slider:hover {
    opacity: 1.0;
}

.seek_slider {
    width: 60%;
}

.volume_slider {
    width: 30%;
}

.current-time,
.total-duration {
    padding: 10px;
}

i.fa-volume-down,
i.fa-volume-up {
    padding: 10px;
}

i.fa-play-circle,
i.fa-pause-circle,
i.fa-step-forward,
i.fa-step-backward {
    cursor: pointer;
}

/*EVENTS SECTION*/
#no_events {
    font-weight: 200;
    text-align: center;
}

.events {
    height: auto;
    display: flex;
    border-bottom: 1px solid;
    padding: 0 20px;
    align-items: center;
}

.events .left {
    width: 50%;
    height: 100%;
    text-align: left;
}

.events .left .event {
    margin: 20px 15px;

}

.events .left .event h3 {
    font-weight: 1000;
    margin: 0 auto;
}

.events .left .event h4 {
    font-weight: 400;
    margin: 4px 0 0 0;
}

.events .left .event h5{
     margin: 8px 0 0 0;
}

.events .right {
    width: 50%;
    height: 100%;
}

.events .right div {
    margin: 20px 15px;
    height: 40px;
    float: right;
    display: flex;
    align-items: center;
}

.events .right a {
    text-decoration: none;
    color: var(--background);
    padding: 10px 14px 6px 14px;

    font-family: "Sedgwick Ave Display", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 22px;

    border: none;
    border-radius: 10px;
    background-color: var(--secondary);

    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

.events .right a:hover {
    opacity: 1;
}

/* SOCIALS SECTION*/

.socials_section_div {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 60%;
    margin: 15px auto 0 auto;
}

.socials_section_div_a {
    text-align: center;
    text-decoration: none;
    margin: 30px 70px;
}

.socials_section_div_i {
    color: var(--primary);
    font-size: 90px;
    opacity: 0.8;
    transition: 0.2s;
    cursor: pointer;
}

.socials_section_div_i:hover {
    opacity: 1;
}

.socials_section_div_a:nth-of-type(1) i {
    color: var(--secondary);
    margin-top: 60px;
}

.socials_section_div_a:nth-of-type(2) i {
    color: var(--primary);
    font-size: 94px;
}

.socials_section_div_a:nth-of-type(3) i {
    color: var(--secondary);
    margin-top: 60px;
}

.socials_section_div_a:nth-of-type(4) i {
    color: var(--primary);
    font-size: 86px;
    margin: 2px 0px;
    font-weight: 100;
}