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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.main-header {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.main-header h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.images-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.image-container {
    width: 48%;
    max-width: 600px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: opacity 0.3s ease;
    opacity: 1;
    display: flex;
    flex-direction: column;
}

.image-header {
    background-color: #34495e;
    padding: 8px 15px;
    color: white;
    text-align: center;
    flex-shrink: 0;
}

.image-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.image-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.caption-container {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #eee;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.caption {
    text-align: center;
    font-size: 16px;
    color: #34495e;
    line-height: 1.5;
    margin: 0;
}

.controls-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

#refreshBtn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

#refreshBtn:hover {
    background: linear-gradient(135deg, #2980b9, #1c6ea4);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.5);
}

#refreshBtn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.4);
}

#refreshBtn i {
    font-size: 16px;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #3498db;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    position: relative;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:checked {
    border-color: #2980b9;
    background-color: #2980b9;
}

.checkbox-container input[type="checkbox"]::before {
    content: '✓';
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.checkbox-container input[type="checkbox"]:focus {
    outline: max(2px, 0.15em) solid currentColor;
    outline-offset: max(2px, 0.15em);
}

.checkbox-container input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #959495;
    background-color: #f5f5f5;
}

.checkbox-container input[type="checkbox"]:disabled::before {
    color: #959495;
}

.checkbox-container label {
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.futo-credit {
    margin: 15px 0;
    text-align: center;
}

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

.creator-link, .futo-link {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.creator-link {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.futo-link {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.creator-link:hover, .futo-link:hover {
    transform: translateY(-3px);
}

.creator-link:hover {
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.4);
}

.futo-link:hover {
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

.link-divider {
    color: #7f8c8d;
    font-size: 14px;
    font-style: italic;
}

.dmca-footer {
    text-align: center;
    padding: 10px;
    color: #7f8c8d;
    font-size: 12px;
}

.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    background-color: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
}

.no-image-placeholder i {
    font-size: 4rem;
    color: #999;
    opacity: 0.7;
}

.elegant-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.elegant-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.placeholder-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.placeholder-icon {
    margin-bottom: 15px;
}

.placeholder-icon i {
    font-size: 3rem;
    color: #6c757d;
    opacity: 0.7;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(52, 152, 219, 0.2));
}

.placeholder-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin: 0 0 8px 0;
    font-family: 'Poppins', sans-serif;
}

.placeholder-text p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

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

@media (max-width: 768px) {
    .placeholder-icon i {
        font-size: 2.5rem;
    }
    
    .placeholder-text h4 {
        font-size: 1.1rem;
    }
    
    .placeholder-text p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .placeholder-icon i {
        font-size: 2rem;
    }
    
    .placeholder-text h4 {
        font-size: 1rem;
    }
    
    .placeholder-text p {
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .image-container {
        width: 45%;
    }
    .image-wrapper {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .image-container {
        width: 48%;
    }
    .image-wrapper {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .images-row {
        flex-direction: column;
        align-items: center;
    }
    .image-container {
        width: 90%;
        max-width: 500px;
        margin-bottom: 20px;
    }
    .image-wrapper {
        height: 300px;
    }
    .controls-container {
        flex-direction: column;
        gap: 15px;
    }
    .filter-options {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 1.5rem;
    }
    .image-wrapper {
        height: 250px;
    }
    .caption {
        font-size: 14px;
    }
    .dual-links {
        flex-direction: column;
        gap: 8px;
    }
    .creator-link, .futo-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    .filter-options {
        gap: 10px;
    }
    .checkbox-container {
        gap: 3px;
    }
    .checkbox-container label {
        font-size: 12px;
    }
}
