/* ═══════════════════════════════════════════════
   Video Review Cards — Enhanced TikTok Style
   ═══════════════════════════════════════════════ */

/* ── Grid ── */
.vrc-grid {
    display: grid;
    grid-template-columns: repeat(var(--vrc-columns, 5), 1fr);
    gap: 20px;
    padding: 20px 0;
}


@media (max-width: 1024px) {
    .vrc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vrc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .vrc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ── Card ── */
.vrc-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    cursor: pointer;
    border: 3px solid #43cccf;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.06);
    transition: transform 0.25s cubic-bezier(.4,1.6,.6,1), box-shadow 0.25s ease;
}

.vrc-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1.5px rgba(255,255,255,0.12), 0 0 30px rgba(254, 44, 85, 0.15);
}

/* ── Marquee Title Bar ── */
.vrc-title-bar {
    position: relative;
    width: 100%;
    height: 36px;
    background: linear-gradient(90deg, #fe2c55, #25f4ee, #fe2c55);
    background-size: 200% 100%;
    animation: vrc-gradient-shift 4s ease infinite;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 10;
    flex-shrink: 0;
}

@keyframes vrc-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.vrc-title-marquee {
    display: flex;
    width: max-content;
    animation: vrc-title-slide 20s linear infinite;
}

.vrc-title-marquee span {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 32px 0 0;
}

@keyframes vrc-title-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Video Wrap ── */
.vrc-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #0a0a0a;
}

.vrc-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Play Overlay ── */
.vrc-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2), transparent 65%);
}

/* ── Play Button (the only tappable element) ── */
.vrc-play-btn {
    pointer-events: auto;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    margin: 0;
    /* Large touch target so fat thumbs don't miss it */
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(.4,1.6,.6,1);
}

.vrc-play-btn:hover,
.vrc-play-btn:focus,
.vrc-play-btn:active,
.vrc-play-btn:focus-visible {
    transform: scale(1.15);
    outline: none;
    border: none;
    box-shadow: none;
}

.vrc-play-icon {
    width: 64px;
    height: 64px;
    display: block;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.7));
    opacity: 0.92;
    transition: opacity 0.2s ease;
}

.vrc-play-btn:hover .vrc-play-icon,
.vrc-play-btn:focus .vrc-play-icon {
    opacity: 1;
}

/* ── Sidebar (right side actions like TikTok) ── */
.vrc-sidebar {
    position: absolute;
    right: 8px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 4;
}

.vrc-sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid #fff;
    margin-bottom: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.vrc-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vrc-sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: transform 0.2s ease;
}

.vrc-sidebar-item:hover {
    transform: scale(1.15);
}

.vrc-sidebar-item svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.vrc-sidebar-item span {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ── Bottom Info ── */
.vrc-bottom-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 50px;
    padding: 50px 14px 16px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    z-index: 4;
}

.vrc-reviewer-name {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    margin-bottom: 3px;
}

.vrc-handle {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    margin-bottom: 6px;
}

.vrc-description {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════
   Fullscreen Modal
   ═══════════════════════════════════════════════ */
.vrc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.vrc-modal.is-open {
    display: flex;
}

.vrc-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.vrc-modal-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
    width: 92%;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.vrc-modal-video {
    width: 100%;
    max-height: 85vh;
    display: block;
    border-radius: 20px;
}

.vrc-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

.vrc-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}
