/* ================================================================
   view_youtube.php — extracted styles
   Source: views/view_youtube.php
   ================================================================ */

/* ══════════════════════════════════════
   HERO YouTube
══════════════════════════════════════ */
.yt-hero {
    background: linear-gradient(160deg, #060e1e 0%, #0e0812 40%, #1a000a 80%, #060e1e 100%);
    padding: 52px 32px; position: relative; overflow: hidden;
    border-bottom: 2px solid rgba(0,95,138,.6);
}
.yt-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
radial-gradient(ellipse 40% 50% at 0% 50%, rgba(100,60,0,.2) 0%, transparent 60%),
radial-gradient(ellipse 30% 40% at 100% 50%, rgba(0,100,120,.08) 0%, transparent 70%);
}
.yt-hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
linear-gradient(rgba(201,168,76,.04) 1px,transparent 1px),
linear-gradient(90deg,rgba(201,168,76,.04) 1px,transparent 1px),
repeating-linear-gradient(0deg,transparent,transparent 44px,rgba(255,255,255,.013) 44px,rgba(255,255,255,.013) 46px);
    background-size: 32px 32px, 32px 32px, 46px 46px;
}
.yt-profile-card {
    max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 28px;
    position: relative; z-index: 2;
}
.yt-avatar {
    width: 80px; height: 80px; flex-shrink: 0; border-radius: 50%;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 3px rgba(255,80,80,.3), 0 0 28px rgba(255,0,0,.35);
}
.yt-profile-info { color: white; flex: 1; }
.yt-handle {
    font-size: 22px; font-weight: 800; font-family: 'Cinzel',serif;
    letter-spacing: .5px; margin-bottom: 6px;
    background: linear-gradient(90deg,#fff 60%,#ff8080);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.yt-bio { font-size: 13px; opacity: .75; line-height: 1.7; margin-bottom: 16px; font-family: 'IM Fell English',Georgia,serif; font-style: italic; }
.yt-profile-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-yt-subscribe {
    display: inline-flex; align-items: center; gap: 7px;
    background: #ff0000; color: white;
    font-weight: 700; font-size: 13px; font-family: 'Cinzel',serif;
    padding: 9px 24px; border-radius: 50px; text-decoration: none;
    transition: all .25s; box-shadow: 0 4px 16px rgba(255,0,0,.4);
}
.btn-yt-subscribe:hover { transform: translateY(-2px); background: #cc0000; box-shadow: 0 8px 24px rgba(255,0,0,.5); }
.yt-post-count { font-size: 12px; opacity: .6; font-family: 'Cinzel',serif; letter-spacing: .5px; }

/* ══════════════════════════════════════
   SECTION & FILTER
══════════════════════════════════════ */
.yt-section { padding-top: 32px; padding-bottom: 48px; }
.yt-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.yt-filter-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 50px; border: 1.5px solid var(--border);
    background: transparent; font-size: 12px; font-weight: 600; cursor: pointer;
    transition: all .2s; font-family: 'Cinzel',serif; color: var(--muted);
}
.yt-filter-btn em { font-style: normal; font-size: 10px; background: rgba(0,0,0,.07); border-radius: 20px; padding: 1px 7px; }
.yt-filter-btn:hover { border-color: #ff5555; color: #c00; }
.yt-filter-btn.active { background: linear-gradient(135deg,#1a0000,#2a0000); border-color: #ff4444; color: #ff6666; }
.yt-filter-btn.active em { background: rgba(255,80,80,.15); color: #ff6666; }

/* ══════════════════════════════════════
   GRID — 2 kolom, 16:9 thumbnail
══════════════════════════════════════ */
.yt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }

/* ══════════════════════════════════════
   KARTU
══════════════════════════════════════ */
.yt-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
}
.yt-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.yt-card.hidden { display: none; }

/* Thumbnail wrapper */
.yt-thumb-wrap {
    position: relative; aspect-ratio: 16/9; overflow: hidden;
    background: #0f0f0f;
}
.yt-thumb-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s, filter .4s;
    filter: brightness(.92);
}
.yt-card:hover .yt-thumb-img { transform: scale(1.03); filter: brightness(1); }

/* Play button overlay */
.yt-play-btn {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; cursor: pointer;
    transition: all .2s;
}
.yt-play-btn::before {
    content: '';
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255,0,0,.85);
    position: absolute;
    transition: transform .2s, background .2s;
    box-shadow: 0 4px 20px rgba(255,0,0,.5);
}
.yt-play-btn svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); margin-left: 4px; }
.yt-card:hover .yt-play-btn::before { transform: scale(1.12); background: rgba(200,0,0,.95); }

/* Direct embed (no video ID fallback) */
.yt-embed-direct { width: 100%; aspect-ratio: 16/9; }
.yt-embed-direct iframe { width: 100%; height: 100%; border: none; }

/* Body */
.yt-card-body { padding: 16px 18px 18px; }
.yt-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.yt-badge {
    font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    padding: 3px 10px; border-radius: 20px;
    background: linear-gradient(135deg,#ff0000,#cc0000); color: white;
    font-family: 'Cinzel',serif;
}
.yt-tgl { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); font-family: 'Cinzel',serif; }

.yt-card-title {
    font-size: 14px; font-weight: 700; color: #1a1a2e; font-family: 'Cinzel',serif;
    line-height: 1.45; margin-bottom: 8px;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.yt-keterangan { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; font-family: 'IM Fell English',Georgia,serif; font-style: italic; }
.yt-watch-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; color: #cc0000;
    text-decoration: none; font-family: 'Cinzel',serif;
    transition: color .2s; border-bottom: 1px dashed rgba(200,0,0,.3);
    padding-bottom: 1px;
}
.yt-watch-link:hover { color: #ff0000; border-color: #ff0000; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) { .yt-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 600px) {
    .yt-hero { padding: 32px 16px; }
    .yt-profile-card { flex-direction: column; text-align: center; gap: 16px; }
    .yt-profile-actions { justify-content: center; }
}
