/* Global defaults */
* {
    box-sizing: border-box;
}

/* Root defaults */
:root {
    --theme-color: #2563eb;

    --main-background: #121314;

    --secondary-background: #191a1b;
    --secondary-border: #2a2b2c;

    --tertiary-background: #222;

    --selected-background: #4d3f2e;
    --selected-border: #aa8b5c;

    --main-text: #eee;
    --muted-text: #999;
    --extra-muted-text: #666;
    --red-text: #ff7b72;
    --green-text: #7ee787;
    --blue-text: #9cdcfe;
}

a {
    text-decoration: none;
    color: var(--main-text);
}

/* Body defaults */
body {
    margin: 12px;

    background: var(--main-background);
    color: var(--main-text);
    font-family: monospace;
}


/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: left;

    padding: 0 0 6px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Brand logo */
.brand>img {
    height: 3rem;
}

/* Brand title */
.brand>h1 {
    margin: 0;

    font-size: 2rem;
}

/* Header description */
.description {
    margin: 6px;
    
    color: var(--main-text);
}


/* Sections */
.section-title {
    margin: 0;
    margin-top: 6px;
}

/* Listings */
.listings {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 6px 2px;
}

.listing {
    padding: 12px;

    max-width: 800px;

    background: var(--secondary-background);
    border: 1px solid var(--secondary-border);
    border-radius: 6px;

    cursor: pointer;
}

.listing:hover {
    border-color: var(--selected-border);
    background-color: var(--selected-background);
}

.listing>h3 {
    margin: 0;
    margin-bottom: 4px;

    text-decoration: dashed;

    font-size: 1rem;
}

.listing>p {
    margin: 0;
    margin-bottom: 6px;
}

.listing>p#footer {
    color: var(--muted-text)
}

a#hls-link {
    max-width: fit-content;
}

/* Footer */
footer {
    margin: 6px;

    color: var(--extra-muted-text);

    font-size: small;
}