@keyframes colorHighlight {
    0% {
        filter: hue-rotate(0deg);
    }

    to {
        filter: hue-rotate(360deg);
    }
}

@font-face {
    font-family: "SuperCharge Laser";
    src: url(../fonts/superchargelaser.ttf)format("truetype");
}

@font-face {
    font-family: "Diploma";
    src: url(../fonts/Diploma.ttf)format("truetype");
}

@font-face {
    font-family: "MARSNEVENEKSK";
    src: url(../fonts/MARSNEVENEKSK-Regular.otf)format("truetype");
}

@font-face {
    font-family: "Unispace";
    src: url(../fonts/unispace\ bd.ttf)format("truetype");
}

body[data-page] {
    margin: 0;
    padding: 0;
    background-image: url(../icons/000.jpg);
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
}

body[data-page=admin_login] form {
    max-width: 300px;
    margin: 0 auto;
}

body[data-page=admin_login] input[type=password] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

body[data-page=admin_login] input[type=text] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

body[data-page] button {
    cursor: pointer;
}

body[data-page=admin_login] button {
    padding: 10px 20px;
}

body[data-page=admin_login] #status {
    margin-top: 10px;
    color: #b00020;
}

body[data-page] * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body[data-page] .hotbar {
    position: sticky;
    z-index: 1000;
    width: 100%;
    height: 100px;
    background: url(../icons/hotbar.gif)center/cover no-repeat;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

body[data-page=admin_login] .hotbar {
    top: 0;
}

body[data-page] .hotbar-left {
    display: flex;
    align-items: center;
}

body[data-page] .profile-picture {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

body[data-page] .username {
    font-weight: 700;
    color: #333;
}

body[data-page] .hotbar-right {
    display: flex;
    align-items: center;
}

body[data-page] .menu-button {
    margin-left: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: color .3s ease-in-out;
}

body[data-page] .menu-button {
    text-decoration: none;
}

body[data-page] .menu-button:hover {
    color: #dc143c;
}

body[data-page] .theme-toggle {
    margin-left: 20px;
    font-size: 16px;
    font-weight: 700;
    color: #696969;
    cursor: pointer;
    transition: color .3s ease-in-out;
}

body[data-page].dark-theme .theme-toggle {
    color: #fff;
}

body[data-page].dark-theme .menu-button {
    color: #696969;
}

body[data-page].dark-theme .username {
    color: #696969;
}

body[data-page].dark-theme .menu-button:hover {
    color: #4169e1;
}

body[data-page] .player-button {
    background-color: transparent;
    padding: 10px 20px;
    background: 0 0;
    border: 0;
    color: #fff;
    font-size: clamp(28px, 2.3vw, 46px) !important;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-wrap: nowrap;
    line-height: .82;
    letter-spacing: .02em;
    max-width: 100%;
}

body[data-page].dark-theme .player-button:hover {
    background-color: rgba(255, 255, 255, .2);
    color: #4169e1;
}

body[data-page] .player-button:hover {
    background-color: rgba(0, 0, 0, .1);
    color: #dc143c;
}

body[data-page] footer {
    background: 0 0;
    top: 10px;
    color: #fff;
    font-size: 20px;
    text-align: center;
    padding: 30px;
    font-family: "Unispace";
}

body[data-page] .hotbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

body[data-page].dark-theme .player-button {
    background: 0 0;
    border: 0;
    color: #fff;
    font-size: clamp(28px, 2.3vw, 46px) !important;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
    color: #696969;
}

body[data-page] .hidden {
    display: none !important;
}

body[data-page] .youtube-player-popup {
    position: fixed;
    top: 108px;
    left: 50%;
    transform: translateX(-50%);
    width: min(650px, calc(100vw - 24px));
    height: min(800px, calc((100vw - 24px) * 16 / 13), calc(100dvh - 132px));
    background: rgba(0, 0, 0, .92);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .45);
    border: 2px solid Crimson;
    border-radius: 18px;
    overflow: hidden;
    z-index: 2000;
    backdrop-filter: blur(8px);
    transition: border-color 0.5s ease, border-width 0.3s ease;
}

body[data-page].dark-theme .youtube-player-popup {
    border-color: RoyalBlue;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .6);   
}

body[data-page] .youtube-player-popup iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

body[data-page=admin_panel] .hotbar {
    top: 0;
}

body[data-page=admin_panel] #online-count {
    font-family: "Unispace", monospace, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #00ff7f;
    text-align: center;
    margin: 50px 0 20px;
}

body[data-page=admin_panel] #logout-link {
    display: block;
    margin: 20px auto 0;
    width: max-content;
    text-align: center;
}

body[data-page=chiefkeef] .hotbar {
    top: 0;
}

body[data-page] .photo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 35px;
}

body[data-page] .photo {
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

body[data-page=chiefkeef] .photo {
    width: 400px;
    height: 400px;
}

body[data-page=donttouchit] .hotbar {
    top: 0;
}

body[data-page=donttouchit] .photo {
    width: 300px;
    height: 300px;
}

body[data-page] .container {
    display: flex;
}

body[data-page=donttouchit] .container {
    justify-content: center;
    align-items: center;
    height: 90vh;
}

body[data-page=donttouchit] .video-wrapper {
    position: relative;
    display: inline-block;
}

body[data-page=donttouchit] video {
    display: flex;
    width: 70%;
    height: 70%;
    text-align: center;
    left: 75px;
    position: relative;
    z-index: 1;
}

body[data-page=donttouchit] .frame-overlay {
    display: flex;
    text-align: center;
    justify-content: center;
    position: absolute;
    top: -250px;
    left: -100px;
    width: 120%;
    height: 150%;
    background-image: url(../icons/TV.png);
    background-size: cover;
    pointer-events: none;
    z-index: 2;
}

body[data-page=fredosantana] .hotbar {
    top: 0;
}

body[data-page=fredosantana] .photo {
    width: 400px;
    height: 400px;
}

body[data-page=glogang] .hotbar {
    top: 0;
}

body[data-page=glogang] .photo {
    width: 250px;
    height: 250px;
}

body[data-page=home] .hotbar {
    top: 0;
}

body[data-page=index] .hotbar {
    top: 0;
}

body[data-page=kingvon] .hotbar {
    top: 0;
}

body[data-page=kingvon] .photo {
    width: 400px;
    height: 400px;
}

body[data-page=lacapone] .hotbar {
    top: 0;
}

body[data-page=lacapone] .photo {
    width: 400px;
    height: 400px;
}

body[data-page=otf] .hotbar {
    top: 0;
}

body[data-page=otf] .photo {
    width: 250px;
    height: 250px;
}

body[data-page] .theme-toggle {
    margin-left: 10px;
    color: DimGrey;
}

body[data-page=rappers] .hotbar {
    top: 0;
}
body[data-page="rappers"] .wrapper {
  padding: 0 30px;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

body[data-page=rappers] .gallery {
    display: flex;
    gap: 20px;
}

body[data-page=rappers] .item {
    position: relative;
    width: 520px;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 15px;
}

body[data-page=rappers] .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

body[data-page=rappers] .item:hover img {
    transform: scale(1.1);
}

body[data-page=rappers] .othercaption {
    position: absolute;
    padding-right: 0px;
    right: 0px;
    bottom: 10px;
    max-width: 100%;
    color: Silver;
    font-family: "MARSNEVENEKSK";
    font-weight: 700;
    font-size: 60px;
    -webkit-text-stroke: .5px #000;
    pointer-events: none;
}

body[data-page=rappers] .container {
    gap: 20px;
    align-items: flex-start;
}

body[data-page] .photos-container {
    padding-left: 30px;
    position: relative;
}

body[data-page] .large-images {
    display: flex;
    gap: 35px;
}

body[data-page=rappers] .big-image-wrap,
body[data-page="test/testpagerecomendedrappers"] .big-image-wrap {
    position: relative;
    min-width: 0;
}

body[data-page] .big-image {
    display: block;
    width: 280px;
    height: 920px;
    background-color: #eee;
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 200px;
    position: relative;
    border-radius: 10px;
}

body[data-page] .big-image img.big-img {
    width: 280px;
    height: 920px;
    object-fit: cover;
    transition: transform .3s ease;
    border-radius: 10px;
}

body[data-page] .big-image:hover img.big-img {
    transform: scale(1.1);
}

body[data-page] .small-image {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    object-fit: cover;
}

body[data-page] .unique-small-image {
    position: absolute;
    transform: translateX(-50%);
    object-fit: cover;
    bottom: 1px;
    left: 50%;
    width: 140px;
    height: 140px;
    cursor: pointer;
}

body[data-page] .unique-small-image:hover {
    animation: colorHighlight 2s infinite alternate;
}

body[data-page=rappers] .small-image img,
body[data-page=rappers] .unique-small-image img,
body[data-page="test/testpagerecomendedrappers"] .small-image img,
body[data-page="test/testpagerecomendedrappers"] .unique-small-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

body[data-page] .slider-container {
    padding-right: 30px;
    margin-left: auto;
    width: 1280px;
    height: 920px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, .25);
    background: 0 0;
    flex-shrink: 0;
}

body[data-page] .slide {
    padding-right: 30px;
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .7s ease;
}

body[data-page] .slide.active {
    opacity: 1;
    pointer-events: auto;
}

body[data-page] .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    border-radius: 15px;
}

body[data-page] .slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

body[data-page] .slide .caption {
    position: absolute;
    padding-right: 30px;
    right: 20px;
    bottom: 60px;
    max-width: 100%;
    color: GoldenRod;
    font-family: "MARSNEVENEKSK";
    font-weight: 700;
    font-size: 100px;
    -webkit-text-stroke: .5px #000;
    pointer-events: none;
}

body[data-page=socials] .caption {
    position: static;
    padding-right: 0;
    right: auto;
    bottom: auto;
    max-width: none;
    font-family: "Unispace";
    font-weight: 400;
    font-size: inherit;
    -webkit-text-stroke: 0;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
}

body[data-page] .dots-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

body[data-page] .dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 6px;
    background-color: transparent; /* делаем фон прозрачным для неактивных */
    border: 2px solid Snow; /* добавляем рамку, чтобы было видно "пустое" состояние */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .3s, border-color .3s;
}

body[data-page] .dot.active {
    background-color: Snow; /* заливка для активной точки */
    border-color: Snow;     /* чтобы граница совпадала с заливкой */
}

body[data-page=sd] .hotbar {
    top: 0;
}

body[data-page=sd] .photo {
    width: 400px;
    height: 400px;
}

body[data-page=socials] .hotbar {
    top: 0;
}

body[data-page=socials] .photo-container {
    text-align: center;
}

body[data-page=socials] .photo {
    width: 70px;
    height: 70px;
}

body[data-page=socials] pre,
body[data-page=socials] pre code {
    display: none;
}

body[data-page=speakerknockerz] .hotbar {
    top: 0;
}

body[data-page=speakerknockerz] .photo {
    width: 400px;
    height: 400px;
}

body[data-page=tayk] .hotbar {
    top: 0;
}

body[data-page=tayk] .photo {
    width: 400px;
    height: 400px;
}

body[data-page="test/playertest"] .hotbar {
    top: 0;
}

body[data-page="test/testpage"] .hotbar {
    top: 20;
}

body[data-page="test/testpagehotbar"] .hotbar {
    top: 0;
}

body[data-page="test/testpagerecomendedrappers"] .hotbar {
    top: 20;
}

body[data-page="test/testpagerecomendedrappers"] .container {
    gap: 20px;
    align-items: flex-start;
}

body[data-page=testpage] .hotbar {
    top: 0;
}

body[data-page=wakaflockaflame] .hotbar {
    top: 0;
}

body[data-page=wakaflockaflame] .photo {
    width: 400px;
    height: 400px;
}

body[data-page=ynwmelly] .hotbar {
    top: 0;
}

body[data-page=ynwmelly] .photo {
    width: 400px;
    height: 400px;
}

body[data-page=youngthug] .hotbar {
    top: 0;
}

body[data-page=youngthug] .photo {
    width: 400px;
    height: 400px;
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    body[data-page] {
        overflow-x: hidden;
        max-width: 100%;
    }

    body[data-page] .hotbar {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "music"
            "nav";
        height: auto;
        min-height: 70px;
        padding: 8px 10px;
        row-gap: 6px;
        column-gap: 0;
        justify-content: stretch;
        align-items: center;
    }

    body[data-page] .hotbar-left,
    body[data-page] .hotbar-center,
    body[data-page] .hotbar-right {
        width: 100%;
        min-width: 0;
    }

    body[data-page] .hotbar * {
        min-width: 0;
    }

    body[data-page] .hotbar-left {
        grid-area: brand;
        justify-content: center;
        gap: 6px;
    }

    body[data-page] .hotbar-center {
        grid-area: music;
        flex: 0 0 100%;
    }

    body[data-page] .hotbar-right {
        grid-area: nav;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px 10px;
    }

    body[data-page] .hotbar-right .theme-toggle {
        width: 100%;
        text-align: center;
    }

    body[data-page] .menu-button,
    body[data-page] .theme-toggle {
        margin-left: 0 !important;
    }

    body[data-page] .username {
        font-size: clamp(16px, 5.8vw, 24px) !important;
        line-height: 1;
        white-space: nowrap;
        max-width: calc(100vw - 40px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body[data-page] .profile-picture {
        width: 52px !important;
        height: 34px !important;
        margin-right: 0;
    }

    body[data-page] .player-button {
        font-size: clamp(22px, 7vw, 30px) !important;
        padding: 4px 8px !important;
    }

    body[data-page] .menu-button {
        font-size: clamp(15px, 4.3vw, 20px) !important;
        line-height: 1;
    }

    body[data-page] .theme-toggle {
        font-size: 12px !important;
        line-height: 1;
    }

    body[data-page] .youtube-player-popup {
        top: 90px;
        width: calc(100vw - 16px);
        height: min(calc((100vw - 16px) * 16 / 13), calc(100dvh - 108px));
        border-radius: 14px;
    }

    body[data-page] .photo-container {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        padding: 0 12px;
        max-width: 100%;
    }

    body[data-page]:not([data-page=socials]) .photo {
        width: min(78vw, 300px) !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }

    body[data-page] .slide .caption {
        right: 10px;
        bottom: 16px;
        padding-right: 10px;
        font-size: clamp(22px, 7vw, 42px);
    }

    body[data-page=socials] h1 {
        font-size: clamp(40px, 15vw, 80px) !important;
        line-height: .9;
        margin: 12px 8px 16px !important;
    }

    body[data-page=socials] .photo-container {
        gap: 12px !important;
        text-align: center;
        padding-inline: 10px;
        align-items: center !important;
    }

    body[data-page=socials] .photo {
        width: 50px !important;
        height: 50px !important;
        flex: 0 0 auto;
    }

    body[data-page=socials] .caption {
        font-size: 20px;
        line-height: 1.1;
        word-break: break-word;
        max-width: min(70vw, 280px);
    }

    body[data-page=rappers] h1,
    body[data-page=rappers] h2,
    body[data-page="test/testpagerecomendedrappers"] h1,
    body[data-page="test/testpagerecomendedrappers"] h2 {
        padding: 10px 12px !important;
        margin: 10px 0 12px !important;
        font-size: clamp(28px, 9vw, 42px) !important;
        line-height: .95;
        word-break: break-word;
        text-wrap: balance;
    }

    body[data-page=rappers] .container,
    body[data-page="test/testpagerecomendedrappers"] .container {
        width: 100%;
        max-width: 100%;
        gap: 14px;
        flex-direction: column;
        align-items: stretch;
        padding: 0 10px;
        overflow-x: clip;
    }

    body[data-page=rappers] .photos-container,
    body[data-page="test/testpagerecomendedrappers"] .photos-container {
        padding-left: 0;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    body[data-page=rappers] .large-images,
    body[data-page="test/testpagerecomendedrappers"] .large-images {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, min(42vw, 180px)));
        justify-content: center;
        gap: 12px;
        width: auto;
        margin-inline: auto;
        min-width: 0;
    }

    body[data-page=rappers] .big-image,
    body[data-page="test/testpagerecomendedrappers"] .big-image {
        width: 100%;
        height: clamp(240px, 62vw, 360px);
        line-height: normal;
        min-width: 0;
    }

    body[data-page=rappers] .big-image img.big-img,
    body[data-page="test/testpagerecomendedrappers"] .big-image img.big-img {
        width: 100%;
        height: 100%;
    }

    body[data-page=rappers] .small-image,
    body[data-page=rappers] .unique-small-image{
        width: 56px !important;
        height: 56px !important;
        left: 50% !important;
        bottom: 8px !important;
    }
    body[data-page="test/testpagerecomendedrappers"] .small-image,
    body[data-page="test/testpagerecomendedrappers"] .unique-small-image {
        width: 56px !important;
        height: 56px !important;
        left: 50% !important;
        bottom: 8px !important;
    }

    body[data-page=rappers] .slider-container,
    body[data-page="test/testpagerecomendedrappers"] .slider-container {
        width: 100%;
        max-width: 100%;
        height: clamp(250px, 65vw, 360px);
        margin-left: 0;
        padding-right: 0;
        flex-shrink: 1;
        min-width: 0;
    }

    body[data-page=rappers] .slide,
    body[data-page="test/testpagerecomendedrappers"] .slide {
        padding-right: 0;
    }

    body[data-page=rappers] .slide .caption,
    body[data-page="test/testpagerecomendedrappers"] .slide .caption {
        padding-right: 0;
        right: 10px;
        bottom: 48px;
        font-size: clamp(18px, 6vw, 34px);
        max-width: calc(100% - 20px);
    }

    body[data-page=rappers] .dots-container,
    body[data-page="test/testpagerecomendedrappers"] .dots-container {
        bottom: 10px;
    }

    body[data-page=rappers] .dot,
    body[data-page="test/testpagerecomendedrappers"] .dot {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    body[data-page] footer {
        padding: 20px 12px;
        font-size: clamp(14px, 4vw, 18px);
        line-height: 1.3;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    body[data-page] .hotbar {
        padding: 6px 8px;
        gap: 6px;
    }

    body[data-page] .hotbar-right {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, max-content));
        justify-content: center;
        align-items: center;
        gap: 4px 8px;
    }

    body[data-page] .username {
        font-size: clamp(14px, 5.2vw, 20px) !important;
        max-width: calc(100vw - 24px);
    }

    body[data-page] .profile-picture {
        width: 44px !important;
        height: 28px !important;
    }

    body[data-page] .hotbar-left a {
        display: none;
    }

    body[data-page] .player-button {
        font-size: 24px !important;
    }

    body[data-page] .menu-button {
        font-size: 14px !important;
        display: inline-block;
    }

    body[data-page] .theme-toggle {
        font-size: 11px !important;
        grid-column: 1 / -1;
        justify-self: center;
    }

    body[data-page=socials] h1 {
        font-size: clamp(34px, 14vw, 56px) !important;
    }

    body[data-page=socials] .caption {
        font-size: 30px;
    }

    body[data-page=rappers] h1,
    body[data-page=rappers] h2,
    body[data-page="test/testpagerecomendedrappers"] h1,
    body[data-page="test/testpagerecomendedrappers"] h2 {
        font-size: clamp(24px, 8.5vw, 34px) !important;
    }

    body[data-page=rappers] .large-images,
    body[data-page="test/testpagerecomendedrappers"] .large-images {
        gap: 8px;
    }

    body[data-page=rappers] .big-image,
    body[data-page="test/testpagerecomendedrappers"] .big-image {
        height: clamp(210px, 58vw, 300px);
    }

    body[data-page=rappers] .small-image,
    body[data-page=rappers] .unique-small-image,
    body[data-page="test/testpagerecomendedrappers"] .small-image,
    body[data-page="test/testpagerecomendedrappers"] .unique-small-image {
        width: 44px !important;
        height: 44px !important;
    }

    body[data-page=rappers] .slider-container,
    body[data-page="test/testpagerecomendedrappers"] .slider-container {
        height: clamp(220px, 62vw, 300px);
    }
}

