@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes guideChipIn {
    from { opacity: 0; transform: translateY(8px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.guide-chip-in {
    animation: guideChipIn 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.guide-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px 0 8px;
    border: 1px solid color-mix(in srgb, var(--guide-accent) 28%, #e2e8f0);
    border-radius: 999px;
    background: color-mix(in srgb, var(--guide-accent) 9%, #fff);
    color: #0f172a;
    cursor: pointer;
    font: 600 13px/1 system-ui, -apple-system, sans-serif;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.guide-pill:hover {
    transform: translateY(-1px) scale(1.03);
    background: color-mix(in srgb, var(--guide-accent) 16%, #fff);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--guide-accent) 22%, transparent);
}
.guide-pill:active {
    transform: scale(0.97);
}
.guide-pill:focus {
    outline: none;
}
.guide-pill:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6F14F1;
}
.guide-pill.is-active {
    background: color-mix(in srgb, var(--guide-accent) 18%, #fff);
    border-color: color-mix(in srgb, var(--guide-accent) 45%, #e2e8f0);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--guide-accent) 35%, transparent);
}
.guide-pill-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--guide-accent);
    color: #fff;
    flex-shrink: 0;
    padding-left: 1px;
}
.guide-pill-label {
    white-space: nowrap;
}
.guide-player-shell {
    margin-top: 1rem;
}
.guide-player-frame {
    position: relative;
    margin-inline: auto;
    width: min(100%, 280px);
    aspect-ratio: 9 / 16;
    max-height: min(70vh, 420px);
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.guide-player-frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.guide-player-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.72), transparent);
    pointer-events: none;
}
.guide-player-title {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 600 12px/1.3 system-ui, -apple-system, sans-serif;
    color: #fff;
}
.guide-player-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    pointer-events: auto;
}
.guide-player-yt {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font: 500 11px/1 system-ui, -apple-system, sans-serif;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
.guide-player-yt:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.guide-player-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}
.guide-player-close:hover {
    background: rgba(255, 255, 255, 0.24);
}
.guide-player-close:focus {
    outline: none;
}
.guide-player-close:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6F14F1;
}
.guide-player-enter {
    transition: opacity 220ms ease, transform 220ms ease;
}
.guide-player-enter-start {
    opacity: 0;
    transform: translateY(-6px);
}
.guide-player-enter-end {
    opacity: 1;
    transform: translateY(0);
}
.guide-player-leave {
    transition: opacity 160ms ease, transform 160ms ease;
}
.guide-player-leave-start {
    opacity: 1;
    transform: translateY(0);
}
.guide-player-leave-end {
    opacity: 0;
    transform: translateY(-4px);
}
@media (prefers-reduced-motion: reduce) {
    .motion-safe\:animate-\[fadeSlide_280ms_ease-out\] {
        animation: none !important;
    }
    .guide-chip-in {
        animation: none !important;
    }
    .guide-pill:hover,
    .guide-pill:active {
        transform: none !important;
    }
    .guide-player-enter,
    .guide-player-leave {
        transition: none !important;
    }
    .guide-player-enter-start,
    .guide-player-leave-end {
        transform: none !important;
    }
}
