.fan-photos-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(6rem, 10vw, 10rem) 1.5rem clamp(3rem, 6vw, 6rem);
}

.fan-photos-page-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.fan-photos-page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
}

.fan-photos-page-header p {
    opacity: 0.5;
    font-size: 1.1rem;
    margin: 0;
}

/* Category Filter Tabs */
.fan-photos-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.fan-photos-filters .filter-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0.45rem 1rem;
    color: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.fan-photos-filters .filter-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.fan-photos-filters .filter-tab.active {
    background: var(--accent-red, #dc2626);
    color: white;
    border-color: var(--accent-red, #dc2626);
}

/* Photo Grid - Masonry-style */
.fan-photos-grid {
    columns: 3;
    column-gap: 1rem;
}

.fan-photos-grid .photo-card {
    break-inside: avoid;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.fan-photos-grid .photo-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.fan-photos-grid .photo-card img {
    width: 100%;
    display: block;
    aspect-ratio: auto;
}

.fan-photos-grid .photo-card-info {
    padding: 0.75rem 1rem;
}

.fan-photos-grid .photo-card-caption {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 0.4rem;
    opacity: 0.85;
}

.fan-photos-grid .photo-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.6;
}

.fan-photos-grid .photo-card-category {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--accent-red, #dc2626);
    text-transform: capitalize;
}

/* Lightbox */
.fan-photos-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-lightbox, 9999);
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.fan-photos-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.fan-photos-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
}

.fan-photos-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.fan-photos-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fan-photos-lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    max-width: 600px;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Upload Form Section */
.fan-photos-form-section {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.fan-photos-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red, #dc2626), rgba(220, 38, 38, 0.3));
}

.fan-photos-form-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.fan-photos-form {
    display: grid;
    gap: 1.25rem;
}

.fan-photos-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.fan-photos-form .form-group {
    display: flex;
    flex-direction: column;
}

.fan-photos-form .form-group label {
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.fan-photos-form .form-group input,
.fan-photos-form .form-group textarea,
.fan-photos-form .form-group select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    color: inherit;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fan-photos-form .form-group input:focus,
.fan-photos-form .form-group textarea:focus,
.fan-photos-form .form-group select:focus {
    outline: none;
    border-color: var(--accent-red, #dc2626);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.fan-photos-form .form-group input::placeholder,
.fan-photos-form .form-group textarea::placeholder {
    opacity: 0.5;
}

.fan-photos-form .form-group select option {
    background: #1a1a1a;
    color: #fff;
}

/* File drop zone */
.fan-photos-form .file-drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.fan-photos-form .file-drop-zone:hover,
.fan-photos-form .file-drop-zone.dragover {
    border-color: var(--accent-red, #dc2626);
    background: rgba(220, 38, 38, 0.04);
}

.fan-photos-form .file-drop-zone p {
    margin: 0;
    opacity: 0.5;
    font-size: 0.9rem;
}

.fan-photos-form .file-drop-zone .file-info {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.55;
}

.fan-photos-form .file-preview {
    margin-top: 0.75rem;
}

.fan-photos-form .file-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

.fan-photos-form .submit-btn {
    background: var(--accent-red, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    justify-self: start;
}

.fan-photos-form .submit-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.fan-photos-form .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.fan-photos-form .form-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.fan-photos-form .form-message.success {
    background: rgba(34, 197, 94, 0.08);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.fan-photos-form .form-message.error {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Pagination */
.fan-photos-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.fan-photos-pagination .page-btn {
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.fan-photos-pagination .page-btn:hover {
    background: var(--accent-red, #dc2626);
    color: white;
    border-color: var(--accent-red, #dc2626);
}

.fan-photos-pagination .page-current {
    background: var(--accent-red, #dc2626);
    color: white;
    border: 1px solid var(--accent-red, #dc2626);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.fan-photos-pagination .page-dots {
    opacity: 0.4;
    padding: 0 0.25rem;
}

/* Loading & Empty */
.fan-photos-loading,
.fan-photos-empty {
    text-align: center;
    padding: 3rem 1rem;
    opacity: 0.5;
}

.fan-photos-empty h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.fan-photos-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .fan-photos-grid {
        columns: 2;
    }
}

@media (max-width: 600px) {
    .fan-photos-grid {
        columns: 1;
    }
    .fan-photos-form .form-row {
        grid-template-columns: 1fr;
    }
}
