.focus-outline:focus{ outline:2px solid var(--tn-accent); outline-offset:2px; }
      /* Ensure only overlays are hidden if Tailwind fails to load (avoid breaking lg:flex nav) */
      #tn-mobile-drawer.hidden, #tn-search-overlay.hidden, #tn-mobile-drawer[hidden], #tn-search-overlay[hidden]{ display:none !important; }
      /* Overlays must always be on top (streamer pages may tweak header stacking) */
      #tn-mobile-drawer, #tn-search-overlay{ z-index: 10000 !important; }
      /* Tabs generic (used in profile modal) */
      .tn-tab{ position:relative; color:inherit; text-decoration:none; display:inline-flex; align-items:center; }
      .tn-tab--active{ color:var(--tn-accent); background:transparent; box-shadow: inset 0 0 0 1px var(--tn-accent); border-radius:8px; }

      /* Hero title on homepage */
      .hero-title{max-width:52rem;line-height:1.2;}
      @media (max-width:768px){
        .hero-title{
          font-size:clamp(22px,5.8vw,28px);
          line-height:1.15;
          max-width:90%;
          display:-webkit-box;
          -webkit-box-orient:vertical;
          -webkit-line-clamp:2;
          overflow:hidden;
        }
      }

      /* Vertical spacing on homepage - unified 24px (1.5rem) */
      .home-hero{margin-top:1.5rem;margin-bottom:1.5rem;}
      .home-top-streamers{margin-top:1.5rem;margin-bottom:1.5rem;}
      .home-popular-week{margin-top:1.5rem;margin-bottom:1.5rem;}
      .home-category-section{margin-top:1.5rem;margin-bottom:1.5rem;}
      .home-sidebar{margin-top:1.5rem;}
      @media (min-width:1024px){
        .home-sidebar{margin-top:0;}
      }
      /* Убеждаемся, что sidebar виден на десктопе */
      @media (min-width:1024px){
        .home-sidebar.hidden{display:flex !important;flex-direction:column;}
      }
      /* Sticky sidebar ограничение - останавливается на границе grid контейнера */
      @media (min-width:1024px){
        .grid.grid-cols-1.lg\:grid-cols-4{
          align-items:flex-start;
        }
      }

      /* Mobile order for homepage blocks */
      @media (max-width: 1023px) {
        .home-main-mobile-order {
          display: flex;
          flex-direction: column;
        }
        .home-order-1 { order: 1; }
        .home-order-2 { order: 2; margin-top: 1.5rem; margin-bottom: 1.5rem; }
        .home-order-3 { order: 3; }
        .home-order-4 { order: 4; }
        .home-order-5 { order: 5; }
        .home-order-6 { order: 6; }
        /* Улучшение стиля блока "Свежее" на мобильных */
        .home-latest-mobile section {
          margin: 0;
        }
        .home-latest-mobile h2 {
          font-size: 1.25rem;
          letter-spacing: 0.05em;
        }
      }

      /* Homepage section titles */
      .home-top-streamers h2 a[style*="color: rgb(145 70 255)"]{
        color:rgb(145,70,255) !important;
      }

      /* Hide 5th and 6th streamers on mobile */
      @media (max-width: 1023px) {
        .home-top-streamers .top-streamer-mobile-hide {
          display: none;
        }
      }

      /* Top streamers positions styling */
      .home-top-streamers .top-streamer-position-1{
        background:rgba(42,31,0,0.85) !important;
        border-color:rgba(233,196,106,0.3) !important;
      }
      .home-top-streamers .top-streamer-position-1:hover{
        border-color:#E9C46A !important;
      }
      .home-top-streamers .top-streamer-position-1 .top-streamer-badge{
        background:#E9C46A !important;
        color:#1a1a1a !important;
      }
      .home-top-streamers .top-streamer-position-2{
        background:rgba(31,31,42,0.85) !important;
        border-color:rgba(155,174,200,0.3) !important;
      }
      .home-top-streamers .top-streamer-position-2:hover{
        border-color:#9BAEC8 !important;
      }
      .home-top-streamers .top-streamer-position-2 .top-streamer-badge{
        background:#9BAEC8 !important;
        color:#1a1a1a !important;
      }
      .home-top-streamers .top-streamer-position-3{
        background:rgba(42,25,18,0.85) !important;
        border-color:rgba(212,122,72,0.3) !important;
      }
      .home-top-streamers .top-streamer-position-3:hover{
        border-color:#D47A48 !important;
      }
      .home-top-streamers .top-streamer-position-3 .top-streamer-badge{
        background:#D47A48 !important;
        color:#ffffff !important;
      }

      /* Global scroll progress bar */
      .tn-scroll-progress{position:fixed;top:0;left:0;right:0;z-index:45;height:3px;background:rgba(15,23,42,.95);border-radius:0;overflow:hidden;margin:0;}
      .tn-scroll-progress__inner{height:100%;width:0;background:linear-gradient(90deg,#a855f7,#6366f1);}

      /* Smaller title for the specific 2025 top streamers page */
      .tn-small-page-title{
        font-size:clamp(1.4rem,4vw,1.9rem);
        line-height:1.2;
      }

      /* REMOVED: Mobile hint notification styles - notification removed */

      /* Telegram posts hero - компактный размер, без play icon */
      .post-hero.tn-tg-hero {
        max-height: 220px;
        overflow: hidden;
      }
      .post-hero.tn-tg-hero figure {
        max-height: 220px;
        overflow: hidden;
        cursor: default !important;
      }
      .post-hero.tn-tg-hero .tn-tg-hero-img {
        max-height: 220px;
        height: 220px;
        cursor: default !important;
      }
      .post-hero.tn-tg-hero .tn-tg-hero-placeholder {
        max-height: 220px;
        height: 220px;
      }
      /* Убираем любые play overlay элементы для Telegram-постов */
      .post-hero.tn-tg-hero figure::before,
      .post-hero.tn-tg-hero figure::after,
      .post-hero.tn-tg-hero .tn-tg-hero-img::before,
      .post-hero.tn-tg-hero .tn-tg-hero-img::after {
        display: none !important;
        content: none !important;
      }
      /* Убираем hover эффекты, намекающие на видео */
      .post-hero.tn-tg-hero figure:hover {
        transform: none !important;
      }
      .post-hero.tn-tg-hero .tn-tg-hero-img:hover {
        transform: none !important;
        cursor: default !important;
      }
      /* Мобильная версия для Telegram-постов */
      @media (max-width: 768px) {
        .post-hero.tn-tg-hero {
          max-height: 160px;
          overflow: hidden;
        }
        .post-hero.tn-tg-hero figure {
          max-height: 160px;
          overflow: hidden;
        }
        .post-hero.tn-tg-hero .tn-tg-hero-img {
          max-height: 160px;
          height: 160px;
        }
        .post-hero.tn-tg-hero .tn-tg-hero-placeholder {
          max-height: 160px;
          height: 160px;
        }
      }

      /* Limit post-hero height on mobile */
      @media (max-width:768px){
        .post-hero:not(.tn-tg-hero){
          max-height:42vh;
          position:relative;
          overflow:visible; /* Метаданные не обрезаются */
        }
        .post-hero:not(.tn-tg-hero) figure{
          height:100%;
          position:relative;
          overflow:visible; /* Метаданные не обрезаются */
        }
        /* Ограничиваем высоту изображения/градиента */
        .post-hero:not(.tn-tg-hero) figure > img,
        .post-hero:not(.tn-tg-hero) figure > div[style*="height"]{
          max-height:42vh;
          height:42vh;
          object-fit:cover;
        }
        /* Градиентный оверлей тоже ограничиваем */
        .post-hero:not(.tn-tg-hero) figure > div.bg-gradient-to-t{
          max-height:42vh;
          height:42vh;
        }
        /* Метаданные всегда видны поверх, не обрезаются */
        .post-hero:not(.tn-tg-hero) figure .container{
          position:absolute !important;
          bottom:0 !important;
          left:0 !important;
          right:0 !important;
          z-index:20 !important;
          padding:1rem !important;
        }
      }

/* Modern Facts Redesign */
.single-streamer .tn-community-facts__list.is-carousel {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 16px !important;
    padding-bottom: 24px !important;
    -webkit-overflow-scrolling: touch;
}
.single-streamer .tn-community-facts__list.is-carousel::-webkit-scrollbar {
    height: 8px;
    display: block !important;
}
.single-streamer .tn-community-facts__list.is-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}
.single-streamer .tn-community-facts__list.is-carousel::-webkit-scrollbar-thumb {
    background: rgba(145, 70, 255, 0.4);
    border-radius: 8px;
}
.single-streamer .tn-community-facts__list.is-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(145, 70, 255, 0.8);
}
.single-streamer .tn-community-facts__list.is-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 16px !important;
    justify-content: center;
}
.single-streamer .tn-fact-modern {
    background: linear-gradient(145deg, rgba(145, 70, 255, 0.08), rgba(20, 20, 25, 0.6)) !important;
    border: 1px solid rgba(145, 70, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 24px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    margin: 0 !important;
}
/* For mobile, fix width in carousel to make it more square */
.single-streamer .tn-community-facts__list.is-carousel .tn-fact-modern {
    flex: 0 0 240px !important;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .single-streamer .tn-community-facts__list.is-carousel .tn-fact-modern {
        flex: 0 0 280px !important;
    }
}
.single-streamer .tn-fact-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
    border-color: rgba(255,255,255,0.08) !important;
}
.single-streamer .tn-community-fact__icon-modern {
    font-size: 28px !important;
    margin-bottom: 8px !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)) !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
}
.single-streamer .tn-community-fact__content-modern p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #e4e4e7 !important;
    margin: 0 !important;
}
.single-streamer .tn-community-fact--add {
    background: rgba(255,255,255,0.03) !important;
    border: 1px dashed rgba(255,255,255,0.15) !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 160px !important;
}
.single-streamer .tn-community-fact--add:hover {
    background: rgba(255,255,255,0.06) !important;
}
.single-streamer .tn-community-votes {
    margin-top: auto !important;
    padding-top: 8px !important;
}


/* Tablet button width equalization */
@media (max-width: 1180px) and (min-width: 761px) {
    .single-streamer .streamer-hero-actions {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
    }
    .single-streamer .streamer-hero-actions .tn-fav-cta,
    .single-streamer .streamer-complete-cta {
        width: 100% !important;
        max-width: 320px !important;
        justify-content: center !important;
    }
}

/* Twitch Watch Button */
.streamer-watch-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 950;
    line-height: 1;
    border: 1px solid rgba(145, 70, 255, 0.4);
    background: rgba(145, 70, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1 1 200px;
    max-width: 320px;
}
.streamer-watch-cta:hover {
    background: rgba(145, 70, 255, 0.3);
    border-color: rgba(145, 70, 255, 0.6);
}
.streamer-watch-cta svg {
    fill: #bf94ff;
}

/* Share Buttons */
.tn-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.2s;
}
.tn-share-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.tn-share-btn-pc {
    width: 46px;
    height: 46px;
    border-radius: 11px;
}
.tn-share-btn-mobile {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    flex: 0 0 56px;
}
@media (min-width: 761px) {
    .tn-share-btn-mobile { display: none !important; }
}
@media (max-width: 760px) {
    .tn-share-btn-pc { display: none !important; }
}

/* Spotlight Effect */
.tn-profile-similar-card, .tn-news-item {
    position: relative;
    overflow: hidden;
}
.tn-profile-similar-card::before, .tn-news-item::before {
    content: "";
    position: absolute;
    top: var(--y, -100%);
    left: var(--x, -100%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(145, 70, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.tn-profile-similar-card:hover::before, .tn-news-item:hover::before {
    opacity: 1;
}
.tn-profile-similar-card > *, .tn-news-item > * {
    position: relative;
    z-index: 1;
}
