/* ============================================
   EROTIC MODAL - Premium Design System
   ============================================ */

/* Overlay */
.erotic-modal-overlay {
    background: rgba(3, 0, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
}

/* Container */
.erotic-modal-container {
    background: linear-gradient(145deg, rgba(15, 10, 30, 0.95), rgba(20, 14, 38, 0.9));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(234, 179, 8, 0.15);
    border-radius: 1.5rem;
    box-shadow:
        0 0 40px rgba(234, 179, 8, 0.08),
        0 25px 60px -15px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: eroticModalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes eroticModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Modal top glow line */
.erotic-modal-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.6), rgba(138, 43, 226, 0.4), transparent);
    z-index: 1;
}

/* Header */
.erotic-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.erotic-modal-icon-wrap {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(234, 179, 8, 0.05));
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 0.75rem;
    font-size: 1.1rem;
}

/* Close button */
.erotic-modal-close-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.625rem;
    color: #9ca3af;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.erotic-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Search */
.erotic-modal-search {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(15, 10, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.875rem;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}
.erotic-modal-search::placeholder { color: #6b7280; }
.erotic-modal-search:focus {
    border-color: rgba(234, 179, 8, 0.4);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1), 0 0 20px rgba(234, 179, 8, 0.05);
    background: rgba(15, 10, 30, 0.9);
}

/* Filter tags */
.erotic-filter-tag {
    display: inline-flex; align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    transition: all 0.25s ease;
}
.erotic-filter-tag:hover {
    background: rgba(234, 179, 8, 0.08);
    border-color: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}
.erotic-filter-tag.active {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.1));
    border-color: rgba(234, 179, 8, 0.4);
    color: #fbbf24;
    box-shadow: 0 2px 12px rgba(234, 179, 8, 0.15);
}

/* Loader spinner */
.erotic-modal-loader-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(234, 179, 8, 0.1);
    border-top-color: #eab308;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Channel cards inside modal */
.erotic-channel-card {
    display: flex; align-items: flex-start; gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.erotic-channel-card:hover {
    background: rgba(234, 179, 8, 0.04);
    border-color: rgba(234, 179, 8, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(234, 179, 8, 0.1);
}

.erotic-channel-logo {
    width: 56px; height: 56px;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}
.erotic-channel-card:hover .erotic-channel-logo {
    border-color: rgba(234, 179, 8, 0.4);
}

.erotic-channel-name {
    font-weight: 600; color: white;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}
.erotic-channel-card:hover .erotic-channel-name {
    color: #fbbf24;
}

.erotic-channel-desc {
    font-size: 0.8rem; color: #6b7280;
    margin-top: 0.25rem; line-height: 1.4;
}

.erotic-channel-meta {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
    margin-top: 0.5rem;
}

.erotic-badge {
    display: inline-flex; align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.erotic-badge-hd { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.erotic-badge-4k { background: rgba(234, 179, 8, 0.15); color: #fbbf24; border: 1px solid rgba(234, 179, 8, 0.2); }
.erotic-badge-3d { background: rgba(138, 43, 226, 0.15); color: #a78bfa; border: 1px solid rgba(138, 43, 226, 0.2); }
.erotic-badge-pornbox { background: rgba(34, 197, 94, 0.12); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }
.erotic-badge-eroluxe { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.2); }
.erotic-badge-default { background: rgba(255, 255, 255, 0.05); color: #9ca3af; border: 1px solid rgba(255, 255, 255, 0.08); }

.erotic-badge-18 {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white; font-size: 0.6rem; font-weight: 700;
    padding: 0.15rem 0.4rem; border-radius: 0.3rem;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.erotic-channel-cat {
    font-size: 0.75rem; color: #6b7280;
}

/* Scrollbar Styling */
.modal-body-channels::-webkit-scrollbar { width: 5px; }
.modal-body-channels::-webkit-scrollbar-track { background: transparent; }
.modal-body-channels::-webkit-scrollbar-thumb {
    background: rgba(234, 179, 8, 0.25);
    border-radius: 10px;
}
.modal-body-channels::-webkit-scrollbar-thumb:hover {
    background: rgba(234, 179, 8, 0.45);
}

/* ============================================
   CHANNEL CATALOG (uses global .catalog-* / .tv-card / .cat-btn from assets/css/style.css)
   ============================================ */