/* AnimeFLV Scraper — Frontend shortcode styles (fallback when theme not active) */
.aflv-shortcode-wrapper { width: 100%; }
.aflv-episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 16px 0;
}
.aflv-ep-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    transition: transform .2s ease, box-shadow .2s ease;
}
.aflv-ep-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.aflv-ep-thumb { position: relative; padding-top: 140%; overflow: hidden; }
.aflv-ep-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aflv-ep-meta { padding: 8px 10px; }
.aflv-ep-num   { display: block; font-size: 11px; color: #a78bfa; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.aflv-ep-title { display: block; font-size: 13px; color: #f3f4f6; margin-top: 3px; font-weight: 600; line-height: 1.3; }
.aflv-notice   { padding: 12px 16px; background: #fef9c3; border-left: 4px solid #fbbf24; border-radius: 4px; }

/* Shortcode modal */
.aflv-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.85); z-index: 9999; overflow-y: auto; padding: 20px;
}
.aflv-modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.aflv-modal-box { background: #1a1a2e; border-radius: 12px; width: 100%; max-width: 860px; margin: auto; overflow: hidden; color: #f3f4f6; }
.aflv-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: #16213e; border-bottom: 1px solid #0f3460; }
.aflv-modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; }
.aflv-modal-close { background: none; border: none; color: #9ca3af; font-size: 22px; cursor: pointer; padding: 0; }
.aflv-modal-close:hover { color: #f3f4f6; }
.aflv-video-wrap { position: relative; padding-top: 56.25%; background: #000; }
.aflv-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.aflv-server-tabs { display: flex; gap: 8px; padding: 12px 16px; background: #16213e; flex-wrap: wrap; }
.aflv-server-btn { padding: 6px 14px; border-radius: 20px; border: 1px solid #0f3460; background: transparent; color: #9ca3af; cursor: pointer; font-size: 13px; transition: all .15s; }
.aflv-server-btn:hover, .aflv-server-btn.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.aflv-downloads { padding: 16px 20px; }
.aflv-downloads h4 { margin: 0 0 10px; font-size: 13px; color: #9ca3af; text-transform: uppercase; letter-spacing: .08em; }
.aflv-dl-list { display: flex; flex-direction: column; gap: 8px; }
.aflv-dl-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #16213e; border-radius: 8px; gap: 10px; }
.aflv-dl-info { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.aflv-dl-badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; background: #0f3460; color: #60a5fa; }
.aflv-dl-link { padding: 6px 14px; background: #7c3aed; color: #fff; border-radius: 6px; text-decoration: none; font-size: 13px; white-space: nowrap; transition: background .15s; }
.aflv-dl-link:hover { background: #6d28d9; color: #fff; }
