/* =============================================
   KL Clips — Frontend Styles
   Design: Parengcashper dark navy system
   ============================================= */

.kl-clips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Card ────────────────────────────────── */
.kl-clip-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    transition: transform 0.2s ease;
}

.kl-clip-card:hover {
    transform: translateY(-3px);
}

/* ── Thumbnail ───────────────────────────── */
.kl-clip-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #0f212e;
    margin-bottom: 10px;
}

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

.kl-clip-card:hover .kl-clip-thumb img {
    transform: scale(1.04);
}

/* Placeholder (no thumbnail) */
.kl-clip-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f2133 0%, #1a2c38 100%);
    color: rgba(255,255,255,0.15);
}

.kl-clip-thumb-placeholder svg {
    width: 40px;
    height: 40px;
}

/* Play overlay */
.kl-clip-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kl-clip-play svg {
    width: 44px;
    height: 44px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.kl-clip-card:hover .kl-clip-play {
    opacity: 1;
}

/* Duration badge */
.kl-clip-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* ── Info ────────────────────────────────── */
.kl-clip-info {
    padding: 0 2px;
}

.kl-clip-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kl-clip-card:hover .kl-clip-title {
    color: #53fc18; /* Kick green on hover */
}

.kl-clip-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.kl-clip-dot {
    color: #475569;
}

/* ── Responsive ──────────────────────────── */
@media ( max-width: 900px ) {
    .kl-clips-grid { grid-template-columns: repeat(2, 1fr); }
}

@media ( max-width: 540px ) {
    .kl-clips-grid { grid-template-columns: 1fr; }
}
