/* ============================================
   UPGRADED STYLE.CSS - FAKIFAP
   ============================================ */

/* --- General & Reset --- */
* { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

html, body { 
    margin: 0; 
    padding: 0; 
    background: #000; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    overflow: hidden; 
    height: 100%; 
    color: #fff;
}

::selection { 
    background-color: #b30000; 
    color: white; 
}

/* --- Age Gate Styles --- */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10001;
    text-align: center;
    color: white;
    padding: 20px;
}

.age-gate-content { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 20px;
    max-width: 400px;
}

.age-gate-content h2 {
    font-size: 24px;
    margin: 0;
}

.age-gate-content p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.age-gate-content button { 
    margin-top: 10px; 
    padding: 14px 32px; 
    font-size: 18px;
    font-weight: 600;
    background-color: #b30000; 
    color: #fff; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s ease;
}

.age-gate-content button:hover {
    background-color: #d60000;
    transform: scale(1.05);
}

.age-gate-content button:active {
    transform: scale(0.98);
}

.legal-links { 
    font-size: 14px; 
    color: #ccc; 
}

.legal-links a { 
    color: #fff; 
    text-decoration: underline;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #b30000;
}

/* --- Menu Button --- */
.menu-button { 
    position: fixed; 
    top: 15px; 
    right: 15px;
    z-index: 101; 
    color: white; 
    background: rgba(0,0,0,0.4); 
    backdrop-filter: blur(5px);
    border-radius: 50%; 
    border: none; 
    width: 50px; 
    height: 50px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 20px; 
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-button:hover {
    transform: scale(1.1);
    background: rgba(0,0,0,0.6);
}

.menu-button:active {
    transform: scale(0.95);
}

/* --- Sidebar Navigation --- */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

#sidebar.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-header {
    position: absolute;
    top: 0;
    right: 0;
    padding: 15px;
}

#sidebar .close-btn {
    font-size: 40px;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sidebar .close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nav-logo {
    max-width: 180px;
    margin-bottom: 40px;
}

.nav-content a {
    color: #ccc;
    text-decoration: none;
    font-size: 22px;
    padding: 15px 30px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-content a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

/* --- Feed Logo Watermark --- */
.feed-logo { 
    position: fixed; 
    top: 20px;
    left: 15px;
    z-index: 100; 
    opacity: 0.6; 
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.feed-logo img { 
    height: 60px; 
    width: auto; 
}

/* --- Main Feed Container --- */
.feed-container { 
    height: 100%; 
    overflow-y: scroll; 
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.feed-container::-webkit-scrollbar {
    display: none;
}

.feed-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Video Item Wrapper --- */
.item-wrapper { 
    scroll-snap-align: start; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    background: black; 
    position: relative; 
    padding: 0;
    transition: opacity 0.3s ease;
}

/* --- Media Container --- */
.media-container { 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background: black; 
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: opacity 0.3s ease;
}

/* Loading Spinner */
.media-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.media-container.loading::after {
    opacity: 1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Video Element --- */
video { 
    width: 100%; 
    height: 100%; 
    background: black; 
    border: 0; 
    cursor: pointer;
    will-change: transform;
    transform: translateZ(0);
}

video.is-vertical { 
    object-fit: cover; 
}

video.is-horizontal { 
    object-fit: contain; 
}

/* --- Button Stack --- */
.button-stack { 
    position: absolute; 
    bottom: 80px; 
    right: 10px; 
    z-index: 10; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 20px; 
}

/* --- Icon Buttons --- */
.icon-button { 
    background: rgba(255, 255, 255, 0.2); 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 42px; 
    height: 42px; 
    font-size: 18px; 
    cursor: pointer; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.icon-button:active {
    transform: scale(0.95);
}

/* --- Like Button --- */
.like-button.liked .fa-heart { 
    color: #ff3b3b; 
}

.like-button.liked {
    animation: likePopAnimation 0.4s ease;
}

@keyframes likePopAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- Like Count --- */
.like-count { 
    color: white; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); 
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.like-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
}

/* --- Progress Bar --- */
.progress-container { 
    width: 100%; 
    padding: 15px 10px; 
    position: absolute; 
    bottom: 0; 
    z-index: 5; 
}

.progress-track { 
    width: 100%; 
    height: 3px; 
    background-color: rgba(255, 255, 255, 0.4); 
    position: relative; 
    transition: height 0.2s ease;
    cursor: pointer;
    padding: 10px 0;
    margin: -10px 0;
}

.progress-filled { 
    height: 100%; 
    width: 0; 
    background-color: #fff; 
    position: absolute; 
    top: 0; 
    left: 0; 
    pointer-events: none;
    transition: width 0.1s linear;
}

.progress-thumb { 
    width: 14px; 
    height: 14px; 
    border-radius: 50%; 
    background-color: #fff; 
    position: absolute; 
    top: 50%; 
    left: 100%; 
    transform: translate(-50%, -50%) scale(0); 
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.progress-container:hover .progress-track { 
    height: 5px; 
}

.progress-container:hover .progress-thumb { 
    transform: translate(-50%, -50%) scale(1); 
}

/* --- Desktop Styles --- */
@media (min-width: 768px) {
    .media-container {
        width: auto;
        height: 100%;
        max-height: 95vh;
        aspect-ratio: 9 / 16;
        border-radius: 20px;
        border: 3px solid #222;
        box-shadow: 0 8px 32px rgba(0,0,0,0.8);
    }
    
    .progress-container {
        max-width: 480px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .feed-logo {
        top: 25%;
        transform: translateY(-50%);
    }
    
    .feed-logo img {
        height: 70px;
    }
}

/* --- Mobile Optimization --- */
@media (max-width: 767px) {
    .icon-button {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .button-stack {
        gap: 25px;
        bottom: 90px;
        right: 15px;
    }
    
    .menu-button {
        width: 48px;
        height: 48px;
    }
}

/* --- Footer Styles --- */
.site-footer { 
    padding: 60px 20px 40px; 
    background-color: #0a0a0a; 
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
    color: #888; 
    text-align: center; 
}

.seo-block { 
    max-width: 800px; 
    margin: 0 auto 40px auto; 
    text-align: left;
}

.seo-block h1 { 
    color: #eee; 
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.seo-block h2 {
    color: #ccc;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.seo-block p { 
    color: #999; 
    font-size: 16px; 
    line-height: 1.8;
    margin-bottom: 15px;
}

.seo-block strong {
    color: #fff;
    font-weight: 600;
}

.categories {
    color: #aaa;
    font-size: 15px;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.features-list li {
    color: #aaa;
    font-size: 16px;
    padding: 8px 0;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #222;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: #888;
    text-decoration: none;
    padding: 5px 15px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #b30000;
    text-decoration: underline;
}

.copyright { 
    font-size: 14px;
    color: #666;
    margin: 15px 0;
}

.disclaimer {
    font-size: 12px;
    color: #555;
    margin-top: 10px;
}

/* --- NoScript Warning --- */
.no-script-warning { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    background: black; 
    color: white; 
    text-align: center; 
    font-size: 1.2rem; 
    padding: 2rem;
    gap: 15px;
    z-index: 10000;
}

.no-script-warning p {
    margin: 0;
    line-height: 1.6;
}

/* --- Accessibility --- */
button:focus-visible,
a:focus-visible { 
    outline: 3px solid #b30000; 
    outline-offset: 3px; 
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Ad Container --- */
.eas6a97888e17 { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    z-index: 100; 
    text-align: center; 
    background-color: rgba(0, 0, 0, 0.5); 
}

/* --- Performance Optimizations --- */
.media-container,
.icon-button,
.progress-filled,
video {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* --- Smooth Transitions --- */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Print Styles (Hide video controls) --- */
@media print {
    .button-stack,
    .progress-container,
    .menu-button,
    .feed-logo {
        display: none !important;
    }
}