/* ============================================
   SportJournal — Layout (Header, Footer, Grid)
   ============================================ */

/* ─── Общая структура ─── */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding-top: calc(var(--header-height) + var(--ticker-height));
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
}

.content-area {
    min-width: 0;
}

.sidebar {
    position: relative;
}

.sidebar>*+* {
    margin-top: var(--space-lg);
}

/* ═════════════════════════════════════
   HEADER
   ═════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: var(--bg-header);
}

/* Навигация */
.header__nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    max-width: var(--container-max);
    margin: 0 auto;
}

.header__left {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--fs-xl);
    letter-spacing: -0.02em;
}

.header__logo:hover {
    color: #fff;
}

.header__logo-icon {
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.header__logo-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* Меню рубрик */
.nav-menu {
    display: flex;
    gap: 2px;
}

.nav-menu__item {
    position: relative;
}

.nav-menu__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.nav-menu__link:hover,
.nav-menu__link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu__link svg {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-fast);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-mega-menu);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-width: 560px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    z-index: var(--z-mega-menu);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-menu__item:hover .mega-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.nav-menu__item:hover .nav-menu__link svg {
    transform: rotate(180deg);
}

.mega-menu__section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-menu__link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px var(--space-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.mega-menu__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.mega-menu__news {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
}

.mega-menu__news-title {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.mega-menu__news-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-sm);
    cursor: pointer;
}

.mega-menu__news-item:hover {
    color: #fff;
}

/* Правый блок шапки */
.header__right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header__search-btn,
.header__theme-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.header__search-btn:hover,
.header__theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.header__search-btn svg,
.header__theme-btn svg {
    width: 20px;
    height: 20px;
}

/* Мобильное меню (бургер) */











/* ═════════════════════════════════════
   HERO GRID (Главная — «Главное»)
   ═════════════════════════════════════ */
.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-grid .news-card--hero {
    grid-row: 1 / 3;
}

.hero-grid .news-card--medium .news-card__image {
    height: 140px;
}

/* ─── Секция ─── */
.section {
    margin-bottom: var(--space-2xl);
}

.section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.section__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--fs-xl);
    position: relative;
    padding-left: var(--space-md);
}

.section__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
}

.section__more {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section__more:hover {
    color: var(--color-accent-hover);
}

/* ─── Лента новостей ─── */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.load-more {
    display: flex;
    justify-content: center;
    padding: var(--space-xl) 0;
}

/* ─── Категории (пилюли) ─── */
.category-pills {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.pill.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

/* ═════════════════════════════════════
   FOOTER
   ═════════════════════════════════════ */
.footer {
    background: var(--bg-footer);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--fs-xl);
    color: #fff;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__desc {
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-lg);
}

.footer__socials {
    display: flex;
    gap: var(--space-sm);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.footer__social-link:hover {
    background: var(--color-accent);
    color: #fff;
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

.footer__section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-sm);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.footer__links a {
    display: block;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--fs-sm);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.35);
}

.footer__bottom a {
    color: rgba(255, 255, 255, 0.35);
}

.footer__bottom a:hover {
    color: #fff;
}

/* ═════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .sidebar>*+* {
        margin-top: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mega-menu {
        min-width: 440px;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .nav-menu {
        display: none;
    }

        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .hero-grid .news-card--hero {
        grid-row: auto;
    }

    .hero-grid .news-card--hero .news-card__image {
        min-height: 260px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: var(--fs-2xl);
    }

    h2 {
        font-size: var(--fs-xl);
    }

    h3 {
        font-size: var(--fs-lg);
    }

    .container {
        padding: 0 var(--space-md);
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* Small Mobile (≤375px) */
@media (max-width: 375px) {
    :root {
        --fs-base: 0.9375rem;
    }

    .header__logo {
        font-size: var(--fs-md);
    }
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
}

.footer__brand {
    max-width: 280px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 16px;
}

.footer__logo:hover {
    color: var(--color-accent);
}

.footer__logo-icon {
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.footer__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--text);
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer__nav a:hover {
    color: var(--color-accent);
}

.footer__social {
    display: flex;
    gap: 10px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.footer__social-link:hover {
    background: var(--color-accent);
    color: #fff;
}

.footer__bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

.footer__links a:hover {
    color: var(--color-accent);
}

/* Mobile footer */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer__brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}
/* ═══ FOOTER (updated) ═══ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr repeat(5, auto);
    gap: 32px;
    align-items: start;
}

.footer__brand {
    max-width: 260px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 16px;
}

.footer__logo:hover {
    color: var(--color-accent);
}

.footer__logo-icon {
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.footer__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.footer__col {
    min-width: 0;
}

.footer__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    color: var(--text);
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: block;
    white-space: nowrap;
}

.footer__nav a:hover {
    color: var(--color-accent);
}

.footer__social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer__social-link {
    width: 38px;
    height: 38px;
    background: var(--bg-tertiary, #2a2a3e);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.footer__social-link:hover {
    background: var(--color-accent);
    color: #fff;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
}

.footer__bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__copyright {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.footer__links a:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 1200px) {
    .footer__grid {
        grid-template-columns: 1fr repeat(4, auto);
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer__brand {
        grid-column: 1 / -1;
        max-width: 100%;
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 32px 0 20px;
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer__nav {
        gap: 6px;
    }
}















    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
}

















@media (min-width: 1025px) {
        display: none !important;
    }
    
        display: none !important;
    }
}
















    width: 24px;
    height: 24px;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .nav-menu {
        display: none !important;
    }
    
        display: flex !important;
    }
}

@media (min-width: 1025px) {
        display: none !important;
    }
    
        display: none !important;
    }
}


@media (min-width: 1025px) {
}
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    opacity: 1 !important;
    visibility: visible !important;
}

    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 300px !important;
    max-width: 85% !important;
    height: 100% !important;
    background: #1e1e2f !important;
    overflow-y: auto !important;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}

    transform: translateX(0) !important;
}

    background: #252540 !important;
    border-bottom: 1px solid #3a3a5a;
}

    color: #fff !important;
}

    color: #888 !important;
    border-top-color: #3a3a5a !important;
}

    color: #fff !important;
    border-bottom-color: #3a3a5a !important;
}

    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 8px;
    display: flex;
}



    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-top: 16px;
}

    border-top: none;
    padding-top: 0;
}

    display: block;
    padding: 12px 0;
    text-decoration: none;
    font-size: 16px;
}


/* Burger button */
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    z-index: 1000;
    position: relative;
}

/* Mobile only */
@media (max-width: 1024px) {
    .nav-menu { display: none !important; }
}

@media (min-width: 1025px) {
}

/* ═══ HEADER BURGER ═══ */
.header__burger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    z-index: 10000;
    position: relative;
}

.header__burger svg {
    width: 24px;
    height: 24px;
}

/* ═══ MOBILE MENU ═══ */
.mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu__content {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 300px !important;
    max-width: 85% !important;
    height: 100% !important;
    background: #1e1e2f !important;
    overflow-y: auto !important;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}

.mobile-menu.active .mobile-menu__content {
    transform: translateX(0) !important;
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #252540 !important;
    border-bottom: 1px solid #3a3a5a;
}

.mobile-menu__logo {
    font-size: 18px;
    font-weight: 700;
    color: #fff !important;
}

.mobile-menu__close {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 8px;
    display: flex;
}

.mobile-menu__close:hover { color: #fff !important; }

.mobile-menu__nav { padding: 16px 0; }
.mobile-menu__section { padding: 0 20px 20px; }

.mobile-menu__section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888 !important;
    margin-bottom: 12px;
    padding-top: 16px;
    border-top: 1px solid #3a3a5a;
}

.mobile-menu__section:first-child .mobile-menu__section-title {
    border-top: none;
    padding-top: 0;
}

.mobile-menu__link {
    display: block;
    padding: 12px 0;
    color: #fff !important;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #3a3a5a;
}

.mobile-menu__link:hover { color: #ff4d4d !important; }
.mobile-menu__link--live { color: #ff4757 !important; font-weight: 600; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .nav-menu { 
        display: none !important; 
    }
    .header__burger { 
        display: flex !important; 
    }
}

@media (min-width: 1025px) {
    .mobile-menu { 
        display: none !important; 
    }
    .header__burger { 
        display: none !important; 
    }
}

/* Гарантия видимости league-table и tab-content */
.league-table {
    display: block !important;
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 12px;
    overflow: hidden;
}

.league-table__header {
    background: #252540;
    padding: 14px 16px;
    font-weight: 700;
    color: #fff;
}

.league-table table {
    width: 100%;
    border-collapse: collapse;
}

.league-table th,
.league-table td {
    padding: 10px 12px;
    text-align: left;
    color: #fff;
}

.league-table th {
    color: #888;
    font-size: 12px;
    font-weight: 600;
}

.league-table tr {
    border-bottom: 1px solid #2a2a3e;
}

.league-table tr:hover {
    background: rgba(255,255,255,0.03);
}

.league-table__pts {
    font-weight: 700;
    color: #fff;
}

.league-table__pos--ucl {
    color: #4ade80;
}

.league-table__pos--uel {
    color: #60a5fa;
}

.tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: #1a1a2e;
}

.tab {
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.tab.active {
    background: var(--color-accent, #ff4d4d);
    color: #fff;
}

.tab-content {
    padding: 12px;
}

.tab-content.active {
    display: block !important;
}

/* Popular widget */
.popular-widget {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 12px;
    overflow: hidden;
}

.popular-widget__header {
    background: #252540;
    padding: 14px 16px;
    font-weight: 700;
    color: #fff;
}

.popular-widget__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #2a2a3e;
}

.popular-widget__item:hover {
    background: rgba(255,255,255,0.03);
}

.popular-widget__num {
    width: 24px;
    height: 24px;
    background: var(--color-accent, #ff4d4d);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
}

.popular-widget__text {
    font-size: 14px;
    line-height: 1.4;
}

.popular-widget__meta {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Sidebar на мобильных - 2 колонки */
@media (max-width: 1024px) {
    .sidebar {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        margin-top: 24px;
    }
    
    .popular-widget {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .sidebar {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile Menu - Additional Styles for Touch Devices */
.mobile-menu__link {
    display: block;
    padding: 12px 20px;
    color: #fff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d !important;
}

.mobile-menu__link--live {
    color: #ff4d4d !important;
    font-weight: 700;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .mobile-menu {
        -webkit-overflow-scrolling: touch;
    }
    .mobile-menu__content {
        -webkit-overflow-scrolling: touch;
    }
}

/* Ensure burger is clickable on mobile */
.header__burger {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
    z-index: 9999999;
    position: relative;
}

.header__burger svg {
    pointer-events: none;
}
