/* ============================================
   Premium Video Gallery — Styles
   ============================================ */

/* ── Wrapper ── */
.pvg-wrapper {
    --pvg-accent: #C6A75E;
    --pvg-navy: #0D1B2A;
    --pvg-bg: #F8F6F2;
    --pvg-text: #1A1A1A;
    --pvg-text-light: #666;
    --pvg-text-muted: #999;
    --pvg-white: #FFFFFF;
    --pvg-radius: 16px;
    --pvg-radius-sm: 10px;
    --pvg-transition: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --pvg-transition-fast: 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --pvg-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    --pvg-shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ── Header ── */
.pvg-header {
    margin-bottom: 32px;
}

.pvg-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pvg-accent);
    margin-bottom: 12px;
}

.pvg-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--pvg-navy);
    margin: 0;
}

/* ============================================
   FEATURED PLAYER
   ============================================ */
.pvg-player {
    position: relative;
    margin-bottom: 20px;
}

.pvg-player-inner {
    position: relative;
    border-radius: var(--pvg-radius);
    overflow: hidden;
    background: #000;
    box-shadow: var(--pvg-shadow-strong);
    aspect-ratio: 16 / 9;
}

/* ── Video Element ── */
.pvg-main-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

/* YouTube iframe tam alana yayılır, border olmaz */
.pvg-yt-frame {
    border: none;
    object-fit: unset;
}

/* YouTube overlay: kapak görseli + play butonu */
.pvg-yt-overlay {
    background-color: #000;
}

.pvg-player-inner.has-overlay .pvg-main-video::-webkit-media-controls {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ── Play Overlay ── */
.pvg-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg,
            rgba(13, 27, 42, 0.1) 0%,
            rgba(13, 27, 42, 0.4) 100%);
    cursor: pointer;
    transition: opacity var(--pvg-transition);
    z-index: 5;
}

.pvg-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.pvg-play-btn-big {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--pvg-transition);
    position: relative;
}

.pvg-play-btn-big::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: pvg-pulse 2.5s ease-in-out infinite;
}

.pvg-play-btn-big svg {
    width: 28px;
    height: 28px;
    color: var(--pvg-white);
    margin-left: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pvg-play-overlay:hover .pvg-play-btn-big {
    background: var(--pvg-accent);
    border-color: var(--pvg-accent);
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(198, 167, 94, 0.4);
}

@keyframes pvg-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* ── Player Title Bar ── */
.pvg-player-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(0deg, rgba(13, 27, 42, 0.7) 0%, transparent 100%);
    z-index: 4;
    pointer-events: none;
    opacity: 1;
    transition: opacity var(--pvg-transition);
}

.pvg-video-counter {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   THUMBNAIL STRIP
   ============================================ */
.pvg-thumbs-wrap {
    position: relative;
}

.pvg-thumbs-track {
    display: flex;
    gap: 16px;
}

/* ── Single Thumbnail ── */
.pvg-thumb {
    cursor: pointer;
    border-radius: var(--pvg-radius-sm);
    overflow: hidden;
    background: var(--pvg-white);
    border: 2px solid transparent;
    transition: all var(--pvg-transition);
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.pvg-thumb:hover {
    transform: translateY(-4px);
    box-shadow: var(--pvg-shadow);
    border-color: rgba(198, 167, 94, 0.3);
}

.pvg-thumb.active {
    border-color: var(--pvg-accent);
    box-shadow: 0 4px 20px rgba(198, 167, 94, 0.2);
}

.pvg-thumb-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--pvg-navy);
}

.pvg-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--pvg-transition);
}

.pvg-thumb:hover .pvg-thumb-img img {
    transform: scale(1.08);
}

.pvg-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1B2D45 0%, #0D1B2A 100%);
}

.pvg-thumb-placeholder svg {
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.25);
}

/* Play icon on thumbnail */
.pvg-thumb-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--pvg-transition);
    z-index: 3;
}

.pvg-thumb-play-icon svg {
    width: 14px;
    height: 14px;
    color: var(--pvg-white);
    margin-left: 2px;
}

.pvg-thumb:hover .pvg-thumb-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.pvg-thumb.active .pvg-thumb-play-icon {
    opacity: 1;
    background: var(--pvg-accent);
    transform: translate(-50%, -50%) scale(1);
}

/* Progress bar */
.pvg-thumb-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--pvg-accent);
    transition: width 0.3s linear;
    z-index: 4;
}

/* Thumbnail info */
.pvg-thumb-info {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pvg-thumb-number {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pvg-accent);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.pvg-thumb-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pvg-text);
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pvg-thumb.active .pvg-thumb-title {
    color: var(--pvg-accent);
}



/* ============================================
   TRANSITIONS
   ============================================ */
.pvg-player-inner.is-loading .pvg-main-video {
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.pvg-player-inner .pvg-main-video {
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .pvg-thumbs-track {
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .pvg-thumbs-track::-webkit-scrollbar {
        display: none;
    }

    .pvg-thumb {
        flex: 0 0 140px;
        min-width: 140px;
    }

    .pvg-play-btn-big {
        width: 60px;
        height: 60px;
    }

    .pvg-play-btn-big svg {
        width: 22px;
        height: 22px;
    }

    .pvg-player-bar {
        padding: 12px 16px;
    }

    .pvg-now-playing-title {
        font-size: 0.82rem;
    }

    .pvg-thumb-info {
        padding: 8px 10px;
    }

    .pvg-thumb-title {
        font-size: 0.76rem;
    }
}

@media (max-width: 480px) {
    .pvg-thumb {
        flex: 0 0 120px;
        min-width: 120px;
    }

    .pvg-thumbs-track {
        gap: 8px;
    }

    .pvg-player-inner {
        border-radius: 12px;
    }

    .pvg-thumb {
        border-radius: 8px;
    }
}