.videos-page {
    max-width: 88rem;
    margin: 0 auto;
    padding: 2.5rem clamp(1rem, 3vw, 3rem) 4rem;
}

.videos-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.videos-eyebrow {
    margin-bottom: .55rem;
    color: hsl(var(--primary-text));
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.videos-header h1 {
    color: hsl(var(--foreground));
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.videos-intro {
    margin-top: .6rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.55;
}

.videos-count {
    flex: none;
    padding: .48rem .85rem;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--card));
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    gap: 1.4rem;
}

.videos-card {
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    background: hsl(var(--card));
    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.videos-card:hover {
    transform: translateY(-3px);
    border-color: hsl(var(--primary) / .45);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .16);
}

.videos-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #10131c;
}

.videos-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.videos-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    background: rgba(17, 19, 31, .82);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
    cursor: pointer;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(8px);
    transition: background .18s ease, transform .18s ease;
}

.videos-play[hidden] { display: none; }
.videos-play:hover { background: hsl(var(--primary)); transform: translate(-50%, -50%) scale(1.08); }
.videos-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.videos-card-body { padding: 1rem 1.15rem 1.2rem; }
.videos-card-body h2 {
    color: hsl(var(--foreground));
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}
.videos-card-body h2 a {
    color: inherit;
    text-decoration: none;
}
.videos-card-body h2 a:hover, .videos-card-body h2 a:focus-visible {
    color: hsl(var(--primary-text));
    text-decoration: underline;
    text-underline-offset: .2em;
}
.videos-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin-top: .5rem;
    color: hsl(var(--muted-foreground));
    font-size: .83rem;
}
.videos-views {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-variant-numeric: tabular-nums;
}
.videos-like {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}
.videos-like:hover, .videos-like.is-liked { color: hsl(var(--primary-text)); }
.videos-like:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 3px; border-radius: .2rem; }
.videos-like:disabled { cursor: wait; opacity: .6; }

.videos-empty {
    padding: 3rem 1.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--card));
    text-align: center;
}

.videos-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    color: hsl(var(--muted-foreground));
    font-size: .9rem;
}
.videos-pagination a {
    padding: .6rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: .7rem;
    color: hsl(var(--foreground));
    text-decoration: none;
}
.videos-pagination a:hover, .videos-pagination a:focus-visible {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-text));
}

@media (prefers-reduced-motion: reduce) {
    .videos-card, .videos-play { transition: none; }
}
