@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,
#top {
    background: #000;
    padding: 20px 0;
    border-bottom: none;
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    top: 0 !important;
    z-index: 10;
}

.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, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.ad-card {
    cursor: default !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: var(--card-bg) !important;
    border: none !important;
    /* Nuclear border removal */
    outline: none !important;
    box-shadow: none !important;
    aspect-ratio: 16/9;
    transition: none !important;
    /* Disable hover transitions */
}

.ad-card:hover {
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
    /* Disable hover movement */
    outline: none !important;
}

.ad-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.ad-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 250px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Force ad elements to hide borders */
.ad-container ins,
.ad-container iframe,
.ad-container [class*="eas"],
.ad-container [id*="eas"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

/* --- Targeted Ad & Content Suppression during Age Verification --- */
body.age-active header,
body.age-active main,
body.age-active footer,
body.age-active .modal,
body.age-active .desktop-only-ads,
body.age-active .mobile-only-ads,
body.age-active .desktop-leaderboard-row,
body.age-active ins,
body.age-active iframe:not(.age-overlay iframe),
body.age-active [class*="eas"],
body.age-active [id*="eas"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.age-overlay {
    z-index: 999999 !important;
}

/* --- Total UI Cleaning (Nuclear Strike on Blue Lines) --- */
* {
    text-decoration: none !important;
}

a,
h1,
h2,
h3,
h4,
h5,
h6,
span,
p,
a:hover,
a:focus,
a:active,
.card h3,
.card-link h3,
.footer-links a,
.logo,
.logo span {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.card-link h3,
.card h3,
h3 {
    color: var(--text) !important;
}

.card-link:hover h3,
.card h3:hover,
h3:hover {
    color: var(--primary) !important;
}

.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;
}

.card h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Ad Layout Fixes */
.desktop-leaderboard-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px auto;
    max-width: 1400px;
    padding: 0 20px;
}


.ad-card {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 200px !important;
    background: var(--card-bg) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.ad-card:hover {
    border: none !important;
    outline: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 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: #141414;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    border-radius: 28px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    position: relative;
}

@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: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: -2px;
}

.age-logo .red {
    color: #ff2d55;
}

.age-logo .grey {
    color: #e0e0e0;
}

.age-warning {
    color: #ff2d55;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.age-text {
    color: #d1d1d1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 45px;
    font-weight: 400;
}

.age-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-direction: column;
}

.btn-enter {
    background: #ff2d55;
    color: #fff;
    padding: 20px 40px;
    font-size: 1.2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: 1px;
}

.btn-enter:hover {
    background: #e02548;
}

.btn-exit {
    background: #1e1e1e;
    border: none;
    color: #999;
    padding: 14px 40px;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.2s;
    text-decoration: none;
    letter-spacing: 1px;
}

.btn-exit:hover {
    background: #252525;
    color: #fff;
}

/* 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);
    padding: 0;
    gap: 0;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #0b0b0b !important;
    width: 80vw !important;
    height: 90vh !important;
    max-width: 1240px;
    border-radius: 20px !important;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* Enable scrolling for recommendations */
    animation: modalIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    margin: auto !important;
    padding: 0 !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 1);
}



.modal-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-side-ad {
    width: 160px;
    height: 600px;
    flex-shrink: 0;
    overflow: hidden;
    background: transparent;
    border: none;
}

@media (min-width: 1300px) {
    .modal-side-ad {
        display: block;
    }
}

@media (max-width: 1299px) {
    .modal-side-ad {
        display: none;
    }
}



@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    opacity: 0.8;
}

.modal-controls {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 100000;
}



.close-modal:hover {
    opacity: 1;
    transform: scale(1.1);
    color: var(--primary);
}

.desktop-leaderboard-row {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    justify-content: center;
    align-items: center;
    gap: 0;
    /* No gap between ads */
    padding: 0;
    /* No padding */
    background: #000;
    border-bottom: 1px solid var(--border);
    width: 100%;
    overflow: hidden;
}

.leaderboard-item {
    flex: 0 0 auto;
    width: 728px;
    height: 90px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.desktop-leaderboard .ad-label,
.ad-label,
.modal-ad-label {
    display: none !important;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-body {
    padding: 0;
}

.modal-body h2 {
    display: block !important;
    padding: 12px 70px 12px 20px !important;
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

/* Modal Ads */
.modal-ad-container {
    padding: 20px;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-ad-label {
    display: none !important;
}

.modal-sticky-anchor.top {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20002;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.modal.active .modal-sticky-anchor {
    display: flex;
}


.modal-video-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
    background: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease;
}

/* Mobile Modal Overrides (Consolidated) */
@media (max-width: 768px) {
    .modal {
        padding: 5px;
        align-items: flex-start !important;
        padding-top: 50px !important;
    }

    .modal-content {
        width: 100% !important;
        height: auto !important;
        min-height: 95vh !important;
        border-radius: 20px !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
    }

    .modal-body h2 {
        padding: 10px 50px 10px 15px !important;
        font-size: 0.95rem !important;
    }

    .modal-controls {
        top: 2px !important;
        right: 15px !important;
    }

    .close-modal {
        font-size: 34px !important;
    }

    .modal-video-wrapper {
        aspect-ratio: 16 / 9 !important;
        flex: none !important;
    }

    .suggestion-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .modal-suggestions {
        padding: 15px !important;
    }
}

/* Recommended Section Inside Modal */
.modal-suggestions {
    padding: 30px;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-suggestions h3 {
    color: #ffcc00;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 25px;
    font-size: 1.4rem;
    border-left: 5px solid #ff2d55;
    padding-left: 15px;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.suggestion-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 204, 0, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.sugg-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #000;
}

.sugg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.suggestion-card:hover .sugg-thumb img {
    transform: scale(1.08);
}

.sugg-info {
    padding: 12px;
}

.sugg-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    /* Standard property for compatibility */
    overflow: hidden;
}

/* Provider-Specific Controls Visibility Fix & Branding Removal */
.provider-redtube iframe,
.provider-eporner iframe {
    top: -75px !important;
    height: calc(100% + 75px) !important;
    /* Fully hide provider header while keeping footer controls */
    width: 100% !important;
}

/* Loading Spinner */
.video-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffcc00;
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 204, 0, 0.5);
    min-width: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 204, 0, 0.1);
    border-left-color: #ffcc00;
    /* Yellow/Gold spinner */
    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;
    }

    .pagination-container {
        flex-direction: column;
        gap: 10px;
    }

    .top-pagination {
        justify-content: center;
    }

    /* --- Clean Mobile Modal --- */
    .modal-content {
        width: 100vw !important;
        height: 100vh !important;
        /* Force full screen height for centering */
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        /* Center content vertically */
    }

    .modal-body {
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
    }

    .modal-video-wrapper {
        width: 100% !important;
        height: 65vw !important;
        /* Increased height as requested */
        min-height: 240px;
    }

    .modal-body h2 {
        font-size: 1.1rem;
        padding: 15px 50px 15px 20px !important;
        background: #1a1a1a;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* 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;
    }
}

/* --- Multi-Format Ad Layouts --- */
.desktop-only-ads {
    display: block;
}

.mobile-only-ads {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only-ads {
        display: none !important;
    }

    .mobile-only-ads {
        display: block !important;
        position: relative;
        z-index: 25000 !important;
        /* Higher than modal 20000 */
    }
}

/* --- Nuclear Ad & Content Suppression during Age Verification --- */
body.age-active header,
body.age-active main,
body.age-active footer,
body.age-active .modal,
body.age-active .desktop-only-ads,
body.age-active .mobile-only-ads,
body.age-active .desktop-leaderboard-row,
body.age-active ins,
body.age-active [class*="eas"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Zero-Flash Logic for Verified Users */
body.is-verified {
    overflow: auto !important;
}

body.is-verified .age-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.is-verified header,
body.is-verified main,
body.is-verified footer,
body.is-verified .video-grid,
body.is-verified .header-banner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.is-verified .video-grid {
    display: grid !important;
}

.age-overlay {
    z-index: 999999 !important;
}

/* Sticky Banner Positioning Fixes (Zone 5858842) */
ins.eas6a97888e17 {
    z-index: 1000 !important;
}