/* Player Fan Content Sections - Dark Theme with Dark Background */
body .fan-content-container,
.test-container .fan-content-container {
    margin-top: 2rem;
    margin-bottom:2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #0a0a0a;
    padding: 2rem;
    border-radius: 12px;
    min-height: 100%;
}

.fan-content-container .fan-content-section {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    min-height: 120px;
    backdrop-filter: blur(10px);
}

.fan-content-container .fan-content-section .fan-content-header {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #0a0a0a;
    padding: 0 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.fan-content-container .fan-content-section .fan-content-body {
    min-height: 80px;
    position: relative;
}

.fan-content-container .fan-content-section .fan-content-main {
    width: 100%;
}

.fan-content-container .fan-content-section .fan-content-actions {
    display: none; /* Actions now handled by positioned buttons */
}

.fan-content-container .fan-content-section .fan-content-btn {
    position: absolute;
    bottom: -12px;
    right: 20px;
    background: rgba(0, 123, 255, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
    pointer-events: auto;
    user-select: none;
    min-width: 80px;
    text-align: center;
}

.fan-content-container .fan-content-section .fan-content-btn:hover {
    background: rgba(0, 123, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.fan-content-container .fan-content-section .fan-content-btn.secondary {
    background: rgba(108, 117, 125, 0.8);
}

.fan-content-container .fan-content-section .fan-content-btn.secondary:hover {
    background: rgba(108, 117, 125, 1);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* Pulsing Placeholder Animation - Highly Specific Selectors */
@keyframes fan-content-pulse-gradient {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.fan-content-container .fan-content-section .fan-content-body .fan-content-empty {
    position: relative;
    min-height: 80px;
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.01) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.01) 100%
    );
    background-size: 200% 100%;
    animation: fan-content-pulse-gradient 2s ease-in-out infinite;
    overflow: hidden;
}

.fan-content-container .fan-content-section .fan-content-body .fan-content-empty::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    animation: fan-content-shimmer 2s ease-in-out infinite;
}

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

/* Hide old text content in empty state - Highly Specific */
.fan-content-container .fan-content-empty-icon,
.fan-content-container .fan-content-empty-content,
.fan-content-container .fan-content-empty-title,
.fan-content-container .fan-content-empty-subtitle {
    display: none;
}

/* Show moderation text in pulsing box */
.fan-content-container .fan-content-section .fan-content-body .fan-content-empty .fan-content-empty-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    min-height:80px
}

/* Quick Facts Grid - Dark Theme */
.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-fact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.quick-fact-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.quick-fact-value {
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Bio Section - Dark Theme */
.fan-bio-content {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Images Grid */
.fan-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.fan-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fan-image-item:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
}

.fan-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fan-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 0.5rem 0.5rem;
    font-size: 0.8rem;
}

/* Videos Grid */
.fan-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.fan-video-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.fan-video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.fan-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fan-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.fan-video-play-btn:hover {
    background: rgba(0,0,0,0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

.fan-video-info {
    padding: 1rem;
}

.fan-video-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.fan-video-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* Moderation Badge */
.moderation-badge {
    display: inline-block;
    background: var(--warning-color, #ffc107);
    color: var(--warning-text, #212529);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Modal Styles */
.fan-content-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.fan-content-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.fan-content-modal-content {
    background: var(--bg-primary, #ffffff);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.fan-content-modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fan-content-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.fan-content-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted, #6c757d);
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.fan-content-modal-close:hover {
    background: var(--bg-secondary, #f8f9fa);
}

.fan-content-modal-body {
    padding: 1.5rem 1.5rem 0;
}

.fan-content-form-group {
    margin-bottom: 1.5rem;
}

.fan-content-form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #333);
}

.fan-content-form-input,
.fan-content-form-textarea,
.fan-content-form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.fan-content-form-input:focus,
.fan-content-form-textarea:focus,
.fan-content-form-select:focus {
    outline: none;
    border-color: var(--accent-color, #007bff);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.fan-content-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.fan-content-form-help {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    margin-top: 0.25rem;
}

.fan-content-preview {
    border: 1px solid var(--border-light, #f0f0f0);
    border-radius: 6px;
    padding: 1rem;
    background: var(--bg-secondary, #f8f9fa);
    margin-top: 1rem;
}

.fan-content-preview-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* YouTube Preview */
.youtube-preview {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.youtube-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-preview-error {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

/* Form Actions */
.fan-content-modal-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light, #f0f0f0);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.fan-content-submit-btn {
    background: var(--accent-color, #007bff);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fan-content-submit-btn:hover {
    background: var(--accent-hover, #0056b3);
}

.fan-content-submit-btn:disabled {
    background: var(--bg-tertiary, #6c757d);
    cursor: not-allowed;
}

.fan-content-cancel-btn {
    background: none;
    border: 1px solid var(--border-color, #e0e0e0);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fan-content-cancel-btn:hover {
    background: var(--bg-secondary, #f8f9fa);
}

.fan-content-disclaimer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light, #f0f0f0);
}

.fan-content-disclaimer small {
    display: block;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #333;
    text-align: left;
}

/* Image Gallery Lightbox */
.fan-image-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fan-image-gallery.show {
    display: block;
    opacity: 1;
}

.fan-gallery-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.fan-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.fan-gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    z-index: 2001;
}

.fan-gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.fan-gallery-prev,
.fan-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    z-index: 2001;
}

.fan-gallery-prev {
    left: 20px;
}

.fan-gallery-next {
    right: 20px;
}

.fan-gallery-prev:hover,
.fan-gallery-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.fan-gallery-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.fan-gallery-image {
    max-width: 100%;
    max-height: calc(100% - 80px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.fan-gallery-caption {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.fan-gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Gallery Styles */
@media (max-width: 768px) {
    .fan-gallery-container {
        padding: 1rem;
    }
    
    .fan-gallery-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .fan-gallery-prev,
    .fan-gallery-next {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .fan-gallery-prev {
        left: 10px;
    }
    
    .fan-gallery-next {
        right: 10px;
    }
    
    .fan-gallery-caption {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .fan-gallery-counter {
        bottom: 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .fan-gallery-prev,
    .fan-gallery-next {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .fan-gallery-image-container {
        max-width: 95%;
        max-height: 85%;
    }
    
    .fan-gallery-image {
        max-height: calc(100% - 60px);
    }
    
    .fan-gallery-caption {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Video Modal Styles */
.fan-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fan-video-modal.show {
    display: block;
    opacity: 1;
}

.fan-video-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.fan-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

.fan-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1rem;
    z-index: 2001;
}

.fan-video-modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.fan-video-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.fan-video-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.fan-video-player {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.fan-video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.fan-video-modal-description {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 800px;
    margin-top: 1rem;
    font-size: 1.1rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Video Modal Styles */
@media (max-width: 768px) {
    .fan-video-container {
        padding: 1rem;
    }
    
    .fan-video-modal-title {
        font-size: 1.2rem;
        padding: 0 0.5rem;
    }
    
    .fan-video-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .fan-video-player {
        max-width: 100%;
        border-radius: 8px;
    }
    
    .fan-video-modal-description {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .fan-video-container {
        padding: 0.5rem;
    }
    
    .fan-video-header {
        margin-bottom: 0.5rem;
    }
    
    .fan-video-modal-title {
        font-size: 1.1rem;
        padding: 0 0.25rem;
    }
    
    .fan-video-close {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .fan-video-player {
        border-radius: 6px;
    }
    
    .fan-video-modal-description {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        margin-top: 0.5rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .fan-content-section {
        padding: 1rem;
    }
    
    .fan-content-body {
        flex-direction: column;
        gap: 1rem;
    }
    
    .fan-content-actions {
        align-self: flex-start;
    }
    
    .quick-facts-grid {
        grid-template-columns: 1fr;
    }
    
    .fan-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .fan-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .fan-content-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .fan-content-modal-actions {
        flex-direction: column-reverse;
    }
    
    .fan-content-submit-btn,
    .fan-content-cancel-btn {
        width: 100%;
    }
    
    /* Mobile: Stack placeholder content vertically like before */
    .fan-content-empty {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .fan-content-empty-icon {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .fan-content-header {
        font-size: 0.85rem;
        padding: 0 8px;
        left: 16px;
    }
    
    .fan-content-empty {
        padding: 1.5rem 1rem;
    }
    
    .fan-content-empty-icon {
        font-size: 2rem;
    }
}