* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #555555;
    --overlay-color: rgba(0, 0, 0, 0.8);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto Mono', monospace;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 1000;
    background: transparent;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
}

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Main Content */
.main {
    flex: 1;
    position: relative;
}

/* Hero Section — видео на весь экран */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.video-wrapper {
    position: absolute;
    inset: 0;
}

#video-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    transition: opacity 0.4s ease;
}

.video-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.video-cover {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

#kinescope-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.background-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Кнопка play/pause — большая, по центру */
.video-control-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.video-control-btn .play-icon {
    margin-left: 8px;
}

.video-control-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%) scale(1.08);
}

.pause-icon {
    display: none;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;              /* ← все элементы на одной высоте по центру */
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 1rem;
}

.footer-left {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 220px;
}

.footer-ad {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10.5px;
    line-height: 1.28;
}

.footer-ad .ad-label {
    display: block;
    margin-bottom: 3px;
    font-size: 9.8px;
    opacity: 0.55;
    letter-spacing: 0.3px;
    color: rgb(255,255,255);
}

.footer-ad a {
    display: inline-block;
    color: rgb(255 255 255);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    font-size: 10.5px;
}


.footer-ad a:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/*.footer-banner {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}*/

.dropdown-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 180px;
}

.collaboration-text,
.footer-email {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.2;
}

/* Дропдаун */
.dropdown-wrapper {
    position: relative;
}

.explore-dropdown-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.24px;
    padding: 10px 16px;
    border-radius: 20px;
    transition: all 0.25s ease;
    width: 176px;
    height: 36px;
    box-sizing: border-box;
}

.explore-dropdown-btn:hover {
    background: rgba(0, 0, 0, 0.45);               /* темнее при наведении */
    border-color: rgba(255, 255, 255, 0.20);
    transform: scale(1.02);                        /* лёгкое увеличение — опционально */
}

.explore-text {
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.24px;
    line-height: normal;
}

.explorer-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

/* СТИЛИ ДРОПДАУНА - БАЗОВЫЕ РАБОЧИЕ */
.explore-dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.30);         /* тот же базовый цвет */
    border-radius: 20px;
    flex-direction: column;
    width: 176px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);   /* такая же тонкая светлая обводка */
    z-index: 1000;
    padding: 10px 0;                               /* чуть меньше внутреннего padding по бокам */
    overflow: hidden;                              /* чтобы скруглённые hover не вылезали */
}

.explore-dropdown-menu.active {
    display: flex;
}

/* Пункты меню */
.dropdown-item {
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.24px;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    padding: 10px 16px;
    display: block;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.45);         /* тот же оттенок потемнения, что и у кнопки */
    /* border-radius: 0; */                        /* если хочешь ровные края при ховере — раскомментируй */
}

/* Опционально: убрать боковые отступы при ховере, чтобы выглядело чище */
.dropdown-item:hover {
    margin: 0;
    padding: 10px 16px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer {
        padding: 1.2rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-ad,
    .dropdown-wrapper {
        flex: none;
        width: auto;
        justify-content: center;
    }

    .dropdown-wrapper {
        order: 1;
    }

    .footer-ad {
        order: 2;
    }

    .footer-left {
        order: 3;
    }

    .explore-dropdown-menu {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-height: 600px) {
    .footer {
        padding: 1rem;
    }
    
    .collaboration-text,
    .footer-email,
    .footer-ad a {
        font-size: 0.78rem;
    }
}