/* Variables */
:root {
    --neon-purple: #ff00ff;
    --neon-yellow: #ffff00;
    --neon-green: #00ff00;
    --neon-cyan: #00ffff;
    --dark-bg: #000000;
    --glow-purple: rgba(255, 0, 255, 0.6);
    --glow-yellow: rgba(255, 255, 0, 0.6);
    --glow-cyan: rgba(0, 255, 255, 0.6);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

/* Base styles */
body {
    background: var(--dark-bg);
    color: #fff;
    position: relative;
    font-family: 'Share Tech Mono', monospace;
}

/* Discord CTA Button */
.discord-cta {
    margin: 25px 0;
    text-align: center;
    position: relative;
    display: inline-block;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    background: #7289DA; /* Brighter Discord color */
    background: linear-gradient(135deg, #7289DA 0%, #5865F2 100%);
    color: white !important;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(114, 137, 218, 0.7);
}

/* Pulsing glow effect */
.discord-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 2px;
    background: transparent;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: pulse 2s infinite;
}

.discord-link i {
    margin-right: 12px;
    font-size: 1.5em;
    position: relative;
    z-index: 1;
}

.discord-link:hover {
    background: linear-gradient(135deg, #5b6eae 0%, #4752c4 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.8);
}

.discord-link:active {
    transform: translateY(1px);
    box-shadow: 0 2px 15px rgba(88, 101, 242, 0.6);
}

/* Pulsing animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(114, 137, 218, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(114, 137, 218, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(114, 137, 218, 0);
    }
}

/* Discord Note Styling */
.discord-note {
    color: #b3b3ff;
    font-size: 0.9em;
    margin: 25px auto 0;
    max-width: 500px;
    text-align: center;
    line-height: 1.5;
    text-shadow: 0 0 10px rgba(179, 179, 255, 0.5);
    animation: none; /* remove 1s fade-in to speed first paint */
    font-family: 'Share Tech Mono', monospace;
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 0.9; transform: translateY(0); }
}

/* Header Styling */
.major {
    position: relative;
}

#main header.major {
    position: relative;
    background: 
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px) 0 0,
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px) 0 0;
    background-size: 20px 20px;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 6em 0;
    overflow: hidden;
    text-align: center;
}

.major::before,
.major::after,
.scan-effect::before,
.scan-effect::after,
.vertical-scan::before,
.vertical-scan::after {
    display: none;
}

.scan-effect,
.vertical-scan {
    background: none;
}

.page-header {
    background: 
        linear-gradient(90deg, 
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 20, 40, 0.8) 50%,
            rgba(0, 0, 0, 0.95) 100%
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0%,
            transparent 1px,
            rgba(0, 50, 100, 0.1) 2px,
            rgba(0, 50, 100, 0.1) 3px
        );
    position: relative;
    padding: 40px 20px;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(32, 128, 255, 0.2) 50%,
        transparent 100%
    );
    animation: scanline 4s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.neon-title {
    position: relative;
    z-index: 2;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    margin-bottom: 10px;
    padding-bottom: 2px; /* Space for the scan line */
}

.neon-title .scan-divider {
    position: absolute;
    bottom: -7cm;
    left: 0;
    width: 100%;
    margin: 0;
}

.neon-title h1 {
    font-size: 4em;
    margin: 0;
    padding: 0;
    color: #00ffff;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.4);
    animation: simpleFlicker 4s infinite;
}

@keyframes simpleFlicker {
    0% { opacity: 1; }
    96% { opacity: 1; }
    97% { opacity: 0.8; }
    98% { opacity: 1; }
    99% { opacity: 0.8; }
    100% { opacity: 1; }
}

.neon-title h1::before,
.neon-title h1::after {
    display: none;
}

.neon-title .subtitle {
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--glow-yellow);
    margin-bottom: 30px;
    font-size: 1.5em;
}

/* Scan Effects */
.scan-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.scan-divider {
    position: relative;
    height: 2px;
    width: 100%;
    background: rgba(0, 255, 255, 0.1);
    margin: 70px 0 40px 0; /* Increased top margin */
    overflow: hidden;
}

header + .scan-divider {
    margin-top: -40px; /* Pulled up more */
    margin-bottom: 30px;
}

.scan-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #00ffff 50%,
        transparent 100%
    );
    animation: scanline-horizontal 3s linear infinite;
}

@keyframes scanline-horizontal {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Scan line effects */
.nav-scan-line {
    position: relative;
    height: 2px;
    width: 100%;
    background: rgba(var(--neon-purple), 0.1);
    overflow: hidden;
}

.nav-scan-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--neon-purple) 50%,
        transparent 100%
    );
    animation: scan-line 3s linear infinite;
    box-shadow: 0 0 4px var(--glow-purple);
}

.header-scan-line {
    position: relative;
    height: 2px;
    width: 100%;
    background: rgba(0, 255, 255, 0.1);
    margin-top: 0; /* Reset the negative margin */
    margin-bottom: 20px; /* Add space below */
    overflow: hidden;
}

.header-scan-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #00ffff 50%,
        transparent 100%
    );
    animation: scan-line 3s linear infinite;
    box-shadow: 0 0 4px rgba(0, 255, 255, 0.6);
}

.nav-border {
    height: 2px;
    width: 100%;
    background: #00ffff;
    box-shadow: 0 0 5px #00ffff;
}

@keyframes scan-line {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Stream Card Styles - Red for KlumaArmy - Dark mode friendly */
.stream-card:not(.armory-stream-card) {
    background-color: rgba(20, 20, 30, 0.95);
    color: #ccc;
    font-size: 13px;
    border: 2px solid #ff0000;
    position: relative;
    display: block;
}

.stream-card:not(.armory-stream-card) .title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    margin: 8px 7px 4px 7px;
    position: relative;
    clear: both;
    line-height: 1.4;
    min-height: 36px;
    max-height: 36px;
}

.stream-card:not(.armory-stream-card) .info {
    margin: 4px 7px 8px 7px;
    position: relative;
    display: block;
    clear: both;
    color: #bbb;
    flex-shrink: 0;
    min-height: 20px;
}

.stream-card:not(.armory-stream-card) a {
    color: #ddd;
    font-weight: 600;
    text-decoration: none;
    border-bottom: none !important;
}

.stream-card:not(.armory-stream-card) a:hover {
    text-decoration: underline;
}

.stream-card:not(.armory-stream-card) .top {
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
    margin: 0;
}

.stream-card:not(.armory-stream-card) .top > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stream-card:not(.armory-stream-card) .top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stream-card:not(.armory-stream-card) .game {
    position: absolute;
    bottom: -1px;
    right: 0px;
    width: 14%;
}

.stream-card:not(.armory-stream-card) .game .tooltip_c {
    position: relative;
}

.stream-card:not(.armory-stream-card) .game .tooltip {
    opacity: 0.85;
    font-size: 12px;
    white-space: nowrap;
    background: #000;
    padding: 0 6px;
    position: absolute;
    right: 0;
    bottom: 0;
    visibility: hidden;
    color: #ff0000;
}

.stream-card:not(.armory-stream-card) .game_img {
    position: relative;
    padding-top: 138.4615%;
}

.stream-card:not(.armory-stream-card) .game_img img {
    border: 2px solid #ff0000;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-card:not(.armory-stream-card) .game:hover .tooltip {
    visibility: visible;
}

.stream-card:not(.armory-stream-card) .info .channel a {
    color: #ff0000 !important;
    font-weight: 600;
}

/* Armory Stream Card Styles - Yellow for Live (Based on Anne Munition's .live class structure) */
.stream-card.armory-stream-card {
    background-color: rgba(30, 30, 40, 0.9) !important;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ffff00 !important;
    box-shadow: 0 0 10px #ffff00 !important;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.stream-card.armory-stream-card:hover {
    transform: translateY(-2px);
    border-color: #ffff00 !important;
    box-shadow: 
        0 0 15px #ffff00 !important,
        0 0 25px #ffff00 !important,
        0 0 35px rgba(255, 255, 0, 0.5) !important;
}

/* Armory streamer name color - yellow to match border */
.stream-card.armory-stream-card .streamer-name,
.armory-stream-card .streamer-name {
    color: #ffff00 !important;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.7) !important;
}

/* Armory card structure matching Anne's .live class */
.stream-card.armory-stream-card .top,
.armory-stream-card .top {
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
    background: #000;
    width: 100%;
}

.stream-card.armory-stream-card .top > a,
.armory-stream-card .top > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

.stream-card.armory-stream-card .top > a > img,
.armory-stream-card .top > a > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stream-card.armory-stream-card .game,
.armory-stream-card .game {
    position: absolute;
    bottom: -1px;
    right: 0px;
    width: 14%;
    z-index: 2;
}

.stream-card.armory-stream-card .game .tooltip_c,
.armory-stream-card .game .tooltip_c {
    position: relative;
}

.stream-card.armory-stream-card .game .tooltip,
.armory-stream-card .game .tooltip {
    opacity: 0.85;
    font-size: 12px;
    white-space: nowrap;
    background: #000;
    color: #ffff00;
    padding: 0 6px;
    position: absolute;
    right: 0;
    bottom: 0;
    visibility: hidden;
    border: 1px solid #ffff00;
    box-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
    z-index: 10;
}

.stream-card.armory-stream-card .game_img,
.armory-stream-card .game_img {
    position: relative;
    padding-top: 138.4615%;
}

.stream-card.armory-stream-card .game_img img,
.armory-stream-card .game_img img {
    border: 2px solid #ffff00;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
    display: block;
}

.stream-card.armory-stream-card .game:hover .tooltip,
.armory-stream-card .game:hover .tooltip {
    visibility: visible;
}

.stream-card.armory-stream-card .title,
.armory-stream-card .title {
    white-space: normal;
    overflow: hidden;
    word-wrap: break-word;
    margin: 8px 7px 4px 7px;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    min-height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.stream-card.armory-stream-card .title a,
.armory-stream-card .title a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    display: block;
    word-wrap: break-word;
}

.stream-card.armory-stream-card .title a:hover,
.armory-stream-card .title a:hover {
    text-decoration: underline;
    color: #ffff00;
}

.stream-card.armory-stream-card .info,
.armory-stream-card .info {
    margin: 8px 7px 8px 7px;
    color: #aaa;
    font-size: 13px;
    line-height: 1.6;
    word-spacing: 2px;
    white-space: normal;
    word-wrap: break-word;
    display: block;
}

.stream-card.armory-stream-card .info .viewer-count,
.armory-stream-card .info .viewer-count {
    color: #aaa;
    font-weight: normal;
}

.stream-card.armory-stream-card .info .channel,
.armory-stream-card .info .channel {
    color: #ffff00;
    font-weight: 600;
}

.stream-card.armory-stream-card .info .channel a,
.armory-stream-card .info .channel a {
    color: #ffff00 !important;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.7) !important;
    text-decoration: none;
    font-weight: 600;
}

.stream-card.armory-stream-card .info .channel a:hover,
.armory-stream-card .info .channel a:hover {
    text-decoration: underline;
    color: #ffff99 !important;
}

.armory-stream-card .info .channel {
    color: #ffff00;
}

.armory-stream-card .info .channel a {
    color: #ffff00 !important;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.7) !important;
}

.armory-stream-card .info a {
    color: #ffff00;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.7);
}

.armory-stream-card .info a:hover {
    text-decoration: underline;
    color: #ffff99;
}

.stream-info {
    padding: 10px;
    background-color: rgba(10, 10, 10, 0.95);
}

.stream-title {
    font-size: 0.9rem !important;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    white-space: normal;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.streamer-name {
    font-size: 0.9rem !important;
    color: #ff0000;
    margin-bottom: 5px;
    margin-top: 0;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

.game-name {
    font-size: 0.75rem !important;
    color: var(--neon-yellow);
    margin-bottom: 3px;
    text-shadow: 0 0 5px var(--glow-yellow);
}

/* Streamer Card Styles */
.streamer-card {
    background-color: rgba(30, 30, 40, 0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.streamer-card:hover {
    transform: translateY(-2px);
    border-color: #ff0000;
    box-shadow: 
        0 0 15px #ff0000,
        0 0 25px #ff0000;
}

.streamer-info {
    padding: 10px;
    background-color: rgba(10, 10, 10, 0.95);
}

.streamer-name {
    font-size: 0.9rem !important;
    color: #ff0000;
    margin-bottom: 5px;
    margin-top: 0;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

.stream-description {
    font-size: 0.8rem !important;
    color: #fff;
    margin: 3px 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.game-name {
    font-size: 0.75rem !important;
    color: var(--neon-yellow);
    margin-bottom: 3px;
    text-shadow: 0 0 5px var(--glow-yellow);
}

/* Container Layouts */
#subscribers-container,
#tehkluma-container,
#klumaarmy-streamers-container,
#klumaarmy-team-container,
#sutv-streamers-container,
#armory-streamers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Grid layouts */
#subscribers-container,
#streamers-container,
#klumaarmy-streamers-container,
#klumaarmy-team-container,
#sutv-streamers-container,
#armory-streamers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 340px));
    gap: 15px;
    margin: 20px 0;
    padding: 0 15px;
    justify-content: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #subscribers-container,
    #streamers-container,
    #klumaarmy-streamers-container,
    #klumaarmy-team-container,
    #sutv-streamers-container,
    #armory-streamers-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .neon-title h1 {
        font-size: 2.5em;
        letter-spacing: 0.15em;
    }

    .neon-title .subtitle {
        font-size: 1.2em;
    }
}

/* Message Styles */
.offline-message,
.error-message {
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    grid-column: 1 / -1;
}

.offline-message {
    background-color: rgba(30, 30, 40, 0.7);
    color: #aaa;
    border: 1px solid rgba(87, 202, 244, 0.3);
}

/* Enhanced no streams message */
.no-streams-message {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(20, 20, 30, 0.8);
    border-radius: 12px;
    border: 1px solid #333;
    max-width: 600px;
    margin: 2rem auto;
}

.no-streams-message .offline-icon {
    font-size: 3rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-streams-message h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.no-streams-message p {
    color: #aaa;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.refresh-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.refresh-btn, .discord-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.refresh-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.discord-btn {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
}

.discord-btn:hover {
    background: linear-gradient(135deg, #4752C4, #3C45A5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

@media (max-width: 600px) {
    .refresh-actions {
        flex-direction: column;
        align-items: center;
    }

    .refresh-btn, .discord-btn {
        width: 200px;
        justify-content: center;
    }
}

.error-message {
    background-color: rgba(50, 20, 20, 0.7);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.5);
}

/* Last Check Time */
#lastCheck {
    text-align: center;
    color: #aaa;
    font-size: 12px;
    margin-top: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #tehkluma-container,
    #klumaarmy-streamers-container,
    #klumaarmy-team-container,
    #sutv-streamers-container,
    #armory-streamers-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    #tehkluma-container,
    #klumaarmy-streamers-container,
    #klumaarmy-team-container,
    #sutv-streamers-container,
    #armory-streamers-container {
        grid-template-columns: 1fr;
    }
}

/* Thumbnails */
.streamer-thumbnail,
.stream-container {
    position: relative;
    width: 100%;
    padding-bottom: 52%;
    background: #000;
    overflow: hidden;
}

.streamer-thumbnail img,
.streamer-thumbnail a,
.stream-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info sections */
.stream-info {
    padding: 10px;
    background: rgba(10, 10, 10, 0.95);
}

/* Text elements */
.game-name {
    color: var(--neon-yellow);
    font-size: 0.85rem;
    text-shadow: 0 0 8px var(--glow-yellow);
}

.streamer-title {
    color: #fff;
    font-size: 0.85rem;
    margin: 5px 0;
    opacity: 0.9;
}

.subscriber-count {
    color: var(--neon-cyan);
    font-size: 0.85rem;
    text-shadow: 0 0 8px var(--glow-cyan);
}

/* Section Titles */
.inner {
    text-align: center;
}

.inner h3,
.inner h3 a {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--glow-cyan);
    margin-bottom: 20px;
    animation: textFlicker 3s infinite;
    text-align: center;
    width: 100%;
    display: block;
}

.inner h3 a:hover {
    color: var(--neon-yellow);
    text-shadow: 
        0 0 10px var(--glow-yellow),
        0 0 20px var(--glow-purple);
}

/* Armory section link hover effect */
.armory-section h3 a:hover {
    color: #00ffff !important;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.4) !important;
    transform: scale(1.05);
}

/* Hover effects */
.streamer-card:hover {
    transform: translateY(-2px);
    border-color: #ff0000;
    box-shadow: 
        0 0 15px #ff0000,
        0 0 25px #ff0000;
}

/* Auth button styles */
.auth-required {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    margin: 20px 0;
}

.auth-button {
    background-color: #9147ff; /* Twitch purple */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.auth-button:hover {
    background-color: #772ce8; /* Darker Twitch purple */
}

/* Footer */
#footer {
    background: linear-gradient(0deg, rgba(10,10,15,1) 0%, rgba(10,10,15,0.9) 100%);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

#lastCheck {
    color: var(--neon-yellow);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    margin: 1rem 0;
    text-shadow: 0 0 8px var(--glow-yellow);
}

/* Animations */
@keyframes scan-line-top {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes vertical-scan {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

@keyframes neon-border {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes text-flicker {
    0%, 100% { opacity: 1; }
    95% { opacity: 1; }
    96% { opacity: 0.8; }
    97% { opacity: 1; }
    98% { opacity: 0.9; }
    99% { opacity: 1; }
}

#klumaarmy-streamers-container,
#klumaarmy-subscribers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0;
}

.streamer {
    background: #111;
    border: 2px solid #0ff;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 10px #0ff4;
}

.streamer iframe {
    margin: 1em 0;
    border-radius: 8px;
    border: none;
}

.streamer a {
    color: #0ff;
    text-decoration: underline;
    font-weight: bold;
}

#klumaarmy-subscribers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 2em;
    justify-items: center;
}

.stream-card {
    width: 320px;
    max-width: 95vw;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stream-thumb {
    width: 100%;
    height: auto;
    display: block;
}

.stream-info {
    padding: 10px 16px 16px 16px;
}

.stream-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.1em;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.stream-meta {
    color: #aaa;
    font-size: 0.95em;
    line-height: 1.6;
    white-space: normal;
    word-wrap: break-word;
    word-spacing: 2px;
}

.streamer-name {
    color: #0ff;
    font-weight: bold;
}

.viewers {
    color: #fff;
    font-weight: bold;
}

/* MOBILE: Stack cards and center them */
@media (max-width: 700px) {
    #klumaarmy-streamers-container,
    #klumaarmy-subscribers-container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100vw !important;
        box-sizing: border-box;
    }
    .stream-card {
        width: 95vw !important;
        max-width: 400px !important;
        margin: 0 auto 20px auto !important;
        box-sizing: border-box;
    }
}

/* Remove grid display and grid-template-columns for these containers */
#klumaarmy-streamers-container,
#klumaarmy-subscribers-container {
    grid-template-columns: unset !important;
    display: flex !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure armory container uses grid layout */
#armory-streamers-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(340px, 340px)) !important;
    gap: 15px !important;
    margin: 20px 0 !important;
    padding: 0 15px !important;
    justify-content: center !important;
}