* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: #0a0a0a;
    color: #00cc00;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 204, 0, 0.02) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.95) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.95) 25%, transparent 25%);
    background-size: 100px 100px, 20px 20px, 20px 20px;
}

/* Top Section */
.top-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    box-shadow: 0 2px 10px rgba(204, 0, 0, 0.3);
}

.warroom-title {
    background: linear-gradient(135deg, #000000 0%, #1a0000 100%);
    border: 2px solid #333333;
    border-right: none;
    display: flex;
    align-items: center;
    min-width: 240px;
    padding: 0;
    position: relative;
    gap: 15px;
}

.warroom-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 0, 0, 0.1) 50%, transparent 70%);
    animation: scanner 3s linear infinite;
}

@keyframes scanner {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}



.crypto-icon {
    height: 14px;
    width: 14px;
    margin-right: 4px;
    vertical-align: middle;
    filter: brightness(1.2);
}

.thailand-flag {
    height: 28px;
    width: auto;
    margin-left: 8px;
    z-index: 2;
    position: relative;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.cambodia-flag {
    height: 28px;
    width: auto;
    margin-left: 4px;
    margin-right: 8px;
    z-index: 2;
    position: relative;
    border: 1px solid rgba(255, 255, 0, 0.3);
}

.warroom-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.warroom-text {
    color: #ff0000;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    line-height: 1;
}

.warroom-subtitle {
    color: #ffff00;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 2px;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.3);
}

/* Enhanced Ticker */
.ticker-container {
    flex: 1;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a0000 100%);
    border: 2px solid #333333;
    border-left: none;
    overflow: hidden;
    position: relative;
}

.ticker-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(204, 0, 0, 0.1) 0%, 
        rgba(204, 204, 0, 0.1) 30%, 
        rgba(0, 204, 0, 0.1) 60%, 
        rgba(204, 0, 0, 0.1) 100%);
    animation: warColors 6s ease-in-out infinite alternate;
}

@keyframes warColors {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

.ticker-content {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ticker-text {
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    animation: scroll-left 45s linear infinite;
    animation-play-state: running !important; /* Ensure ticker auto-starts */
    padding-left: 100%;
    /* Safari-specific fixes */
    -webkit-transform: translateZ(0); /* Force hardware acceleration */
    transform: translateZ(0);
    will-change: transform; /* Optimize for animations */
    backface-visibility: hidden; /* Prevent Safari text rendering issues */
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased; /* Better text rendering */
    /* Remove text-shadow for Safari - causes invisible text bug */
    text-shadow: none;
}

/* Enhanced crypto price styling - makes bracketed prices pop */
.crypto-price-box {
    background: linear-gradient(90deg, #1a4c2e, #2a5f3e);
    border: 1px solid #00cc00;
    border-radius: 4px;
    padding: 2px 6px;
    margin: 0 3px;
    display: inline-block;
    box-shadow: 0 0 8px rgba(0, 204, 0, 0.4);
    color: #00ff00;
    font-weight: bold;
    /* Safari-compatible styling - no text-shadow on transforms */
    background-color: #2a5f3e; /* Fallback for older browsers */
    /* Transform optimization for Safari */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@keyframes scroll-left {
    0% { 
        transform: translateX(0);
        -webkit-transform: translateX(0);
    }
    100% { 
        transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
    }
}

/* Main Container */
.main-container {
    display: flex;
    margin-top: 60px;
    height: calc(100vh - 110px);
    gap: 15px;
    padding: 15px;
    padding-bottom: 70px; /* Extra padding to prevent footer overlap on mobile */
}

/* Enhanced News Feed */
.news-feed {
    width: 380px;
    background: linear-gradient(135deg, #1a1a1a 0%, #001a00 100%);
    border: 2px solid #333333;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 204, 0, 0.1);
}

.news-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #004a00 100%);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333333;
}

.news-header h2 {
    font-size: 16px;
    color: #00cc00;
    text-shadow: 0 0 5px rgba(0, 204, 0, 0.5);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #cc0000;
    font-weight: bold;
}

.live-dot {
    width: 12px;
    height: 12px;
    background-color: #cc0000;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.news-list {
    height: calc(100% - 70px);
    overflow-y: auto;
    padding: 15px;
}

.news-item {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 2px;
    border-left: 3px solid #555555;
    transition: all 0.3s ease;
    position: relative;
}

.news-item:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    transform: translateX(5px);
}

.news-item.critical {
    border-left-color: #cc0000;
    box-shadow: 0 0 15px rgba(204, 0, 0, 0.2);
}

.news-item.live {
    border-left-color: #cccc00;
    box-shadow: 0 0 15px rgba(204, 204, 0, 0.2);
}

.news-item.crypto {
    border-left-color: #00cccc;
    box-shadow: 0 0 15px rgba(0, 204, 204, 0.2);
}

.news-title {
    font-size: 13px;
    color: #e6e6e6;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: bold;
}

.news-timestamp {
    font-size: 11px;
    color: #999999;
    float: right;
}

.news-category {
    font-size: 11px;
    color: #00cc00;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 204, 0, 0.3);
}

/* NEW: Real News Features */
.news-item.clickable {
    transition: all 0.2s ease;
    border: 1px solid #333333;
}

.news-item.clickable:hover {
    background: linear-gradient(135deg, rgba(0, 204, 0, 0.1) 0%, rgba(0, 204, 0, 0.05) 100%);
    border-color: #00cc00;
    box-shadow: 0 0 20px rgba(0, 204, 0, 0.3);
    transform: translateX(5px) scale(1.02);
}

.news-item.clickable:active {
    transform: translateX(5px) scale(0.98);
}

.news-source {
    font-size: 10px;
    color: #00cccc;
    margin-top: 5px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 204, 204, 0.3);
}

.news-click-hint {
    font-size: 9px;
    color: #cccc00;
    margin-top: 3px;
    opacity: 0.8;
    text-shadow: 0 0 2px rgba(204, 204, 0, 0.3);
    animation: pulse-hint 2s infinite;
}

@keyframes pulse-hint {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Enhanced Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Enhanced Main Video */
.main-video {
    height: 60%;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a0000 100%);
    border: 2px solid #333333;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(204, 0, 0, 0.1);
}

.video-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #4a0000 100%);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333333;
}

.video-header h3 {
    font-size: 18px;
    color: #00cc00;
    text-shadow: 0 0 5px rgba(0, 204, 0, 0.5);
}

.viewer-count {
    font-size: 14px;
    color: #cccc00;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(204, 204, 0, 0.3);
}

.video-container {
    height: calc(100% - 70px);
    position: relative;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.video-status {
    background-color: #cc0000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.3);
}

.video-location {
    background-color: #00cc00;
    color: #000;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 204, 0, 0.3);
}

.video-threat-level {
    background-color: #cccc00;
    color: #000;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(204, 204, 0, 0.3);
}

/* Enhanced Video Grid */
.video-grid {
    height: 40%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.video-feed {
    background: linear-gradient(135deg, #1a1a1a 0%, #001a1a 100%);
    border: 2px solid #333333;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 204, 204, 0.1);
}

.video-feed:hover {
    border-color: #00cccc;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 204, 204, 0.2);
}

.video-feed-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #004a4a 100%);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333333;
}

.video-feed-title {
    font-size: 14px;
    color: #00cccc;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 204, 204, 0.3);
}

.video-feed-viewers {
    font-size: 12px;
    color: #cccc00;
}

.video-feed-container {
    height: 140px;
    position: relative;
    overflow: hidden;
}

.video-feed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-feed-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

.video-feed-status {
    background-color: #cc0000;
    color: #fff;
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(204, 0, 0, 0.3);
}

.video-feed-location {
    background-color: #00cc00;
    color: #000;
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0, 204, 0, 0.3);
}

/* Enhanced Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-top: 2px solid #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: bold;
    color: #00cc00;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.footer-left {
    display: flex;
    gap: 20px;
    flex: 1;
}

.footer-center {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex: 1;
}

.footer-right {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex: 1;
}

/* Old footer classes removed */

.footer-crypto {
    background: linear-gradient(90deg, #1a4c2e, #2a5f3e);
    border: 1px solid #00cc00;
    border-radius: 4px;
    padding: 4px 8px;
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.6);
    box-shadow: 0 0 8px rgba(0, 204, 0, 0.3);
}

.footer-status {
    color: #00cc00;
    text-shadow: 0 0 3px rgba(0, 204, 0, 0.5);
}

.footer-time {
    color: #cccc00;
    text-shadow: 0 0 3px rgba(204, 204, 0, 0.5);
    font-family: 'Courier New', monospace;
}



/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #555555 0%, #333333 100%);
    border-radius: 2px;
    border: 1px solid #444444;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #777777 0%, #555555 100%);
}

/* Enhanced Responsive */
@media (max-width: 768px) {
    .top-section {
        flex-direction: column;
        height: auto;
    }
    
    .warroom-title {
        min-width: 100%;
        border-right: 2px solid #333333;
        border-bottom: none;
        height: 60px;
        flex-direction: row;
        gap: 10px;
    }
    
    .ticker-container {
        border-left: 2px solid #333333;
        border-top: none;
        height: 50px;
    }
    
    .main-container {
        flex-direction: column;
        margin-top: 110px;
        height: calc(100vh - 170px);
        padding: 10px;
        padding-bottom: 80px; /* Extra padding for mobile footer */
        gap: 10px;
    }
    
    .news-feed {
        width: 100%;
        height: 350px;
        order: 1;
        flex-shrink: 0;
    }
    
    .main-content {
        order: 2;
        flex: 1;
    }
    
    .main-video {
        height: 280px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 10px;
        margin-bottom: 100px;
        height: auto;
    }
    
    .video-feed-container {
        height: 120px;
    }
    
    .footer {
        flex-direction: column;
        height: 80px;
        padding: 8px;
        gap: 5px;
    }
    
    .footer-left,
    .footer-right {
        gap: 15px;
        font-size: 12px;
    }
    

} 

.news-item.breaking .news-category {
    background: #ff0000;
    border: 1px solid #ff3333;
}

.news-item.intel .news-category {
    background: #00ff00;
    border: 1px solid #33ff33;
}

.news-item.flash .news-category {
    background: #ffff00;
    color: #000;
    border: 1px solid #ffff33;
}

.news-item.crypto .news-category {
    background: #ffa500;
    border: 1px solid #ffb533;
}

.news-item.social .news-category {
    background: #1DA1F2;
    border: 1px solid #4db8f4;
    color: #fff;
}

.news-item.trends .news-category {
    background: #FF6B35;
    border: 1px solid #ff8559;
    color: #fff;
}

.news-item.security .news-category {
    background: #dc143c;
    border: 1px solid #e63946;
} 

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    transition: all 0.2s ease;
}

.news-link:hover {
    text-decoration: none;
    color: inherit;
    background-color: rgba(0, 204, 0, 0.1);
}

.news-link:hover .news-category {
    border-color: #00cc00;
    box-shadow: 0 0 8px rgba(0, 204, 0, 0.3);
}

.news-link:hover .news-title {
    color: #00ff00;
    text-shadow: 0 0 4px rgba(0, 255, 0, 0.3);
}

.news-link:active {
    transform: scale(0.98);
} 