/* ============================================
   AI VIDEO PROMPTS LIBRARY - MAIN STYLES
   4 Cards Per Row | Red & Dark Theme | Video Player
   All classes prefixed: vid-
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;

    background:
        radial-gradient(circle at 15% 20%, rgba(220, 38, 38, 0.14) 0%, transparent 28%),
        radial-gradient(circle at 85% 25%, rgba(239, 68, 68, 0.10) 0%, transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(180, 30, 30, 0.07) 0%, transparent 25%),
        linear-gradient(
            135deg,
            #0d0505 0%,
            #160a0a 25%,
            #1f0c0c 50%,
            #140808 75%,
            #0a0404 100%
        );
    background-attachment: scroll;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(circle at 30% 30%, rgba(220, 38, 38, 0.10), transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(185, 28, 28, 0.07), transparent 35%);
    filter: blur(40px);
    opacity: 0.8;
    will-change: transform;
    animation: vidBodyGlow 20s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes vidBodyGlow {
    from { transform: scale(1);    opacity: 0.7; }
    to   { transform: scale(1.08); opacity: 1;   }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1a0a0a; border-radius: 10px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ============================================
   LAYOUT
   ============================================ */

.vid-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

.vid-prompt-section {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.vid-prompt-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* GPU acceleration for animated elements */
.vid-prompt-card,
.vid-filter-btn,
.vid-submit-section {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* ============================================
   HEADINGS
   ============================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vid-main-heading {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fca5a5 50%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease;
    line-height: 1.2;
}

.vid-main-heading i {
    background: none;
    -webkit-text-fill-color: #dc2626;
    color: #dc2626;
    margin-right: 12px;
}

.vid-sub-heading {
    font-size: 20px;
    color: #c0a0a0;
    font-weight: 400;
    margin-bottom: 32px;
    max-width: 640px;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.vid-prompt-count {
    font-size: 14px;
    color: #9b7070;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.15s backwards;
}

/* ============================================
   3-STEP HOW IT WORKS BAR
   ============================================ */

.vid-steps-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 20px;
    padding: 20px 32px;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease 0.2s backwards;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.vid-step {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 160px;
}

.vid-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220,38,38,0.25), rgba(185,28,28,0.15));
    border: 1px solid rgba(220,38,38,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vid-step-icon i {
    font-size: 18px;
    color: #ef4444;
}

.vid-step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vid-step-text strong {
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
}

.vid-step-text span {
    font-size: 12px;
    color: #9b7070;
}

.vid-step-arrow {
    color: rgba(220,38,38,0.4);
    font-size: 14px;
    padding: 0 8px;
    flex-shrink: 0;
}

/* ============================================
   AI TOOLS BADGE ROW
   ============================================ */

.vid-tools-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.25s backwards;
}

.vid-tools-label {
    font-size: 13px;
    color: #9b7070;
    font-weight: 500;
    margin-right: 4px;
}

.vid-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(220, 38, 38, 0.10);
    border: 1px solid rgba(220, 38, 38, 0.22);
    color: #fca5a5;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.vid-tool-badge:hover {
    background: rgba(220, 38, 38, 0.20);
    border-color: rgba(220, 38, 38, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
}

.vid-tool-badge i {
    font-size: 10px;
}

/* ============================================
   FILTER SECTION
   ============================================ */

.vid-filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 0 40px;
    animation: fadeInUp 0.6s ease 0.3s backwards;
    position: relative;
    z-index: 2;
}

.vid-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vid-filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1.5px solid rgba(220, 38, 38, 0.20);
    background: rgba(20, 8, 8, 0.60);
    backdrop-filter: blur(10px);
    color: #e0c0c0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.vid-filter-btn i { margin-right: 8px; }

/* Ripple effect */
.vid-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.vid-filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.vid-filter-btn:hover {
    border-color: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
}

.vid-filter-btn.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.45);
}

/* ============================================
   SEARCH BOX
   ============================================ */

.vid-search-wrapper {
    position: relative;
    min-width: 300px;
}

.vid-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.vid-search-box i.fa-search {
    position: absolute;
    left: 16px;
    color: #7a5050;
    font-size: 14px;
}

.vid-search-input {
    width: 100%;
    padding: 12px 40px 12px 42px;
    border-radius: 50px;
    border: 1.5px solid rgba(220, 38, 38, 0.25);
    background: rgba(20, 8, 8, 0.80);
    backdrop-filter: blur(10px);
    color: white;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vid-search-input:focus {
    outline: none;
    border-color: #dc2626;
    background: rgba(20, 8, 8, 0.95);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.vid-search-input::placeholder { color: #7a5050; }

.vid-search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #7a5050;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vid-search-clear:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.10);
}

/* Search Suggestions Dropdown */
.vid-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 8, 8, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    margin-top: 8px;
    border: 1px solid rgba(220, 38, 38, 0.20);
    z-index: 100;
    display: none;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.vid-search-suggestions.show { display: block; }

.vid-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0c0c0;
    font-size: 14px;
}

.vid-suggestion-item i { color: #dc2626; width: 20px; }

.vid-suggestion-item:hover { background: rgba(220, 38, 38, 0.12); }

/* ============================================
   PROMPTS GRID — 4 CARDS PER ROW
   ============================================ */

.vid-prompts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 0 0 60px;
    position: relative;
    z-index: 2;
}

/* ============================================
   VIDEO PROMPT CARD
   ============================================ */

.vid-prompt-card {
    background: linear-gradient(
        145deg,
        rgba(28, 10, 10, 0.90),
        rgba(18, 6, 6, 0.94)
    );
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.30),
        inset 0 1px 0 rgba(255,255,255,0.03);
    animation: fadeInUp 0.5s ease backwards;
}

.vid-prompt-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 38, 38, 0.32);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.40),
        0 0 20px rgba(220, 38, 38, 0.12);
}

/* Category Badge — top right */
.vid-prompt-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: #ffffff;
}

.vid-prompt-badge i { margin-right: 4px; font-size: 10px; }

/* ============================================
   THUMBNAIL + PLAY BUTTON OVERLAY
   ============================================ */

.vid-prompt-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #0d0404;
    cursor: pointer;
}

/* Thumbnail image */
.vid-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.vid-prompt-card:hover .vid-thumb-img {
    transform: scale(1.06);
}

/* Dark gradient overlay at bottom of thumbnail */
.vid-prompt-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to top, rgba(18, 6, 6, 0.95), transparent);
    pointer-events: none;
    z-index: 1;
}

/* ── Play Button Overlay ── */
.vid-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
}

.vid-prompt-thumb:hover .vid-play-overlay {
    background: rgba(0, 0, 0, 0.40);
}

.vid-play-btn-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 4px 20px rgba(220, 38, 38, 0.60),
        0 0 0 6px rgba(220, 38, 38, 0.18);
    backdrop-filter: blur(4px);
}

.vid-play-btn-circle i {
    font-size: 20px;
    color: #ffffff;
    margin-left: 3px; /* optical centering for play icon */
}

.vid-prompt-thumb:hover .vid-play-btn-circle {
    transform: scale(1.14);
    background: #ef4444;
    box-shadow:
        0 8px 28px rgba(220, 38, 38, 0.75),
        0 0 0 8px rgba(220, 38, 38, 0.22);
}

/* Video duration badge — bottom left of thumbnail */
.vid-duration-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 3;
    letter-spacing: 0.3px;
}

/* Thumbnail placeholder when image fails */
.vid-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0808, #0d0404);
    flex-direction: column;
    gap: 10px;
}

.vid-thumb-placeholder i {
    font-size: 48px;
    color: #dc2626;
    opacity: 0.5;
}

/* ── Inline Video Player (inside card) ── */
.vid-inline-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
    display: none; /* shown by JS when play clicked */
}

.vid-inline-player.active {
    display: block;
}

.vid-inline-player iframe,
.vid-inline-player video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Close inline player button */
.vid-close-inline {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.75);
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s;
}

.vid-close-inline:hover {
    background: #dc2626;
}

/* ============================================
   CARD CONTENT
   ============================================ */

.vid-prompt-content {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vid-prompt-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.vid-prompt-title i {
    color: #b91c1c;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Prompt text block — fixed height clamp, fade bottom, no card stretch */
.vid-prompt-text {
    font-family: 'Monaco', 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.04);
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.65;
    margin: 10px 0;
    word-break: break-word;
    white-space: normal;
    color: #d1c0c0;
    border-left: 3px solid #dc2626;

    /* ── KEY FIX: fixed height = 4 lines, no overflow, fade out ── */
    height: 72px;              /* exactly 4 lines at 11px / 1.65 lh  */
    max-height: 72px;
    overflow: hidden;
    flex: none;                /* STOP card from stretching with text */

    /* Soft fade at bottom so it doesn't look hard-cut */
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    mask-image:         linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Recommended AI tool chip inside card */
.vid-ai-tool-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    color: #fca5a5;
    background: rgba(220,38,38,0.12);
    border: 1px solid rgba(220,38,38,0.20);
    border-radius: 50px;
    padding: 3px 10px;
    margin-bottom: 10px;
    width: fit-content;
    letter-spacing: 0.3px;
}

.vid-ai-tool-chip i { font-size: 9px; }

/* ============================================
   CARD ACTIONS — Copy only (no detail link)
   ============================================ */

.vid-prompt-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.vid-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    flex: 1;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    letter-spacing: 0.2px;
}

.vid-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.45);
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.vid-copy-btn.copied {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.40);
}

.vid-copy-btn i { font-size: 12px; }

/* Search highlight */
.vid-highlight {
    background: rgba(220, 38, 38, 0.45);
    color: #ffffff;
    padding: 0 2px;
    border-radius: 4px;
    font-weight: 600;
}

/* ============================================
   LOADING / EMPTY / ERROR STATES
   ============================================ */

.vid-loading {
    text-align: center;
    padding: 80px 60px;
    color: #c0a0a0;
    grid-column: 1 / -1;
}

.vid-loading i {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
    color: #dc2626;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.vid-no-results {
    text-align: center;
    padding: 80px 60px;
    color: #c0a0a0;
    grid-column: 1 / -1;
}

.vid-no-results i {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
    color: #dc2626;
    opacity: 0.6;
}

.vid-no-results p { font-size: 18px; margin-bottom: 8px; }
.vid-no-results small { font-size: 14px; color: #7a5050; }

.vid-error {
    text-align: center;
    padding: 80px 60px;
    color: #ef4444;
    grid-column: 1 / -1;
}

.vid-error i { font-size: 56px; margin-bottom: 20px; display: block; }

.vid-retry-btn {
    margin-top: 20px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.vid-retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220,38,38,0.4);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.vid-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    animation: vidSlideIn 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes vidSlideIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes vidSlideOut {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(110%); opacity: 0; }
}

/* ============================================
   VIDEO MODAL — full prompt + player
   ============================================ */

.vid-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: vidFadeIn 0.25s ease;
}

.vid-modal-overlay.active {
    display: flex;
}

@keyframes vidFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.vid-modal {
    background: linear-gradient(145deg, #1c0808, #120404);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 24px;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.04);
    animation: vidModalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes vidModalSlideUp {
    from { transform: translateY(40px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.vid-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(220,38,38,0.12);
}

.vid-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vid-modal-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 8px #dc2626;
    animation: vidPulse 1.5s ease infinite;
}

@keyframes vidPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

.vid-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: #c0a0a0;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vid-modal-close:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Modal video area */
.vid-modal-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
    overflow: hidden;
}

.vid-modal-player iframe,
.vid-modal-player video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Modal prompt area */
.vid-modal-prompt-area {
    padding: 20px 24px 24px;
}

.vid-modal-prompt-label {
    font-size: 13px;
    color: #9b7070;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.vid-modal-prompt-label i { color: #dc2626; }

.vid-modal-prompt-text {
    font-family: 'Monaco', 'Courier New', monospace;
    background: rgba(255,255,255,0.04);
    border-left: 3px solid #dc2626;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12px;
    line-height: 1.7;
    color: #d1c0c0;
    word-break: break-word;
    white-space: pre-wrap;
    margin-bottom: 16px;
    /* Full prompt visible in modal — scrollable if very long */
    max-height: 180px;
    overflow-y: auto;
    -webkit-mask-image: none;
    mask-image: none;
}

.vid-modal-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    width: 100%;
    justify-content: center;
    letter-spacing: 0.2px;
}

.vid-modal-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220,38,38,0.45);
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.vid-modal-copy-btn.copied {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

/* ============================================
   SUBMIT SECTION
   ============================================ */

.vid-submit-section {
    margin-top: 80px;
    padding: 60px 48px;
    background: linear-gradient(135deg,
        rgba(220, 38, 38, 0.07),
        rgba(185, 28, 28, 0.05)
    );
    border-radius: 32px;
    text-align: center;
    border: 1px solid rgba(220, 38, 38, 0.18);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.vid-submit-section:hover {
    border-color: rgba(220, 38, 38, 0.42);
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.15);
}

.vid-submit-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.vid-submit-section h3 i {
    color: #dc2626;
    margin-right: 12px;
}

.vid-submit-desc {
    color: #c0a0a0;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    line-height: 1.6;
}

.vid-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 60px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.vid-premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.50);
    gap: 16px;
}

.vid-credit-text {
    margin-top: 20px;
    font-size: 12px;
    color: #7a5050;
}

.vid-credit-text i { margin-right: 6px; }

/* ============================================
   FAQ SECTION
   ============================================ */

.vid-faq-section {
    margin-top: 80px;
    padding: 64px 0 20px;
    position: relative;
}

/* Top divider glow */
.vid-faq-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(220,38,38,0.50) 30%,
        rgba(185,28,28,0.65) 50%,
        rgba(220,38,38,0.50) 70%,
        transparent 100%);
    margin-bottom: 64px;
}

.vid-faq-header {
    text-align: center;
    margin-bottom: 52px;
}

.vid-faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.25);
    margin-bottom: 20px;
}

.vid-faq-heading {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #fca5a5 50%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    line-height: 1.25;
}

.vid-faq-subheading {
    font-size: 16px;
    color: #c0a0a0;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.65;
}

.vid-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.vid-faq-item {
    background: rgba(18, 6, 6, 0.72);
    border: 1.5px solid rgba(220, 38, 38, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(12px);
}

.vid-faq-item:hover {
    border-color: rgba(220, 38, 38, 0.32);
    box-shadow: 0 4px 24px rgba(220, 38, 38, 0.10);
}

.vid-faq-item.vid-faq--open {
    border-color: rgba(220, 38, 38, 0.50);
    box-shadow: 0 6px 32px rgba(220, 38, 38, 0.15);
    background: rgba(25, 8, 8, 0.88);
}

.vid-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #e8d0d0;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.vid-faq-question:hover { color: #fca5a5; }

.vid-faq-item.vid-faq--open .vid-faq-question { color: #fca5a5; }

.vid-faq-icon {
    flex-shrink: 0;
    font-size: 13px;
    color: #dc2626;
    transition: transform 0.3s ease;
}

.vid-faq-item.vid-faq--open .vid-faq-icon {
    transform: rotate(180deg);
    color: #ef4444;
}

.vid-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.vid-faq-answer > div {
    padding: 0 24px 24px;
    font-size: 14.5px;
    color: #b09090;
    line-height: 1.75;
    border-top: 1px solid rgba(220,38,38,0.10);
    padding-top: 16px;
}

.vid-faq-answer strong { color: #e8d0d0; }
.vid-faq-answer em { color: #fca5a5; font-style: normal; }

/* ============================================
   CARD ANIMATION DELAYS
   ============================================ */

.vid-prompt-card:nth-child(1) { animation-delay: 0.05s; }
.vid-prompt-card:nth-child(2) { animation-delay: 0.10s; }
.vid-prompt-card:nth-child(3) { animation-delay: 0.15s; }
.vid-prompt-card:nth-child(4) { animation-delay: 0.20s; }
.vid-prompt-card:nth-child(5) { animation-delay: 0.25s; }
.vid-prompt-card:nth-child(6) { animation-delay: 0.30s; }
.vid-prompt-card:nth-child(7) { animation-delay: 0.35s; }
.vid-prompt-card:nth-child(8) { animation-delay: 0.40s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Desktop: 4 cards */
@media (min-width: 1200px) {
    .vid-prompts-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet Landscape: 3 cards */
@media (min-width: 992px) and (max-width: 1199px) {
    .vid-prompts-grid { grid-template-columns: repeat(3, 1fr); }
    .vid-main-heading { font-size: 46px; }
}

/* Tablet Portrait: 2 cards */
@media (min-width: 768px) and (max-width: 991px) {
    .vid-prompts-grid { grid-template-columns: repeat(2, 1fr); }
    .vid-main-heading { font-size: 38px; }
    .vid-faq-grid { grid-template-columns: 1fr; }
}

/* Mobile: 1 card */
@media (max-width: 767px) {
    .vid-container { padding: 0 16px; }

    .vid-main-heading { font-size: 30px; }
    .vid-sub-heading { font-size: 16px; }

    .vid-steps-bar {
        padding: 16px 20px;
        gap: 16px;
    }

    .vid-step-arrow { display: none; }

    .vid-filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .vid-filter-buttons { justify-content: center; }

    .vid-filter-btn { padding: 8px 16px; font-size: 12px; }

    .vid-search-wrapper { width: 100%; min-width: unset; }

    .vid-prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vid-submit-section { padding: 40px 24px; }
    .vid-submit-section h3 { font-size: 22px; }

    .vid-faq-grid { grid-template-columns: 1fr; }
    .vid-faq-heading { font-size: 26px; }

    .vid-modal { border-radius: 16px; }
    .vid-modal-header { padding: 16px 18px 12px; }
    .vid-modal-prompt-area { padding: 16px 18px 20px; }

    .vid-prompt-actions { flex-direction: column; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .vid-main-heading { font-size: 26px; }
    .vid-prompt-thumb { height: 180px; }
    .vid-faq-heading { font-size: 22px; }
    .vid-faq-subheading { font-size: 14px; }
    .vid-faq-question { font-size: 14px; padding: 18px; }
    .vid-faq-answer > div { padding: 12px 18px 18px; font-size: 13.5px; }
    .vid-tools-bar { gap: 6px; }
    .vid-tool-badge { padding: 4px 10px; font-size: 11px; }
}