/* ===== Sửa lỗi tràn ngang & chữ trên mobile ===== */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, svg { max-width: 100%; }
h1, h2, h3, h4, p, a, span, button { overflow-wrap: break-word; }
.cyber-crt-card { max-width: 100%; }

/* Hiệu ứng tuỳ chỉnh: neon glow, shine, light sweep, CRT scanline, scrollbar */
.cyber-glow-cyan { box-shadow: 0 0 20px rgba(0, 242, 254, 0.2); }
.cyber-glow-pink { box-shadow: 0 0 20px rgba(255, 0, 127, 0.2); }
.text-glow-cyan { text-shadow: 0 0 8px rgba(0, 242, 254, 0.6); }
.text-glow-pink { text-shadow: 0 0 4px rgba(255, 0, 127, 0.9), 0 0 12px rgba(255, 0, 127, 0.7), 0 0 20px rgba(255, 0, 127, 0.5); }
.text-glow-yellow { text-shadow: 0 0 8px rgba(255, 215, 0, 0.6); }
.text-glow-purple { text-shadow: 0 0 8px rgba(157, 78, 221, 0.6); }
.text-glow-emerald { text-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }

@keyframes textShine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}
.animate-shine {
    background: linear-gradient(110deg, #00F2FE 40%, #ffffff 50%, #00F2FE 60%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
}

@keyframes lightSweep {
    0% { transform: translateX(-150%) skewX(-20deg); }
    35% { transform: translateX(200%) skewX(-20deg); }
    100% { transform: translateX(200%) skewX(-20deg); }
}
.animate-light-sweep::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    animation: lightSweep 3.2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes scanline-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}
@keyframes scanline-beam {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}
.cyber-crt-card {
    position: relative;
    overflow: hidden;
}
.cyber-crt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 242, 254, 0.05) 50%
    );
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cyber-crt-card::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.6), transparent);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
    z-index: 11;
    pointer-events: none;
    opacity: 0;
    top: -10%;
}
.cyber-crt-card:hover::before {
    opacity: 1;
    animation: scanline-scroll 0.35s linear infinite;
}
.cyber-crt-card:hover::after {
    opacity: 1;
    animation: scanline-beam 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards; 
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0B0F19; }
::-webkit-scrollbar-thumb {
    background: #151D30;
    border-radius: 4px;
    border: 2px solid #0B0F19;
}
::-webkit-scrollbar-thumb:hover { background: #00F2FE; }

/* ===== Lịch live trên màn hình < 768px: 2 hàng (T2-T5 / T6-CN) ===== */
@media (max-width: 767px) {
  #schedule-container > :nth-child(-n+4) { grid-column: span 3; }
  #schedule-container > :nth-child(n+5)  { grid-column: span 4; }
}
