.rb-video-page {
    --rb-font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --rb-accent-a: #7c9cff;
    --rb-accent-b: #f0a8d8;
    --rb-accent-c: #6ee7b7;
    --rb-film-perf: rgba(245, 240, 232, 0.14);
}

html {
    overflow-x: hidden;
    overflow-y: auto;
}

body.pil-body.pil-body--scroll.rb-video-page {
    font-family: var(--rb-font-display);
    overflow-x: hidden;
    overflow-y: visible;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
}

#recipe-card-root {
    position: fixed;
    left: max(1rem, env(safe-area-inset-left));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 20;
    width: fit-content;
    max-width: min(calc(100vw - 2rem), 66rem);
    pointer-events: auto;
}

#recipe-card-root .pil-page-host {
    position: static;
    left: auto;
    bottom: auto;
    z-index: auto;
    pointer-events: auto;
}

#recipe-card-root .pil-page-host .pil-dock {
    position: relative;
    left: auto;
    bottom: auto;
    pointer-events: auto;
}

.rb-page {
    position: relative;
    z-index: 0;
    padding-bottom: 0;
}

.rb-header {
    max-width: min(1100px, calc(100vw - 2.5rem));
    margin: 0 auto;
    padding: 2.75rem 1.25rem 1.5rem;
}

.rb-header__inner {
    position: relative;
    text-align: center;
    padding: 2rem 1rem 1.75rem;
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
    background: radial-gradient(ellipse 90% 65% at 50% 100%, rgba(124, 156, 255, 0.09) 0%, transparent 58%);
}

.rb-page-title-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rb-header__kicker {
    font-family: "Space Mono", monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.38);
    margin: 0 0 1rem;
}

.rb-eyebrow {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.45);
    margin: 1.15rem 0 0;
}

.rb-header__figure {
    margin: 0 auto;
    max-width: min(26rem, 92vw);
}

.rb-header__logo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 48px rgba(124, 156, 255, 0.1));
}

.rb-video-hero {
    max-width: min(1100px, calc(100vw - 2.5rem));
    margin: 0 auto;
    padding: 0 1.25rem;
}

.rb-video-hero__stage {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(245, 240, 232, 0.12);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4) inset,
        0 24px 56px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(124, 156, 255, 0.08);
    background: #0a0a0a;
}

.rb-video-hero__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
}

.rb-video-hero__iframe {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.rb-video-hero__poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.rb-video-hero__poster[hidden] {
    display: none !important;
}

.rb-video-hero__poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.rb-video-hero__poster-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
    background: rgba(8, 8, 10, 0.35);
    color: rgba(245, 240, 232, 0.96);
    transition: background 0.2s ease;
}

.rb-video-hero__poster-btn:hover {
    background: rgba(8, 8, 10, 0.48);
}

.rb-video-hero__poster-btn:focus-visible {
    outline: 2px solid var(--rb-accent-a);
    outline-offset: 4px;
}

.rb-video-hero__poster-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.1rem;
    height: 4.1rem;
    border-radius: 50%;
    background: rgba(245, 240, 232, 0.14);
    border: 1px solid rgba(245, 240, 232, 0.38);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.rb-video-hero__poster-icon {
    display: block;
    margin-left: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .rb-video-hero__poster-btn {
        transition: none;
    }
}

.rb-blurb {
    max-width: min(1100px, calc(100vw - 2.5rem));
    margin: 2.75rem auto 0;
    padding: 0 1.25rem;
    text-align: left;
}

.rb-blurb__text {
    margin: 0.85rem 0 0;
    font-family: var(--rb-font-display);
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(245, 240, 232, 0.62);
}

.rb-section-heading {
    font-family: var(--rb-font-display);
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: rgba(245, 240, 232, 0.92);
    margin: 0 0 0.35rem;
}

.rb-filmstrip-section {
    max-width: min(1100px, calc(100vw - 2.5rem));
    margin: 2.5rem auto 0;
    padding: 0 1.25rem;
}

.rb-filmstrip-lede {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    color: rgba(245, 240, 232, 0.45);
    margin: 0 0 1.1rem;
    text-transform: lowercase;
}

.rb-filmstrip {
    position: relative;
    border-radius: 14px;
    background: linear-gradient(180deg, #141414 0%, #0c0c0c 100%);
    border: 1px solid rgba(245, 240, 232, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.rb-filmstrip::before,
.rb-filmstrip::after {
    content: "";
    display: block;
    height: 10px;
    background-image: radial-gradient(circle at 8px 5px, var(--rb-film-perf) 2.5px, transparent 2.5px);
    background-size: 16px 10px;
    background-repeat: repeat-x;
    opacity: 0.85;
    pointer-events: none;
}

.rb-filmstrip__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1rem 1rem 1.15rem;
}

.rb-filmstrip__frame {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.rb-filmstrip__label {
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.42);
}

.rb-filmstrip__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #080808;
    border: 1px solid rgba(245, 240, 232, 0.1);
}

.rb-filmstrip__thumb .rb-filmstrip__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    vertical-align: bottom;
}

video.rb-filmstrip__media {
    object-fit: contain;
    background: #000;
}

.rb-playlist-block {
    margin-top: 1.35rem;
}

.rb-playlist-lede {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    color: rgba(245, 240, 232, 0.45);
    margin: 0 0 1rem;
    text-transform: lowercase;
}

.rb-playlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    align-items: stretch;
}

.rb-playlist__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.38rem;
    min-width: 0;
    padding: 0.55rem 0.45rem 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--rb-pl-border, rgba(0, 0, 0, 0.1));
    background: var(--rb-pl-surface);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 4px 14px rgba(0, 0, 0, 0.12);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.rb-playlist__item--music {
    --rb-pl-surface: linear-gradient(165deg, #f3eef8 0%, #e8dff2 55%, #dfd4ea 100%);
    --rb-pl-border: rgba(62, 42, 92, 0.14);
    --rb-pl-name: #2a1f3a;
    --rb-pl-muted: rgba(42, 31, 58, 0.52);
    --rb-pl-btn-bg: rgba(42, 31, 58, 0.1);
    --rb-pl-btn-border: rgba(42, 31, 58, 0.22);
    --rb-pl-btn-ink: #2a1f3a;
}

.rb-playlist__item--sfx {
    --rb-pl-surface: linear-gradient(165deg, #eaf6f0 0%, #ddeee6 55%, #d0e6db 100%);
    --rb-pl-border: rgba(28, 58, 44, 0.16);
    --rb-pl-name: #152820;
    --rb-pl-muted: rgba(21, 40, 32, 0.52);
    --rb-pl-btn-bg: rgba(21, 40, 32, 0.1);
    --rb-pl-btn-border: rgba(21, 40, 32, 0.22);
    --rb-pl-btn-ink: #152820;
}

.rb-playlist__item--playing {
    border-color: rgba(124, 156, 255, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 0 0 1px rgba(124, 156, 255, 0.28),
        0 6px 18px rgba(0, 0, 0, 0.16);
}

.rb-playlist__toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.05rem;
    height: 2.05rem;
    padding: 0;
    margin: 0;
    border: 1px solid var(--rb-pl-btn-border);
    border-radius: 50%;
    background: var(--rb-pl-btn-bg);
    color: var(--rb-pl-btn-ink);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rb-playlist__toggle svg {
    width: 11px;
    height: 11px;
}

.rb-playlist__toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

.rb-playlist__toggle:focus-visible {
    outline: 2px solid var(--rb-accent-a);
    outline-offset: 2px;
}

.rb-playlist__item--playing .rb-playlist__toggle {
    color: #0c2a22;
    background: rgba(110, 231, 183, 0.55);
    border-color: rgba(12, 80, 58, 0.45);
}

.rb-playlist__glyph {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rb-playlist__item--playing .rb-playlist__glyph--play {
    display: none;
}

.rb-playlist__item:not(.rb-playlist__item--playing) .rb-playlist__glyph--pause {
    display: none;
}

.rb-playlist__track-name {
    flex: 1 1 auto;
    font-family: var(--rb-font-display);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--rb-pl-name);
    line-height: 1.28;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.rb-playlist__tag {
    flex-shrink: 0;
    font-family: "Space Mono", monospace;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rb-pl-muted);
    white-space: nowrap;
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
}

.rb-playlist__audio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .rb-filmstrip__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rb-playlist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .rb-playlist {
        grid-template-columns: minmax(0, 1fr);
    }
}

.rb-process {
    max-width: min(1100px, calc(100vw - 2.5rem));
    margin: 3rem auto 0;
    padding: 0 1.25rem 3rem;
    text-align: left;
}

.rb-process-tabs {
    margin-top: 1rem;
}

.rb-process-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    padding: 0 0 0.65rem;
    margin: 0;
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.rb-process-tabs__tab {
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.42);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    margin: 0;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.rb-process-tabs__tab:hover {
    color: rgba(245, 240, 232, 0.78);
}

.rb-process-tabs__tab:focus-visible {
    outline: 2px solid var(--rb-accent-a);
    outline-offset: 2px;
}

.rb-process-tabs__tab[aria-selected="true"] {
    color: rgba(245, 240, 232, 0.95);
    border-color: rgba(245, 240, 232, 0.14);
    background: rgba(245, 240, 232, 0.06);
}

.rb-process-tabs__panels {
    margin-top: 1.15rem;
}

.rb-process__figure {
    position: relative;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(245, 240, 232, 0.1);
    background: #111;
    box-shadow:
        inset 0 0 0 1px rgba(245, 240, 232, 0.1),
        0 20px 48px rgba(0, 0, 0, 0.4);
}

.rb-process__figure::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: min(32%, 6rem);
    pointer-events: none;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.22) 55%,
        transparent 100%
    );
}

.rb-process__figure img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.rb-process__caption {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: rgba(245, 240, 232, 0.5);
    padding: 0.65rem 0.85rem 0.75rem;
    border-top: 1px solid rgba(245, 240, 232, 0.08);
    margin: 0;
}

.rb-fin {
    max-width: min(1100px, calc(100vw - 2.5rem));
    margin: 3.5rem auto 0;
    padding: 0 1.25rem 1rem;
}

.rb-fin__inner {
    text-align: center;
    padding: 2.25rem 1rem 0.5rem;
    border-top: 1px solid rgba(245, 240, 232, 0.1);
    background: radial-gradient(ellipse 85% 60% at 50% 0%, rgba(124, 156, 255, 0.07) 0%, transparent 55%);
}

.rb-fin__title {
    font-family: "Space Mono", monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.38);
    margin: 0 0 1.75rem;
}

.rb-fin__figure {
    margin: 0 auto;
    max-width: min(42rem, 100%);
}

.rb-fin__logo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 60px rgba(124, 156, 255, 0.08));
}

.rb-fin__tagline {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(245, 240, 232, 0.42);
    margin: 1.5rem 0 0;
}

.rb-footer {
    max-width: min(1100px, calc(100vw - 2.5rem));
    margin: 1.5rem auto 0;
    padding: 0.85rem 1.25rem clamp(2.75rem, 7vh, 4.25rem);
    border-top: 1px solid rgba(245, 240, 232, 0.08);
    text-align: center;
}

.rb-footer__credit {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: rgba(245, 240, 232, 0.42);
    margin: 0;
}

.rb-footer__link {
    color: rgba(245, 240, 232, 0.72);
    text-decoration: none;
    border-bottom: 1px solid rgba(110, 231, 183, 0.35);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.rb-footer__link:hover {
    color: var(--rb-accent-c);
    border-bottom-color: rgba(110, 231, 183, 0.55);
}

.rb-footer__link:focus-visible {
    outline: 2px solid var(--rb-accent-a);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (max-width: 520px) {
    .rb-blurb {
        padding: 0 1rem;
    }

    .rb-header {
        padding: 2rem 1rem 1.25rem;
    }

    .rb-header__inner {
        padding: 1.5rem 0.65rem 1.35rem;
    }

    .rb-header__kicker {
        letter-spacing: 0.2em;
        margin-bottom: 0.85rem;
    }

    .rb-eyebrow {
        margin-top: 1rem;
    }

    .rb-header__figure {
        max-width: min(22rem, 94vw);
    }

    .rb-video-hero__stage {
        border-radius: 12px;
    }

    .rb-filmstrip__track {
        grid-template-columns: minmax(0, 1fr);
    }

    .rb-fin {
        margin-top: 2.75rem;
    }

    .rb-fin__inner {
        padding: 1.75rem 0.5rem 0.25rem;
    }

    .rb-fin__title {
        margin-bottom: 1.25rem;
        letter-spacing: 0.2em;
    }

    .rb-fin__tagline {
        margin-top: 1.15rem;
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rb-playlist__item--playing {
        transform: none;
    }
}
