:root {
    --background: #050506;
    --panel: #0d0d11;
    --panel-light: #121218;
    --line: rgba(255, 255, 255, 0.10);

    --white: #fbf8fb;
    --text: #ddd7de;
    --muted: #918a94;

    --pink: #ff3d9a;
    --pink-light: #ff8bca;
    --pink-glow: rgba(255, 61, 154, 0.30);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 0%, rgba(255, 61, 154, 0.13), transparent 34rem),
        radial-gradient(circle at 2% 45%, rgba(255, 61, 154, 0.05), transparent 25rem),
        var(--background);
    font-family: Arial, Helvetica, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: 0.20;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 36px 36px;
}

a {
    color: var(--pink-light);
}

a:hover {
    color: white;
}

.shell {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 46px 0 90px;
}

/* Header */

.site-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.site-title {
    margin: 0 0 10px;
    color: var(--pink-light);
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.site-description {
    max-width: 690px;
    margin: 0;
    color: var(--text);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.45;
    letter-spacing: -0.025em;
}

.count {
    margin: 0;
    color: var(--muted);
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Top video index */

.index-box {
    margin: 28px 0 46px;
    padding: 18px;
    border: 1px solid var(--line);
    background: rgba(13, 13, 17, 0.82);
}

.index-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: var(--muted);
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.index-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.index-links a {
    display: inline-block;
    max-width: 100%;
    padding: 10px 12px;
    overflow: hidden;
    color: var(--text);
    border: 1px solid var(--line);
    background: #09090c;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: 0.2s ease;
}

.index-links a::before {
    content: "▶";
    margin-right: 8px;
    color: var(--pink);
    font-size: 9px;
}

.index-links a:hover,
.index-links a.active {
    color: white;
    border-color: var(--pink);
    background: rgba(255, 61, 154, 0.10);
    box-shadow: 0 0 20px rgba(255, 61, 154, 0.11);
}

/* Video cards */

.video-list {
    display: grid;
    gap: 26px;
}

.video-card {
    overflow: hidden;
    scroll-margin-top: 28px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, var(--panel-light), #08080a);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
    border-color: rgba(255, 61, 154, 0.52);
}

.video-card.is-playing {
    border-color: var(--pink);
    box-shadow: 0 0 38px rgba(255, 61, 154, 0.12);
}

.video-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
}

.clip-number {
    margin-bottom: 5px;
    color: var(--pink);
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
}

.video-name {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--white);
    font-size: clamp(16px, 2vw, 21px);
    letter-spacing: -0.03em;
}

.video-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.share-button,
.play-button {
    padding: 10px 16px;
    color: white;
    border: 1px solid var(--pink);
    background: transparent;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.share-button {
    color: #dfd8df;
    border-color: rgba(255, 255, 255, 0.22);
}

.share-button:hover {
    color: white;
    border-color: var(--pink);
    background: rgba(255, 61, 154, 0.10);
}

.share-button.is-copied {
    color: #170911;
    border-color: var(--pink);
    background: var(--pink);
}

.play-button:hover {
    color: #170911;
    background: var(--pink);
    box-shadow: 0 0 20px var(--pink-glow);
}

/* Descriptions and additional hyperlinks */

.video-notes {
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.13);
}

.video-description {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.video-links {
    margin-top: 16px;
}

.video-links-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.video-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.video-links li {
    margin: 0;
}

.video-links a {
    display: inline-block;
    padding: 8px 10px;
    color: var(--pink-light);
    border: 1px solid rgba(255, 61, 154, 0.35);
    background: rgba(255, 61, 154, 0.06);
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s ease;
}

.video-links a::before {
    content: "↗";
    margin-right: 7px;
    color: var(--pink);
}

.video-links a:hover {
    color: white;
    border-color: var(--pink);
    background: rgba(255, 61, 154, 0.15);
}

/* Video area */

.video-stage {
    position: relative;
    display: grid;
    min-height: clamp(220px, 45vw, 610px);
    place-items: center;
    background:
        linear-gradient(135deg, rgba(255, 61, 154, 0.10), transparent 42%),
        #060607;
}

.video-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.27;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 4px,
        rgba(255, 255, 255, 0.035) 5px
    );
}

video {
    position: relative;
    z-index: 2;
    display: none;
    width: 100%;
    max-height: 76vh;
    background: #000;
}

.video-card.is-loaded video {
    display: block;
}

.play-overlay {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 14px;
    color: var(--muted);
    cursor: pointer;
    text-align: center;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.video-card.is-loaded .play-overlay {
    display: none;
}

.play-circle {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    padding-left: 3px;
    color: white;
    border: 1px solid var(--pink);
    border-radius: 50%;
    background: rgba(255, 61, 154, 0.08);
    box-shadow: 0 0 28px rgba(255, 61, 154, 0.22);
    font-size: 16px;
    transition: 0.2s ease;
}

.play-overlay:hover .play-circle {
    color: #170911;
    background: var(--pink);
    transform: scale(1.08);
}

.empty {
    padding: 50px 20px;
    color: var(--muted);
    border: 1px dashed rgba(255, 61, 154, 0.40);
    text-align: center;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

footer {
    margin-top: 34px;
    color: #645e66;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

@media (max-width: 650px) {
    .shell {
        width: calc(100% - 24px);
        padding-top: 28px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .video-info {
        align-items: flex-start;
        flex-direction: column;
    }

    .video-actions {
        width: 100%;
    }

    .share-button,
    .play-button {
        width: 50%;
    }

    .index-header {
        flex-direction: column;
    }
}