/* ── Video Center – Public Styles ── */
:root {
    --vc-bg:       #0f0f23;
    --vc-surface:  #1a1a2e;
    --vc-accent:   #7c3aed;
    --vc-accent2:  #ec4899;
    --vc-text:     #e2e8f0;
    --vc-muted:    #64748b;
    --vc-border:   rgba(124,58,237,0.25);
    --vc-radius:   14px;
}

/* ── Hero ── */
.video-hero {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    border-bottom: 1px solid var(--vc-border);
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}

.video-hero .container { position: relative; z-index: 1; }

.video-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0 0.4rem;
}

.video-hero p {
    color: var(--vc-muted);
    font-size: 0.95rem;
    margin: 0;
}

.video-count-badge {
    display: inline-block;
    background: rgba(124,58,237,0.2);
    border: 1px solid rgba(124,58,237,0.4);
    color: #a78bfa;
    border-radius: 20px;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ── Filter Bar ── */
.video-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.75rem 0;
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius);
    padding: 1.25rem 1.5rem;
}

.filter-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--vc-muted);
    white-space: nowrap;
    padding-top: 0.35rem;
    min-width: 70px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(15,15,35,0.7);
    border: 1px solid rgba(124,58,237,0.2);
    color: var(--vc-muted);
    border-radius: 20px;
    padding: 0.28rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-pill:hover {
    background: rgba(124,58,237,0.15);
    border-color: rgba(124,58,237,0.5);
    color: #c4b5fd;
}

.filter-pill.active {
    background: var(--pill-color, var(--vc-accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 12px rgba(124,58,237,0.35);
}

/* ── Video Grid ── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-bottom: 1rem;
}

/* ── Video Card ── */
.video-card {
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124,58,237,0.25);
}

/* ── Thumbnail ── */
.video-thumb-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #0f0f23;
    text-decoration: none;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.video-card:hover .video-thumb { transform: scale(1.04); }

.video-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #1e1b4b, #2d1b69);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    color: #fff;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.video-card:hover .play-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.45);
}

.platform-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
}

.duration-badge {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 5px;
    padding: 0.15rem 0.45rem;
}

/* ── Card Body ── */
.video-card-body {
    padding: 0.9rem 1rem;
}

.video-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--vc-text);
    line-height: 1.35;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-desc {
    font-size: 0.8rem;
    color: var(--vc-muted);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-tag {
    display: inline-block;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    color: #a78bfa;
    border-radius: 12px;
    padding: 0.15rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ── Empty State ── */
.video-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--vc-muted);
}

.video-empty .icon {
    display: block;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .video-grid { grid-template-columns: 1fr; }
    .filter-label { min-width: unset; }
}
