/*
Theme Name: Single Page LIVE Player
Description: A sophisticated live streaming simulation theme with comprehensive admin controls, customizable appearance, carousel gallery, advertisement system, and user management.
Version: 5.0
Author: LIVE Player Team
*/

/* Netflix/YouTube-inspired Modern Streaming Platform CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Netflix-inspired color palette */
    --primary-red: #e50914;
    --primary-dark: #141414;
    --secondary-dark: #1a1a1a;
    --tertiary-dark: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #999999;
    --accent-blue: #0073e6;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    
    /* Light theme colors */
    --bg-light: #ffffff;
    --card-light: #f8f9fa;
    --text-light: #212529;
    --border-light: #e0e0e0;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

.light-theme {
    --bg-color: var(--bg-light);
    --card-bg: var(--card-light);
    --text-color: var(--text-light);
    --text-secondary-color: #6c757d;
    --border-color: var(--border-light);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.dark-theme {
    --bg-color: var(--primary-dark);
    --card-bg: var(--secondary-dark);
    --text-color: var(--text-primary);
    --text-secondary-color: var(--text-secondary);
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

/* Modern Header/Navbar */
.header-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    text-align: center;
    min-height: 60px;
    max-height: 60px;
}

.header-title-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    justify-content: center;
    height: 50px;
    position: relative;
}

.site-logo {
    color: var(--primary-red);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
    min-width: 70px;
    flex-shrink: 0;
}

.logo-image {
    object-fit: contain;
    border-radius: var(--radius-sm);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.site-title {
    color: var(--primary-red);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: none;
    margin-left: var(--spacing-md);
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-weight: 400 !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-red);
    text-decoration: none;
}

.nav-link.bold-menu {
    font-weight: 700 !important;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
    border-color: var(--primary-red);
}

/* Sound Toggle */
.sound-toggle {
    position: absolute;
    top: 20px;
    right: 80px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sound-toggle:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
    border-color: var(--primary-red);
}

/* Fullscreen Toggle */
.fullscreen-toggle {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.fullscreen-toggle:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
    border-color: var(--primary-red);
}

/* Counters Section */
.counters-section {
    background: var(--bg-color);
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
}

.counters-container {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.counter-button {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(20, 20, 20, 0.8) 100%);
    border: 2px solid rgba(229, 9, 20, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    min-width: 200px;
    max-width: 300px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.counter-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.4);
    border-color: var(--primary-red);
}

.counter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.counter-button:hover::before {
    left: 100%;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.counter-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-red);
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
    position: relative;
    z-index: 1;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(229, 9, 20, 0.8), 0 0 40px rgba(229, 9, 20, 0.6);
    }
    100% {
        text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
    }
}

/* Video Section */
.video-section {
    position: relative;
    background: #000;
    margin: 0;
    padding: 0;
    border-bottom: 3px solid var(--primary-red);
}

.video-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-player, #liveVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.live-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-red);
    color: white;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.2);
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* Ad Overlay */
.ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.ad-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 80%;
    max-height: 80%;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-red);
    overflow: hidden;
}

/* Mobile TikTok layout ad content adjustments */
body.mobile-tiktok-layout .ad-content {
    max-width: 90%;
    max-height: 70%;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
}

.close-ad-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-ad-btn:hover {
    background: #b8070d;
    transform: scale(1.1);
}

.ad-timer {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: bold;
}

.ad-body {
    padding: var(--spacing-lg);
}

.ad-body h3 {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.ad-body p {
    color: var(--text-secondary-color);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.ad-body img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.ad-body video {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-md);
}

.ad-link {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: var(--spacing-md);
}

.ad-link:hover {
    background: #b8070d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
    color: white;
    text-decoration: none;
}

/* Description Section */
.description-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-color);
}

.description-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 16px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.description-text {
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.7;
    color: var(--text-secondary-color);
    font-weight: 400;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Carousel Section */
.carousel-section {
    padding: var(--spacing-xl) 0;
    background: var(--card-bg);
}

.carousel-container {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 16px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.carousel-inner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-red);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--tertiary-dark) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-content {
    text-align: center;
}

.footer-follow-title {
    margin-bottom: var(--spacing-lg);
}

.footer-follow-title h6 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-main-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.footer-contact h5 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    color: var(--primary-red);
    background: rgba(229, 9, 20, 0.2);
    text-decoration: none;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.footer-copyright .copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* Contact Slider */
.contact-slider {
    position: fixed;
    bottom: -100%;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: bottom 0.4s ease;
    z-index: 10000;
}

.contact-slider.show {
    bottom: 0;
    transform: translateY(0);
}

.contact-slider-header {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.contact-slider-header h5 {
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.close-contact-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

.close-contact-btn:hover {
    color: var(--primary-red);
}

.contact-slider-body {
    padding: var(--spacing-lg);
    max-width: 600px;
    margin: 0 auto;
}

.contact-slider-body .form-group {
    margin-bottom: var(--spacing-md);
}

.contact-slider-body input,
.contact-slider-body textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-slider-body input:focus,
.contact-slider-body textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
    outline: none;
}

.contact-slider-footer {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    margin-top: var(--spacing-lg);
}

/* Buttons */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
    background: #b8070d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.4);
    color: white;
    text-decoration: none;
}

/* Admin Access Button */
.admin-access-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.admin-access-button .btn {
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
        min-height: auto;
        max-height: none;
        padding: var(--spacing-md) 0;
    }
    
    .header-title-section {
        flex-direction: column;
        gap: var(--spacing-sm);
        height: auto;
    }
    
    .site-title {
        margin-left: 0;
        text-align: center;
    }
    
    .counter-container {
        flex-direction: column;
        gap: var(--spacing-md);
        width: 100%;
    }
    
    .counter {
        min-width: auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .video-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .description-text {
        font-size: 1rem;
    }
    
    .carousel-inner img {
        height: 250px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .contact-slider {
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .counter {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .counter-number {
        font-size: 1.5rem;
    }
    
    .counter-label {
        font-size: 0.7rem;
    }
}

/* Professional Carousel Controls - Match Flask App */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(229, 9, 20, 0.6);
    opacity: 0.9;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath d='m3.86 8.753 5.482 4.796c.646.566 1.658.106 1.658-.753V3.204a1 1 0 0 0-1.659-.753l-5.48 4.796a1 1 0 0 0 0 1.506z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath d='m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z'/%3e%3c/svg%3e");
}

/* Send Message Button - Restore original size, keep position under logo */
.footer-contact .btn-primary {
    width: auto !important;
    height: auto !important;
    border-radius: 5px !important;
    padding: 0.375rem 0.75rem !important;
    display: inline-block;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    white-space: nowrap;
}

/* Position Send Message button under logo */
.footer-main-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-contact {
    position: absolute;
    left: 0;
    bottom: 0;
}

.footer-social {
    margin-left: auto;
}

/* Video click to pause functionality */
.video-container {
    cursor: pointer;
}

.video-container video {
    cursor: pointer;
}

/* ===== MOBILE TIKTOK INTERFACE ===== */

/* Mobile TikTok Layout Base */
body.mobile-tiktok-layout {
    overflow: hidden;
    background: #000000;
    margin: 0;
    padding: 0;
}

.mobile-tiktok-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    display: flex;
    flex-direction: column;
    z-index: 10000;
}

/* Mobile Video Wrapper */
.mobile-video-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-video-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 9/16;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Video State: Normal */
.mobile-video-wrapper.mobile-normal .mobile-video-container {
    max-width: 500px;
    aspect-ratio: 9/16;
}

/* Video State: Fullscreen (Default - buttons overlay on video) */
.mobile-video-wrapper.mobile-fullscreen {
    padding: 0;
}

.mobile-video-wrapper.mobile-fullscreen .mobile-video-container {
    width: 100vw;
    height: 100vh;
    max-width: none;
    aspect-ratio: unset;
    border-radius: 0;
    box-shadow: none;
}

.mobile-video-wrapper.mobile-fullscreen .mobile-video-container video {
    border-radius: 0;
}

/* Video State: Small/Fit (smaller video to fit entire stream) */
.mobile-video-wrapper.mobile-small {
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.mobile-video-wrapper.mobile-small .mobile-video-container {
    width: 100%;
    max-width: 640px;
    height: 320px;
    aspect-ratio: 2/1;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

.mobile-video-wrapper.mobile-small .mobile-video-container video {
    border-radius: 12px;
    object-fit: contain;
}

/* Video State: Landscape */
.mobile-video-wrapper.mobile-landscape {
    transform: rotate(90deg);
    transform-origin: center center;
    width: 100vh;
    height: 100vw;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -50vw;
    margin-left: -50vh;
}

.mobile-video-wrapper.mobile-landscape .mobile-video-container {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: unset;
    border-radius: 0;
}

.mobile-video-wrapper.mobile-landscape .mobile-video-container video {
    border-radius: 0;
}

/* Hide contact form and other modals when in landscape mode */
.mobile-tiktok-layout .mobile-video-wrapper.mobile-landscape ~ * .contact-form-slider,
.mobile-tiktok-layout .mobile-video-wrapper.mobile-landscape ~ * #contactFormSlider,
.mobile-tiktok-layout.landscape-mode .contact-form-slider,
.mobile-tiktok-layout.landscape-mode #contactFormSlider {
    display: none !important;
}

/* Landscape mode positioning adjustments - move elements away from edges and 10px higher */
.mobile-tiktok-layout .mobile-video-wrapper.mobile-landscape .mobile-live-indicator,
.mobile-tiktok-layout.landscape-mode .mobile-live-indicator {
    top: 30px;
    left: 40px;
}

/* In landscape mode, position Info, Volume and Tap buttons next to the right side of LIVE sign */
.mobile-tiktok-layout .mobile-video-wrapper.mobile-landscape .mobile-info-controls,
.mobile-tiktok-layout.landscape-mode .mobile-info-controls {
    top: 30px;
    left: 140px;
    right: auto;
}

.mobile-tiktok-layout .mobile-video-wrapper.mobile-landscape .mobile-volume-controls,
.mobile-tiktok-layout.landscape-mode .mobile-volume-controls {
    top: 30px;
    left: 205px;
    right: auto;
}

.mobile-tiktok-layout .mobile-video-wrapper.mobile-landscape .mobile-video-controls,
.mobile-tiktok-layout.landscape-mode .mobile-video-controls {
    top: 30px;
    left: 270px;
    right: auto;
}

/* Hide More Info button in landscape mode */
.mobile-tiktok-layout .mobile-video-wrapper.mobile-landscape ~ .mobile-menu-toggle,
.mobile-tiktok-layout.landscape-mode .mobile-menu-toggle {
    display: none !important;
}

/* Small Screen Controls (Under 9 inches) - Only when TikTok interface is disabled */
@media screen and (max-width: 576px) and (max-height: 1024px) {
    /* Hide title on small screens when admin setting enabled */
    .small-screen-hide-title .header-text,
    .small-screen-hide-title h1,
    .small-screen-hide-title .site-title {
        display: none !important;
    }
    
    /* Hide logo on small screens when admin setting enabled */
    .small-screen-hide-logo .logo-container,
    .small-screen-hide-logo .site-logo {
        display: none !important;
    }
    
    /* Make logo bigger on small screens when admin setting enabled */
    .small-screen-bigger-logo .logo-container img,
    .small-screen-bigger-logo .site-logo {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
    }
}

/* Mobile Video Controls */
.mobile-video-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10002;
}

/* Mobile Volume Controls */
.mobile-volume-controls {
    position: absolute;
    top: 20px;
    right: 85px;
    z-index: 10002;
}

/* Mobile Info Controls */
.mobile-info-controls {
    position: absolute;
    top: 20px;
    right: 150px;
    z-index: 10002;
}

.mobile-control-btn {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-control-btn:hover {
    background: rgba(229, 9, 20, 0.8);
    border-color: rgba(229, 9, 20, 0.5);
    transform: scale(1.1);
}

.mobile-control-btn:active {
    transform: scale(0.95);
}

.mobile-volume-btn {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-volume-btn:hover {
    background: rgba(229, 9, 20, 0.8);
    border-color: rgba(229, 9, 20, 0.5);
    transform: scale(1.1);
}

.mobile-volume-btn:active {
    transform: scale(0.95);
}

.mobile-info-btn {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-info-btn:hover {
    background: rgba(229, 9, 20, 0.8);
    border-color: rgba(229, 9, 20, 0.5);
    transform: scale(1.1);
}

.mobile-info-btn:active {
    transform: scale(0.95);
}

/* Mobile Live Indicator */
.mobile-live-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(229, 9, 20, 0.95);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(229, 9, 20, 0.4);
    backdrop-filter: blur(10px);
    z-index: 10000;
}

.mobile-live-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: mobileLivePulse 2s ease-in-out infinite;
}

@keyframes mobileLivePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 10002;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    text-align: center;
}

.mobile-menu-btn {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    min-width: 140px;
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.mobile-menu-btn:active {
    transform: translateY(0);
}

.mobile-menu-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.mobile-menu-btn span {
    font-size: 0.85rem;
}

/* Mobile Slide-up Menu */
.mobile-slide-up-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10003;
    height: 100vh;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.mobile-slide-up-menu.show {
    transform: translateY(0);
}

.mobile-menu-header {
    padding: 20px 20px 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.mobile-menu-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 auto 15px;
    transition: background 0.3s ease;
}

.mobile-slide-up-menu.show .mobile-menu-handle {
    background: rgba(255, 255, 255, 0.5);
}

.mobile-menu-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px;
}

.mobile-menu-content {
    padding: 0 20px 40px;
    overflow-y: auto;
    height: calc(100vh - 120px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.mobile-menu-content::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Mobile Counters */
.mobile-counters {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: center;
}

.mobile-counter {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    flex: 1;
    max-width: 140px;
}

.mobile-counter-value {
    color: #e50914;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.mobile-counter-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Description */
.mobile-description {
    margin-bottom: 25px;
    text-align: center;
}

.mobile-description h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.mobile-description p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Mobile Carousel Preview */
.mobile-carousel-preview {
    margin-bottom: 25px;
}

.mobile-carousel-preview h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.mobile-carousel-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-carousel-thumbnails::-webkit-scrollbar {
    display: none;
}

.mobile-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-thumbnail:hover {
    border-color: #e50914;
    transform: scale(1.05);
}

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

/* Mobile Contact */
.mobile-contact {
    margin-bottom: 25px;
    text-align: center;
}

.mobile-contact-btn {
    background: linear-gradient(135deg, #e50914, #b50710);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-contact-btn:hover {
    background: linear-gradient(135deg, #f50a1a, #c5080f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.mobile-contact-btn:active {
    transform: translateY(0);
}

/* Mobile Social */
.mobile-social {
    text-align: center;
}

.mobile-social h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mobile-social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.mobile-social-link:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.4);
    color: #e50914;
    transform: scale(1.1);
}

.mobile-social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Mobile Landscape Orientation Specific */
@media screen and (orientation: landscape) {
    .mobile-video-wrapper.mobile-landscape .mobile-video-controls {
        bottom: 30px;
        right: 30px;
    }
    
    .mobile-video-wrapper.mobile-landscape .mobile-live-indicator {
        top: 30px;
        left: 30px;
    }
}

/* Mobile Portrait Specific Adjustments */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .mobile-video-container {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .mobile-menu-toggle {
        padding: 15px;
    }
    
    .mobile-menu-btn {
        min-width: 120px;
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* Hide elements when mobile TikTok layout is active */
body.mobile-tiktok-layout .theme-toggle,
body.mobile-tiktok-layout .sound-toggle,
body.mobile-tiktok-layout .fullscreen-toggle {
    display: none !important;
}

/* Ensure ad overlay works properly in mobile TikTok layout */
body.mobile-tiktok-layout .ad-overlay {
    position: fixed !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.9) !important;
}

/* Ensure contact slider works with mobile layout */
body.mobile-tiktok-layout .contact-slider {
    z-index: 10004;
}

/* Animation for mobile interface activation */
@keyframes mobileInterfaceSlideIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-tiktok-container {
    animation: mobileInterfaceSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile Loading State */
.mobile-tiktok-container.loading {
    background: #000000;
}

.mobile-tiktok-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(229, 9, 20, 0.2);
    border-top: 3px solid #e50914;
    border-radius: 50%;
    animation: mobileSpinner 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10010;
}

@keyframes mobileSpinner {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile Image Popup */
.mobile-image-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-image-popup.show {
    opacity: 1;
    visibility: visible;
}

.mobile-image-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mobile-image-popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.mobile-image-popup.show .mobile-image-popup-content {
    transform: scale(1);
}

.mobile-image-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s ease;
}

.mobile-image-close:hover {
    background: rgba(229, 9, 20, 0.8);
    transform: scale(1.1);
}

.mobile-popup-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: calc(90vh - 40px);
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
