.featured-video-slot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20;
    width: min(264px, calc(100vw - 24px));
}

.featured-video {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-translucent);
    box-shadow: 0 22px 60px rgba(34, 31, 26, 0.16);
    backdrop-filter: blur(8px);
    color: var(--text);
    font: inherit;
    text-align: left;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.featured-video-toggle {
    display: none;
}

.featured-video-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #111;
}

.featured-video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.featured-video:hover,
.featured-video:focus-visible {
    transform: translateY(-4px);
    border-color: #bdb5aa;
    box-shadow: 0 26px 70px rgba(34, 31, 26, 0.2);
    outline: none;
}

.featured-video-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-video-head {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.featured-video-head .icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
}

.featured-video-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.featured-video-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.featured-video-meta {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.featured-video-channel,
.featured-video-date {
    display: none;
}

@media (max-width: 700px) {
    .featured-video-slot {
        right: 12px;
        bottom: 12px;
        width: min(240px, calc(100vw - 24px));
    }
}

@media (max-width: 480px) {
    .featured-video-slot {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }

    .featured-video-toggle {
        display: inline-flex;
        width: 100%;
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--surface-translucent);
        box-shadow: 0 16px 34px rgba(34, 31, 26, 0.14);
        backdrop-filter: blur(8px);
        color: var(--text);
        font-weight: 700;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .featured-video-toggle-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .featured-video-toggle::after {
        content: "+";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: var(--surface-muted);
        color: var(--muted);
        flex: 0 0 auto;
    }

    .featured-video-slot[data-expanded="true"] .featured-video-toggle::after {
        content: "−";
    }

    .featured-video-card {
        display: none;
        margin-top: 0;
    }

    .featured-video-slot[data-expanded="true"] .featured-video-card {
        display: flex;
    }

    .featured-video-slot[data-expanded="true"] .featured-video-toggle {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-width: 0;
    }

    .featured-video {
        gap: 8px;
        padding: 10px;
        border-radius: 0 0 16px 16px;
        border-top-width: 0;
    }

    .featured-video-badge-row {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

    .featured-video-thumb {
        border-radius: 12px;
    }

    .featured-video-copy {
        display: none;
    }

    .featured-video-head {
        gap: 0;
    }

    .featured-video-head .icon {
        display: none;
    }

    .featured-video-badge {
        display: none;
    }

    .featured-video-channel {
        display: inline;
        min-width: 0;
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: none;
        white-space: nowrap;
    }

    .featured-video-date {
        display: inline;
        min-width: 0;
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: none;
        white-space: nowrap;
    }
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.video-modal[hidden] {
    display: none;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 15, 12, 0.82);
    border: none;
    padding: 0;
    cursor: default;
}

.video-modal-panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
}

.video-modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 0;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
    background: rgba(0, 0, 0, 0.75);
    outline: none;
}
