
.main-container {
    display: grid;
    
    grid-template-columns: 360px 1fr 360px; 
    gap: 30px;
    padding: 25px 50px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    align-items: start;
    box-sizing: border-box;
}


.col-left, .col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 360px;
}

.col-center {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0; 
}


.side-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.side-box-header {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.side-box-header i { color: var(--accent-color); }


.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px;
    margin-bottom: 0; 
    grid-auto-flow: dense; 
}

.stat-card {
    background: rgba(44, 143, 255, 0.06);
    border: 1px solid rgba(44, 143, 255, 0.15);
    border-radius: 12px;
    aspect-ratio: 1 / 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    padding: 5px;
}


.stat-card.wide {
    grid-column: span 2; 
    aspect-ratio: auto;
    flex-direction: row; 
    gap: 15px;
    padding: 0 15px;
}

.stat-card:hover {
    background: rgba(44, 143, 255, 0.15);
    border-color: rgba(44, 143, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(44, 143, 255, 0.15);
}

.stat-icon {
    font-size: 20px;
    margin-bottom: 6px;
    color: #50c0ff; 
    filter: drop-shadow(0 0 5px rgba(80, 192, 255, 0.4));
    transition: 0.3s;
}

.stat-card.wide .stat-icon {
    margin-bottom: 0;
    font-size: 24px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card.wide .stat-info {
    align-items: flex-start;
}

.stat-value-box {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 2px;
    text-shadow: 0 0 10px rgba(44, 143, 255, 0.3);
}

.stat-label-box {
    font-size: 9px;
    color: #8abce6;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}


.news-header-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(44, 143, 255, 0.2);
}
.news-header-block h2 { margin: 0; font-size: 22px; color: var(--text-color); }



.news-scroll-wrapper {
    
    height: 1300px; 
    overflow-y: auto;
    padding-right: 10px; 
}


.news-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}
.news-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}
.news-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}
.news-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #50c0ff;
}


.news-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.news-card:hover { transform: translateY(-2px); border-color: var(--accent-color); }

.news-image-wrap {
    width: 100%;
    background: transparent; 
    border-bottom: 1px solid var(--border-light);
    line-height: 0;
    display: flex;
    justify-content: center;
    padding: 0;
    max-height: 350px; 
    overflow: hidden; 
}

.news-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-content { 
    padding: 15px 20px;
}

.news-meta {
    font-size: 12px;
    color: var(--placeholder-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.news-text {
    font-size: 14px;
    line-height: 1.4;
    color: #ddd;
    white-space: pre-wrap; 
    word-wrap: break-word;
}
.news-text p { margin-bottom: 8px !important; }

.news-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(44, 143, 255, 0.1);
    color: var(--accent-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}
.news-link:hover { background: var(--accent-color); color: white; }



.mini-staff-card {
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.03);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid transparent;
    position: relative;
}
.mini-staff-card:hover {
    background-color: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.1);
    transform: translateX(3px);
}

.staff-head img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    margin-right: 15px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.staff-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}

.staff-nick {
    font-size: 15px;
    font-weight: bold;
    display: inline-block;
    width: fit-content;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent; 
}

.staff-role {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: translateY(-50%) scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { transform: translateY(-50%) scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}


@media (max-width: 1400px) {
    .main-container { grid-template-columns: 300px 1fr 300px; padding: 20px; }
    .col-left, .col-right { min-width: 300px; }
}

@media (max-width: 1024px) {
    .main-container { grid-template-columns: 1fr 320px; }
    .col-left { display: none; }
}

@media (max-width: 768px) {
    .main-container { grid-template-columns: 1fr; padding: 15px; }
    .col-left, .col-right { width: 100%; min-width: 0; }
}


.hero-section {
    grid-column: 1 / -1; width: 100%; height: 380px; position: relative;
    border-radius: 16px; overflow: hidden; background-color: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); margin-bottom: 10px; 
}
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.8s ease-in-out;
    background-size: cover; background-position: center; z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0) 100%);
    display: flex; flex-direction: column; justify-content: center;
    padding: 40px 60px; box-sizing: border-box;
}
.hero-content { max-width: 600px; position: relative; z-index: 3; animation: slideUp 0.8s ease-out; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hero-title { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); text-transform: uppercase; line-height: 1.2; }
.hero-desc { font-size: 16px; color: #ddd; margin-bottom: 25px; line-height: 1.5; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
.hero-btn { display: inline-block; padding: 12px 30px; background: var(--accent-color); color: white; font-weight: 700; text-transform: uppercase; border-radius: 8px; text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 15px rgba(44, 143, 255, 0.4); border: none; cursor: pointer; }
.hero-btn:hover { background: #50c0ff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44, 143, 255, 0.6); }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dot { width: 10px; height: 10px; background: rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.hero-dot.active { background: #fff; transform: scale(1.2); }
.hero-admin-controls { position: absolute; top: 15px; right: 15px; z-index: 10; display: flex; gap: 10px; background: rgba(0,0,0,0.6); padding: 5px; border-radius: 8px; backdrop-filter: blur(5px); }
.hero-admin-btn { background: none; border: none; color: #fff; cursor: pointer; padding: 5px; font-size: 14px; opacity: 0.7; transition: 0.2s; }
.hero-admin-btn:hover { opacity: 1; color: var(--accent-color); }
.hero-admin-btn.delete:hover { color: #ff4d4f; }
.hero-add-btn-wrapper { position: absolute; top: 15px; left: 15px; z-index: 10; }
.btn-hero-add { background: #2ecc71; color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 13px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.2s; font-family: 'CustomFont', sans-serif; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-hero-add:hover { background: #27ae60; transform: translateY(-2px); }
.btn-hero-add i { font-size: 14px; }


.focal-point-container { position: relative; width: 100%; overflow: hidden; border-radius: 8px; border: 2px dashed #555; margin-top: 10px; display: none; cursor: crosshair; background-color: #111; }
.focal-point-image { display: block; width: 100%; height: auto; object-fit: cover; pointer-events: none; }
.crop-zone-marker { position: absolute; border: 2px solid var(--accent-color); background: rgba(44, 143, 255, 0.15); box-shadow: 0 0 10px rgba(0,0,0,0.5); transform: translate(-50%, -50%); pointer-events: none; display: none; box-sizing: border-box; z-index: 10; }
.crop-zone-marker::before, .crop-zone-marker::after { content: ''; position: absolute; background: var(--accent-color); opacity: 0.7; }
.crop-zone-marker::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.crop-zone-marker::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.focal-instructions { font-size: 11px; color: #aaa; margin-top: 8px; margin-bottom: 4px; display: none; text-align: center; }
.focal-instructions i { color: var(--accent-color); }

@media (max-width: 768px) {
    .hero-section { height: 300px; padding: 0; }
    .hero-overlay { padding: 20px 30px; background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%); justify-content: flex-end; }
    .hero-title { font-size: 22px; }
    .hero-desc { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}


#heroModal .modal-content, #heroModal h2, #heroModal label, #heroModal small, #heroModal .focal-instructions, #heroModal input, #heroModal textarea, #heroModal button { font-family: 'CustomFont', sans-serif; }
#heroModal input::placeholder, #heroModal textarea::placeholder { font-family: 'CustomFont', sans-serif; opacity: 0.7; }


input[type="file"] { background: rgba(0, 0, 0, 0.3); padding: 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); color: #aaa; font-size: 13px; width: 100%; cursor: pointer; font-family: inherit; }
input[type="file"]::file-selector-button { background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.1); padding: 6px 12px; border-radius: 4px; margin-right: 12px; cursor: pointer; font-weight: 600; font-size: 12px; transition: all 0.2s; font-family: inherit; }
input[type="file"]::file-selector-button:hover { background: var(--accent-color); border-color: var(--accent-color); color: white; }


.online-users-section {
    
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    
    
    margin-top: 0; 
}

.online-users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(44, 143, 255, 0.15);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.online-users-list {
    font-size: 14px;
    line-height: 1.6;
    color: #ddd;
    word-wrap: break-word;
}

.online-user-link {
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 600; 
}

.online-user-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.separator {
    color: #555;
}


@media (max-width: 768px) {
    .online-users-header {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

/* ==============================================
   АДАПТАЦИЯ ПОД СВЕТЛУЮ ТЕМУ
   ============================================== */


.light-theme .side-box-header,
.light-theme .news-header-block h2 {
    color: #333 !important; 
    border-bottom-color: rgba(0, 0, 0, 0.1);
}


.light-theme .stat-card {
    background: rgba(44, 143, 255, 0.08); 
    border-color: rgba(44, 143, 255, 0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.light-theme .stat-card:hover {
    background: rgba(44, 143, 255, 0.15);
    box-shadow: 0 5px 15px rgba(44, 143, 255, 0.2);
}

.light-theme .stat-value-box {
    color: #222 !important; 
    text-shadow: none;      
}

.light-theme .stat-label-box {
    color: #555 !important;
    font-weight: 800;
}


.light-theme .stat-icon {
    filter: drop-shadow(0 0 2px rgba(44, 143, 255, 0.2)); 
}


.light-theme .news-card {
    background-color: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.light-theme .news-card:hover {
    border-color: var(--accent-color);
}

.light-theme .news-text {
    color: #444 !important; 
}
.light-theme .news-meta {
    color: #888;
}


.light-theme .news-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}


.light-theme .online-users-header {
    border-bottom-color: rgba(0,0,0,0.1);
}
.light-theme .online-users-header span {
    color: #555 !important;
}
.light-theme .online-users-header b {
    color: #222 !important; 
}
.light-theme .online-users-list {
    color: #333 !important;
}


.light-theme .mini-staff-card {
    background-color: rgba(0, 0, 0, 0.04); 
    border: 1px solid rgba(0,0,0,0.05);
}
.light-theme .mini-staff-card:hover {
    background-color: rgba(0, 0, 0, 0.08);
    transform: translateX(3px);
}
.light-theme .staff-role {
    text-shadow: 0 0 1px rgba(0,0,0,0.2); 
}


.light-theme .hero-add-btn-wrapper .btn-hero-add {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


.light-theme a.online-user-link {
    
    font-weight: 700; 
}


.top-player-row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-player-row:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}


.top-place {
    font-size: 13px;
    font-weight: 800;
    width: 24px;
    color: #666;
    flex-shrink: 0;
    margin-right: 10px;  
    text-align: center;  
}
.top-place.p1 { color: #ffd700; } 
.top-place.p2 { color: #c0c0c0; } 
.top-place.p3 { color: #cd7f32; } 


.top-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    margin-right: 12px;
    object-fit: contain; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}


.top-nick {
    font-size: 14px;
    font-weight: 700;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    
    display: inline-block; 
    background-clip: text;
    -webkit-background-clip: text;
}


.top-score {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 4px;
}


.light-theme .top-player-row {
    background-color: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.05);
}
.light-theme .top-player-row:hover {
    background-color: rgba(0,0,0,0.08);
}
.light-theme .top-nick {
    color: #333;
}



.streams-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px; 
    width: 100%;
}

.stream-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.stream-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: var(--accent-color);
}

.stream-card.playing {
    cursor: default;
    transform: none;
    padding: 0;
    box-shadow: 0 0 15px rgba(44, 143, 255, 0.4);
    border-color: var(--accent-color);
}

.stream-card.playing:hover {
    transform: none;
}


.stream-bg-placeholder {
    flex-grow: 1;
    background: linear-gradient(45deg, var(--card-bg), var(--hover-bg));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stream-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 80px;  
    height: 80px;
    background: rgba(0, 0, 0, 0.6); 
    color: #fff;
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px; 
    backdrop-filter: blur(4px); 
    z-index: 6; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.2s;
    pointer-events: none; 
    opacity: 1;
}


.stream-card:hover .stream-play-btn {
    transform: translate(-50%, -50%) scale(1.1); 
    background: rgba(44, 143, 255, 0.7); 
}


.playing .stream-play-btn {
    display: none;
}

.platform-badge-mini {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 16px;
    backdrop-filter: blur(4px);
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.platform-icon {
    font-size: 130px; 
    color: var(--placeholder-color);
    opacity: 0.3;
}


.stream-info-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    
    background: linear-gradient(to top, 
        rgba(44, 143, 255, 1) 0%,     
        rgba(44, 143, 255, 0.8) 40%,   
        rgba(44, 143, 255, 0) 100%     
    );
    padding: 80px 30px 30px 30px; 
    pointer-events: none;
}

.stream-owner {
    font-weight: 800;
    color: #ff4757; 
    font-size: 30px; 
    margin-bottom: 8px; 
    text-shadow: 0 4px 8px rgba(0,0,0,0.5); 
}


.stream-title {
    font-size: 26px; 
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    margin-bottom: 16px; 
    font-weight: 500;
    width: 100%;
    display: block;
}


.stream-title.is-scrolling {
    text-overflow: clip; 
}


.stream-title .title-inner {
    display: inline-block;
    white-space: nowrap;
    will-change: transform; 
}


@keyframes stream-marquee {
    0%, 15% { transform: translateX(0); } 
    85%, 100% { transform: translateX(var(--scroll-dist)); } 
}

.stream-meta {
    display: flex;
    gap: 30px; 
    font-size: 24px; 
    color: #fff; 
    font-weight: 600;
}

.stream-meta i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); 
}


.live-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 71, 87, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    z-index: 10;
}

.live-dot, .live-dot-indicator {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.live-dot-indicator {
    background: #ff4757;
    width: 12px;
    height: 12px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes livePulse { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }


.lm-main-title { color: #fff; transition: color 0.2s; }

.live-match-card {
    background: var(--card-bg, #1a1e22);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 12px;
    padding: 10px 30px; 
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.live-match-card:hover {
    border-color: #e74c3c;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2);
}
.lm-team {
    display: flex; align-items: center; gap: 15px; flex: 1;
}
.lm-team.left { justify-content: flex-end; text-align: right; }
.lm-team.right { justify-content: flex-start; text-align: left; }

.lm-name {
    color: #fff; 
    font-weight: 800; font-size: 18px; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 280px;
    transition: color 0.2s;
}
.lm-logo {
    width: 48px; height: 48px; border-radius: 8px; object-fit: cover; 
    background: rgba(255,255,255,0.05);
}

.lm-score-box {
    margin: 0 25px; 
    background: rgba(0,0,0,0.4); 
    padding: 4px 25px; 
    border-radius: 8px; 
    font-weight: 900; font-size: 28px; 
    display: flex; align-items: center; gap: 8px;
    transition: background 0.2s;
}
.lm-score-num { color: #fff; transition: color 0.2s; }
.lm-score-num.win { color: #2ecc71 !important; } 
.lm-score-divider { color: #555; transition: color 0.2s; }


.light-theme .lm-main-title { color: #2c3e50; }
.light-theme .live-match-card {
    background: #ffffff;
    border-color: rgba(231, 76, 60, 0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.light-theme .live-match-card:hover {
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.15);
}
.light-theme .lm-name { color: #2c3e50; }
.light-theme .lm-logo { background: #f0f2f5; border: 1px solid #eee; }

.light-theme .lm-score-box {
    background: #f0f2f5; 
    border: 1px solid #e0e4e8;
}
.light-theme .lm-score-num { color: #333; } 
.light-theme .lm-score-divider { color: #999; }


/* =========================================
                ПАКЕТ АНИМАЦИЙ
   ========================================= */


@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.side-box, .news-card, .stat-card, .live-match-card, .stream-card, .mini-staff-card {
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0; 
}


.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }

.mini-staff-card:nth-child(1) { animation-delay: 0.1s; }
.mini-staff-card:nth-child(2) { animation-delay: 0.15s; }
.mini-staff-card:nth-child(3) { animation-delay: 0.2s; }
.mini-staff-card:nth-child(4) { animation-delay: 0.25s; }


.stat-card::after {
    content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.15), rgba(255,255,255,0));
    transform: skewX(-25deg);
    transition: none;
    z-index: 10; pointer-events: none;
}
.stat-card:hover::after {
    left: 150%; transition: left 0.6s ease-in-out;
}
.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
}


.news-image-wrap {
    overflow: hidden; 
}
.news-image-wrap img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.news-card:hover .news-image-wrap img {
    transform: scale(1.08); 
}


.news-link, .btn-hero-add, .hero-btn {
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.news-link:active, .btn-hero-add:active, .hero-btn:active {
    transform: scale(0.94) !important;
}


@keyframes breathing {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; text-shadow: 0 0 10px var(--accent-color); }
    100% { transform: scale(1); opacity: 0.8; }
}


.staff-head img {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}
.mini-staff-card:hover .staff-head img {
    transform: scale(1.15) rotate(-5deg); 
}


.light-theme .stat-card::after { background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.05), rgba(0,0,0,0)); }