@font-face {
    font-family: 'Inter var';
    font-weight: 100 900;
    font-display: swap;
    font-style: oblique 0deg 10deg;
    src: url("/Inter.var.woff2?v=3.15") format("woff2");
}
:root {
    --background-rgb: 8, 8, 8;
    --foreground-rgb: 255, 255, 255;
    --background-color: rgb(var(--background-rgb));
    --foreground-color: rgb(var(--foreground-rgb));
    --accent-hue: 200;
    --accent-color: hsl(var(--accent-hue), 100%, 60%);
    --font-size-normal: 16px;
    --font-size-big: 24px;
    --font-size-huge: 48px;
    --thumbnail-width: 512px;
    --thumbnail-height: 288px;
}

/* LIGHT THEME */
@media (prefers-color-scheme: light) {
    :root {
        --background-rgb: 255, 255, 255;
        --foreground-rgb: 8, 8, 8;
        --accent-color: hsl(var(--accent-hue), 100%, 35%);
    }
}

/* DARK THEME (default) */
@media (prefers-color-scheme: dark), (prefers-color-scheme:no-preference) {
    :root {
        --background-rgb: 8, 8, 8;
        --foreground-rgb: 255, 255, 255;
        --accent-color: hsl(var(--accent-hue), 100%, 60%);
    }
}

/* Animations */
@keyframes animate-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Common Elements */
body {
    margin: 0px;
    font-family: "Inter var", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--font-size-normal);
    color: var(--foreground-color);
    background-color: var(--background-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

h1 {
    font-size: var(--font-size-huge);
}

/* Home Page */
ul.stream-list {
    list-style-type: none;
    margin: 32px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--thumbnail-width), max-content));
    grid-gap: 32px;
    justify-content: center;
}

    ul.stream-list > li {
        display: block;
        width: var(--thumbnail-width);
        transition: transform 200ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
        user-select: none;
        animation-name: animate-in;
        animation-duration: 200ms;
        animation-delay: calc(var(--animation-order) * 24ms);
        animation-fill-mode: both;
        animation-timing-function: ease-out;
    }
        ul.stream-list > li.offline a {
            color: rgba(var(--foreground-rgb), 0.5);
        }

        ul.stream-list > li.live:hover {
            transform: scale(1.05);
        }

        ul.stream-list > li.live:active {
            transform: scale(0.95);
        }

        ul.stream-list > li .preview {
            display: block;
            width: var(--thumbnail-width);
            height: var(--thumbnail-height);
            background-color: rgba(var(--foreground-rgb), 0.05);
            margin-bottom: 4px;
        }

        ul.stream-list > li div.preview.placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(var(--foreground-rgb), 0.15);
            font-size: var(--font-size-huge);
            font-weight: 900;
        }

        ul.stream-list > li div.channel-name {
            font-size: var(--font-size-big);
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

/* Watch Page */
video {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}
    video:focus {
        outline: none;
    }