/* Theme Name: Leakporner.net
Author: Leakporner.net
Version: 3.4 - Optimized Single Related Grid
*/

/* --- 1. RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    background: #060606 !important; 
    color: #eee; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    line-height: 1.5; 
    overflow-x: hidden; 
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none !important; }

/* --- 2. HEADER --- */
.site-header {
    background: #000;
    border-bottom: 2px solid #ff0044;
    padding: 10px 0;
    position: relative; 
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    padding: 0 20px;
}
.logo { display: flex; align-items: center; font-weight: 900; font-size: 24px; color: #fff; text-transform: uppercase; flex-shrink: 0; }
.logo .play-icon { background: #ff0044; color: #fff; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; margin-right: 8px; }
.logo span:not(.play-icon) { color: #ff0044; }

.header-center { flex: 1; max-width: 600px; margin: 0 30px; }
.search-box form { display: flex; background: #151515; border: 1px solid #252525; border-radius: 50px; overflow: hidden; }
.search-box input[type="text"] { flex: 1; height: 40px; background: transparent; border: none; color: #fff; padding: 0 20px; outline: none; }
.search-box button { width: 50px; background: #252525; border: none; color: #fff; cursor: pointer; }

.header-right { display: flex; align-items: center; flex-shrink: 0; }
.main-menu ul { display: flex; gap: 20px; }
.main-menu ul li a { color: #bbb; font-weight: bold; font-size: 13px; text-transform: uppercase; }

.menu-toggle { display: none; }

/* --- 3. VIDEO GRID (Global Desktop) --- */
.video-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; 
    gap: 25px; 
    padding: 20px 0; 
    max-width: 1500px; 
    margin: 0 auto;
}
.video-card { transition: transform 0.3s ease; }
.video-card:hover { transform: translateY(-5px); }

.video-thumbnail { 
    width: 100%; 
    aspect-ratio: 16/9; 
    background: #000; 
    border-radius: 4px; 
    overflow: hidden; 
    position: relative; 
    border: 1px solid #1a1a1a; 
}
.video-thumbnail img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    image-rendering: -webkit-optimize-contrast; 
    image-rendering: crisp-edges;
}

.video-stats-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9) 80%); padding: 10px; display: flex; justify-content: space-between; z-index: 3; }
.duration-badge { position: absolute; top: 8px; right: 8px; background: rgba(255, 0, 68, 0.9); color: #fff; padding: 2px 6px; font-size: 11px; font-weight: bold; border-radius: 3px; z-index: 4; }

.video-title { 
    font-size: 14px; 
    font-weight: 600; 
    margin: 10px 0; 
    height: 40px; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
}
.video-title a { color: #ddd !important; text-decoration: none; }
.video-title a:hover { color: #ff0044 !important; }

/* --- 5. PLAYER SYSTEM --- */
.video-container { 
    width: 80%; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 20px 15px; 
}
.main-player-wrapper { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    max-height: 750px; 
    background: #000; 
    border-radius: 8px 8px 0 0; 
    border: 1px solid #222; 
    overflow: hidden; 
    position: relative;
}
.server-container { 
    background: #111; padding: 0px; display: flex; gap: 10px; border: 1px solid #222; border-top: none; flex-wrap: wrap; margin-bottom: 20px; border-radius: 0 0 8px 8px;
}
.server-btn { background: #222; color: #fff; border: 1px solid #333; padding: 10px 16px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.server-btn.active { background: #ff0044; border-color: #ff0044; }

/* --- 6. MOBIL (2 Coloane Fixe) --- */
@media (max-width: 800px) {
    .header-container { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 15px; }
    .header-left { grid-column: 1; display: flex; justify-content: flex-start; }
    .header-right { grid-column: 2; display: flex; justify-content: flex-end; }
    .header-center { grid-column: 1 / span 2; width: 100%; margin: 10px 0 5px 0; order: 3; }

    .logo { font-size: 20px; }
    .menu-toggle { display: flex !important; flex-direction: column; gap: 4px; padding: 8px; background: #151515; border: 1px solid #252525; border-radius: 4px; }
    .menu-toggle span { display: block; width: 22px; height: 2px; background: #ff0044; transition: 0.3s; }
    
    .main-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #060606; z-index: 999; border-bottom: 2px solid #ff0044; }
    .main-menu.open { display: block !important; }
    .main-menu ul { flex-direction: column; padding: 10px 0; }
    .main-menu ul li a { display: block; padding: 15px; border-bottom: 1px solid #111; text-align: center; }

    .video-container { width: 100% !important; padding: 0; }
    .main-player-wrapper { aspect-ratio: 4 / 3 !important; border-radius: 0; }
    
    /* Fortam 2 coloane pe mobil peste tot */
    .video-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important; 
        padding: 10px !important; 
    }
    .video-title { font-size: 13px; height: 36px; }
}

/* --- 7. PAGINATION & FOOTER --- */
.pagination { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding: 40px 20px; 
    gap: 8px; 
}

/* Stil general pentru toate link-urile din paginare */
.pagination .page-numbers { 
    background: #121212; 
    border: 1px solid #252525; 
    color: #fff !important; 
    padding: 10px 15px; 
    border-radius: 6px; 
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    transition: 0.3s ease;
}

/* Pagina curenta (numarul pe care esti) */
.pagination .current { 
    background: #ff0044a3 !important; 
    border-color: #ff0044a3; 
}

/* Butoanele BACK si NEXT - Le facem ROȘII peste tot */
.pagination .prev, 
.pagination .next {
    background: #ff0044a3 !important;
    border-color: #ff0044a3 !important;
    color: #fff !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 10px 25px; /* Mai late pe desktop */
}

.pagination .page-numbers:hover:not(.current) {
    border-color: #ff0044;
    background: #1a1a1a;
}

/* --- PAGINARE MOBIL (Full Width & Red Buttons) --- */
@media (max-width: 800px) {
    .pagination {
        display: grid;
        /* Structura: Back (stanga), Numar (mijloc), Next (dreapta) */
        grid-template-columns: 1fr auto 1fr; 
        gap: 10px;
        padding: 30px 10px;
        width: 100%;
    }

    /* Back Button Mobil */
    .pagination .prev { 
        grid-column: 1; 
        display: flex;
        justify-content: center;
        align-items: center;
        height: 45px; /* Mai inalte pentru degete */
        font-size: 14px;
    }

    /* Next Button Mobil */
    .pagination .next { 
        grid-column: 3; 
        display: flex;
        justify-content: center;
        align-items: center;
        height: 45px;
        font-size: 14px;
    }

    /* Numerele la mijloc */
    .pagination .page-numbers:not(.prev):not(.next) {
        grid-row: 1;
        grid-column: 2;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 45px;
    }
    
    /* Ascundem punctele de suspensie pe mobil sa nu strice grid-ul */
    .pagination .dots { display: none; }
}

.site-footer { background: #000; padding: 60px 20px; border-top: 2px solid #ff0044; text-align: center; margin-top: 40px; }
.random-btn { background: #0041ffc4 !important; color: #fff; padding: 8px 18px; border-radius: 50px; font-weight: 800; text-transform: uppercase; }

/* --- 8. FOOTER BRAND LOGO --- */
.footer-brand {
    margin-bottom: 20px;
}

.footer-brand a {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.footer-brand a span {
    color: #ff0044; /* Partea cu "Porner" devine roșie */
}

.footer-brand a:hover {
    opacity: 0.8;
}

/* Ajustare footer mobil */
@media (max-width: 800px) {
    .footer-brand a {
        font-size: 22px;
    }
}
