/* /themes/default/assets/css/models.css */
/* PROPERLY OPTIMIZED: Removed only CSS variables (duplicated in style.css) */

/* Model Page Header */
.model-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.model-title-section h1.model-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.model-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.model-quick-stats {
    display: none; /* Hide this section since info is on video */
}

.status-badge,
.viewers-badge,
.followers-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.status-online {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.status-offline {
    background: rgba(156, 163, 175, 0.2);
    color: var(--text-secondary);
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.viewers-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.followers-badge {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.model-actions {
    display: flex;
    gap: 1rem;
}

.back-to-home-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 900px; /* Match video player width */
    margin: 0 auto; /* Center like video */
    justify-content: center;
}

.back-to-home-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Video Section */
.video-section {
    margin-bottom: 2rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px; /* Increased from 600px */
    margin: 0 auto; /* Center the video */
    background: var(--bg-secondary);
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 3;
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* UPDATED: TikTok-style video handling with proper background */
#streamVideo {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 2 !important;
    transition: all 0.3s ease;
}

/* TikTok Portrait Video Styles */
#streamVideo.portrait-video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: auto !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    transform: translate(-50%, -50%) !important;
    z-index: 3 !important;
}

/* ENHANCED: Portrait Video Background for model page with CSS Variable support */
.video-player.portrait-mode {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.video-player.portrait-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image, inherit);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px) brightness(0.3) saturate(1.5);
    z-index: 1;
    transform: scale(1.2);
    object-fit: cover;
}

/* Portrait Video Indicator */
.video-orientation-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: linear-gradient(135deg, #9c88ff, #8c7ae6);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(156, 136, 255, 0.3);
    box-shadow: 0 2px 8px rgba(156, 136, 255, 0.4);
}

/* Clickable Video Overlay */
.clickable-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    cursor: pointer;
    background: transparent;
}

/* Custom Video Controls */
.custom-video-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.mute-toggle-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.mute-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.mute-toggle-btn:active {
    transform: scale(0.95);
}

/* Video Status - Individual positioning for equal margins */
.video-status {
    position: absolute;
    top: 0.5rem; /* Reduced from 1rem */
    left: 0;
    right: 0;
    z-index: 4;
    pointer-events: none; /* Allow clicks through container */
}

.video-status .status-live {
    position: absolute;
    top: 0;
    left: 0.7rem; /* Slightly bigger margin */
    pointer-events: auto;
}

.video-status .viewers-count {
    position: absolute;
    top: 0;
    right: 0.7rem; /* Slightly bigger margin */
    pointer-events: auto;
}

.status-live {
    background: rgba(0, 0, 0, 0.8); /* Same black background as viewer count */
    color: white;
    padding: 0.2rem 0.4rem; /* Slightly bigger padding */
    border-radius: 8px; /* Keep same radius */
    font-size: 0.7rem; /* Slightly bigger font */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem; /* Slightly bigger gap */
    backdrop-filter: blur(10px);
    height: auto;
    min-height: auto;
    line-height: 1;
}

.status-live .status-dot {
    width: 5px; /* Slightly bigger dot */
    height: 5px;
    background: #10b981; /* Green dot only */
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Offline Video */
.video-offline {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--bg-tertiary);
    overflow: hidden;
    cursor: pointer;
}

.offline-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

/* UPDATED: Darker overlay with better contrast */
.offline-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90%;
}

.offline-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.offline-overlay p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.next-online {
    color: var(--accent-secondary) !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* UPDATED: Offline countdown */
.offline-countdown {
    color: var(--success) !important;
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Chat Button */
.chat-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #dc2626 100%);
    color: white;
    border-radius: var(--card-radius);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    width: 100%;
    max-width: 900px; /* Match video player width */
    margin: 1rem auto; /* Center like video */
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    color: white;
    text-decoration: none;
}

.chat-button:active {
    transform: translateY(0);
}

/* Model Information Table */
.model-info-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.model-info-table h2 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-table-grid {
    display: grid;
    gap: 0;
}

.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: start;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row.full-width {
    grid-template-columns: 200px 1fr;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

/* Online/Offline Status Colors */
.status-online-now {
    color: var(--success) !important;
    font-weight: 600;
}

.status-offline {
    color: #f87171 !important;
    font-weight: 600;
}

/* Model Information Tags - with extra left/right padding */
.model-info-table .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.model-info-table .tag-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-height: 38px;
}

.model-info-table .tag-link::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.5s ease;
}

.model-info-table .tag-link:hover::before {
    left: 100%;
}

.model-info-table .tag-link:hover {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #dc2626 100%);
    color: white;
    border-color: var(--accent-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.model-info-table .tag-link:active {
    transform: translateY(0);
}

.country-flag-small {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Heatmap Section - Fixed layout issues */
.heatmap-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible;
}

.heatmap-section h2 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timezone-info {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.timezone-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.current-time {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    font-family: monospace;
}

/* ADDED: Next online prediction */
.next-online-info {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--success);
    text-align: center;
}

.next-online-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.next-online-time {
    font-size: 1rem;
    color: var(--success);
    font-weight: 600;
    font-family: monospace;
}

/* ADDED: Countdown display */
.next-online-countdown {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Heatmap Container - Fixed to prevent layout issues */
.heatmap-container {
    overflow: visible;
    width: 100%;
    display: block !important;
    visibility: visible !important;
}

/* Model Heatmap Table - Fixed column alignment */
.model-heatmap {
    width: 100%;
    border-collapse: separate;
    border-spacing: 1px;
    background: transparent;
    display: table !important;
    visibility: visible !important;
    table-layout: fixed;
}

/* Table Headers */
.day-header {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.4rem 0.3rem;
    font-size: 0.75rem;
    text-align: right;
    padding-right: 3px;
    border-radius: 3px;
    font-weight: 600;
    width: 80px;
    min-width: 80px;
}

.hour-header {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.4rem 0.2rem;
    font-size: 0.7rem;
    text-align: center;
    border-radius: 3px;
    font-weight: 600;
    width: calc((100% - 80px) / 24);
}

/* Day Labels - Updated with right align and padding */
.model-heatmap .day-label {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.4rem 0.3rem;
    padding-right: 3px;
    font-weight: 600;
    text-align: right;
    border-radius: 3px;
    width: 80px;
    min-width: 80px;
    white-space: nowrap;
    font-size: 0.8rem;
    vertical-align: middle;
}

/* Heatmap Cells - Fixed sizing and alignment */
.heatmap-cell {
    height: 22px;
    width: auto;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: table-cell !important;
    visibility: visible !important;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    text-align: center;
}

.heatmap-cell:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.current-hour-highlight {
    box-shadow: 0 0 0 2px var(--accent-primary) !important;
    z-index: 10 !important;
    position: relative;
    animation: pulse-glow 2s infinite;
}

/* ADDED: Next online hour highlight */
.next-online-highlight {
    box-shadow: 0 0 0 2px var(--success) !important;
    z-index: 10 !important;
    position: relative;
    animation: pulse-glow-green 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 2px var(--accent-primary); }
    50% { box-shadow: 0 0 0 2px var(--accent-primary), 0 0 10px var(--accent-primary); }
}

@keyframes pulse-glow-green {
    0%, 100% { box-shadow: 0 0 0 2px var(--success); }
    50% { box-shadow: 0 0 0 2px var(--success), 0 0 10px var(--success); }
}

/* Updated Heatmap Info */
.heatmap-info {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    min-height: 60px;
    text-align: center;
}

.heatmap-info-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.heatmap-info-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ADDED: Recent dates display */
.heatmap-recent-dates {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Default heatmap message */
.heatmap-default-message {
    color: var(--text-muted);
    font-style: italic;
}

/* No heatmap data styles */
.no-heatmap-data {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.no-data-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-data-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.no-data-description {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Models Section (Same as index.php) */
.models-section {
    margin-bottom: 3rem;
}

.models-section:not(:last-child) {
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

/* Section Headers - Unified styling */
.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--accent-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

/* Responsive adjustments for heatmap */
@media (max-width: 1200px) {
    .day-header,
    .model-heatmap .day-label {
        width: 60px;
        min-width: 60px;
        font-size: 0.75rem;
        padding: 0.3rem 0.2rem;
        padding-right: 3px;
    }
    
    .hour-header {
        font-size: 0.65rem;
        padding: 0.3rem 0.1rem;
        width: calc((100% - 60px) / 24);
    }
    
    .heatmap-cell {
        height: 20px;
    }
}

@media (max-width: 1024px) {
    /* FIXED: Keep label and value on same row for mobile */
    .info-row {
        grid-template-columns: 120px 1fr;
        gap: 1rem;
        padding: 0.75rem 0;
    }
    
    .info-label {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .model-page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .model-page-title {
        font-size: 1.6rem !important; /* Reduced from 2rem */
        margin-top: 0.3rem !important; /* Small space from header */
    }
    
    .model-quick-stats {
        flex-wrap: wrap;
        display: none;
    }
    
    /* FIXED: Mobile info rows - keep label left, value right */
    .info-row {
        grid-template-columns: 100px 1fr;
        gap: 0.75rem;
        padding: 0.75rem 0;
        text-align: left;
        align-items: center;
    }
    
    .info-label {
        font-size: 0.8rem;
        margin-bottom: 0;
        color: var(--text-secondary);
        justify-self: start;
    }
    
    .info-value {
        font-size: 0.875rem;
        color: var(--text-primary);
        margin-left: 0;
        justify-self: start;
    }
    
    /* Special handling for full-width rows like tags */
    .info-row.full-width {
        grid-template-columns: 100px 1fr;
    }
    
    /* Mobile heatmap adjustments */
    .heatmap-section {
        padding: 1.5rem;
    }
    
    .day-header,
    .model-heatmap .day-label {
        width: 50px;
        min-width: 50px;
        font-size: 0.7rem;
        padding: 0.25rem 0.1rem;
        padding-right: 3px;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    /* Mobile day abbreviations */
    .model-heatmap .day-label {
        font-size: 0.65rem;
    }
    
    .hour-header {
        font-size: 0.6rem;
        padding: 0.25rem 0.05rem;
        width: calc((100% - 50px) / 24);
    }
    
    .heatmap-cell {
        height: 18px;
    }
    
    .model-heatmap {
        border-spacing: 0.5px;
    }
    
    .heatmap-cell:hover {
        transform: scale(1.1);
    }
    
    /* MOBILE OPTIMIZATION: Remove all spacing by hiding model-basic-info completely */
    .model-basic-info {
        display: none !important; /* This removes the empty space under thumbnails */
    }
    
    .model-room-subject {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        margin-top: 0;
        min-height: 30px;
        max-height: 30px;
        height: 30px;
    }
    
    .model-room-subject:empty {
        min-height: 30px;
        max-height: 30px;
        height: 30px;
    }
    
    /* Hide desktop overlay on mobile */
    .model-overlay {
        display: none !important;
    }
    
    /* MOBILE OPTIMIZATION: Hide mobile info for cleaner look */
    .model-mobile-info {
        display: none !important; /* Changed from block to none */
    }
    
    /* MOBILE OPTIMIZATION: Hide gender/country for cleaner cards */
    .model-meta {
        display: none !important;
    }
    
    /* MOBILE OPTIMIZATION: Hide room subject (marquee text) */
    .model-room-subject {
        display: none !important;
    }
    
    /* MOBILE OPTIMIZATION: Move model name to thumbnail overlay */
    .model-name {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)) !important;
        color: white !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        padding: 1.5rem 0.75rem 0.75rem !important;
        margin: 0 !important;
        height: auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        z-index: 5 !important;
        line-height: 1.2 !important;
    }
    
    /* MOBILE OPTIMIZATION: Make video page status indicators smaller too */
    .video-status .viewers-count {
        padding: 0.2rem 0.4rem !important; /* Match LIVE button padding */
        font-size: 0.7rem !important; /* Match LIVE button font */
        border-radius: 8px !important; /* Match LIVE button radius */
        height: auto !important;
        min-height: auto !important;
        line-height: 1 !important; /* Fix line height */
        display: flex !important;
        align-items: center !important;
        gap: 0.2rem !important; /* Match LIVE button gap */
        backdrop-filter: blur(10px) !important;
        /* Remove positioning - let it use default video player positioning */
    }
    
    .video-status .viewers-count i {
        font-size: 0.6rem !important; /* Slightly bigger icon to match */
        line-height: 1 !important;
    }
    
    /* MOBILE OPTIMIZATION: Equal margins for both status indicators */
    .video-status {
        top: 0.4rem !important; /* Slightly bigger top margin */
    }
    
    .video-status .status-live {
        left: 0.4rem !important; /* Slightly bigger margin from left */
    }
    
    .video-status .viewers-count {
        right: 0.4rem !important; /* Slightly bigger margin from right */
    }
    
    /* MOBILE OPTIMIZATION: Override base viewers-count styles */
    .video-player .viewers-count,
    .video-wrapper .viewers-count {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.65rem !important;
        border-radius: 10px !important;
        line-height: 1 !important;
    }
    
    /* MOBILE OPTIMIZATION: Related model cards inherit all styles from style.css - no overrides needed */
    
    /* MOBILE OPTIMIZATION: Smaller back button */
    .back-to-home-btn {
        padding: 0.5rem 1rem !important; /* Smaller padding */
        font-size: 0.8rem !important; /* Smaller font */
        border-radius: 6px !important; /* Smaller radius */
    }
    
    /* MOBILE OPTIMIZATION: Reduce margins on info sections */
    .model-info-section {
        margin-bottom: 0.75rem !important; /* Reduced from 2rem */
        margin-left: 0.2rem !important; /* Minimal left margin */
        margin-right: 0.2rem !important; /* Minimal right margin */
    }
    
    .model-info-table {
        padding: 1rem !important; /* Reduced from 2rem */
    }
    
    .heatmap-section {
        padding: 1rem !important; /* Reduced padding */
        margin-bottom: 0.75rem !important; /* Reduced margin */
        margin-left: 0.2rem !important; /* Minimal left margin */
        margin-right: 0.2rem !important; /* Minimal right margin */
    }
    
    /* MOBILE OPTIMIZATION: Reduce spacing between sections */
    .video-section {
        margin-bottom: 0.75rem !important; /* Reduced from 2rem */
        margin-top: 0 !important; /* Remove top margin completely */
    }
    
    /* MOBILE OPTIMIZATION: Reduce header spacing on model page */
    .model-page-header {
        margin-bottom: 0.25rem !important; /* Further reduced bottom margin */
        padding-bottom: 0.25rem !important; /* Further reduced bottom padding */
    }
    
    /* MOBILE OPTIMIZATION: Reduce div spacing */
    .info-row {
        padding: 0.5rem 0 !important; /* Reduced padding between rows */
    }
}

@media (max-width: 480px) {
    .model-page-title {
        font-size: 1.4rem !important; /* Reduced from 1.75rem */
        margin-top: 0.3rem !important; /* Small space from header */
    }
    
    .chat-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .model-info-table {
        padding: 0.75rem !important; /* Even smaller for very small screens */
    }
    
    .heatmap-section {
        padding: 0.75rem !important; /* Even smaller for very small screens */
        margin-left: 0.15rem !important; /* Even more minimal */
        margin-right: 0.15rem !important; /* Even more minimal */
    }
    
    /* FIXED: Very mobile - keep label left, value right */
    .info-row {
        grid-template-columns: 80px 1fr;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .info-label {
        font-size: 0.75rem;
    }
    
    .info-value {
        font-size: 0.8rem;
    }
    
    /* Extra small mobile heatmap adjustments */
    .day-header,
    .model-heatmap .day-label {
        width: 45px;
        min-width: 45px;
        font-size: 0.6rem;
        padding: 0.2rem 0.05rem;
        padding-right: 3px;
    }
    
    .hour-header {
        font-size: 0.55rem;
        padding: 0.2rem 0.02rem;
        width: calc((100% - 45px) / 24);
    }
    
    .heatmap-cell {
        height: 16px;
    }
}

/* Additional fixes for scrollbar issues */
@media (max-width: 1024px) {
    .heatmap-container {
        padding-right: 0;
        margin-right: 0;
    }
    
    .model-heatmap {
        width: 100%;
        max-width: 100%;
    }
}

/* Ensure no horizontal scrollbars on any screen size */
.heatmap-section,
.heatmap-container,
.model-heatmap {
    box-sizing: border-box;
    max-width: 100%;
}

/* Hide scrollbars but keep functionality */
.heatmap-container::-webkit-scrollbar {
    display: none;
}

.heatmap-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   TAGS LINE LIMITS FOR MODEL PAGE
   ========================================================================== */

/* Default: Desktop 2 lines maximum */
.tags-limited {
    display: flex;
    flex-wrap: wrap;
    max-height: 5.4em; /* Increased for proper 2 lines */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* When expanded, show all tags */
.tags-limited.expanded {
    max-height: none;
}

/* Mobile: 1 line maximum */
@media (max-width: 768px) {
    .tags-limited {
        max-height: 3.1em; /* Increased for proper 1 line */
    }
}

/* Center the toggle button */
.tags-display {
    text-align: left;
}

.tags-toggle-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0.5rem auto 0 auto; /* Center the button */
    width: fit-content;
    align-items: center;
    gap: 0.3rem;
}

.tags-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.tags-toggle-btn i {
    font-size: 0.7rem;
}