
/* ============================================================
   LIVE PAGE  –  /pages/live.php
   ============================================================ */

:root {
    --live-red:       #e8213b;
    --live-red-soft:  rgba(232, 33, 59, 0.12);
    --live-red-glow:  rgba(232, 33, 59, 0.22);
    --twitch-color:   #9146ff;
    --youtube-color:  #e8001d;
    --site-color:     #3ea6ff;
    --card-bg:        #161618;
    --card-bg-hover:  #1e1e22;
    --card-radius:    14px;
    --thumb-ratio:    56.25%;   /* 16:9 */
}

.live-page {
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 48px;
}

/* ============================================================
   HERO (CLEAN)
   ============================================================ */
.live-header-clean {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: var(--card-bg);
    border-radius: var(--card-radius);
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
    gap: 16px;
}

.live-header-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-header-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.live-header-desc {
    margin: 0;
    font-size: 15px;
    color: rgba(255,255,255,0.6);
}

.live-header-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.live-dashboard-author-link {
    align-self: center;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(62, 166, 255, 0.35);
    color: var(--site-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.live-dashboard-author-link:hover {
    background: rgba(62, 166, 255, 0.12);
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.live-stat {
    background: rgba(232, 33, 59, 0.1);
    border-color: rgba(232, 33, 59, 0.2);
}

.stat-val {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.live-stat .stat-val {
    color: var(--live-red);
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live-red);
    animation: live-pulse-dot 1.5s ease-in-out infinite;
}

/* ============================================================
   TOOLBAR (CLEAN)
   ============================================================ */
.live-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 32px;
    background: var(--card-bg);
    padding: 16px 24px;
    border-radius: var(--card-radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.live-toolbar-row1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.live-topic-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.live-topic-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.live-topic-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.live-topic-scroll::-webkit-scrollbar {
    height: 4px;
}

.live-topic-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.live-topic-pill {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.live-topic-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
}

.live-topic-pill.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.live-topic-pill--all.is-active {
    background: linear-gradient(135deg, rgba(255, 59, 90, 0.22), rgba(145, 70, 255, 0.18));
    border-color: rgba(255, 255, 255, 0.22);
}

.live-card-genre-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
}

.live-platform-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.live-ptab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    text-decoration: none;
}

.live-ptab:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.live-ptab.is-active {
    background: #fff;
    color: #000;
}

.live-ptab--twitch.is-active { background: var(--twitch-color); color: #fff; }
.live-ptab--youtube.is-active { background: var(--youtube-color); color: #fff; }
.live-ptab--site.is-active {
    background: rgba(255, 255, 255, 0.96);
    color: #111;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.live-toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.live-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.live-search-input {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 68px 10px 16px;
    font-size: 14px;
    color: #fff;
    width: 240px;
    transition: all 0.2s;
    outline: none;
}

.live-search-input:focus {
    border-color: rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.4);
    width: 280px;
}

.live-search-input::-webkit-search-cancel-button,
.live-search-input::-webkit-search-decoration,
.live-search-input::-webkit-search-results-button,
.live-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.live-search-input::-ms-clear,
.live-search-input::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

.live-search-btn {
    position: absolute;
    right: 12px;
    color: rgba(255,255,255,0.5);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.live-search-btn:hover { opacity: .9; }

.live-search-icon {
    filter: invert(1);
    opacity: .65;
}

.live-search-clear {
    position: absolute;
    right: 36px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255,255,255,.95);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.live-search-clear:hover {
    background: rgba(255,255,255,.1);
}

.live-search-clear.is-visible {
    display: inline-flex;
}

.live-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-sort-custom {
    position: relative;
}

.live-sort-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.34);
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.live-sort-toggle svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.live-sort-custom.is-open .live-sort-toggle svg {
    transform: rotate(180deg);
}

.live-sort-custom.is-open .live-sort-toggle,
.live-sort-toggle:hover {
    background: rgba(255,255,255,.14);
}

.live-sort-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 220px;
    background: #242429;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 8px 0;
    box-shadow: 0 18px 30px rgba(0,0,0,.42);
    display: none;
    z-index: 30;
}

.live-sort-custom.is-open .live-sort-dropdown {
    display: block;
}

.live-sort-option {
    display: block;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    padding: 10px 14px;
    font-size: 16px;
    line-height: 1.35;
}

.live-sort-option:hover,
.live-sort-option.is-active {
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.live-section {
    margin-bottom: 40px;
}

.live-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.live-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color, #f1f1f1);
}

.live-section-count {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.07);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ============================================================
   БЕЙДЖИ
   ============================================================ */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.live-badge--pulse {
    background: linear-gradient(135deg, #ff3352 0%, #d4122e 55%, #b30f26 100%);
    color: #fff;
    border-radius: 999px;
    padding: 5px 11px 5px 9px;
    font-size: 10px;
    letter-spacing: .1em;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 1px 6px rgba(232, 33, 59, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.live-card--live.live-card--plat-twitch .live-badge--pulse {
    background: linear-gradient(135deg, #a970ff 0%, #772ce8 50%, #5c16c5 100%);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 2px 12px rgba(145, 70, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.live-card--live.live-card--plat-twitch .live-badge-dot {
    background: #e9d5ff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

@keyframes live-pulse-dot {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .4; transform: scale(.8); }
}

.live-badge--soon {
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.85);
    text-transform: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0;
}

.live-badge--ended {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.45);
    text-transform: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0;
}

.live-platform-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.live-platform-badge--twitch  { background: rgba(145,70,255,.85); color: #fff; }
.live-platform-badge--youtube { background: rgba(232,0,29,.85);   color: #fff; }
.live-platform-badge--site {
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

/* ============================================================
   СЕТКА КАРТОЧЕК
   ============================================================ */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    position: relative;
}

.live-grid--muted .live-card {
    opacity: .72;
    transition: opacity .2s;
}

.live-grid--muted .live-card:hover { opacity: 1; }

/* ============================================================
   КАРТОЧКА
   ============================================================ */
.live-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: visible;
    transition: background-color .22s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    padding: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.live-card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* У «живых» карточек свои тени — не затираем их общим hover */
.live-card:not(.live-card--live):hover {
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.live-card.z-index-high {
    z-index: 40;
}

.live-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.live-card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: var(--thumb-ratio);
    background: linear-gradient(155deg, #222228 0%, #121214 42%, #1a1a22 100%);
    overflow: hidden;
}

.live-card-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
    opacity: 0.85;
}

.live-card-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .3s;
    z-index: 1;
}

.live-card:hover .live-card-thumb {
    transform: scale(1.04);
    opacity: .88;
}

.live-card--live {
    border-color: rgba(232, 33, 59, 0.28);
    box-shadow:
        0 0 0 1px rgba(232, 33, 59, 0.22) inset,
        0 0 22px rgba(232, 33, 59, 0.07),
        0 4px 20px rgba(0, 0, 0, 0.35);
}

.live-card--live:hover {
    border-color: rgba(232, 33, 59, 0.38);
    box-shadow:
        0 0 0 1px rgba(232, 33, 59, 0.28) inset,
        0 0 28px rgba(232, 33, 59, 0.1),
        0 12px 36px rgba(0, 0, 0, 0.45);
}

.live-card--live.live-card--plat-twitch {
    border-color: rgba(145, 70, 255, 0.38);
    box-shadow:
        0 0 0 1px rgba(145, 70, 255, 0.42) inset,
        0 0 30px rgba(145, 70, 255, 0.12),
        0 4px 20px rgba(0, 0, 0, 0.35);
}

.live-card--live.live-card--plat-twitch:hover {
    border-color: rgba(169, 112, 255, 0.5);
    box-shadow:
        0 0 0 1px rgba(169, 112, 255, 0.55) inset,
        0 0 36px rgba(145, 70, 255, 0.18),
        0 12px 36px rgba(0, 0, 0, 0.45);
}

.live-card--live.live-card--plat-youtube {
    border-color: rgba(232, 0, 29, 0.42);
    box-shadow:
        0 0 0 1px rgba(232, 0, 29, 0.32) inset,
        0 0 28px rgba(232, 0, 29, 0.12),
        0 4px 20px rgba(0, 0, 0, 0.35);
}

.live-card--live.live-card--plat-youtube:hover {
    border-color: rgba(255, 45, 70, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 45, 70, 0.45) inset,
        0 0 34px rgba(232, 0, 29, 0.18),
        0 12px 36px rgba(0, 0, 0, 0.45);
}

.live-card--live.live-card--plat-youtube .live-badge--pulse {
    background: linear-gradient(135deg, #ff3352 0%, #d4122e 55%, #b30f26 100%);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        0 1px 6px rgba(232, 33, 59, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.live-card--live.live-card--plat-youtube .live-badge-dot {
    background: #ffd4dc;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.live-card--live.live-card--plat-site {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.32) inset,
        0 0 26px rgba(255, 255, 255, 0.09),
        0 4px 20px rgba(0, 0, 0, 0.35);
}

.live-card--live.live-card--plat-site:hover {
    border-color: rgba(255, 255, 255, 0.52);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.42) inset,
        0 0 32px rgba(255, 255, 255, 0.12),
        0 12px 36px rgba(0, 0, 0, 0.45);
}

.live-card--live.live-card--plat-site .live-badge--pulse {
    background: linear-gradient(135deg, #f7f7f7 0%, #dcdcdc 50%, #bdbdbd 100%);
    color: #111;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 1px 8px rgba(255, 255, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.live-card--live.live-card--plat-site .live-badge-dot {
    background: #222;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.live-card-overlay-top {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    display: flex;
    gap: 6px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.live-card-viewers-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,.78);
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.live-card-external-hint {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,.65);
    color: rgba(255,255,255,.65);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    backdrop-filter: blur(4px);
}

.live-card-body {
    display: flex;
    gap: 10px;
    padding: 12px 12px 10px;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.live-card-menu-wrap {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 22;
}

.live-card-menu-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(0, 0, 0, .45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.live-card-menu-btn img {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

.live-card-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    right: 0;
    min-width: 190px;
    background: #28282d;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.46);
    padding: 6px 0;
}

/* Если меню не влезает вниз по высоте окна — открываем вверх */
.live-card-menu-wrap.opens-upward .live-card-menu-dropdown {
    top: auto;
    bottom: calc(100% + 8px);
}

.live-card-menu-wrap.is-open .live-card-menu-dropdown {
    display: block;
}

.live-card-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    padding: 10px 12px;
    font-size: 14px;
}

.live-card-menu-item:hover {
    background: rgba(255,255,255,.08);
}

.live-card-menu-item img {
    width: 18px;
    height: 18px;
    filter: invert(1);
}

/* Share modal close button styling for live page */
#live-share-modal .sharex-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#live-share-modal .sharex-close:hover {
    background: rgba(255,255,255,.16);
}


.live-card-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.live-card-avatar-wrap--platform .live-card-avatar {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.live-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #2a2a2e;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
    display: block;
}

.live-author-badges--card {
    margin-right: 4px;
    vertical-align: -2px;
}
.live-host-crown-svg {
    display: block;
    color: #f0c040;
    filter: drop-shadow(0 0 3px rgba(240, 192, 64, 0.35));
}
.live-card-avatar-wrap--platform .live-card-avatar {
    object-fit: contain;
    padding: 4px;
    box-sizing: border-box;
}

.live-card-meta--platform {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.live-card-restream-covers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 10px;
    margin-top: -4px;
}

.live-card-restream-covers .live-platform-channel--card {
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    gap: 8px;
}

.live-card-restream-covers .live-platform-channel-avatar {
    width: 28px;
    height: 28px;
}

.live-card-restream-covers .live-platform-channel-name {
    font-size: 12px;
}

.live-platform-channel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
    user-select: none;
}
.live-platform-channel--link {
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.15s ease, transform 0.15s ease;
}
.live-platform-channel--link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.live-platform-channel--twitch { border-color: rgba(145, 70, 255, 0.35); }
.live-platform-channel--youtube { border-color: rgba(255, 0, 51, 0.28); }

.live-platform-channel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.live-platform-channel-name {
    font-size: 14px;
    font-weight: 600;
    color: #f1f1f1;
}

.live-card-info {
    min-width: 0;
    flex: 1;
}

.live-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color, #f1f1f1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    transition: color .15s;
}

.live-card:hover .live-card-title { color: #fff; }

.live-card-meta {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-card-sched-time {
    color: rgba(255,255,255,.35);
}

.live-card-restream {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0 12px 10px;
}

.live-card-restream-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.live-card-restream-link {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s, transform .15s;
    color: #fff;
}

.live-card-restream-link:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.live-card-restream-link--twitch  { background: var(--twitch-color); }
.live-card-restream-link--youtube { background: var(--youtube-color); }

/* ============================================================
   ПУСТОЕ СОСТОЯНИЕ
   ============================================================ */
.live-empty {
    text-align: center;
    padding: 56px 24px;
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    border: 1px dashed rgba(255,255,255,.1);
}

.live-empty img {
    width: 80px;
    height: 80px;
    opacity: .25;
    filter: invert(1);
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.live-empty h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color, #f1f1f1);
}

.live-empty p {
    margin: 0 auto;
    color: rgba(255,255,255,.45);
    font-size: 14px;
    max-width: 380px;
    line-height: 1.5;
}

.live-empty-reset {
    display: inline-flex;
    margin-top: 16px;
    padding: 8px 20px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: background .15s;
}

.live-empty-reset:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
    .live-toolbar-row1 {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .live-platform-tabs {
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        box-sizing: border-box;
    }

    .live-toolbar-right {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
    }

    .live-search-form,
    .live-sort-wrap,
    .live-sort-custom {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .live-search-input,
    .live-search-input:focus {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .live-sort-toggle {
        width: 100%;
        box-sizing: border-box;
    }

    .live-sort-dropdown {
        left: 0;
        right: 0;
        min-width: 100%;
    }

    .live-topic-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        max-width: 100%;
    }

    .live-topic-scroll {
        max-width: 100%;
    }
}

@media (max-width: 780px) {
    .live-header-clean { padding: 20px 18px; }
    .live-header-title { font-size: 22px; }
    .live-toolbar { gap: 10px; padding: 12px 16px; }
    .live-platform-tabs { gap: 4px; }
    .live-ptab { padding: 6px 11px; font-size: 13px; }
    .live-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
}

@media (max-width: 480px) {
    .live-grid { grid-template-columns: 1fr; }
    .live-sort-toggle {
        justify-content: space-between;
    }
    .live-card-menu-wrap {
        bottom: 8px;
        right: 8px;
    }
    .live-card-menu-dropdown {
        min-width: 170px;
    }
}

/* ============================================================
   LIVE PAGE  –  /pages/live.php
   ============================================================ */

:root {
    --live-red:       #e8213b;
    --live-red-soft:  rgba(232, 33, 59, 0.12);
    --live-red-glow:  rgba(232, 33, 59, 0.22);
    --twitch-color:   #9146ff;
    --youtube-color:  #e8001d;
    --site-color:     #3ea6ff;
    --card-bg:        #161618;
    --card-bg-hover:  #1e1e22;
    --card-radius:    14px;
    --thumb-ratio:    56.25%;   /* 16:9 */
}

.live-page {
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 48px;
}

/* ============================================================
   HERO (CLEAN)
   ============================================================ */
.live-header-clean {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: var(--card-bg);
    border-radius: var(--card-radius);
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
    gap: 16px;
}

.live-header-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-header-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.live-header-desc {
    margin: 0;
    font-size: 15px;
    color: rgba(255,255,255,0.6);
}

.live-header-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.live-dashboard-author-link {
    align-self: center;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(62, 166, 255, 0.35);
    color: var(--site-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.live-dashboard-author-link:hover {
    background: rgba(62, 166, 255, 0.12);
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.live-stat {
    background: rgba(232, 33, 59, 0.1);
    border-color: rgba(232, 33, 59, 0.2);
}

.stat-val {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.live-stat .stat-val {
    color: var(--live-red);
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live-red);
    animation: live-pulse-dot 1.5s ease-in-out infinite;
}

/* ============================================================
   TOOLBAR (CLEAN)
   ============================================================ */
.live-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    background: var(--card-bg);
    padding: 16px 24px;
    border-radius: var(--card-radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.live-platform-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.live-ptab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    text-decoration: none;
}

.live-ptab:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.live-ptab.is-active {
    background: #fff;
    color: #000;
}

.live-ptab--twitch.is-active { background: var(--twitch-color); color: #fff; }
.live-ptab--youtube.is-active { background: var(--youtube-color); color: #fff; }
.live-ptab--site.is-active { background: var(--site-color); color: #fff; }

.live-toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.live-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.live-search-input {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 68px 10px 16px;
    font-size: 14px;
    color: #fff;
    width: 240px;
    transition: all 0.2s;
    outline: none;
}

.live-search-input:focus {
    border-color: rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.4);
    width: 280px;
}

.live-search-input::-webkit-search-cancel-button,
.live-search-input::-webkit-search-decoration,
.live-search-input::-webkit-search-results-button,
.live-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.live-search-input::-ms-clear,
.live-search-input::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

.live-search-btn {
    position: absolute;
    right: 12px;
    color: rgba(255,255,255,0.5);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.live-search-btn:hover { opacity: .9; }

.live-search-icon {
    filter: invert(1);
    opacity: .65;
}

.live-search-clear {
    position: absolute;
    right: 36px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255,255,255,.95);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.live-search-clear:hover {
    background: rgba(255,255,255,.1);
}

.live-search-clear.is-visible {
    display: inline-flex;
}

.live-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-sort-custom {
    position: relative;
}

.live-sort-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.34);
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.live-sort-toggle svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.live-sort-custom.is-open .live-sort-toggle svg {
    transform: rotate(180deg);
}

.live-sort-custom.is-open .live-sort-toggle,
.live-sort-toggle:hover {
    background: rgba(255,255,255,.14);
}

.live-sort-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 220px;
    background: #242429;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 8px 0;
    box-shadow: 0 18px 30px rgba(0,0,0,.42);
    display: none;
    z-index: 30;
}

.live-sort-custom.is-open .live-sort-dropdown {
    display: block;
}

.live-sort-option {
    display: block;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    padding: 10px 14px;
    font-size: 16px;
    line-height: 1.35;
}

.live-sort-option:hover,
.live-sort-option.is-active {
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.live-section {
    margin-bottom: 40px;
}

.live-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.live-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color, #f1f1f1);
}

.live-section-count {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.07);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ============================================================
   БЕЙДЖИ
   ============================================================ */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.live-badge--pulse {
    background: linear-gradient(135deg, #ff3352 0%, #d4122e 55%, #b30f26 100%);
    color: #fff;
    border-radius: 999px;
    padding: 5px 11px 5px 9px;
    font-size: 10px;
    letter-spacing: .1em;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 1px 6px rgba(232, 33, 59, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.live-card--live.live-card--plat-twitch .live-badge--pulse {
    background: linear-gradient(135deg, #a970ff 0%, #772ce8 50%, #5c16c5 100%);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 2px 12px rgba(145, 70, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.live-card--live.live-card--plat-twitch .live-badge-dot {
    background: #e9d5ff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

@keyframes live-pulse-dot {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .4; transform: scale(.8); }
}

.live-badge--soon {
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.85);
    text-transform: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0;
}

.live-badge--ended {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.45);
    text-transform: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0;
}

.live-platform-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.live-platform-badge--twitch  { background: rgba(145,70,255,.85); color: #fff; }
.live-platform-badge--youtube { background: rgba(232,0,29,.85);   color: #fff; }
.live-platform-badge--site    { background: rgba(62,166,255,.85); color: #fff; }

/* ============================================================
   СЕТКА КАРТОЧЕК
   ============================================================ */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    position: relative;
}

.live-grid--muted .live-card {
    opacity: .72;
    transition: opacity .2s;
}

.live-grid--muted .live-card:hover { opacity: 1; }

/* ============================================================
   КАРТОЧКА
   ============================================================ */
.live-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: visible;
    transition: background-color .22s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    padding: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.live-card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* У «живых» карточек свои тени — не затираем их общим hover */
.live-card:not(.live-card--live):hover {
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.live-card.z-index-high {
    z-index: 40;
}

.live-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.live-card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: var(--thumb-ratio);
    background: linear-gradient(155deg, #222228 0%, #121214 42%, #1a1a22 100%);
    overflow: hidden;
}

.live-card-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
    opacity: 0.85;
}

.live-card-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .3s;
    z-index: 1;
}

.live-card:hover .live-card-thumb {
    transform: scale(1.04);
    opacity: .88;
}

.live-card--live {
    border-color: rgba(232, 33, 59, 0.28);
    box-shadow:
        0 0 0 1px rgba(232, 33, 59, 0.22) inset,
        0 0 22px rgba(232, 33, 59, 0.07),
        0 4px 20px rgba(0, 0, 0, 0.35);
}

.live-card--live:hover {
    border-color: rgba(232, 33, 59, 0.38);
    box-shadow:
        0 0 0 1px rgba(232, 33, 59, 0.28) inset,
        0 0 28px rgba(232, 33, 59, 0.1),
        0 12px 36px rgba(0, 0, 0, 0.45);
}

.live-card--live.live-card--plat-twitch {
    border-color: rgba(145, 70, 255, 0.38);
    box-shadow:
        0 0 0 1px rgba(145, 70, 255, 0.42) inset,
        0 0 30px rgba(145, 70, 255, 0.12),
        0 4px 20px rgba(0, 0, 0, 0.35);
}

.live-card--live.live-card--plat-twitch:hover {
    border-color: rgba(169, 112, 255, 0.5);
    box-shadow:
        0 0 0 1px rgba(169, 112, 255, 0.55) inset,
        0 0 36px rgba(145, 70, 255, 0.18),
        0 12px 36px rgba(0, 0, 0, 0.45);
}

.live-card-overlay-top {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    display: flex;
    gap: 6px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.live-card-viewers-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,.78);
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.live-card-external-hint {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,.65);
    color: rgba(255,255,255,.65);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    backdrop-filter: blur(4px);
}

.live-card-body {
    display: flex;
    gap: 10px;
    padding: 12px 12px 10px;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.live-card-menu-wrap {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 22;
}

.live-card-menu-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(0, 0, 0, .45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.live-card-menu-btn img {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

.live-card-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    right: 0;
    min-width: 190px;
    background: #28282d;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.46);
    padding: 6px 0;
}

/* Если меню не влезает вниз по высоте окна — открываем вверх */
.live-card-menu-wrap.opens-upward .live-card-menu-dropdown {
    top: auto;
    bottom: calc(100% + 8px);
}

.live-card-menu-wrap.is-open .live-card-menu-dropdown {
    display: block;
}

.live-card-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    padding: 10px 12px;
    font-size: 14px;
}

.live-card-menu-item:hover {
    background: rgba(255,255,255,.08);
}

.live-card-menu-item img {
    width: 18px;
    height: 18px;
    filter: invert(1);
}

/* Share modal close button styling for live page */
#live-share-modal .sharex-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#live-share-modal .sharex-close:hover {
    background: rgba(255,255,255,.16);
}


.live-card-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.live-card-avatar-wrap--platform .live-card-avatar {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.live-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #2a2a2e;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
    display: block;
}

.live-author-badges--card {
    margin-right: 4px;
    vertical-align: -2px;
}
.live-host-crown-svg {
    display: block;
    color: #f0c040;
    filter: drop-shadow(0 0 3px rgba(240, 192, 64, 0.35));
}
.live-card-avatar-wrap--platform .live-card-avatar {
    object-fit: contain;
    padding: 4px;
    box-sizing: border-box;
}

.live-card-meta--platform {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.live-card-restream-covers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 10px;
    margin-top: -4px;
}

.live-card-restream-covers .live-platform-channel--card {
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    gap: 8px;
}

.live-card-restream-covers .live-platform-channel-avatar {
    width: 28px;
    height: 28px;
}

.live-card-restream-covers .live-platform-channel-name {
    font-size: 12px;
}

.live-platform-channel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
    user-select: none;
}
.live-platform-channel--link {
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.15s ease, transform 0.15s ease;
}
.live-platform-channel--link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.live-platform-channel--twitch { border-color: rgba(145, 70, 255, 0.35); }
.live-platform-channel--youtube { border-color: rgba(255, 0, 51, 0.28); }

.live-platform-channel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.live-platform-channel-name {
    font-size: 14px;
    font-weight: 600;
    color: #f1f1f1;
}

.live-card-info {
    min-width: 0;
    flex: 1;
}

.live-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color, #f1f1f1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    transition: color .15s;
}

.live-card:hover .live-card-title { color: #fff; }

.live-card-meta {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-card-sched-time {
    color: rgba(255,255,255,.35);
}

.live-card-restream {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0 12px 10px;
}

.live-card-restream-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.live-card-restream-link {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s, transform .15s;
    color: #fff;
}

.live-card-restream-link:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.live-card-restream-link--twitch  { background: var(--twitch-color); }
.live-card-restream-link--youtube { background: var(--youtube-color); }

/* ============================================================
   ПУСТОЕ СОСТОЯНИЕ
   ============================================================ */
.live-empty {
    text-align: center;
    padding: 56px 24px;
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    border: 1px dashed rgba(255,255,255,.1);
}

.live-empty img {
    width: 80px;
    height: 80px;
    opacity: .25;
    filter: invert(1);
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.live-empty h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color, #f1f1f1);
}

.live-empty p {
    margin: 0 auto;
    color: rgba(255,255,255,.45);
    font-size: 14px;
    max-width: 380px;
    line-height: 1.5;
}

.live-empty-reset {
    display: inline-flex;
    margin-top: 16px;
    padding: 8px 20px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: background .15s;
}

.live-empty-reset:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

/* ============================================================
   АДАПТИВ (дубликат блока — синхронизирован с первым)
   ============================================================ */
@media (max-width: 780px) {
    .live-header-clean { padding: 20px 18px; }
    .live-header-title { font-size: 22px; }
    .live-toolbar { gap: 10px; padding: 12px 16px; }
    .live-platform-tabs { gap: 4px; }
    .live-ptab { padding: 6px 11px; font-size: 13px; }
    .live-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
}

@media (max-width: 480px) {
    .live-grid { grid-template-columns: 1fr; }
    .live-sort-toggle {
        justify-content: space-between;
    }
    .live-card-menu-wrap {
        bottom: 8px;
        right: 8px;
    }
    .live-card-menu-dropdown {
        min-width: 170px;
    }
}
