
 :root {
    
    --gallery-hover-scale: 1.5;

    --gallery-hover-speed: 0.35s;
    --neon-color: #ff000c;
    --neon-color-soft: rgba(255, 0, 12, 0.55);
    --neon-color-faint: rgba(255, 0, 12, 0.20);
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #fff;

    background-image: url("bg2.avif");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;

    scrollbar-width: none;
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;

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

    width: 100%;
    padding: 5px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

header .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

header .logo img {
    display: block;
    width: auto;
    height: 270px;
    max-width: 94vw;
    object-fit: contain;
}

nav a {
    margin-left: 70px;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
}

.container {
    width: 100%;
    padding: 30px;
}

.gallery-container {
    width: min(100%, 760px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    justify-content: center;
}

.ad-slot {
    width: min(100%, 760px);
    min-height: 90px;
    margin: 28px auto;
    padding: 10px;
    position: relative;
    overflow: visible;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 0, 12, 0.45);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--neon-color-faint), inset 0 0 10px rgba(255, 0, 12, 0.06);
}

.ad-label {
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    letter-spacing: 1.4px;
    text-align: center;
}

.ad-network-box {
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot-video {
    min-height: 120px;
}

.ad-slot-vast {
    min-height: 0;
}

.vast-player-wrap {
    width: min(100%, 640px);
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.vast-video {
    display: block;
    width: 100%;
    max-height: 360px;
    background: #000;
    border-radius: 8px;
}

.vast-click {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 8px;
    padding: 8px 18px;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-color);
    border-radius: 20px;
    box-shadow: 0 0 7px var(--neon-color-faint);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.vast-click:hover {
    background: rgba(255, 0, 12, 0.18);
    box-shadow: 0 0 12px var(--neon-color-soft);
}

.vast-status {
    min-height: 20px;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
}

@media (max-width: 768px) {
    .ad-slot {
        width: 100%;
        margin: 20px auto;
        padding: 7px;
    }

    .vast-video {
        max-height: 240px;
    }
}

.gallery {
    
    width: 170px;
    height: 170px;
    min-width: 0;

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

    border: 0px solid var(--neon-color);
    border-radius: 0;
    box-shadow: 0 0 0px var(--neon-color-faint), inset 0 0 7px rgba(255, 0, 12, 0.08);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    
    overflow: visible;
    background: transparent;
    contain: layout style;

    position: relative;
}

.gallery:hover {
    border-color: var(--neon-color);
    box-shadow: 0 0 12px var(--neon-color-soft), 0 0 28px var(--neon-color-faint), inset 0 0 10px rgba(255, 0, 12, 0.10);
}

.gallery a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.gallery img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    
    transition: transform var(--gallery-hover-speed) ease, box-shadow var(--gallery-hover-speed) ease;
    transform-origin: center center;
    will-change: transform;
    position: relative;
    z-index: 1;
}

.gallery img:hover {
    transform: scale(var(--gallery-hover-scale));
    box-shadow: 0 0 12px var(--neon-color), 0 0 28px var(--neon-color-soft), 0 0 60px var(--neon-color-faint);
    will-change: transform;
    z-index: 999;
    position: relative;
}

.logo2-block {
    width: 100%;
    margin: 24px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo2-block img {
    display: block;
    width: auto;
    height: 270px;
    max-width: 94vw;
    object-fit: contain;
}

.videos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 35px;
}

.video-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-item img {
    display: block;
    width: 100%;
}

.video-item:hover {
    transform: scale(1.04);
    box-shadow: 0 0 20px rgba(140, 60, 255, 0.6);
}

.right-info {
    width: 120px;
    height: fit-content;
    padding: 20px;
    border-radius: 14px;
    font-size: 18px;
    line-height: 1.5;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;

    min-height: 220px;
    padding: 60px 20px;

    background-color: #000;
    background-image: url("footer-bg.avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

footer a {
    text-decoration: none;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 28px;

    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid #444;
    border-radius: 30px;

    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;

    transition: transform 0.25s ease, color 0.25s ease,
                border-color 0.25s ease, box-shadow 0.25s ease,
                background-color 0.25s ease;
}

.footer-btn:hover {
    color: #ff000c;
    background: rgba(0, 0, 0, 0.55);
    border-color: #ff000c;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 0, 12, 0.65);
}

@media (max-width: 1024px) {
    .container {
        padding: 24px 16px;
    }

    .gallery-container {
        gap: 16px;
    }

    .gallery {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    header .logo img,
    .logo2-block img {
        height: 230px;
    }
}

@media (max-width: 768px) {
    header {
        position: relative;
        padding: 6px 8px;
    }

    header .logo img,
    .logo2-block img {
        width: min(92vw, 700px);
        height: auto;
        max-height: 190px;
    }

    .container {
        padding: 16px 8px;
    }

    .gallery-container {
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .gallery {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .gallery img {
        border-radius: 12px;
    }

    .logo2-block {
        margin: 18px auto;
    }

    footer {
        gap: 10px;
        min-height: 190px;
        padding: 40px 10px;
    }

    .footer-btn {
        flex: 1 1 100%;
        width: min(100%, 420px);
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }

    .gallery-container {
        gap: 5px;
    }

    .gallery img {
        border-radius: 9px;
    }

    header .logo img,
    .logo2-block img {
        max-width: 96vw;
        max-height: 160px;
    }

    footer {
        padding: 30px 20px;
    }

    .footer-btn {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 13px;
    }
}
