/* AnonVIP Frontend Styles */

/* ===== PREVENT THEME CONFLICTS ===== */
/* Only reset animations that might interfere */
.top-movies-section *:not([class*="anonvip"]),
.category-section-wrapper *:not([class*="anonvip"]),
.sidebar *:not([class*="anonvip"]),
.widget-area *:not([class*="anonvip"]) {
    animation: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
}

/* Only apply plugin styles to plugin elements */

/* Scoped styles - only affect plugin elements */
.anonvip-iframe-player {
    margin: 20px 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

/* VIP Server Buttons */
.anonvip-vip-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
}

/* Button Style 1: Classic Black (Default) */
.anonvip-vip-button-1,
.anonvip-vip-button-black {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    border: 2px solid #333;
    color: #ffffff;
}

.anonvip-vip-button-1:hover,
.anonvip-vip-button-black:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 50%, #1a1a1a 100%);
    border-color: #555;
}

/* Button Style 2: Fire Red */
.anonvip-vip-button-2 {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #990000 100%);
    border: 2px solid #ff3333;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.anonvip-vip-button-2:hover {
    background: linear-gradient(135deg, #ff3333 0%, #ff0000 50%, #cc0000 100%);
    border-color: #ff6666;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Button Style 3: Ocean Blue */
.anonvip-vip-button-3 {
    background: linear-gradient(135deg, #0066cc 0%, #004499 50%, #003366 100%);
    border: 2px solid #3399ff;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.anonvip-vip-button-3:hover {
    background: linear-gradient(135deg, #3399ff 0%, #0066cc 50%, #004499 100%);
    border-color: #66ccff;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Button Style 4: Golden Yellow */
.anonvip-vip-button-4 {
    background: linear-gradient(135deg, #ffcc00 0%, #ff9900 50%, #cc6600 100%);
    border: 2px solid #ffdd33;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 10px rgba(255, 204, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.anonvip-vip-button-4:hover {
    background: linear-gradient(135deg, #ffdd33 0%, #ffcc00 50%, #ff9900 100%);
    border-color: #ffee66;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Button Style 5: Royal Purple */
.anonvip-vip-button-5 {
    background: linear-gradient(135deg, #6600cc 0%, #4d0099 50%, #330066 100%);
    border: 2px solid #9933ff;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(102, 0, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.anonvip-vip-button-5:hover {
    background: linear-gradient(135deg, #9933ff 0%, #6600cc 50%, #4d0099 100%);
    border-color: #cc66ff;
    box-shadow: 0 4px 15px rgba(102, 0, 204, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Button Style 6: Forest Green */
.anonvip-vip-button-6 {
    background: linear-gradient(135deg, #009900 0%, #006600 50%, #003300 100%);
    border: 2px solid #33cc33;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 153, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.anonvip-vip-button-6:hover {
    background: linear-gradient(135deg, #33cc33 0%, #009900 50%, #006600 100%);
    border-color: #66ff66;
    box-shadow: 0 4px 15px rgba(0, 153, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Button Style 7: Sunset Orange */
.anonvip-vip-button-7 {
    background: linear-gradient(135deg, #ff6600 0%, #cc3300 50%, #990000 100%);
    border: 2px solid #ff9933;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(255, 102, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.anonvip-vip-button-7:hover {
    background: linear-gradient(135deg, #ff9933 0%, #ff6600 50%, #cc3300 100%);
    border-color: #ffcc66;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Button Style 8: Hot Pink */
.anonvip-vip-button-8 {
    background: linear-gradient(135deg, #ff0099 0%, #cc0066 50%, #990033 100%);
    border: 2px solid #ff33cc;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(255, 0, 153, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.anonvip-vip-button-8:hover {
    background: linear-gradient(135deg, #ff33cc 0%, #ff0099 50%, #cc0066 100%);
    border-color: #ff66ff;
    box-shadow: 0 4px 15px rgba(255, 0, 153, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Button Style 9: Cyan Blue */
.anonvip-vip-button-9 {
    background: linear-gradient(135deg, #00cccc 0%, #009999 50%, #006666 100%);
    border: 2px solid #33ffff;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 204, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.anonvip-vip-button-9:hover {
    background: linear-gradient(135deg, #33ffff 0%, #00cccc 50%, #009999 100%);
    border-color: #66ffff;
    box-shadow: 0 4px 15px rgba(0, 204, 204, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Button Style 10: Rainbow Gradient */
.anonvip-vip-button-10 {
    background: linear-gradient(135deg, #ff0000 0%, #ff9900 16.66%, #ffff00 33.33%, #00ff00 50%, #0099ff 66.66%, #6600cc 83.33%, #ff0099 100%);
    border: 2px solid #ffffff;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.anonvip-vip-button-10:hover {
    background: linear-gradient(135deg, #ff3333 0%, #ffcc33 16.66%, #ffff33 33.33%, #33ff33 50%, #33ccff 66.66%, #9933ff 83.33%, #ff33cc 100%);
    border-color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
}

/* NEW BLACK BUTTON STYLES - Phù hợp với theme anonx */

/* Button Style 11: Deep Black - Đen sâu */
.anonvip-vip-button-11 {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border: 2px solid #333333;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.anonvip-vip-button-11:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border-color: #555555;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Button Style 12: Carbon Black - Đen carbon */
.anonvip-vip-button-12 {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 50%, #1e1e1e 100%);
    border: 2px solid #404040;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.anonvip-vip-button-12:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 50%, #2d2d2d 100%);
    border-color: #555555;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Button Style 13: Slate Black - Đen xám */
.anonvip-vip-button-13 {
    background: linear-gradient(135deg, #2a2a2a 0%, #404040 50%, #2a2a2a 100%);
    border: 2px solid #555555;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.anonvip-vip-button-13:hover {
    background: linear-gradient(135deg, #404040 0%, #555555 50%, #404040 100%);
    border-color: #666666;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Button Style 14: Midnight Black - Đen nửa đêm */
.anonvip-vip-button-14 {
    background: linear-gradient(135deg, #0f0f0f 0%, #1f1f1f 50%, #0f0f0f 100%);
    border: 2px solid #333333;
    color: #ffd700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.anonvip-vip-button-14:hover {
    background: linear-gradient(135deg, #1f1f1f 0%, #2f2f2f 50%, #1f1f1f 100%);
    border-color: #ffd700;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 215, 0, 0.2);
    color: #ffffff;
}

/* Button Style 15: Obsidian Black - Đen obsidian */
.anonvip-vip-button-15 {
    background: linear-gradient(135deg, #111111 0%, #222222 25%, #111111 50%, #222222 75%, #111111 100%);
    border: 2px solid #444444;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.anonvip-vip-button-15:hover {
    background: linear-gradient(135deg, #222222 0%, #333333 25%, #222222 50%, #333333 75%, #222222 100%);
    border-color: #666666;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Common VIP Button Styles - Enhanced Animations */
.anonvip-vip-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Enhanced Shimmer Effect */
.anonvip-vip-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.anonvip-vip-button:hover::before {
    left: 100%;
}

/* Enhanced Hover Effects */
.anonvip-vip-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.anonvip-vip-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.1s ease;
}

/* Enhanced Icon Animation */
.anonvip-vip-button i {
    font-size: 18px;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    animation: star-pulse 2s infinite;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.anonvip-vip-button:hover i {
    animation: star-glow 1s infinite alternate;
    transform: scale(1.1) rotate(5deg);
}

.anonvip-vip-button span {
    flex: 1;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: relative;
}

/* Enhanced Keyframes */
@keyframes star-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
    }
}

@keyframes star-glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 1));
    }
}

/* Button Ripple Effect */
.anonvip-vip-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 0;
}

.anonvip-vip-button:active::after {
    width: 200px;
    height: 200px;
}

/* Loading State Animation */
.anonvip-vip-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.anonvip-vip-button.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .anonvip-vip-button {
        padding: 12px 16px;
        font-size: 14px;
        gap: 10px;
    }
    
    .anonvip-vip-button i {
        font-size: 16px;
    }
    
    .anonvip-vip-button:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

/* Dark Theme Compatibility */
@media (prefers-color-scheme: dark) {
    .anonvip-vip-buttons {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
        border-color: #333333;
    }
}

/* GPU Acceleration for Better Performance */
.anonvip-vip-button,
.anonvip-vip-button::before,
.anonvip-vip-button::after,
.anonvip-vip-button i {
    will-change: transform, opacity;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Enhanced Entrance Animations */
.anonvip-vip-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Button Animations */
.anonvip-vip-button {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInFromLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.anonvip-vip-button:nth-child(1) { animation-delay: 0.1s; }
.anonvip-vip-button:nth-child(2) { animation-delay: 0.2s; }
.anonvip-vip-button:nth-child(3) { animation-delay: 0.3s; }
.anonvip-vip-button:nth-child(4) { animation-delay: 0.4s; }
.anonvip-vip-button:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Pulse Animation for Icons */
@keyframes star-pulse-enhanced {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
    }
    25% {
        transform: scale(1.05) rotate(2deg);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
    }
    50% {
        transform: scale(1.1) rotate(0deg);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
    }
    75% {
        transform: scale(1.05) rotate(-2deg);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
    }
}

/* Button Morphing Animation */
.anonvip-vip-button.morphing {
    animation: buttonMorph 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes buttonMorph {
    0% {
        border-radius: 8px;
        transform: scale(1);
    }
    50% {
        border-radius: 25px;
        transform: scale(1.05);
    }
    100% {
        border-radius: 8px;
        transform: scale(1);
    }
}

/* Particle Effect for Premium Buttons */
.anonvip-vip-button-14::before,
.anonvip-vip-button-15::before {
    background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.3), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.2), transparent 50%),
                linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* 3D Effect for Black Buttons */
.anonvip-vip-button-11,
.anonvip-vip-button-12,
.anonvip-vip-button-13,
.anonvip-vip-button-14,
.anonvip-vip-button-15 {
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.anonvip-vip-button-11:hover,
.anonvip-vip-button-12:hover,
.anonvip-vip-button-13:hover,
.anonvip-vip-button-14:hover,
.anonvip-vip-button-15:hover {
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Glitch Effect for Special Buttons */
.anonvip-vip-button-15.glitch {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

/* Loading State Enhancements */
.anonvip-vip-button.loading {
    position: relative;
    overflow: hidden;
}

.anonvip-vip-button.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Improved Responsive Design */
@media (max-width: 480px) {
    .anonvip-vip-buttons {
        padding: 15px;
        gap: 10px;
        margin: 15px 0;
    }
    
    .anonvip-vip-button {
        padding: 10px 14px;
        font-size: 13px;
        gap: 8px;
    }
    
    .anonvip-vip-button i {
        font-size: 14px;
    }
    
    /* Reduce animations on smaller screens */
    .anonvip-vip-button:hover {
        transform: translateY(-1px) scale(1.01);
    }
    
    .anonvip-vip-button::before {
        display: none; /* Disable shimmer on mobile for performance */
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .anonvip-vip-button {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .anonvip-vip-button i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility Improvements */
.anonvip-vip-button:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.anonvip-vip-button:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .anonvip-vip-button,
    .anonvip-vip-button::before,
    .anonvip-vip-button::after,
    .anonvip-vip-button i {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .anonvip-vip-button:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .anonvip-vip-buttons {
        display: none;
    }
}

/* Container Queries Support (Future-proofing) */
@supports (container-type: inline-size) {
    .anonvip-vip-buttons {
        container-type: inline-size;
    }
    
    @container (max-width: 500px) {
        .anonvip-vip-button {
            padding: 10px 14px;
            font-size: 13px;
        }
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    div.anonvip-trending-keywords {
        padding: 15px;
        margin: 15px 0;
    }
    
    div.anonvip-trending-keywords .trending-title {
        font-size: 16px;
    }
    
    div.anonvip-trending-keywords .trending-keyword {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    div.anonvip-trending-keywords .search-count {
        font-size: 10px;
        padding: 1px 4px;
    }
}

/* Theme Integration Classes */
.anonx-theme .anonvip-vip-buttons {
    background: linear-gradient(135deg, var(--bg-secondary, #1a1a1a) 0%, var(--bg-tertiary, #2a2a2a) 100%);
    border-color: var(--border-primary, #333333);
}

.anonx-theme .anonvip-vip-button {
    color: var(--text-primary, #ffffff);
    border-color: var(--border-secondary, #404040);
}

.anonx-theme .anonvip-vip-button i {
    color: var(--accent-color, #ffd700);
}

/* Performance Optimizations */
.anonvip-vip-buttons {
    contain: layout style paint;
}

.anonvip-vip-button {
    contain: layout style;
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* NEW DEMO VIP BUTTON STYLES - Nhiều hiệu ứng động */

/* Button Style 16: Neon Glow - Ánh sáng neon */
.anonvip-vip-button-16 {
    background: linear-gradient(135deg, #001a1a 0%, #003333 50%, #001a1a 100%);
    border: 2px solid #00ffff;
    color: #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    animation: neonPulse 2s infinite alternate;
}

.anonvip-vip-button-16:hover {
    background: linear-gradient(135deg, #003333 0%, #006666 50%, #003333 100%);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.8),
        inset 0 0 30px rgba(0, 255, 255, 0.2);
    text-shadow: 0 0 10px #00ffff;
}

@keyframes neonPulse {
    0% {
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.5),
            inset 0 0 20px rgba(0, 255, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 0 40px rgba(0, 255, 255, 0.8),
            inset 0 0 40px rgba(0, 255, 255, 0.2);
    }
}

/* Button Style 17: Electric Blue - Xanh điện */
.anonvip-vip-button-17 {
    background: linear-gradient(135deg, #001133 0%, #0040ff 50%, #001133 100%);
    border: 2px solid #0080ff;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.anonvip-vip-button-17::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, #0080ff, transparent);
    animation: electricSpin 3s linear infinite;
    z-index: 0;
}

.anonvip-vip-button-17 span,
.anonvip-vip-button-17 i {
    position: relative;
    z-index: 2;
}

@keyframes electricSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Style 18: Plasma Pink - Hồng plasma */
.anonvip-vip-button-18 {
    background: linear-gradient(135deg, #330011 0%, #ff0080 50%, #330011 100%);
    border: 2px solid #ff0080;
    color: #ffffff;
    animation: plasmaWave 4s ease-in-out infinite;
}

.anonvip-vip-button-18:hover {
    animation: plasmaWave 1s ease-in-out infinite;
}

@keyframes plasmaWave {
    0%, 100% {
        background: linear-gradient(135deg, #330011 0%, #ff0080 50%, #330011 100%);
        border-color: #ff0080;
    }
    25% {
        background: linear-gradient(135deg, #ff0080 0%, #ff40a0 50%, #ff0080 100%);
        border-color: #ff40a0;
    }
    50% {
        background: linear-gradient(135deg, #ff40a0 0%, #ff80c0 50%, #ff40a0 100%);
        border-color: #ff80c0;
    }
    75% {
        background: linear-gradient(135deg, #ff0080 0%, #ff40a0 50%, #ff0080 100%);
        border-color: #ff40a0;
    }
}

/* Button Style 19: Laser Green - Xanh laser */
.anonvip-vip-button-19 {
    background: linear-gradient(135deg, #001100 0%, #00ff80 50%, #001100 100%);
    border: 2px solid #00ff80;
    color: #000000;
    position: relative;
    overflow: hidden;
}

.anonvip-vip-button-19::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 128, 0.8), transparent);
    animation: laserSweep 2s infinite;
}

@keyframes laserSweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

/* Button Style 20: Matrix Code - Ma trận */
.anonvip-vip-button-20 {
    background: linear-gradient(135deg, #000000 0%, #003300 50%, #000000 100%);
    border: 2px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.anonvip-vip-button-20::before {
    content: '01010101010101010101010101010101';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 8px;
    line-height: 1;
    opacity: 0.1;
    animation: matrixRain 5s linear infinite;
    z-index: 1;
}

@keyframes matrixRain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Button Style 21: Holographic - Hologram */
.anonvip-vip-button-21 {
    background: linear-gradient(45deg, #ff00ff 0%, #00ffff 25%, #ffff00 50%, #ff00ff 75%, #00ffff 100%);
    background-size: 400% 400%;
    border: 2px solid #ffffff;
    color: #000000;
    font-weight: bold;
    animation: holographicShift 3s ease-in-out infinite;
}

@keyframes holographicShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Button Style 22: Cyberpunk - Tương lai */
.anonvip-vip-button-22 {
    background: linear-gradient(135deg, #1a0008 0%, #ff0040 50%, #1a0008 100%);
    border: 2px solid #ff0040;
    color: #ffffff;
    position: relative;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

.anonvip-vip-button-22::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 0, 64, 0.3) 50%, transparent 70%);
    animation: cyberpunkScan 2s infinite;
}

@keyframes cyberpunkScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Button Style 23: Galaxy - Thiên hà */
.anonvip-vip-button-23 {
    background: 
        radial-gradient(circle at 25% 25%, #ffffff 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, #ffffff 1px, transparent 1px),
        linear-gradient(135deg, #000033 0%, #4a0080 50%, #000033 100%);
    background-size: 20px 20px, 30px 30px, 100% 100%;
    border: 2px solid #8000ff;
    color: #ffffff;
    animation: galaxyTwinkle 4s infinite;
}

@keyframes galaxyTwinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Button Style 24: Quantum - Lượng tử */
.anonvip-vip-button-24 {
    background: linear-gradient(135deg, #200040 0%, #8000ff 50%, #200040 100%);
    border: 2px solid #8000ff;
    color: #ffffff;
    position: relative;
}

.anonvip-vip-button-24::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(128, 0, 255, 0.8) 0%, transparent 70%);
    animation: quantumExpand 3s infinite;
    transform: translate(-50%, -50%);
}

@keyframes quantumExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    50% {
        width: 200px;
        height: 200px;
        opacity: 0.5;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* Button Style 25: Ultra Black - Siêu đen */
.anonvip-vip-button-25 {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    border: 2px solid #333333;
    color: #ffffff;
    position: relative;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.9);
}

.anonvip-vip-button-25::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: ultraBlackShimmer 6s infinite;
}

@keyframes ultraBlackShimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(200%) rotate(45deg); }
}

/* Enhanced Auto Animations for Demo Buttons */
.anonvip-demo-vip-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: demoButtonFloat 4s ease-in-out infinite;
}

.anonvip-demo-vip-button:nth-child(1) { animation-delay: 0s; }
.anonvip-demo-vip-button:nth-child(2) { animation-delay: 1.3s; }
.anonvip-demo-vip-button:nth-child(3) { animation-delay: 2.6s; }

@keyframes demoButtonFloat {
    0%, 100% {
        transform: translateY(0px);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    }
}

.anonvip-demo-vip-button:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
    animation: demoButtonPulse 0.5s infinite alternate;
}

@keyframes demoButtonPulse {
    0% { box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6); }
    100% { box-shadow: 0 15px 40px rgba(255, 215, 0, 0.8); }
}

.anonvip-demo-vip-button i {
    color: #ffd700;
    animation: starRotate 3s linear infinite;
}

@keyframes starRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Auto Particle Effects */
.anonvip-vip-button-16,
.anonvip-vip-button-17,
.anonvip-vip-button-18,
.anonvip-vip-button-19,
.anonvip-vip-button-20,
.anonvip-vip-button-21,
.anonvip-vip-button-22,
.anonvip-vip-button-23,
.anonvip-vip-button-24,
.anonvip-vip-button-25 {
    position: relative;
    overflow: hidden;
}

/* Auto Icon Animations for New Styles */
.anonvip-vip-button-16 i { animation: neonFlicker 2s infinite; }
.anonvip-vip-button-17 i { animation: electricZap 1.5s infinite; }
.anonvip-vip-button-18 i { animation: plasmaBounce 2s infinite; }
.anonvip-vip-button-19 i { animation: laserPulse 1s infinite; }
.anonvip-vip-button-20 i { animation: matrixGlitch 3s infinite; }
.anonvip-vip-button-21 i { animation: hologramShift 2s infinite; }
.anonvip-vip-button-22 i { animation: cyberpunkGlow 1.5s infinite; }
.anonvip-vip-button-23 i { animation: galaxySpin 4s infinite; }
.anonvip-vip-button-24 i { animation: quantumPhase 2.5s infinite; }
.anonvip-vip-button-25 i { animation: ultraGlow 3s infinite; }

@keyframes neonFlicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px #00ffff; }
    50% { opacity: 0.7; text-shadow: 0 0 5px #00ffff; }
}

@keyframes electricZap {
    0%, 90%, 100% { transform: scale(1); }
    10% { transform: scale(1.3) rotate(10deg); }
}

@keyframes plasmaBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes laserPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.5); }
}

@keyframes matrixGlitch {
    0%, 90%, 100% { transform: translate(0); }
    10% { transform: translate(-1px, 1px); }
    20% { transform: translate(1px, -1px); }
}

@keyframes hologramShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

@keyframes cyberpunkGlow {
    0%, 100% { text-shadow: 0 0 5px #ff0040; }
    50% { text-shadow: 0 0 15px #ff0040, 0 0 25px #ff0040; }
}

@keyframes galaxySpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes quantumPhase {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes ultraGlow {
    0%, 100% { text-shadow: 0 0 5px #ffffff; }
    50% { text-shadow: 0 0 15px #ffffff, 0 0 25px #ffffff; }
}

/* Responsive Auto Animations */
@media (max-width: 768px) {
    .anonvip-demo-vip-button {
        padding: 10px 16px;
        font-size: 14px;
        animation-duration: 6s; /* Slower on mobile */
    }
    
    /* Reduce intensive animations on mobile */
    .anonvip-vip-button-16::before,
    .anonvip-vip-button-17::before,
    .anonvip-vip-button-19::after,
    .anonvip-vip-button-20::before,
    .anonvip-vip-button-22::before,
    .anonvip-vip-button-24::before,
    .anonvip-vip-button-25::before {
        display: none;
    }
}

.anonvip-server-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 0 0 0;
    gap: 8px;
}

.anonvip-server-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-right: 8px;
}

.anonvip-server-buttons::-webkit-scrollbar {
    display: none;
}

.anonvip-server-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    line-height: 1;
}

.anonvip-server-btn i {
    font-size: 10px;
    margin-bottom: 1px;
}

.anonvip-server-btn span {
    font-size: 11px;
    font-weight: 600;
}

.anonvip-server-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.anonvip-server-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border-color: rgba(255, 255, 255, 0.9);
}

.anonvip-iframe-container {
    position: relative;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.anonvip-iframe-item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.anonvip-iframe-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: transparent;
    border-radius: 12px;
    min-width: 100%;
    min-height: 100%;
    object-fit: fill;
}

/* Loading state */
.anonvip-iframe-item.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.anonvip-iframe-item.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: anonvip-spin 1s linear infinite;
}

@keyframes anonvip-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Force responsive iframe - Override any inline styles */
.anonvip-iframe-item iframe[width],
.anonvip-iframe-item iframe[height] {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: fill !important;
}

/* Auto-adjust aspect ratio based on content */
.anonvip-iframe-item.auto-aspect {
    padding-bottom: 0;
    height: auto;
    min-height: 400px;
}

.anonvip-iframe-item.auto-aspect iframe {
    position: relative;
    width: 100%;
    height: 400px;
    min-height: 400px;
}

/* Image fallback styles */
.anonvip-fallback-image {
    transition: opacity 0.3s ease;
}

.anonvip-fallback-image.anonvip-fallback-attempt {
    opacity: 0.8;
}

.anonvip-fallback-image.anonvip-fallback-failed {
    display: none !important;
}

/* Additional responsive fixes */
.anonvip-iframe-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: transparent;
}

.anonvip-iframe-item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

/* Ensure iframe fills container properly */
.anonvip-iframe-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: transparent;
    border-radius: 12px;
    min-width: 100%;
    min-height: 100%;
    object-fit: fill;
}

/* Responsive design */
@media (max-width: 768px) {
    .anonvip-iframe-player {
        margin: 15px 0;
        border-radius: 10px;
    }
    
    .anonvip-server-buttons {
        padding: 8px 0 0 0;
        gap: 6px;
    }
    
    .anonvip-server-label {
        font-size: 13px;
        margin-right: 6px;
    }
    
    .anonvip-vip-buttons {
        margin: 15px 0;
        padding: 15px;
        gap: 10px;
    }
    
    .anonvip-vip-button {
        padding: 12px 15px;
        font-size: 15px;
        gap: 10px;
    }
    
    .anonvip-vip-button i {
        font-size: 16px;
    }
    
    .anonvip-server-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .anonvip-server-btn i {
        font-size: 9px;
        margin-bottom: 1px;
    }
    
    .anonvip-server-btn span {
        font-size: 10px;
    }
    
    .anonvip-iframe-container {
        border-radius: 10px;
    }
    
    .anonvip-iframe-item {
        padding-bottom: 60%; /* Slightly taller for mobile */
    }
    
    .anonvip-iframe-item iframe {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .anonvip-iframe-player {
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .anonvip-server-buttons {
        padding: 6px 0 0 0;
        gap: 5px;
    }
    
    .anonvip-server-label {
        font-size: 12px;
        margin-right: 5px;
    }
    
    .anonvip-vip-buttons {
        margin: 10px 0;
        padding: 12px;
        gap: 8px;
    }
    
    .anonvip-vip-button {
        padding: 10px 12px;
        font-size: 14px;
        gap: 8px;
    }
    
    .anonvip-vip-button i {
        font-size: 15px;
    }
    
    .anonvip-server-btn {
        width: 26px;
        height: 26px;
        font-size: 9px;
    }
    
    .anonvip-server-btn i {
        font-size: 8px;
        margin-bottom: 1px;
    }
    
    .anonvip-server-btn span {
        font-size: 9px;
    }
    
    .anonvip-iframe-container {
        border-radius: 8px;
    }
    
    .anonvip-iframe-item {
        padding-bottom: 65%; /* Even taller for small mobile */
    }
    
    .anonvip-iframe-item iframe {
        border-radius: 8px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .anonvip-iframe-player {
        background: #1a1a1a;
    }
    
    .anonvip-server-label {
        color: #e0e0e0;
    }
    
    .anonvip-vip-buttons {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
        border-color: #222;
    }
    
    .anonvip-vip-button {
        background: linear-gradient(135deg, #000000 0%, #111111 50%, #000000 100%);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        border-color: #222;
    }
    
    .anonvip-vip-button:hover {
        background: linear-gradient(135deg, #111111 0%, #222222 50%, #111111 100%);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border-color: #333;
    }
    
    .anonvip-server-buttons {
        background: #2d2d2d;
        border-bottom-color: #444;
    }
    
    .anonvip-server-btn {
        background: #2d2d2d;
        border-right-color: #444;
        color: #ccc;
    }
    
    .anonvip-server-btn:hover {
        background: #3a3a3a;
        color: #fff;
    }
    
    .anonvip-server-btn.active {
        background: #007bff;
        color: #ffffff;
    }
}

/* Animation for switching servers */
.anonvip-iframe-item {
    transition: opacity 0.3s ease;
}

.anonvip-iframe-item[style*="display: none"] {
    opacity: 0;
}

.anonvip-iframe-item[style*="display: block"] {
    opacity: 1;
}

/* Custom scrollbar for server buttons */
.anonvip-server-buttons {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Focus states for accessibility */
.anonvip-server-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
}

/* Error state */
.anonvip-iframe-item.error {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #dc3545;
    font-size: 14px;
    text-align: center;
}

.anonvip-iframe-item.error::before {
    content: '⚠️ ';
    margin-right: 8px;
}

/* Single server styling (no tabs) - only hide if no backup button */
.anonvip-iframe-player.single-server .anonvip-server-buttons:not(:has(.anonvip-backup-server-btn)) {
    display: none;
}

/* Fallback for browsers that don't support :has() */
.anonvip-iframe-player.single-server .anonvip-server-buttons {
    display: flex; /* Always show, let JS handle single-server class properly */
}

.anonvip-iframe-player.single-server .anonvip-iframe-container {
    border-radius: 8px 8px 0 0;
} 

/* FIFU Hide Option - Ẩn ảnh đại diện FIFU trong bài viết đơn lẻ */
.single-post.anonvip-hide-fifu .fifu-img-url,
.single-post.anonvip-hide-fifu .fifu-featured-image,
.single-post.anonvip-hide-fifu .featured-image-from-url,
.single-post.anonvip-hide-fifu .wp-post-image[data-fifu],
.single-post.anonvip-hide-fifu .attachment-post-thumbnail[data-fifu],
.single-post.anonvip-hide-fifu img[data-fifu="1"],
.single-post.anonvip-hide-fifu .fifu-featured,
.single-post.anonvip-hide-fifu .post-thumbnail img[src*="fifu"],
.single-post.anonvip-hide-fifu .entry-header .post-thumbnail,
.single-post.anonvip-hide-fifu .entry-content .post-thumbnail,
.single-post.anonvip-hide-fifu .entry-image,
.single-post.anonvip-hide-fifu .featured-image {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Specific targeting for common theme structures */
.single-post.anonvip-hide-fifu .post-header .featured-image,
.single-post.anonvip-hide-fifu .post-content .featured-image,
.single-post.anonvip-hide-fifu .article-header .featured-image,
.single-post.anonvip-hide-fifu .article-content .featured-image,
.single-post.anonvip-hide-fifu .entry-thumbnail,
.single-post.anonvip-hide-fifu .post-thumbnail-container,
.single-post.anonvip-hide-fifu .featured-media,
.single-post.anonvip-hide-fifu .hero-image,
.single-post.anonvip-hide-fifu .banner-image {
    display: none !important;
}

/* AnonX Theme specific selectors */
.single-post.anonvip-hide-fifu .post-image,
.single-post.anonvip-hide-fifu .post-featured-image,
.single-post.anonvip-hide-fifu .anonx-featured-image,
.single-post.anonvip-hide-fifu .theme-featured-image {
    display: none !important;
}

/* Common WordPress theme selectors */
.single-post.anonvip-hide-fifu .twentytwentyone-featured-image,
.single-post.anonvip-hide-fifu .twentytwentytwo-featured-image,
.single-post.anonvip-hide-fifu .twentytwentythree-featured-image,
.single-post.anonvip-hide-fifu .twentytwentyfour-featured-image,
.single-post.anonvip-hide-fifu .twentytwentyfive-featured-image,
.single-post.anonvip-hide-fifu .wp-block-post-featured-image,
.single-post.anonvip-hide-fifu .wp-block-cover,
.single-post.anonvip-hide-fifu .has-post-thumbnail .post-thumbnail {
    display: none !important;
}

/* Elementor and page builders */
.single-post.anonvip-hide-fifu .elementor-widget-theme-post-featured-image,
.single-post.anonvip-hide-fifu .elementor-post-featured-image,
.single-post.anonvip-hide-fifu .bricks-post-featured-image,
.single-post.anonvip-hide-fifu .beaver-builder-featured-image {
    display: none !important;
}

/* Gutenberg blocks */
.single-post.anonvip-hide-fifu .wp-block-post-featured-image img,
.single-post.anonvip-hide-fifu .wp-block-cover__image-background,
.single-post.anonvip-hide-fifu .wp-block-media-text__media img {
    display: none !important;
}

/* Additional fallback selectors */
.single-post.anonvip-hide-fifu [class*="featured-image"],
.single-post.anonvip-hide-fifu [class*="post-image"],
.single-post.anonvip-hide-fifu [class*="post-thumbnail"],
.single-post.anonvip-hide-fifu [class*="entry-image"],
.single-post.anonvip-hide-fifu [class*="article-image"],
.single-post.anonvip-hide-fifu [class*="hero-image"],
.single-post.anonvip-hide-fifu [class*="banner-image"] {
    display: none !important;
}

/* Ensure the hiding only applies to single posts, not archives or home */
.home .anonvip-hide-fifu .post-thumbnail,
.archive .anonvip-hide-fifu .post-thumbnail,
.category .anonvip-hide-fifu .post-thumbnail,
.tag .anonvip-hide-fifu .post-thumbnail,
.search .anonvip-hide-fifu .post-thumbnail {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    position: static !important;
    left: auto !important;
}

/* Debug helper (remove in production) */
.single-post.anonvip-hide-fifu-debug::before {
    content: "🎭 FIFU Hide Active";
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

/* Smooth transition for hiding */
.single-post .fifu-img-url,
.single-post .fifu-featured-image,
.single-post .featured-image-from-url,
.single-post .post-thumbnail img,
.single-post .featured-image {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Custom animation for hiding effect */
@keyframes fifuFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

.single-post.anonvip-hide-fifu .fifu-img-url,
.single-post.anonvip-hide-fifu .fifu-featured-image,
.single-post.anonvip-hide-fifu .featured-image-from-url {
    animation: fifuFadeOut 0.3s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-post.anonvip-hide-fifu .mobile-featured-image,
    .single-post.anonvip-hide-fifu .mobile-post-thumbnail,
    .single-post.anonvip-hide-fifu .mobile-hero-image {
        display: none !important;
    }
}

/* High specificity override for stubborn themes */
body.single-post.anonvip-hide-fifu .site-content .post-thumbnail,
body.single-post.anonvip-hide-fifu .site-main .featured-image,
body.single-post.anonvip-hide-fifu .content-area .post-image,
body.single-post.anonvip-hide-fifu .main-content .entry-image {
    display: none !important;
    visibility: hidden !important;
}

/* Ensure spacing is maintained when image is hidden */
.single-post.anonvip-hide-fifu .post-content,
.single-post.anonvip-hide-fifu .entry-content,
.single-post.anonvip-hide-fifu .article-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove empty containers */
.single-post.anonvip-hide-fifu .post-thumbnail:empty,
.single-post.anonvip-hide-fifu .featured-image:empty,
.single-post.anonvip-hide-fifu .entry-image:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Accessibility: Ensure screen readers also skip hidden images */
.single-post.anonvip-hide-fifu .fifu-img-url,
.single-post.anonvip-hide-fifu .fifu-featured-image,
.single-post.anonvip-hide-fifu .featured-image-from-url {
    speak: none;
    aria-hidden: true;
}

/* Print styles - hide in print too */
@media print {
    .single-post.anonvip-hide-fifu .fifu-img-url,
    .single-post.anonvip-hide-fifu .fifu-featured-image,
    .single-post.anonvip-hide-fifu .featured-image-from-url,
    .single-post.anonvip-hide-fifu .post-thumbnail img {
        display: none !important;
    }
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    /* Disable animations for users who prefer reduced motion */
    .single-post.anonvip-hide-fifu .fifu-img-url,
    .single-post.anonvip-hide-fifu .fifu-featured-image,
    .single-post.anonvip-hide-fifu .featured-image-from-url {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== TRENDING KEYWORDS STYLES ===== */
/* Clean styling without theme conflicts */
div.anonvip-trending-keywords {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    max-width: 100%;
    box-sizing: border-box;
}

div.anonvip-trending-keywords .trending-title {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

div.anonvip-trending-keywords .trending-icon {
    color: #ff6b35;
    font-size: 20px;
}

div.anonvip-trending-keywords i.trending-icon {
    font-style: normal;
    font-weight: 900;
}

.anonvip-trending-homepage .trending-icon {
    margin-right: 10px;
    font-size: 18px;
    color: var(--primary-color, #ff6b6b);
}

div.anonvip-trending-keywords .trending-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

div.anonvip-trending-homepage .trending-keywords-list {
    gap: 10px;
    margin-top: 5px;
}

div.anonvip-trending-keywords .trending-keyword {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #555;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

div.anonvip-trending-homepage .trending-keyword {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 16px;
    background: #2a2a2a;
    border: 1px solid #555;
}

div.anonvip-trending-keywords .trending-keyword:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
    text-decoration: none;
}

div.anonvip-trending-homepage .trending-keyword:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

div.anonvip-trending-keywords .search-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 4px;
}

/* Position-specific styles */
.anonvip-trending-content {
    background: var(--bg-secondary, #1a1a1a);
    border-color: var(--border-light, #555);
}

.anonvip-trending-homepage {
    margin: 0 0 30px 0;
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border-primary, #333);
    border-radius: 12px;
    text-align: left;
    padding: 20px;
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important; /* Span across all grid columns */
    display: block !important;
    box-sizing: border-box;
    flex: 1 1 100% !important; /* For flexbox layouts */
    order: -1 !important; /* Show first in flex/grid */
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.anonvip-trending-homepage .trending-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    justify-content: flex-start;
    color: var(--text-primary, #ffffff);
    text-align: left;
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color, #ff6b6b);
}

.anonvip-trending-footer {
    background: var(--bg-primary, #0a0a0a);
    border-color: var(--primary-color, #ff6b6b);
    text-align: left;
    padding: 15px;
}

.anonvip-trending-footer .trending-title {
    color: var(--text-primary, #ffffff);
    text-align: left;
    justify-content: flex-start;
}

/* ===== COLOR SCHEMES ===== */

/* AnonX Theme Sync - Subtle and clean */
.anonvip-color-anonx_sync .trending-keyword:hover {
    background: rgba(var(--primary-color-rgb, 255, 107, 107), 0.1);
    border-color: var(--primary-color, #ff6b6b);
    color: var(--primary-color, #ff6b6b);
}

/* Other color schemes - simplified */
.anonvip-color-gradient_blue .trending-keyword:hover {
    border-color: #667eea;
    color: #667eea;
}

.anonvip-color-gradient_purple .trending-keyword:hover {
    border-color: #a8edea;
    color: #a8edea;
}

.anonvip-color-gradient_green .trending-keyword:hover {
    border-color: #56ab2f;
    color: #56ab2f;
}

.anonvip-color-gradient_orange .trending-keyword:hover {
    border-color: #f5576c;
    color: #f5576c;
}

.anonvip-color-dark_mode .trending-keyword:hover {
    border-color: #4fd1c7;
    color: #4fd1c7;
}

/* Responsive design */
@media (max-width: 768px) {
    .anonvip-trending-keywords {
        margin: 10px 0;
        padding: 12px;
    }
    
    .anonvip-trending-keywords .trending-title {
        font-size: 14px;
    }
    
    .anonvip-trending-keywords .trending-keyword {
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* Override common grid/flex systems */
.row .anonvip-trending-homepage,
.grid .anonvip-trending-homepage,
.d-flex .anonvip-trending-homepage,
.flex .anonvip-trending-homepage,
.posts-grid .anonvip-trending-homepage,
.post-grid .anonvip-trending-homepage {
    grid-column: 1 / -1 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure parent containers don't constrain width */
.anonvip-trending-homepage {
    /* Removed problematic margin calculations */
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Clean and minimal - no complex animations */

/* ===== BACKUP IFRAME PLAYER STYLES ===== */

/* Backup Server Button */
.anonvip-backup-server-btn {
    background: linear-gradient(135deg, #666, #555);
    color: #ccc;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    margin-left: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.anonvip-backup-server-btn:hover {
    background: linear-gradient(135deg, #777, #666);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.anonvip-backup-server-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.anonvip-backup-server-btn i {
    font-size: 11px;
}

/* Backup Modal Popup */
.anonvip-backup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.anonvip-backup-modal.active {
    display: flex;
}

.anonvip-backup-modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.anonvip-backup-modal-header {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.anonvip-backup-modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.anonvip-backup-modal-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.anonvip-backup-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.anonvip-backup-modal-body {
    padding: 0;
}

.anonvip-backup-iframe-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background: #000;
}

.anonvip-backup-iframe-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.anonvip-backup-iframe-item.active {
    display: block;
}

.anonvip-backup-iframe-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.anonvip-backup-server-buttons {
    background: #2d2d2d;
    padding: 16px 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #333;
}

.anonvip-backup-server-label {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    margin-right: 12px;
}

.anonvip-backup-server-btn-item {
    background: #444;
    color: #ccc;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.anonvip-backup-server-btn-item:hover {
    background: #555;
    color: #fff;
}

.anonvip-backup-server-btn-item.active {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 124, 186, 0.3);
}

.anonvip-backup-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.anonvip-backup-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .anonvip-backup-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .anonvip-backup-iframe-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .anonvip-backup-modal-header {
        padding: 12px 16px;
    }
    
    .anonvip-backup-modal-title {
        font-size: 16px;
    }
    
    .anonvip-backup-server-buttons {
        padding: 12px 16px;
        gap: 6px;
    }
    
    .anonvip-backup-server-btn-item {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .anonvip-backup-iframe-container {
        height: 55vh;
        min-height: 350px;
    }
} 