/* Explore — match home / browse stream cards + compact chrome (no glass) */

/* Keep .container horizontal gutters (14–18px) — never zero padding-inline */
.page-explore #tlExplorePage.hubs-page,
.page-explore #tlExploreBootSk.explore-page {
    max-width: none;
    width: min(1400px, 100%);
    margin: 0 auto;
    padding-top: 12px;
    padding-bottom: 56px;
    padding-inline: 16px;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .page-explore #tlExplorePage.hubs-page,
    .page-explore #tlExploreBootSk.explore-page {
        padding-inline: 18px;
    }
}

@media (max-width: 768px) {
    .page-explore #tlExplorePage.hubs-page,
    .page-explore #tlExploreBootSk.explore-page {
        padding-inline: 14px;
    }
}

#tlExplorePage .tl-explore-page-head,
#tlExploreBootSk .tl-explore-page-head {
    display: block;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: none;
}

#tlExplorePage .tl-explore-page-head .tl-hl-title,
#tlExploreBootSk .tl-explore-page-head .tl-hl-title {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
}

#tlExplorePage .tl-explore-page-desc {
    margin: 6px 0 0;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--text-muted, #9ca3af);
    max-width: 48ch;
}

#tlExplorePage .tl-page-hero,
#tlExplorePage .explore-hero,
#tlExplorePage .explore-registered-count {
    display: none !important;
}

/* Toolbar */
#tlExplorePage .hubs-toolbar {
    gap: 10px;
    margin-bottom: 14px;
}

#tlExplorePage .hubs-search-form {
    min-height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#tlExplorePage .hubs-search-form .search-input {
    padding: 8px 12px !important;
}

#tlExplorePage .hubs-search-form .search-btn {
    width: 40px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 0 10px 10px 0 !important;
}

html[dir="rtl"] #tlExplorePage .hubs-search-form .search-btn {
    border-radius: 10px 0 0 10px !important;
}

#tlExplorePage .hubs-platform-stats {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

#tlExplorePage .hubs-platform-stats::-webkit-scrollbar { display: none; }

#tlExplorePage .hubs-stat {
    flex: 0 0 auto;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    font-size: 0.78rem;
}

#tlExplorePage .hubs-stat b {
    min-width: 18px;
    padding: 1px 6px;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.06);
}

#tlExplorePage button.hubs-stat.is-active {
    box-shadow: none;
}

#tlExplorePage .hubs-stat--all.is-active {
    background: rgba(30, 86, 245, 0.18);
    border-color: rgba(107, 159, 255, 0.35);
}

#tlExplorePage .hubs-categories-scroll {
    margin: 0;
}

#tlExplorePage .hubs-cat-filter.category-card-scroll {
    width: 76px;
    background: transparent;
    border-color: transparent;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#tlExplorePage .hubs-cat-filter.is-active {
    outline: 2px solid var(--brand, #1e56f5);
    outline-offset: 2px;
}

/* Add streamer — collapsed by default */
#tlExplorePage .hubs-add-details {
    margin: 0 0 18px;
    border: 0;
    background: transparent;
}

#tlExplorePage .hubs-add-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    padding: 8px 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-soft, #6b9fff);
    user-select: none;
}

#tlExplorePage .hubs-add-summary::-webkit-details-marker { display: none; }

#tlExplorePage .hubs-add-summary::after {
    content: "";
    width: 6px;
    height: 6px;
    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-inline-start: 2px;
    transition: transform 0.15s ease;
}

#tlExplorePage .hubs-add-details[open] .hubs-add-summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

#tlExplorePage .hubs-add-section {
    padding: 8px 0 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#tlExplorePage .hubs-add-hint {
    margin: 0 0 10px;
    font-size: 0.8rem;
}

#tlExplorePage .hubs-add-input {
    height: 40px;
    max-height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: none;
}

#tlExplorePage .hubs-add-btn {
    box-shadow: none !important;
    min-height: 40px;
}

/* Live head + sort */
#tlExplorePage .hubs-grid-section {
    margin-bottom: 28px;
    padding: 0;
}

#tlExplorePage .hubs-grid-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 0;
    border: 0;
}

#tlExplorePage .hubs-grid-head .tl-hl-title { margin: 0; }

#tlExplorePage .hubs-live-count.tl-hl-count {
    min-width: 0;
    height: auto;
    background: rgba(30, 86, 245, 0.14);
    border: 1px solid rgba(30, 86, 245, 0.38);
    color: #7aa3ff;
}

#tlExplorePage .browse-live-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-inline-start: 0;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#tlExplorePage .browse-live-sort__btn {
    min-width: 44px;
    height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted, #adadb8);
    font-size: 0.74rem;
    font-weight: 700;
}

#tlExplorePage .browse-live-sort__btn.is-active {
    border-color: rgba(107, 159, 255, 0.35);
    background: rgba(30, 86, 245, 0.18);
    color: var(--brand-soft, #6b9fff);
    box-shadow: none;
}

/* Grid — beat style.css !important 1-col */
#tlExplorePage .hubs-grid.streams-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

@media (max-width: 1180px) {
    #tlExplorePage .hubs-grid.streams-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 860px) {
    #tlExplorePage .hubs-grid.streams-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/* Cards — home stream-card silhouette */
#tlExplorePage .hubs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible;
    transition: transform 0.2s ease;
}

#tlExplorePage .hubs-card:hover {
    transform: translateY(-2px);
}

#tlExplorePage .hubs-card-thumb-wrap {
    position: relative;
}

#tlExplorePage .hubs-card-media {
    display: block;
    text-decoration: none;
    color: inherit;
}

#tlExplorePage .hubs-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: 1px solid transparent;
    overflow: hidden;
    isolation: isolate;
    background: #14151a;
    transition: border-color 0.2s ease;
}

#tlExplorePage .hubs-card:hover .hubs-card-thumb {
    border-color: rgba(107, 159, 255, 0.35);
}

#tlExplorePage .hubs-card-thumb img.hubs-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

#tlExplorePage .hubs-card:hover .hubs-card-thumb img.hubs-card-thumb-img {
    transform: scale(1.03);
}

#tlExplorePage .hubs-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 42%);
}

#tlExplorePage .hubs-card-overlay__top {
    display: flex;
    align-items: flex-start;
}

#tlExplorePage .hubs-viewer-total.viewer-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#tlExplorePage .hubs-viewer-badges {
    align-self: flex-end;
    gap: 4px;
}

#tlExplorePage .hubs-plat-viewers {
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
}

#tlExplorePage .hubs-card-admin-del {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

#tlExplorePage .hubs-card:hover .hubs-card-admin-del,
#tlExplorePage .hubs-card:focus-within .hubs-card-admin-del {
    opacity: 0.92;
    pointer-events: auto;
}

@media (hover: none) {
    #tlExplorePage .hubs-card-admin-del {
        opacity: 0.75;
        pointer-events: auto;
    }
}

/* Meta — same grid as home stream-info */
#tlExplorePage .hubs-card-body {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 2px 0;
    flex: none;
}

#tlExplorePage .hubs-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #1a1b1f;
}

#tlExplorePage .hubs-card-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#tlExplorePage .hubs-card-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#tlExplorePage .hubs-card-title a {
    color: inherit;
    text-decoration: none;
}

#tlExplorePage .hubs-card-title a:hover {
    color: var(--brand-soft, #6b9fff);
}

#tlExplorePage .hubs-card-id {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted, #9ca3af);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tlExplorePage .hubs-card-category {
    display: block;
    align-self: auto;
    margin-top: 1px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.74rem;
    color: var(--text-muted, #9ca3af);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tlExplorePage .hubs-card-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    padding-top: 0;
}

#tlExplorePage .hubs-plat-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    text-decoration: none;
    flex: 0 0 auto;
    transition: opacity 0.15s ease;
}

#tlExplorePage .hubs-plat-chip:hover { opacity: 0.9; }

#tlExplorePage .hubs-plat-chip--kick {
    background: #53fc18;
    color: #0a0a0a;
}

#tlExplorePage .hubs-plat-chip--twitch {
    background: #9146ff;
    color: #fff;
}

#tlExplorePage .hubs-plat-chip--tele {
    background: var(--brand, #1e56f5);
}

#tlExplorePage .hubs-plat-chip img {
    display: block;
    width: 14px;
    height: 14px;
    object-fit: contain;
}

#tlExplorePage .hubs-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted, #9ca3af);
}

#tlExplorePage .hubs-empty i {
    font-size: 1.6rem;
    color: #71717a;
}

@media (max-width: 640px) {
    #tlExplorePage .hubs-card-body {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 8px;
        padding-top: 8px;
    }
    #tlExplorePage .hubs-card-avatar { width: 28px; height: 28px; }
    #tlExplorePage .hubs-card-title { font-size: 0.8rem; }
    #tlExplorePage .hubs-card-id { font-size: 0.74rem; }
    #tlExplorePage .hubs-card-overlay { padding: 7px; }
    #tlExplorePage .hubs-add-form {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    #tlExplorePage .hubs-add-input {
        flex: 1 1 140px;
        width: auto;
    }
    #tlExplorePage .hubs-add-btn {
        width: auto;
        flex: 0 0 auto;
    }
}
