/* CSS Custom Property for mobile viewport height fallback */
:root {
    --vh: 1vh;
}

/* Main Layout */
.infinite-image-player {
    position: relative;
    width: 100%;
    height: 100vh; /* Fallback for older browsers */
    height: 100dvh; /* Dynamic viewport height for modern browsers */
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px; /* Reduced from 25px */
    padding-bottom: 20px; /* Reduced from 25px */
    gap: 12px; /* Reduced from 15px */
    overflow: hidden;
    /* Mobile safe area support */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-top: max(25px, env(safe-area-inset-top));
    padding-bottom: max(25px, env(safe-area-inset-bottom));
}

/* Ad Cover Section */
.ad-cover-section {
    max-width: 90vw;
    max-height: 15vh;
    width: fit-content;
    height: fit-content;
    border-radius: 8px;
    overflow: visible; /* Changed from hidden to visible to prevent clipping */
    background: transparent; /* Changed to transparent */
    cursor: pointer;
    display: block; /* Show by default */
    position: relative;
    opacity: 1; /* Start visible */
    transition: opacity 0.8s ease-in-out; /* Slower, smoother transition */
    z-index: 10; /* Ensure it appears above other elements */
    margin-bottom: 15px; /* Increased space below the ad cover */
}

.ad-cover-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: neon-border 10s ease-in-out infinite;
}

.ad-cover-section.show {
    opacity: 1;
    display: block;
}

.ad-cover-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff69b4, #87ceeb, #ff69b4, #87ceeb);
    border-radius: 10px;
    z-index: -1;
    animation: neon-color-transition 10s ease-in-out infinite;
}

@keyframes neon-border {
    0%, 100% {
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.3),
            0 0 2px rgba(255, 105, 180, 0.8),
            0 0 5px rgba(255, 105, 180, 0.6),
            0 0 8px rgba(255, 105, 180, 0.4),
            0 0 10px rgba(255, 105, 180, 0.2);
    }
    50% {
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.3),
            0 0 5px rgba(255, 105, 180, 1),
            0 0 10px rgba(255, 105, 180, 0.8),
            0 0 15px rgba(255, 105, 180, 0.6),
            0 0 20px rgba(255, 105, 180, 0.4);
    }
}

@keyframes neon-color-transition {
    0%, 100% {
        background: linear-gradient(45deg, #ff69b4, #87ceeb, #ff69b4, #87ceeb);
    }
    50% {
        background: linear-gradient(45deg, #87ceeb, #ff69b4, #87ceeb, #ff69b4);
    }
}

.ad-cover-image {
    max-width: 90vw;
    max-height: 15vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    animation: image-zoom 10s ease-in-out infinite; /* Changed to 10s to match border */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1; /* Ensure image is behind the neon border */
}

@keyframes image-zoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

.visit-studio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 0 8px 0 0;
    font-size: 11px;
    font-weight: 600;
    min-width: 100px;
}

/* Mobile Ad Cover Section */
.mobile-ad-cover-section {
    max-width: 90vw;
    max-height: 15vh;
    width: fit-content;
    height: fit-content;
    border-radius: 8px;
    overflow: visible;
    background: transparent;
    cursor: pointer;
    display: none; /* Hidden by default */
    position: relative;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
    z-index: 10;
    margin: 0 auto 15px auto;
}

/* Show mobile ad cover only on mobile/tablet */
@media (max-width: 1023px) {
    .mobile-ad-cover-section {
        display: block;
    }
}

/* Hide mobile ad cover on desktop */
@media (min-width: 1024px) {
    .mobile-ad-cover-section {
        display: none !important;
    }
}

/* Info Row */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90vw;
    max-width: 600px;
    gap: 20px;
}

/* Fill button in info row */
.info-row .fill-toggle {
    background: linear-gradient(135deg, #00bfff, #87ceeb);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.info-row .fill-toggle:hover {
    background: linear-gradient(135deg, #87ceeb, #00bfff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-row .fill-toggle .btn-text {
    font-size: 12px;
    font-weight: 600;
}

/* Slideshow Controls */
.slideshow-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Slideshow controls in navigation row */
.hero-navigation-row .slideshow-controls {
    flex: 1;
    justify-content: center;
    max-width: 200px;
    margin: 0 10px;
}

/* Desktop Navigation Row - Only visible on desktop */
.hero-navigation-row {
    display: none; /* Hidden by default */
}

/* Mobile Navigation Row - Only visible on mobile */
.navigation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90vw;
    max-width: 400px;
    gap: 8px;
}

/* Hide fill button in mobile navigation row */
.navigation-row .fill-toggle {
    display: none;
}

/* Mobile Navigation Button Styles */
.navigation-row .nav-btn {
    min-width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

.navigation-row .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.navigation-row .nav-btn i {
    font-size: 16px;
}

/* Mobile Navigation button colors */
.navigation-row .prev-btn, 
.navigation-row .next-btn {
    background: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navigation-row .prev-btn:hover, 
.navigation-row .next-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Fix mobile button stuck state */
.navigation-row .prev-btn:active, 
.navigation-row .next-btn:active {
    background: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(0);
}

.navigation-row .prev-btn i, 
.navigation-row .next-btn i {
    color: #ff69b4;
    font-size: 24px;
}

/* Mobile-specific button adjustments */
@media (max-width: 480px) {
    .navigation-row .prev-btn:hover, 
    .navigation-row .next-btn:hover {
        background: white;
        border-color: rgba(255, 255, 255, 0.2);
        transform: none;
    }
    
    .navigation-row .nav-btn:hover {
        transform: none;
    }
    
    .navigation-row .nav-btn {
        min-width: 40px;
        height: 40px;
    }
}

.slideshow-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slideshow-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.slideshow-toggle-btn.active {
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    border-color: rgba(255, 255, 255, 0.3);
}

.slideshow-icon {
    font-size: 14px;
}

.slideshow-text {
    font-weight: 500;
}

.slideshow-speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.speed-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #ff69b4;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.speed-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #ff69b4;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.speed-display {
    color: white;
    font-size: 11px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* Share Buttons Row */
.share-buttons-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

/* Library Button */
.library-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.library-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ff7b7b, #ff6b6b);
}

.library-btn.in-library {
    background: linear-gradient(135deg, #00b894, #00a085);
    border-color: #00b894;
}

.library-btn.in-library:hover {
    background: linear-gradient(135deg, #00c4a3, #00b894);
}

.library-icon {
    font-size: 14px;
}

.library-text {
    font-weight: 500;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.share-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.share-btn svg {
    width: 60%;
    height: 60%;
    fill: white;
}

/* Copy Link Button */
.copy-link {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.copy-link:hover {
    background: linear-gradient(135deg, #7c7df8, #6366f1);
}

/* X (Twitter) Button */
.x-twitter {
    background: #000;
}

.x-twitter:hover {
    background: #1a1a1a;
}

/* Reddit Button */
.reddit {
    background: #ff4500;
}

.reddit:hover {
    background: #ff5722;
}

/* Main Image Container */
.image-container {
    width: 90vw;
    max-width: 400px;
    height: 34vh; /* Reduced by 10% from 44vh */
    height: 34dvh; /* Reduced by 10% from 44dvh */
    max-height: 274px; /* Reduced by 10% from 354px */
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(255, 105, 180, 0.3);
    transform: translateZ(0);
    transition: all 0.3s ease;
    opacity: 1; /* Show immediately since we have placeholder */
    animation: fadeInContainer 0.5s ease-in-out forwards;
}

@keyframes fadeInContainer {
    to {
        opacity: 1;
    }
}

.image-container:hover {
    transform: translateZ(0) scale(1.02);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 30px rgba(255, 105, 180, 0.4);
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Cherry Blossom Loading Spinner */
.placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    z-index: 2; /* Higher z-index to be above main image initially */
    pointer-events: none; /* Don't interfere with clicks */
}

.placeholder-image::before {
    content: '🌸';
    font-size: 120px;
    animation: cherryBlossomSpin 2s linear infinite;
    filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.6));
}

.placeholder-image.fade-out {
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out !important;
}

@keyframes cherryBlossomSpin {
    0% {
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.6)) hue-rotate(0deg);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        filter: drop-shadow(0 0 30px rgba(255, 105, 180, 0.8)) hue-rotate(180deg);
    }
    100% {
        transform: rotate(360deg) scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.6)) hue-rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1) contrast(1) saturate(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.2) contrast(1.2) saturate(1.2);
    }
}

@keyframes adCoverPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    }
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, object-fit 0.3s ease;
    z-index: 1; /* Lower z-index so placeholder is on top initially */
}

.main-image[src] {
    opacity: 1;
}

.main-image.fill-mode {
    object-fit: cover;
}

/* Global Button Styles (shared between mobile and desktop) */
.nav-btn {
    min-width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-btn i {
    font-size: 16px;
}

/* Global button colors */
.prev-btn, .next-btn {
    background: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.prev-btn i, .next-btn i {
    color: #ff69b4;
    font-size: 24px;
}

.fill-toggle {
    background: linear-gradient(135deg, #00bfff, #87ceeb);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.fill-toggle:hover {
    background: linear-gradient(135deg, #87ceeb, #00bfff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fill-toggle .btn-text {
    font-size: 12px;
    font-weight: 600;
}

/* Like/Dislike buttons */
.like-btn, .dislike-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.like-btn:hover, .dislike-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.like-btn i, .dislike-btn i {
    font-size: 22px;
}

.like-btn.active {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.dislike-btn.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    width: 90vw;
    max-width: 400px;
}

.action-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.scene-btn {
    background: linear-gradient(135deg, #ff69b4, #e55a9f);
}

.studio-btn {
    background: linear-gradient(135deg, #4fd6ff, #3bc5e6);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .infinite-image-player {
        padding-top: 12px; /* Reduced from 15px */
        padding-bottom: 12px; /* Reduced from 15px */
        gap: 10px; /* Reduced from 12px */
        /* Ensure minimum usable height on mobile */
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .ad-cover-section {
        max-height: 12vh;
        max-height: 12dvh;
        /* Ensure the ad cover has enough space and isn't clipped */
        margin: 4px 0 12px 0; /* Increased margin to account for the neon border and spacing */
    }
    
    .mobile-ad-cover-section {
        max-height: 12vh;
        max-height: 12dvh;
        /* Ensure the mobile ad cover has enough space and isn't clipped */
        margin: 4px 0 12px 0; /* Increased margin to account for the neon border and spacing */
    }
    
    .image-container {
        height: 29vh; /* Reduced by 10% from 39vh */
        height: 29dvh; /* Reduced by 10% from 39vh */
        max-height: 240px; /* Reduced by 10% from 310px */
        /* Ensure image container doesn't get too small */
        min-height: 180px; /* Reduced by 10% from 221px */
    }
    
    .action-btn {
        height: 40px;
        font-size: 13px;
    }
}

/* Tablet Breakpoint */
@media (min-width: 768px) {
    .ad-cover-section {
        max-height: 20vh; /* Increase from 15vh for better tablet viewing */
    }
    
    .mobile-ad-cover-section {
        max-height: 20vh; /* Increase from 15vh for better tablet viewing */
    }
}

/* Desktop Breakpoint - COMPLETELY SEPARATE FROM MOBILE */
@media (min-width: 1024px) {
    /* Reset mobile layout completely for desktop */
    .infinite-image-player {
        gap: 0;
        padding-top: 20px;
        padding-bottom: 20px;
        align-items: stretch;
    }
    
    /* Force hide mobile elements on desktop */
    .info-row,
    .action-buttons,
    .navigation-row,
    .navigation-row-mobile {
        display: none;
    }
    
    /* Show desktop navigation row on desktop */
    .hero-navigation-row {
        display: flex !important;
    }
    
    /* Hero Section - Row 1 */
    .hero-section {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: 1fr 1fr auto;
        width: 100%;
        height: 25vh; /* Increased from 18vh to accommodate navigation row */
        max-width: 1200px;
        margin: 0 auto;
        gap: 20px;
        align-items: center;
        align-content: space-between;
    }
    
    .hero-left-column {
        display: flex;
        flex-direction: column;
        gap: 15px;
        justify-content: center;
        align-items: flex-end;
        padding-right: 20px;
    }
    
    .hero-right-column {
        display: flex;
        flex-direction: column;
        gap: 15px;
        justify-content: center;
        align-items: flex-start;
        padding-left: 20px;
    }
    
    .ad-cover-section {
        grid-column: 2;
        grid-row: 1 / span 2;
        max-height: 18vh;
        max-width: 60vw;
        margin: 0;
        align-self: center;
    }
    
    .ad-cover-image {
        max-height: 18vh;
        max-width: 60vw;
    }
    
    /* Hero Navigation Row - Row 2 */
    .hero-navigation-row {
        grid-column: 1 / span 3;
        grid-row: 3;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 70vw;
        margin: 15px auto;
        gap: 20px;
        padding: 10px 0;
    }
    
    .hero-navigation-row .slideshow-controls {
        flex: 0 0 auto;
        margin: 0;
        max-width: none;
    }
    
    /* Desktop Navigation Button Styles */
    .hero-navigation-row .nav-btn {
        min-width: 44px;
        height: 44px;
        border: none;
        border-radius: 8px;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        font-size: 14px;
    }
    
    .hero-navigation-row .nav-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    
    .hero-navigation-row .prev-btn,
    .hero-navigation-row .next-btn {
        background: white;
        border: 2px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .hero-navigation-row .prev-btn:hover,
    .hero-navigation-row .next-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .hero-navigation-row .prev-btn i,
    .hero-navigation-row .next-btn i {
        color: #ff69b4;
        font-size: 24px;
    }
    
    .hero-navigation-row .fill-toggle {
        background: linear-gradient(135deg, #00bfff, #87ceeb);
        border: 2px solid rgba(255, 255, 255, 0.2);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .hero-navigation-row .fill-toggle:hover {
        background: linear-gradient(135deg, #87ceeb, #00bfff);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .hero-navigation-row .fill-toggle .btn-text {
        font-size: 12px;
        font-weight: 600;
    }
    
    /* Image Container - Row 3 */
    .image-container {
        height: calc(100vh - 25vh - 120px - 40px - 40px); /* Updated for new hero height */
        max-height: none;
        width: 70vw;
        max-width: 1200px;
        margin: 0 auto 40px auto;
    }
    
    /* Style the repositioned buttons */
    .hero-action-btn {
        background: linear-gradient(135deg, #ff69b4, #e55a9f);
        border: none;
        border-radius: 12px;
        color: white;
        font-weight: 600;
        font-size: 14px;
        padding: 12px 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 140px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .hero-action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }
    
    .hero-action-btn.studio-btn {
        background: linear-gradient(135deg, #4fd6ff, #3bc5e6);
    }
    
    .hero-action-btn.scene-btn {
        background: linear-gradient(135deg, #ff69b4, #e55a9f);
    }
    
    /* Adjust share buttons for hero section */
    .hero-share-buttons {
        display: flex;
        gap: 8px;
        justify-content: center;
    }
    
    .hero-share-buttons .share-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Adjust library button for hero section */
    .hero-library-btn {
        background: linear-gradient(135deg, #ff6b6b, #ee5a24);
        border: none;
        border-radius: 12px;
        color: white;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        padding: 12px 20px;
        transition: all 0.3s ease;
        min-width: 140px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .hero-library-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }
    
    .hero-library-btn.in-library {
        background: linear-gradient(135deg, #00b894, #00a085);
    }
    
    /* Ensure proper spacing and alignment */
    .hero-section .ad-cover-wrapper {
        margin: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-section .visit-studio-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        background: linear-gradient(45deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
        color: white;
        padding: 8px 12px;
        border-radius: 0 8px 0 0;
        font-size: 12px;
        font-weight: 600;
        min-width: 120px;
    }
}

/* Mobile Layout - Ensure proper spacing and order */
@media (max-width: 1023px) {
    .infinite-image-player {
        gap: 15px;
    }
    
    /* Row 1: Action Buttons */
    .action-buttons {
        order: 1;
        margin-bottom: 0;
    }
    
    /* Row 2: Mobile Ad Cover */
    .mobile-ad-cover-section {
        order: 2;
        margin-bottom: 0;
    }
    
    /* Row 3: Controls Row */
    .info-row {
        order: 3;
        margin-bottom: 0;
    }
    
    /* Row 4: Image Container - Reduce spacing to social share row */
    .image-container {
        order: 4;
        margin-bottom: 8px; /* Reduced from default to bring closer to social row */
    }
    
    /* Row 5: Navigation Row */
    .navigation-row-mobile {
        order: 5;
        margin-bottom: 0;
    }
    
    /* Mobile Navigation Row Styling */
    .navigation-row-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 90vw;
        max-width: 400px;
        gap: 8px;
    }
    
    .navigation-row-mobile .slideshow-controls {
        flex: 1;
        justify-content: center;
        max-width: 200px;
        margin: 0 10px;
    }
}

/* Hide hero section on mobile/tablet */
@media (max-width: 1023px) {
    .hero-section {
        display: none;
    }
}

/* Fullscreen Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-modal.active {
    opacity: 1;
}

.fullscreen-image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Fullscreen Share Buttons */
.fullscreen-share-buttons {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1001;
}

.fullscreen-share-buttons .share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.fullscreen-share-buttons .share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.fullscreen-share-buttons .share-btn svg {
    width: 60%;
    height: 60%;
    fill: white;
}

.fullscreen-share-buttons .copy-link {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.fullscreen-share-buttons .copy-link:hover {
    background: linear-gradient(135deg, #7c7df8, #6366f1);
}

.fullscreen-share-buttons .x-twitter {
    background: #000;
}

.fullscreen-share-buttons .x-twitter:hover {
    background: #1a1a1a;
}

.fullscreen-share-buttons .reddit {
    background: #ff4500;
}

.fullscreen-share-buttons .reddit:hover {
    background: #ff5722;
} 