:root {
    --primary: #d4af37;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #9e9e9e;
    --border: #2a2a2a;
    --hover: #e8c547;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Site Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.header-left {
    flex-shrink: 0;
}

.header-profile {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.05rem;
}

.header-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
}

.header-right {
    flex-shrink: 0;
}

.bluesky-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bluesky-link:hover {
    color: var(--hover);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.online-count {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.online-count p {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin: 0;
}

.online-count .count-number {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    display: inline-block;
    margin: 0 0.2rem;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.model-card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    padding-bottom: 10px;
}

/* --- THUMBNAIL AREA --- */
.thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
}

/* blurred fill background */
.thumb-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.2s;
}

.thumb-bg-visible {
    opacity: 1;
}

/* main thumbnail image */
.thumb-img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    inset: 0;
    object-fit: cover;
}

/* wide images: fill height, crop left/right minimally */
.thumb-img.thumb-wide {
    height: 100%;
    width: auto;
}

/* for vertical/square — center horizontally */
.thumb-img.thumb-vertical {
    width: auto;
    height: 100%;
}

/* --- HD BADGE --- */
.hd-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #1e1e1e;
    color: #d4a038;
    font-weight: bold;
    padding: 2px 5px;
    font-size: 11px;
    border-radius: 4px;
    opacity: 0.75;
}

/* mobile tighten */
@media (max-width: 480px) {
    .hd-badge {
        padding: 1px 4px;
        font-size: 10px;
        top: 3px;
        right: 3px;
    }
}

/* --- INFO AREA --- */
.model-info {
    background: #1c1c1c;
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    color: #fff;
    font-size: 14px;
}

.model-name {
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eye-icon {
    margin-right: 4px;
}

/* --- CTA BUTTON --- */
.cta-btn {
    display: block;
    margin: 10px auto 0;
    padding: 8px 14px;
    background: transparent;
    border: 2px solid #d4a038;
    color: #d4a038;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cta-dot {
    font-size: 14px;
    margin-right: 4px;
    color: #d4a038;
}


.cta-mini {
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border: 1px solid var(--border);
    margin: auto;
}

.close {
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 300;
}

.close:hover {
    color: var(--text-primary);
}

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

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.urgency-text {
    color: var(--primary-gold);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 4rem;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    color: var(--primary-black);
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.5);
    animation: ctaButtonPulse 1.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes ctaButtonPulse {
    0%, 100% { 
        box-shadow: 0 10px 35px rgba(212, 175, 55, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 15px 50px rgba(212, 175, 55, 0.8);
        transform: scale(1.03);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.8);
    background: linear-gradient(135deg, var(--hover-gold) 0%, var(--primary-gold) 100%);
    animation: none;
}

.cta-icon {
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem 2rem;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

.footer p {
    color: var(--text-secondary);
    margin: 0.3rem 0;
    font-size: 0.85rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Adblock Warning */
.adblock-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffc107;
    font-size: 0.9rem;
}

.warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
}

.warning-close {
    background: none;
    border: none;
    color: #ffc107;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.warning-close:hover {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .adblock-warning {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }
    
    .warning-icon {
        font-size: 1rem;
    }
    
    .warning-close {
        font-size: 1.3rem;
        width: 25px;
        height: 25px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-profile {
        width: 50px;
        height: 50px;
    }
    
    .header-title {
        font-size: 1.2rem;
    }
    
    .header-tagline {
        font-size: 0.8rem;
    }
    
    .bluesky-link {
        font-size: 0.85rem;
    }
    
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .modal {
        padding: 0;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 0.95rem;
    }
    
    .modal-body {
        padding: 0.5rem;
    }
    
    .iframe-container {
        border-radius: 0;
        margin-bottom: 0.5rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .close {
        font-size: 1.5rem;
    }
    
    .online-count {
        padding: 0.5rem 0.75rem;
    }
    
    .online-count p {
        font-size: 0.8rem;
    }
    
    .online-count .count-number {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.75rem 1rem;
    }
    
    .header-profile {
        width: 45px;
        height: 45px;
    }
    
    .header-title {
        font-size: 1.1rem;
    }
    
    .header-tagline {
        font-size: 0.75rem;
    }
    
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .container {
        padding: 1rem 0.5rem;
    }
    
    .modal-header {
        padding: 0.6rem 0.75rem;
    }
    
    .modal-header h2 {
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 0.4rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .cta-platform-icon {
        width: 20px;
        height: 20px;
    }
    
    .close {
        font-size: 1.4rem;
    }
}
