/* =========================================================
   LIVESTREAM PAGE CSS
   ========================================================= */

body.dark-page {
    background: var(--dark);
}

.dark-nav {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dark-nav .logo-text {
    color: var(--red);
}

.dark-nav .sub-nav-link {
    color: rgba(255, 255, 255, 0.6);
}

.dark-nav .sub-nav {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dark-nav .search-bar {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-nav #searchInput {
    color: white;
}

.dark-nav #searchInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.livestream-page {
    padding-bottom: 80px;
    min-height: 100vh;
}

/* ---- HERO ---- */
.ls-hero {
    background: linear-gradient(135deg, #0d0d0d, #1a0010, #0d0d0d);
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ls-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.12), transparent 70%);
    pointer-events: none;
}

.ls-hero h1 {
    font-size: 52px;
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.ls-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 0 auto 30px;
}

.ls-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.ls-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ls-hero-stat span {
    font-size: 28px;
    font-weight: 900;
    color: white;
}

.ls-hero-stat span#liveCount {
    color: #ff4444;
}

.ls-hero-stat small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ---- CATEGORY TABS ---- */
.ls-category-tabs {
    display: flex;
    gap: 8px;
    padding: 24px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.ls-category-tabs::-webkit-scrollbar {
    display: none;
}

.ls-tab {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}

.ls-tab.active,
.ls-tab:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* ---- FEATURED ROOM ---- */
.ls-featured {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 48px;
    min-height: 500px;
}

.ls-featured-player {
    position: relative;
    min-height: 460px;
}

.ls-player-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
    position: relative;
}

.ls-player-emoji {
    font-size: 100px;
    opacity: 0.7;
}

.ls-player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.ls-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ls-live-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(227, 6, 19, 0.9);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

.ls-viewer-count {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.ls-featured-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ls-host-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ls-host-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    border: 2px solid white;
}

.ls-host-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.ls-host-followers {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.ls-follow-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: var(--transition);
    cursor: pointer;
}

.ls-follow-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.ls-product-highlight {
    position: absolute;
    bottom: 70px;
    left: 14px;
    right: 14px;
}

.ls-product-highlight-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ls-highlight-emoji {
    font-size: 32px;
}

.ls-highlight-info {
    flex: 1;
}

.ls-highlight-name {
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.ls-price-live {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
}

.ls-price-old {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    margin-left: 6px;
}

.ls-discount {
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.ls-buy-now-btn {
    background: linear-gradient(135deg, var(--red), #ff4444);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.ls-buy-now-btn:hover {
    transform: scale(1.05);
}

/* ---- COMMENTS ---- */
.ls-featured-comments {
    background: rgba(255, 255, 255, 0.03);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ls-comments-header {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ls-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 340px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.ls-comment {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: commentIn 0.3s ease;
}

@keyframes commentIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ls-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.ls-comment-body {}

.ls-comment-user {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.ls-comment-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.ls-gift-bar {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

.ls-gift-bar span {
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.ls-gift-bar span:hover {
    transform: scale(1.3);
}

.ls-comment-input-wrap {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
}

.ls-comment-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 9px 16px;
    font-size: 12px;
    color: white;
    font-family: var(--font);
}

.ls-comment-input:focus {
    border-color: var(--red);
    outline: none;
}

.ls-comment-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.ls-send-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.ls-send-btn:hover {
    background: var(--red-dark);
}

/* ---- ROOMS GRID ---- */
.ls-section-title {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.ls-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.ls-room-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.ls-room-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.ls-room-thumb {
    aspect-ratio: 9/7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    position: relative;
}

.ls-room-info {
    padding: 12px;
}

.ls-room-name {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.ls-room-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.ls-room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.ls-room-viewers {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.ls-room-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .ls-featured {
        grid-template-columns: 1fr;
    }

    .ls-featured-comments {
        max-height: 300px;
    }

    .ls-hero h1 {
        font-size: 36px;
    }

    .ls-hero-stats {
        gap: 24px;
    }
}