@keyframes darkShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes darkPulseGlow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.6)); }
    50% { filter: drop-shadow(0 0 14px rgba(255, 30, 30, 0.9)); }
}

@keyframes skullFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-6deg); }
}

header { 
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 16px !important;
    background: rgba(10, 8, 12, 0.94) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1.5px solid rgba(255, 26, 26, 0.35) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 99990 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), inset 0 -1px 0 rgba(255, 26, 26, 0.2) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    gap: 6px !important;
}

.dark-feed-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.dark-feed-text {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    background: linear-gradient(120deg, #ff1a1a 0%, #ffffff 45%, #b30000 70%, #ff6666 100%) !important;
    background-size: 250% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: darkShimmer 4s ease infinite, darkPulseGlow 2.5s ease-in-out infinite !important;
    white-space: nowrap !important;
    will-change: background-position;
}

.dark-feed-tm {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 10px !important;
    color: #ff3333 !important;
    font-weight: 800 !important;
    vertical-align: super !important;
}

.dark-feed-icon {
    font-size: 20px !important;
    display: inline-block !important;
    animation: skullFloat 3s ease-in-out infinite !important;
    will-change: transform;
}

header nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.feed-sub-btn {
    background: linear-gradient(135deg, #ff1a1a 0%, #990000 100%) !important;
    border: 1px solid #ff3333 !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.feed-sub-btn:hover, .feed-sub-btn:active { 
    transform: scale(1.05) !important; 
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.8) !important; 
}

.container { 
    max-width: 100% !important; 
    width: 96% !important; 
    margin: 20px auto 0 auto; 
    padding: 0 10px;
    box-sizing: border-box;
}

.hitmag-premium-slider-block {
    position: relative;
    width: 100%;
    margin-bottom: 45px;
}

.hitmag-big-viewer-frame {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    border: 1px solid #222;
    border-bottom: none;
}

.hitmag-main-slide-item {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; z-index: 1;
    transition: opacity 0.4s ease-in-out;
    will-change: opacity;
}

.hitmag-main-slide-item.active-frame { opacity: 1; z-index: 2; }
.hitmag-main-slide-item img { width: 100%; height: 100%; object-fit: cover; }

.hitmag-slider-dark-meta {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(transparent, rgba(11,11,11,0.98));
    padding: 35px 25px;
    box-sizing: border-box;
    text-align: left;
}

.hitmag-slider-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(20,20,20,0.85);
    border: 1px solid #ff4d4d; color: #fff;
    width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; font-weight: bold; transition: background 0.2s, box-shadow 0.2s;
}

.hitmag-slider-arrow:hover { background: #ff4d4d; color: #000; box-shadow: 0 0 12px #ff4d4d; }
.hitmag-arrow-left { left: 25px; }
.hitmag-arrow-right { right: 25px; }

.hitmag-connected-thumbs-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    background: #141414;
    padding: 10px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #222;
    box-sizing: border-box;
}

.hitmag-click-thumb-node {
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s, border-color 0.2s;
}

.hitmag-click-thumb-node img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hitmag-click-thumb-node.active-thumb { opacity: 1; border-color: #ff4d4d; box-shadow: 0 0 8px rgba(255, 77, 77, 0.6); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 25px !important;
    width: 100% !important;
}

.news-grid .news-card:nth-child(6n+1) {
    grid-column: span 5 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 25px;
    background: rgba(20, 20, 20, 0.75);
    border: 1px solid #222;
    border-radius: 8px;
    padding: 20px;
    align-items: center;
}

.news-grid .news-card:nth-child(6n+1) .card-thumbnail-wrapper {
    width: 40% !important;
    height: 290px !important;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

.news-grid .news-card:nth-child(6n+1) .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.native-ads-wrapper {
    position: relative; 
    width: 320px; 
    height: 50px; 
    margin: 16px auto 0 auto; 
    background: rgba(20, 20, 20, 0.4); 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 4px; 
    box-sizing: content-box; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden;
}

.premium-attached-meta-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #777;
    font-family: monospace;
    width: 100%;
    background: rgba(10, 10, 10, 0.4);
    padding: 8px 10px;
    border-radius: 4px;
    box-sizing: border-box;
}

.card-title a { color: #fff; text-decoration: none; text-shadow: 0 0 6px rgba(57, 255, 20, 0.5); transition: color 0.2s ease, text-shadow 0.2s ease; }
.card-title a:hover { color: #39ff14; text-shadow: 0 0 12px #39ff14; }

footer {
    flex-shrink: 0; 
    text-align: center; 
    margin: 40px auto 15px auto !important;
    padding: 40px 20px; 
    max-width: 1100px; 
    width: 100%; 
    background-color: #0b0b0b !important; 
    border: 1px solid #222 !important; 
    border-radius: 8px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.5); 
    box-sizing: border-box;
}

.footer-social-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 22px !important;
    margin: 20px auto 30px auto !important;
    padding: 10px 0 !important;
    min-height: 55px !important;
    width: 100% !important;
}

.footer-social-link {
    display: inline-flex !important;
    transition: transform 0.3s ease-in-out !important;
}

.footer-social-wrapper .footer-social-link:nth-child(1),
.footer-social-wrapper .footer-social-link:nth-child(6) { transform: translateY(-12px) !important; }
.footer-social-wrapper .footer-social-link:nth-child(2),
.footer-social-wrapper .footer-social-link:nth-child(5) { transform: translateY(-5px) !important; }
.footer-social-wrapper .footer-social-link:nth-child(3),
.footer-social-wrapper .footer-social-link:nth-child(4) { transform: translateY(1px) !important; }

@media (max-width: 768px) {
    header {
        padding: 8px 10px !important;
        gap: 4px !important;
    }
    .dark-feed-brand { gap: 3px !important; }
    .dark-feed-text { 
        font-size: 15px !important; 
        letter-spacing: 0.8px !important; 
        white-space: nowrap !important; 
    }
    .dark-feed-tm { font-size: 8px !important; }
    .dark-feed-icon { font-size: 14px !important; }
    
    .feed-sub-btn { 
        font-size: 9.5px !important; 
        padding: 5px 9px !important; 
        border-radius: 16px !important; 
        gap: 4px !important; 
        white-space: nowrap !important; 
    }
    
    .hitmag-big-viewer-frame { height: 320px !important; }
    .hitmag-connected-thumbs-bar { display: none !important; }

    .news-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .news-grid .news-card:nth-child(6n+1) {
        grid-column: auto !important;
        display: block !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }
    .news-grid .news-card:nth-child(6n+1) .card-thumbnail-wrapper {
        width: 100% !important;
        height: 180px !important;
    }
    
    .news-grid .news-card:nth-child(3n+1) {
        grid-column: span 2 !important;
        background: rgba(20, 20, 20, 0.75);
        border: 1px solid #222;
        border-radius: 8px;
        padding: 15px;
        box-sizing: border-box;
    }
    .news-grid .news-card:nth-child(3n+1) .card-thumbnail-wrapper {
        height: 210px !important;
    }

    .container, footer {
        width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        border-radius: 12px !important;
    }

    #rpgWelcomeModal {
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
        bottom: 85px !important;
    }

    .btn-action-popular {
        bottom: 70px !important;
        right: 12px !important;
        padding: 6px 12px !important;
        font-size: 10px !important;
    }
}

@keyframes pulseGlowPopuler {
    0% { transform: scale(1); box-shadow: 0 4px 12px rgba(255,77,77,0.4); }
    50% { transform: scale(1.03); box-shadow: 0 0 18px rgba(255,77,77,0.7); }
    100% { transform: scale(1); box-shadow: 0 4px 12px rgba(255,77,77,0.4); }
}
.btn-populer-loop { animation: pulseGlowPopuler 2s infinite ease-in-out !important; }

@keyframes socialGlowLoop {
    0% { color: #888; }
    50% { color: #ff4d4d; }
    100% { color: #888; }
}
.footer-social-link { animation: socialGlowLoop 3s infinite ease-in-out; }

.horror-title-glow {
    font-family: 'Impact', 'Arial Black', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 1.5px !important;
    color: #ff3333 !important;
    text-shadow: 0 0 8px #ff0000, 0 0 20px #880000 !important;
    text-transform: uppercase !important;
}

.pagination-box { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 40px; margin-bottom: 20px; }
.page-btn { padding: 8px 15px; background: #141414; border: 1px solid #ff4d4d; color: #ff4d4d; border-radius: 4px; text-decoration: none; font-weight: bold; transition: background 0.2s, color 0.2s; font-size: 14px; }
.page-btn:hover { background: #ff4d4d; color: #fff; }
.page-btn.active { background: #ff4d4d; color: #fff; border-color: #ff4d4d; pointer-events: none; box-shadow: 0 0 10px rgba(255, 77, 77, 0.5); }

.laser-container { display: flex; align-items: center; width: 100%; margin: 0 auto 15px auto; position: relative; overflow: visible; }
.laser-beam { height: 3px; flex-grow: 1; background: #fff; border-radius: 4px 0 0 4px; box-shadow: 0 0 4px #fff, 0 0 10px #39ff14; animation: laserGlow 1.2s infinite alternate ease-in-out; }
.laser-tip { width: 0; height: 0; border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 8px solid #fff; filter: drop-shadow(0 0 4px #39ff14); }
.laser-sparks { position: absolute; right: 0; top: 50%; }
.laser-sparks::before, .laser-sparks::after { content: ''; position: absolute; width: 3px; height: 3px; background: #39ff14; border-radius: 50%; box-shadow: 0 0 4px #fff; }
.laser-sparks::before { animation: flySpark1 0.6s infinite linear; }
.laser-sparks::after { animation: flySpark2 0.8s infinite linear; }

@keyframes laserGlow { 0% { transform: scaleY(0.85); opacity: 0.8; } 100% { transform: scaleY(1.1); opacity: 1; } }
@keyframes flySpark1 { 0% { transform: translate(0, -2px) scale(1); opacity: 1; } 100% { transform: translate(14px, -10px) scale(0.2); opacity: 0; } }
@keyframes flySpark2 { 0% { transform: translate(0, 2px) scale(1); opacity: 1; } 100% { transform: translate(16px, 8px) scale(0.2); opacity: 0; } }

#subModalWindow {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; max-width: 480px;
    background: #0f0c12;
    border: 1.5px solid #ff1a1a;
    border-radius: 20px;
    padding: 24px;
    z-index: 999999;
    box-shadow: 0 20px 50px rgba(0,0,0,0.95), 0 0 20px rgba(255, 26, 26, 0.25);
    box-sizing: border-box;
}

.btn-action-popular {
    position: fixed !important;
    bottom: 75px !important;
    right: 15px !important;
    z-index: 99995 !important;
    background: rgba(10, 8, 12, 0.92) !important;
    border: 1.5px solid #00ffcc !important;
    color: #00ffcc !important;
    padding: 7px 14px !important;
    border-radius: 25px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.4), inset 0 0 8px rgba(0, 255, 204, 0.2) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.btn-action-popular:hover, .btn-action-popular:active {
    transform: scale(1.06) translateY(-2px) !important;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.8) !important;
    background: rgba(0, 255, 204, 0.2) !important;
}

.btn-action-popular .action-icon {
    color: #ff4d4d;
    font-size: 12px;
    display: inline-flex;
    animation: flamePulse 1.5s infinite alternate ease-in-out;
}

@keyframes flamePulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px #ff4d4d); }
    100% { transform: scale(1.2); filter: drop-shadow(0 0 8px #ff1a1a); }
}

@keyframes hackerFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-hacker { animation: hackerFadeIn 1.2s ease-out forwards; }
@keyframes slideUpRpg { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideInAlertToast { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    -webkit-font-smoothing: antialiased;
}

#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 10, 0.65);
    z-index: -1;
    pointer-events: none;
}