@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --primary: #ff2d55;
    --primary-hover: #e02548;
    --bg: #0a0a0a;
    --card-bg: #141414;
    --text: #ffffff;
    --text-muted: #999999;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header */
header {
    background: #000;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo span {
    background: linear-gradient(to right, #ff2d55, #ff6b87);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 80vh;
}

.section-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

/* Video Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 45, 85, 0.15);
    border-color: var(--primary);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
}

.play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
}

.info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



.card h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--text);
    font-weight: 500;
}

.card a {
    color: var(--text);
    text-decoration: none;
}

.card a:hover {
    color: var(--primary);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    padding: 20px;
}



.btn-nav {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #444;
}

.btn-nav:hover {
    background: #444;
    border-color: #555;
    color: #fff;
}

.btn-nav.primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-nav.primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}



/* Footer */
footer {
    background: #080808;
    margin-top: 80px;
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    margin: 0 15px;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    color: #555;
    font-size: 0.8rem;
}

/* Age Verification Overlay */
.age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 0, 10, 0.8), #000);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.age-modal {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalAppear 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.age-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: -1px;
}

.age-logo span {
    background: linear-gradient(to right, #ff2d55, #ff6b87);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.age-warning {
    color: #ff2d55;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.age-text {
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.age-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-direction: column;
}

.btn-enter {
    background: var(--primary);
    color: #fff;
    padding: 18px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 10px 20px -5px rgba(255, 45, 85, 0.3);
}

.btn-enter:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(255, 45, 85, 0.4);
}

.btn-exit {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 14px 40px;
    font-size: 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-exit:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    /* Extremely high to stay on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    width: 95%;
    max-width: 1000px;
    border-radius: 20px;
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
    animation: modalIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-body {
    padding: 0;
}

.modal-body h2 {
    padding: 15px 30px;
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 60px;
}

.modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
    overflow: hidden;
    /* CRITICAL for the crop below */
}

.modal-video-wrapper iframe {
    position: absolute;
    top: -70px;
    /* Aggressive crop to hide persistent headers */
    left: 0;
    width: 100%;
    height: calc(100% + 140px);
    /* 70px top, 70px bottom crop */
    transition: opacity 0.4s ease;
}

/* Loading Spinner */
.video-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .container {
        margin: 20px auto;
    }

    .pagination-container {
        flex-direction: column;
        gap: 10px;
    }

    .top-pagination {
        justify-content: center;
    }

    /* Mobile Modal Tweaks */
    .modal {
        padding: 0;
    }

    .modal-content {
        width: 100%;
        border-radius: 0;
        border: none;
        max-height: 100vh;
    }

    .modal-body h2 {
        font-size: 1rem;
        padding: 15px 50px 15px 15px;
    }

    .modal-video-wrapper {
        background: #000;
        width: 100%;
    }
}

/* Landscape Mode Support */
@media (max-width: 900px) and (orientation: landscape) {
    .modal-content {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .modal-body h2 {
        display: none;
        /* Hide title to focus on video in landscape */
    }

    .modal-video-wrapper {
        padding-bottom: 0;
        height: 100vh;
    }
}