:root {
    --surface-dark: rgba(20, 20, 20, 0.82);
    --surface-mid: rgba(36, 36, 36, 0.84);
    --surface-border: rgba(255, 255, 255, 0.16);
    --text-main: #fff;
    --btn-main: #555;
    --btn-main-hover: #666;
    --btn-accent: #ffa500;
    --btn-accent-hover: #ffc966;
}

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

html,
body {
    min-height: 100%;
}

body {
    font-family: "Segoe UI", "Inter", "Roboto", Helvetica, Arial, sans-serif;
    background: #222;
    color: var(--text-main);
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
    filter: brightness(0.42);
    transform: translateZ(0);
    pointer-events: none;
}

header {
    background: var(--surface-dark);
    padding: 14px clamp(12px, 2vw, 25px);
    border-bottom: 1px solid var(--surface-border);
    width: 100%;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    min-height: 40px;
}

.logo {
    height: 40px;
    width: auto;
    overflow: hidden;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.header-btn {
    background-color: var(--btn-main);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 clamp(10px, 1.2vw, 18px);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: clamp(12px, 0.95vw, 14px);
    transition: background-color 0.2s ease, transform 0.15s ease;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.header-btn:hover {
    background-color: var(--btn-main-hover);
    transform: translateY(-1px);
}

.header-btn:focus-visible {
    outline: 2px solid var(--btn-accent);
    outline-offset: 2px;
}

.header-btn.accent {
    background-color: var(--btn-accent);
    color: #000;
    border-color: rgba(0, 0, 0, 0.08);
}

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

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(12px, 2vw, 24px);
    padding-bottom: 48px;
    z-index: 5;
}

#video-player {
    max-width: 1400px;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 190px);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
    z-index: 6;
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--surface-mid);
    border-top: 1px solid var(--surface-border);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    z-index: 10;
    color: #fff;
    text-align: right;
    font-size: clamp(11px, 1.4vw, 14px);
    font-weight: 400;
    margin: 0;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 1024px) {
    .buttons {
        gap: 7px;
    }

    #video-player {
        max-height: calc(100vh - 230px);
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px;
    }

    .logo {
        height: 32px;
    }

    .buttons {
        width: 100%;
        margin-top: 8px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .header-btn {
        width: 100%;
        min-height: 34px;
        font-size: 11px;
        padding: 0 8px;
    }

    main {
        padding: 10px;
        padding-bottom: 40px;
    }

    #video-player {
        border-radius: 10px;
        max-height: calc(100vh - 250px);
    }

    .site-footer {
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media (max-width: 520px) {
    .buttons {
        grid-template-columns: 1fr;
    }

    #video-player {
        max-height: calc(100vh - 320px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-btn {
        transition: none;
    }

    .header-btn:hover {
        transform: none;
    }
}