* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --accent-color: #ff4081;
    --text-color: #424242;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: var(--light-gray);
    color: var(--text-color);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    position: relative;
}

header:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    letter-spacing: -1px;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    color: #757575;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery layout */
#fan-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.fan-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: white;
    height: 300px;
}

.fan-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

#fan-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.fan-container:hover img:not(.blurred img) {
    transform: scale(1.05);
}

/* Blur effect for spoiler protection */
.fan-container.blurred {
    position: relative;
    overflow: hidden;
}

.fan-container.blurred img {
    filter: blur(15px);
    transition: filter 0.5s ease;
}

.fan-container.blurred::before {
    content: "NSFW";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.fan-container:hover {
    cursor: pointer;
}

.fan-container.blurred:hover::before {
    background-color: rgba(0, 0, 0, 0.75);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.fan-container.blurred:hover img {
    filter: blur(10px);
}

/* Bobby B button styling */
#more-fans-btn {
    display: block;
    margin: 40px auto;
    padding: 15px 25px 15px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
    letter-spacing: 0.5px;
    overflow: hidden;
    /* Start with the button slightly raised for a nicer entrance animation */
    transform: translateY(20px);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bobby-b-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

#more-fans-btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 15px rgba(30, 136, 229, 0.4);
    transform: translateY(-3px);
}

#more-fans-btn:hover .bobby-b-img {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.8));
}

#more-fans-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(30, 136, 229, 0.3);
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin: 35px 0;
}

.load-more-btn {
    padding: 12px 30px;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.load-more-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    color: #757575;
    font-size: 0.95rem;
}

/* Fan overlay for the bombard effect */
.fan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow: hidden;
}

.spinning-fan {
    position: absolute;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    animation: spin linear infinite;
    z-index: 1001;
    filter: none !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

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

.button-container {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 1002;
}

.close-overlay {
    padding: 15px 35px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.4);
    letter-spacing: 0.5px;
}

.close-overlay:hover {
    background-color: #f50057;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 64, 129, 0.5);
}

.real-stop-button {
    padding: 8px 15px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.4);
    opacity: 0.7;
}

.real-stop-button:hover {
    opacity: 1;
    background-color: #43a047;
    transform: scale(1.05);
}

/* Shake animation for the overlay */
@keyframes shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    15% { transform: translate(-5px, -5px) rotate(-1deg); }
    30% { transform: translate(5px, -10px) rotate(1deg); }
    45% { transform: translate(-10px, 5px) rotate(-1.5deg); }
    60% { transform: translate(10px, 5px) rotate(1.5deg); }
    75% { transform: translate(-5px, -5px) rotate(-0.5deg); }
    90% { transform: translate(5px, -10px) rotate(0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Add responsive design */
@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    #fan-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .fan-container {
        height: 250px;
    }
    
    #fan-gallery img {
        height: 200px;
    }
    
    #more-fans-btn, .close-overlay, .real-stop-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
}

/* For extra small screens */
@media screen and (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    #fan-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .fan-container {
        height: 200px;
    }
    
    #fan-gallery img {
        height: 150px;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
        bottom: 20px;
        gap: 10px;
    }
}