/* ============================================= */
/*           NEXUS PORN – 2025 FULL CSS          */
/* ============================================= */

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    font-family:'Inter',sans-serif;
    background:#0c0c0c;
    color:#ddd;
    line-height:1.5;
    overflow-x:hidden;
    min-height:100vh;
}
.container{
    max-width:1420px;
    margin:0 auto;
    padding:0 12px;
}

/* ================= HEADER ================= */
.header{
    background:#0c0c0c;
    padding:16px 0;
    position:sticky;
    top:0;
    z-index:999;
    border-bottom:1px solid #222;
    backdrop-filter:blur(10px);
}
.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:16px;
}
.logo h1{
    font-size:1.9rem;
    font-weight:800;
    letter-spacing:-0.5px;
}
.logo span{color:#e91e63}

/* Premium Search Bar – 2025 */
.premium-search{
    flex:1;
    max-width:680px;
    min-width:280px;
}
.search-wrapper{
    position:relative;
    display:flex;
    align-items:center;
    background:#1a1a1a;
    border-radius:50px;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(233,30,99,0.15);
    transition:all .3s ease;
}
.search-wrapper:focus-within{
    box-shadow:0 0 0 3px rgba(233,30,99,0.4);
    background:#222;
}
.search-icon{
    position:absolute;
    left:18px;
    color:#888;
    font-size:1.1rem;
    pointer-events:none;
    z-index:2;
}
#searchInput{
    width:100%;
    padding:14px 50px;
    background:transparent;
    border:none;
    color:white;
    font-size:1rem;
    outline:none;
}
#searchInput::placeholder{color:#888}
.search-submit{
    position:absolute;
    right:6px;
    width:44px;
    height:44px;
    background:#e91e63;
    border:none;
    border-radius:50%;
    color:white;
    font-size:1.1rem;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .2s;
}
.search-submit:hover{
    background:#c2185b;
    transform:scale(1.07);
}

/* Mobile Menu Toggle – ALWAYS VISIBLE ON MOBILE */
.mobile-menu-toggle{
    display:none;
    font-size:1.8rem;
    color:#e91e63;
    cursor:pointer;
    padding:8px;
    z-index:998;
}
@media (max-width:768px){
    .mobile-menu-toggle{
        display:flex !important;
        align-items:center;
        justify-content:center;
    }
}

/* ================= TOP NAV (Desktop) ================= */
.top-nav{
    background:#0a0a0a;
    padding:12px 0;
    overflow-x:auto;
    white-space:nowrap;
    border-bottom:1px solid #222;
    -webkit-overflow-scrolling:touch;
}
.top-nav::-webkit-scrollbar{display:none}
.top-nav a{
    margin:0 14px;
    color:#ccc;
    font-weight:500;
    font-size:0.95rem;
    padding:6px 0;
    display:inline-block;
    transition:color .2s;
}
.top-nav a:hover{color:#e91e63}
.top-nav a.active{
    color:#e91e63;
    position:relative;
}
.top-nav a.active::after{
    content:'';
    position:absolute;
    bottom:-12px;
    left:0;
    width:100%;
    height:3px;
    background:#e91e63;
    border-radius:3px;
}

/* ================= MOBILE CATEGORIES MENU ================= */
.mobile-categories{
    position:fixed;
    top:68px;
    left:0;
    width:100%;
    background:#0a0a0a;
    border-bottom:1px solid #222;
    z-index:997;
    max-height:calc(100vh - 68px);
    overflow-y:auto;
    transform:translateY(-100%);
    transition:transform .35s cubic-bezier(0.4,0,0.2,1);
    padding:10px 0;
    display:none;
}
.mobile-categories.active{
    transform:translateY(0);
    display:block;
}
.mobile-categories a{
    display:block;
    padding:16px 20px;
    color:#ddd;
    font-weight:500;
    font-size:1rem;
    border-bottom:1px solid #1a1a1a;
}
.mobile-categories a:hover,
.mobile-categories a.active{
    color:#e91e63;
    background:#111;
}

/* Hide desktop nav on mobile */
@media (max-width:768px){
    .top-nav{display:none !important}
}
@media (min-width:769px){
    .mobile-categories,
    .mobile-menu-toggle{display:none !important}
}

/* ================= MAIN CONTENT ================= */
.page-title{
    margin:32px 0 20px;
    display:flex;
    flex-direction:column;
    gap:6px;
}
.page-title h2{
    font-size:1.85rem;
    font-weight:700;
    color:#e91e63;
}
#videoCount{
    color:#888;
    font-size:0.95rem;
}

/* ================= VIDEO GRID ================= */
.video-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(145px,1fr));
    gap:14px;
    padding:16px 0;
}
@media(min-width:480px){.video-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}}
@media(min-width:768px){.video-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}}
@media(min-width:1024px){.video-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}}

.video-card{
    background:#111;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    transition:transform .25s,box-shadow .25s;
    box-shadow:0 2px 10px rgba(0,0,0,0.4);
}
.video-card:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 30px rgba(233,30,99,0.2);
}
.thumb{position:relative;overflow:hidden}
.thumb img{
    width:100%;
    height:auto;
    aspect-ratio:16/10;
    object-fit:cover;
    transition:transform .4s;
}
.video-card:hover .thumb img{transform:scale(1.05)}
.duration{
    position:absolute;
    bottom:6px;
    right:6px;
    background:rgba(0,0,0,0.85);
    padding:3px 7px;
    border-radius:4px;
    font-size:0.78rem;
    font-weight:600;
}
.play-icon{
    position:absolute;
    top:50%;left:50%;
    transform:translate(-50%,-50%);
    font-size:3.5rem;
    color:rgba(255,255,255,0.9);
    opacity:0;
    transition:opacity .25s;
}
.video-card:hover .play-icon{opacity:1}
.hd-badge{
    position:absolute;
    top:8px;left:8px;
    background:#e91e63;
    padding:3px 7px;
    border-radius:4px;
    font-size:0.7rem;
    font-weight:bold;
}
.info{padding:12px 10px}
.info h3{
    font-size:0.95rem;
    margin-bottom:6px;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}
.meta{font-size:0.82rem;color:#999}

/* ================= INLINE PLAYER (NEW 2025) ================= */
.inline-player-container{
    margin:32px 0;
    background:#111;
    padding:16px;
    border-radius:14px;
    box-shadow:0 6px 25px rgba(233,30,99,0.18);
}
#inlineVideo{
    width:100%;
    max-height:75vh;
    border-radius:12px;
    background:#000;
}
.playing-title{
    margin:18px 0 10px;
    font-size:1.55rem;
    color:#e91e63;
    text-align:center;
    font-weight:600;
}
.related-grid-inline{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(145px,1fr));
    gap:14px;
    margin-top:16px;
}
@media(min-width:640px){.related-grid-inline{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
@media(min-width:1024px){.related-grid-inline{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}}

/* ================= PAGINATION ================= */
.pagination{
    text-align:center;
    margin:40px 0;
}
.pagination button{
    background:#1a1a1a;
    border:none;
    padding:11px 18px;
    margin:4px;
    border-radius:8px;
    color:#ccc;
    cursor:pointer;
    font-size:0.95rem;
    transition:all .2s;
}
.pagination button:hover,
.pagination button.active{
    background:#e91e63;
    color:white;
}

/* ================= FOOTER ================= */
footer{
    background:#080808;
    padding:40px 0 20px;
    text-align:center;
    font-size:0.88rem;
    color:#666;
    border-top:1px solid #222;
    margin-top:60px;
}
footer a{
    color:#e91e63;
    margin:0 8px;
    text-decoration:underline;
}

/* ================= MOBILE FIXES ================= */
@media(max-width:480px){
    .logo h1{font-size:1.65rem}
    #searchInput{font-size:16px} /* prevents iOS zoom */
    .page-title h2{font-size:1.65rem}
}

/* Hide pagination when a video is playing */
#inlinePlayerSection ~ .pagination,
#inlinePlayerSection ~ .video-grid + .pagination {
    display: none !important;
}

/* BACK BUTTON – CLEAN 2025 STYLE */
.back-button {
    text-align: left;
    margin-bottom: 10px;
}
.back-btn {
    background: #1a1a1a;
    color: #e91e63;
    border: 2px solid #e91e63;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(233,30,99,0.2);
}
.back-btn:hover {
    background: #e91e63;
    color: white;
    transform: translateX(-5px);
}
.back-btn i {
    font-size: 1.2rem;
}