/**
 * Reusable UI components — public site
 */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100000;
}

.skip-link:focus {
    position: fixed;
    left: var(--space-4);
    top: var(--space-4);
    width: auto;
    height: auto;
    padding: var(--space-3) var(--space-5);
    background: var(--accent-color);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    overflow: visible;
    box-shadow: var(--shadow-elevated);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}

.section-header__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text-color);
}

.section-header__meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

.section-header__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    white-space: nowrap;
}

.section-header__link:hover {
    text-decoration: underline;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0 0 var(--space-4);
    padding: 0;
    list-style: none;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    opacity: 0.45;
}

/* Video cards — shared chrome; templates: --cinematic / --airy (Latest releases only) */
.video-card-premium {
    --vc-bg: #0c0a0b;
    position: relative;
    display: block;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    transition:
        transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.32s ease,
        border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(245, 158, 11, 0.16);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
}

.video-card-premium:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--accent-color) 45%, rgba(245, 158, 11, 0.32));
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.52),
        0 0 0 1px color-mix(in srgb, var(--accent-color) 24%, transparent);
}

.video-card-premium:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.video-card-premium__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--vc-bg);
    overflow: hidden;
    border-radius: inherit;
}

.video-card-premium--airy .video-card-premium__thumb {
    border-radius: 11px 11px 0 0;
}

.video-card-premium__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card-premium:hover .video-card-premium__thumb img {
    transform: scale(1.05);
}

.video-card-premium__thumb-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Cinematic: light vignette; bottom gradient comes from .__body */
.video-card-premium--cinematic .video-card-premium__thumb-shade {
    background: linear-gradient(
        180deg,
        rgba(5, 6, 8, 0.2) 0%,
        transparent 38%,
        transparent 52%,
        rgba(5, 6, 8, 0.18) 100%
    );
}

/* Airy: gentle top vignette on thumb */
.video-card-premium--airy .video-card-premium__thumb-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 44%);
}

.video-card-premium__platform {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    left: auto;
    z-index: 3;
    max-width: min(55%, calc(100% - 5.25rem));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.65rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.15;
    color: #ffffff;
    background: linear-gradient(125deg, var(--platform-g1, #f97316), var(--platform-g2, #ec4899));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.video-card-premium__platform-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-card-premium__badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 3;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f8fafc;
    padding: 0.28rem 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* ——— Cinematic: title + series on bottom gradient over thumb ——— */
.video-card-premium--cinematic .video-card-premium__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 2.1rem 0.72rem 0.58rem;
    pointer-events: none;
    background: linear-gradient(
        0deg,
        rgba(10, 4, 6, 0.97) 0%,
        rgba(10, 4, 6, 0.82) 22%,
        rgba(10, 4, 6, 0.45) 48%,
        rgba(10, 4, 6, 0.12) 72%,
        transparent 100%
    );
    transition: filter 0.28s ease, opacity 0.28s ease;
}

.video-card-premium--cinematic:hover .video-card-premium__body {
    background: linear-gradient(
        0deg,
        rgba(18, 6, 8, 0.98) 0%,
        rgba(18, 6, 8, 0.88) 26%,
        rgba(18, 6, 8, 0.5) 52%,
        rgba(18, 6, 8, 0.14) 76%,
        transparent 100%
    );
}

.video-card-premium--cinematic .video-card-premium__title {
    order: 2;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.32;
    margin: 0;
    color: #fffefb;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.95),
        0 2px 14px rgba(0, 0, 0, 0.65),
        0 0 1px rgba(0, 0, 0, 1);
    -webkit-font-smoothing: antialiased;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-premium--cinematic:hover .video-card-premium__title {
    color: #ffffff;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.92),
        0 0 18px rgba(254, 243, 199, 0.18);
}

.video-card-premium--cinematic .video-card-premium__series {
    color: #fef3c7;
    font-weight: 600;
    font-size: 0.64rem;
    padding: 3px 8px;
    border-radius: 999px;
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(245, 158, 11, 0.35);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.video-card-premium--cinematic .video-card-premium__meta {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
}

/* ——— Airy: split layout — light frosted caption, thin gold top rule (no side rail / no slab) ——— */
.video-card-premium--airy .video-card-premium__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.28rem;
    padding: 0.62rem 0.78rem 0.72rem;
    pointer-events: none;
    background: rgba(255, 250, 245, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 0 0 11px 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.video-card-premium--airy:hover .video-card-premium__body {
    background: rgba(255, 252, 248, 0.11);
    border-top-color: rgba(253, 224, 71, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(245, 158, 11, 0.1);
}

.video-card-premium--airy .video-card-premium__title {
    order: 1;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.86rem;
    line-height: 1.32;
    margin: 0;
    color: rgba(255, 251, 245, 0.96);
    letter-spacing: -0.015em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    -webkit-font-smoothing: antialiased;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-premium--airy:hover .video-card-premium__title {
    color: #ffffff;
}

.video-card-premium--airy .video-card-premium__meta {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
}

.video-card-premium--airy .video-card-premium__series {
    align-self: flex-start;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    color: rgba(254, 215, 170, 0.72);
    padding: 0.12rem 0.45rem;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 6px;
    box-shadow: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .video-card-premium--airy .video-card-premium__body {
        background: rgba(28, 16, 18, 0.88);
    }
}

.continue-strip {
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    display: none;
}

.continue-strip.is-visible {
    display: block;
}

.continue-strip__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.continue-strip__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 0;
}

.continue-strip__clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
}

.continue-strip__clear:hover {
    color: var(--accent-color);
}

.continue-strip__row {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: var(--space-2);
}

.continue-chip {
    flex: 0 0 auto;
    max-width: 200px;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    font-size: 0.8125rem;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-chip:hover {
    border-color: var(--accent-color);
}
