* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    background-image: 
        radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.85) 75%, #000000 100%),
        url('../pic/bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #fff;
    font-family: 'Times New Roman', Times, serif;
    overflow-x: hidden;
}

#app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-shell {
    width: 100%;
    max-width: 1300px;
    margin: 40px auto; 
    display: flex;
    flex-direction: column;
    background: rgba(5, 5, 5, 0.5); 
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.95), inset 0 0 40px rgba(0, 0, 0, 0.8);
    padding: 40px; 
}

@keyframes cyber-pulse {
    0%   { color: #ff0000; text-shadow: 0 0 10px rgba(255, 0, 0, 0.6); }
    25%  { color: #707c8a; text-shadow: 0 0 15px rgba(112, 124, 138, 0.5); } 
    50%  { color: #ffffff; text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); } 
    75%  { color: #707c8a; text-shadow: 0 0 15px rgba(112, 124, 138, 0.5); } 
    100% { color: #ff0000; text-shadow: 0 0 10px rgba(255, 0, 0, 0.6); }
}

.main-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    margin-bottom: 25px;
}

.timer-wrap {
    width: 100%;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.timer-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.timer-box {
    font-family: Verdana, sans-serif; 
    font-size: 20px; 
    letter-spacing: 2px;
    color: #888;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 24px;
    text-transform: uppercase;
}

.timer-box.red {
    color: #b30000;
    border-color: rgba(179, 0, 0, 0.3);
}

.header-banner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 35%; 
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    background: #000;
    overflow: hidden;
}

.header-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; 
    display: block;
    filter: brightness(0.7) contrast(1.05); 
}

.logo {
    position: absolute;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: clamp(40px, 6.5vw, 85px); 
    font-weight: bold;
    letter-spacing: 16px;
    color: #ffffff;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.9), 0 0 25px rgba(0,0,0,0.5);
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 10;
}

.logo:hover {
    animation: cyber-pulse 4s infinite ease-in-out;
    cursor: default;
}

/* ==========================================================================
   РўР•Р РњРРќРђР›Р¬РќР«Р• РџРђРќР•Р›Р (FEED & NEWS)
   ========================================================================== */

.data-feed-wrapper, .data-news-wrapper {
    width: 100%;
    background: #050505;
    box-shadow: inset 0 0 15px #000, 0 5px 15px rgba(0,0,0,0.4);
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

/* Р’Р•Р РҐРќРЇРЇ Р‘Р•Р“РЈР©РђРЇ РЎРўР РћРљРђ (FEED) */
.data-feed-wrapper {
    margin-bottom: -5px; /* РџСЂРёР¶РёРјР°РµРј Рє РєР°СЂСѓСЃРµР»Рё */
    padding: 8px 0;
    border: 3px double #800000; /* РўРµРјРЅРѕ-РєСЂР°СЃРЅР°СЏ РґРІРѕР№РЅР°СЏ СЂР°РјРєР° */
}

.feed-track {
    display: inline-block;
    padding-left: 100%; /* РЎС‚Р°СЂС‚ Р·Р° РїСЂР°РІС‹Рј РєСЂР°РµРј СЌРєСЂР°РЅР° */
    color: #ff3333;
    font-family: 'Verdana', monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
    animation: scroll-left 50s linear infinite;
}

/* РќРР–РќРР™ РЎРљР РћР›Р›Р•Р  РќРћР’РћРЎРўР•Р™ (NEWS) */
.data-news-wrapper {
    margin-top: 5px; /* РџСЂРёР¶РёРјР°РµРј Рє РєР°СЂСѓСЃРµР»Рё */
    margin-bottom: 30px;
    padding: 10px 20px;
    border: 3px double #006600; /* РўРµРјРЅРѕ-Р·РµР»РµРЅР°СЏ РґРІРѕР№РЅР°СЏ СЂР°РјРєР° */
    /* Р РѕРІРЅРѕ 3 СЃС‚СЂРѕС‡РєРё: 1.6em РІС‹СЃРѕС‚Р° СЃС‚СЂРѕРєРё * 3 + padding */
    height: calc(1.6em * 3 + 20px); 
    display: flex;
    justify-content: center;
}

.news-track {
    position: absolute;
    width: 100%;
    color: #33ff33; /* РЎРІРµС‚Р»Рѕ-Р·РµР»РµРЅС‹Р№ РјРѕРЅРѕС…СЂРѕРј */
    font-family: 'Verdana', monospace;
    font-size: 15px;
    line-height: 1.6em;
    text-align: center;
    text-shadow: 0 0 8px rgba(51, 255, 51, 0.5);
    animation: scroll-up 15s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes scroll-up {
    0% { top: 100%; }
    100% { top: -100%; } /* РЈС…РѕРґРёС‚ РІРІРµСЂС… */
}

/* --- Р¦Р•РќРўР РђР›Р¬РќР«Р™ Р‘Р›РћРљ РљРћРќРўР•РќРўРђ --- */
#content-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
}

.modules-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(10, 10, 10, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 15px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
    gap: 15px;
}

.modules-wrap {
    flex: 1;
    overflow: hidden;
}

.modules-rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.modules-rail::-webkit-scrollbar { display: none; }

.module-slot {
    flex: 0 0 calc((100% - 40px) / 3);
    position: relative;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.module-slot:hover {
    transform: translateY(-3px);
    border-color: #ff0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.35);
}

.module-slot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.module-slot:hover img { 
    filter: brightness(1);
    transform: scale(1.03);
}

.module-title {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    margin: 0;
    font-size: 36px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 2px 2px 8px #000;
    transition: text-shadow 0.25s ease;
    z-index: 5;
    pointer-events: none;
}

.module-slot:hover .module-title {
    animation: cyber-pulse 4s infinite ease-in-out;
}

.empty-sector {
    background: repeating-linear-gradient(45deg, #0a0a0a, #0a0a0a 10px, #111 10px, #111 20px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-sector .module-title {
    bottom: auto;
    position: relative;
    font-size: 24px;
    color: #555;
    text-shadow: none;
    letter-spacing: 4px;
}

.nav-arrow {
    background: transparent;
    border: none;
    color: #900;
    font-size: 48px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
    flex-shrink: 0;
    padding: 0 10px;
}
.nav-arrow:hover {
    color: #ff0000;
    transform: scale(1.1);
}

.main-footer {
    width: 100%;
    background: rgba(5, 5, 5, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-shrink: 0;
    text-align: center;
    border-radius: 12px; 
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.copyright {
    font-family: Verdana, sans-serif; 
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}
.copyright p { margin: 0 0 4px 0; }
.copyright p:last-child { margin-bottom: 0; }

.counter-shell {
    background: #000;
    border-radius: 4px;
    padding: 2px;
}
.counter-shell img { display: block; height: 18px; }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(5px);
}

@media (max-width: 992px) {
    .module-slot { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 768px) {
    .module-slot { flex: 0 0 100%; }
    .nav-arrow { display: none; }
    .timer-box { font-size: 14px; }
    .site-shell { 
        margin: 15px auto; 
        padding: 20px 15px; 
        border-radius: 12px;
    } 
    .header-banner { padding-bottom: 45%; } 
}