:root {
    --ink: #07080d;
    --amber: #f59e0b;
    --text: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--ink);
    color: var(--text);
    font-family: Outfit, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.is-hidden {
    display: none !important;
}

.glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.glow-spot {
    position: absolute;
    border-radius: 9999px;
}

.glow-spot--amber {
    top: -8rem;
    left: 50%;
    width: 28rem;
    height: 28rem;
    transform: translateX(-50%);
    background: rgba(245, 158, 11, 0.15);
    filter: blur(120px);
}

.glow-spot--violet {
    right: 0;
    bottom: 0;
    width: 20rem;
    height: 20rem;
    background: rgba(124, 58, 237, 0.1);
    filter: blur(100px);
}

.glow-spot--sky {
    left: 2.5rem;
    bottom: 5rem;
    width: 14rem;
    height: 14rem;
    background: rgba(14, 165, 233, 0.1);
    filter: blur(90px);
}

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1rem;
    background: linear-gradient(to bottom right, #fbbf24, #ea580c);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.25);
}

.brand-mark svg {
    width: 1.25rem;
    height: 1.25rem;
}

.brand-name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-tag {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.badge {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.page {
    position: relative;
    z-index: 10;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-copy {
    max-width: 42rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(251, 191, 36, 0.8);
}

.now-title {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.hero-lead {
    margin: 0.75rem 0 0;
    max-width: 36rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.5);
}

.library {
    display: block;
    width: 100%;
}

.library-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.library-wrap {
    position: relative;
}

.library-select,
.speed {
    color: #fff;
    outline: none;
    cursor: pointer;
}

.library-select {
    width: 100%;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    font: inherit;
    font-size: 0.875rem;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.library-select:hover {
    background: rgba(255, 255, 255, 0.09);
}

.library-select:focus {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15);
}

.library-select option,
.speed option {
    background: #12141c;
    color: #fff;
}

.library-caret {
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.player {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    border-radius: 1.5rem;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.player-ring {
    position: absolute;
    inset: -1px;
    border-radius: 1.5rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    object-fit: contain;
}

.video::-webkit-media-controls {
    display: none !important;
}

.big-play {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    border: 0;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: opacity 0.2s;
}

.big-play.is-faded {
    opacity: 0;
    pointer-events: none;
}

.big-play-btn {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.1), 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.player:hover .big-play-btn {
    transform: scale(1.05);
}

.big-play-btn svg {
    width: 2rem;
    height: 2rem;
    margin-left: 0.25rem;
}

.controls {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.5rem);
    transition: opacity 0.3s, transform 0.3s;
}

.player:hover .controls,
.controls[data-visible="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.controls-inner {
    padding: 4rem 1.25rem 1.25rem;
    background: linear-gradient(to top, #000, rgba(0, 0, 0, 0.8), transparent);
}

.progress,
.volume {
    appearance: none;
    cursor: pointer;
    border-radius: 9999px;
}

.progress {
    width: 100%;
    height: 0.375rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    accent-color: var(--amber);
}

.progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35);
    cursor: pointer;
}

.progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35);
    cursor: pointer;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ctrl-btn,
.play-btn {
    border: 0;
    cursor: pointer;
}

.ctrl-btn {
    padding: 0.5rem;
    border-radius: 9999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ctrl-btn svg,
.play-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.play-btn {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.play-btn #icon-play {
    margin-left: 0.125rem;
}

.vol-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.25rem;
}

.volume {
    display: none;
    width: 5rem;
    height: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    accent-color: #fff;
}

.volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #fff;
    cursor: pointer;
}

.time {
    margin: 0 0 0 0.5rem;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.7);
}

.toolbar-end {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.speed {
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.375rem 0.5rem;
    font: inherit;
    font-size: 0.75rem;
}

.speed:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tips {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.tip {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
}

.tip-label {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(251, 191, 36, 0.7);
}

.tip-text {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.boot-error {
    max-width: 36rem;
    margin: 4rem auto;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.boot-error a {
    color: var(--amber);
}

@media (min-width: 640px) {
    .hero {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .now-title {
        font-size: 3rem;
    }

    .library {
        width: 18rem;
    }

    .volume {
        display: block;
    }

    .tips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
