:root {
    --bg: #000;
    --text: #f4f4f4;
    --muted: rgba(244, 244, 244, 0.62);
    --soft: rgba(255, 255, 255, 0.09);
    --softer: rgba(255, 255, 255, 0.055);
    --line: rgba(255, 255, 255, 0.13);
    --panel: rgba(0, 0, 0, 0.58);
    --panel-strong: rgba(0, 0, 0, 0.78);
    --accent: #ffffff;
    --bottom-space: 32px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #000;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at center, transparent 0 26%, rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.78) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18) 36%, rgba(0, 0, 0, 0.18) 64%, rgba(0, 0, 0, 0.9));
}

.page-shell {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}

.visual-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("images/web-bg2.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: min(1024px, 92vw) auto;
    opacity: 0.9;
    filter: saturate(0.86) contrast(1.06);
    margin-bottom: 500px;
    
}

.video-strips {
    position: fixed;
    left: clamp(18px, 4vw, 58px);
    right: clamp(18px, 4vw, 58px);
    bottom: var(--bottom-space);
    z-index: 3;
    display: grid;
    gap: 14px;
}

.corner-logo {
    position: absolute;
    right: 0;
    top: -100px;
    z-index: 2;
}

.corner-logo img {
    display: block;
    max-width: 117px;
    height: auto;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.72));
}

.strip-block {
    display: grid;
    grid-template-columns: minmax(112px, 172px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    min-height: 232px;
    padding: 12px;
    background: linear-gradient(90deg, var(--panel-strong), var(--panel));
    border: 1px solid var(--line);
    backdrop-filter: blur(15px);
}

.strip-block-footer {
    min-height: 32px;
    padding: 0px;
    font-size: 0.9em;
	color: rgba(255,255,255,0.5);
    backdrop-filter: blur(15px);
    line-height: 1.5em;
}

.strip-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0 4px;
}

.kicker {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.strip-title h1,
.strip-title h2 {
    margin: 7px 0 0;
    font-size: clamp(1.15rem, 2vw, 1.7rem);
    line-height: 1.05;
    font-weight: 740;
    letter-spacing: -0.04em;
}

.video-rail {
    display: flex;
    gap: 12px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
    scroll-snap-type: x proximity;
}

.video-rail::-webkit-scrollbar {
    height: 8px;
}

.video-rail::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.video-card,
.loading-card,
.empty-card,
.error-card {
    flex: 0 0 clamp(180px, 18vw, 260px);
    scroll-snap-align: start;
}

.video-card {
    color: inherit;
    text-decoration: none;
    display: grid;
    gap: 8px;
    padding: 8px;
    background: var(--softer);
    border: 1px solid transparent;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.video-card:hover,
.video-card:focus-visible {
    transform: translateY(-2px);
    background: var(--soft);
    border-color: rgba(255, 255, 255, 0.26);
    outline: none;
}

.thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.08);
}

.thumb-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.play-dot {
    position: absolute;
    right: 9px;
    bottom: 9px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.play-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #fff;
}

.video-title {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.22;
    font-weight: 680;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
}

.loading-card,
.empty-card,
.error-card {
    display: grid;
    place-items: center;
    min-height: 112px;
    padding: 16px;
    color: var(--muted);
    background: var(--softer);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    text-align: center;
    line-height: 1.35;
}

.error-card {
    color: #ffd6d6;
}


.main-nav,
.brand {
    pointer-events: auto;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.64);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.84rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 10px;
    border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    border-color: rgba(255, 255, 255, 0.24);
    outline: none;
}

.brand {
    display: inline-grid;
    place-items: center;
    height: 112px;
    padding: 8px 0 0 8px;
    
}

.brand img {
    display: block;
    filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.75));
}

@media (max-width: 860px) {
    :root {
        --bottom-space: 0px;
    }

    html {
        scroll-padding-top: 12px;
    }

    body {
        min-height: 100vh;
        min-height: 100svh;
        overflow-y: auto;
        -webkit-text-size-adjust: 100%;
    }

    body::before {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.2) 38%, rgba(0, 0, 0, 0.72) 72%, rgba(0, 0, 0, 0.95) 100%),
            radial-gradient(circle at center top, transparent 0 28%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.92) 100%);
    }

    .page-shell {
        min-height: 100vh;
        min-height: 100svh;
        padding-top: env(safe-area-inset-top);
        padding-bottom: 18px;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .visual-backdrop {
        background-size: min(152vw, 840px) auto;
        background-position: center 10px;
        opacity: 0.96;
        margin-bottom: 0;
        filter: saturate(0.95) contrast(1.05);
    }

    .video-strips {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: min(calc(100% - 24px), 760px);
        margin: 58vh auto 28px;
        margin-top: min(58svh, 455px);
        gap: 12px;
    }

    .corner-logo {
        top: -94px;
        right: 6px;
    }

    .corner-logo img {
        width: 106px;
        max-width: 27vw;
    }

    .strip-block {
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: auto;
        padding: 10px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.62));
    }

    .strip-title {
        justify-content: flex-start;
        padding: 2px 2px 0;
    }

    .kicker {
        font-size: 0.68rem;
        line-height: 1.28;
        letter-spacing: 0.16em;
    }

    .strip-title h1,
    .strip-title h2 {
        font-size: 1.35rem;
    }

    .video-rail {
        gap: 10px;
        padding: 2px 2px 14px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .video-card,
    .loading-card,
    .empty-card,
    .error-card {
        flex: 0 0 min(76vw, 310px);
    }

    .video-card {
        min-height: 0;
        padding: 8px;
    }

    .video-card:hover,
    .video-card:focus-visible {
        transform: none;
    }

    .video-title {
        font-size: 0.88rem;
    }

    .video-date {
        font-size: 0.72rem;
    }

    .loading-card,
    .empty-card,
    .error-card {
        min-height: 108px;
    }

    .strip-block-footer {
        padding: 12px;
        font-size: 0.76rem;
        line-height: 1.45;
        background: rgba(0, 0, 0, 0.68);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-wrap: anywhere;
    }

    .brand {
        width: 118px;
    }
}

@media (max-width: 480px) {
    .visual-backdrop {
        background-size: 178vw auto;
        background-position: center 8px;
    }

    .video-strips {
        width: calc(100% - 18px);
        margin-top: 60vh;
        margin-top: min(60svh, 392px);
        margin-bottom: 18px;
        gap: 10px;
    }

    .corner-logo {
        top: -84px;
        right: 4px;
    }

    .corner-logo img {
        width: 92px;
        max-width: 30vw;
    }

    .strip-block {
        padding: 8px;
    }

    .video-card,
    .loading-card,
    .empty-card,
    .error-card {
        flex-basis: 78vw;
    }

    .play-dot {
        right: 8px;
        bottom: 8px;
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .video-card {
        transition: none;
    }
}
