/* Live page specific styles - integrated with existing casino theme */
:root {
    --live-accent: var(--casino-red, #ff184c);
    --live-green: var(--casino-green, #00c874);
    --live-surface: var(--casino-surface, #202020);
    --live-surface-alt: var(--casino-bg-alt, #181818);
    --live-border: var(--casino-border, #2b2b2b);
    --live-radius: var(--radius-lg, 16px);
}

.live-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (max-width: 1100px) {
    .live-layout {
        grid-template-columns:1fr;
    }
}



.live-player-wrapper {
    position: relative;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-player-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.live-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}

.live-tab-btn {
    background: var(--live-surface-alt);
    color: var(--casino-text-dim);
    border: 1px solid var(--live-border);
    padding: .55rem .9rem;
    font-size: .8rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    letter-spacing: .3px;
    transition: var(--transition-base);
    position: relative;
}

.live-tab-btn[aria-selected="true"] {
    background: var(--live-accent);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(255,24,76,.55);
    border-color: var(--live-accent);
}

.live-tab-btn:hover:not([aria-selected="true"]) {
    color: #fff;
    background: #242424;
}

.live-status-badge {
    position: absolute;
    top: .85rem;
    left: .85rem;
    background: var(--live-accent);
    font-size: .7rem;
    padding: .4rem .55rem;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: .5px;
    box-shadow: 0 4px 10px -2px rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    gap: .4rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live-green);
    animation: livePulse 1.6s infinite;
}

.live-dot.off {
    background: #666;
    animation: none;
}

@keyframes livePulse {
    0%,100% {
        transform: scale(.75);
        opacity: .65;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.live-switch-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .5px;
}

.live-switch-overlay.active {
    display: flex;
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.live-meta-bar {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
    font-size: .7rem;
    color: var(--casino-text-dim);
    margin-top: .65rem;
}

.live-meta-bar .spacer {
    flex: 1;
}

.live-reload-btn {
    background: #272727;
    color: #fff;
    border: 1px solid #333;
    padding: .45rem .75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .5px;
}

.live-reload-btn:hover {
    background: #303030;
}

/* Comment side */
.live-comments-card {
    background: var(--live-surface);
    border: 1px solid var(--live-border);
    border-radius: var(--live-radius);
    display: flex;
    flex-direction: column;
    min-height: 460px;
    position: relative;
}

.live-comments-head {
    padding: .85rem 1rem .75rem;
    border-bottom: 1px solid var(--live-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-comments-head h2 {
    font-size: .95rem;
    margin: 0;
    font-weight: 600;
    display: flex;
    gap: .5rem;
    align-items: center;
    letter-spacing: .5px;
}

.live-channel-tag {
    background: #303030;
    padding: .35rem .7rem;
    border-radius: 30px;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--casino-text-dim);
}

.live-comments-list {
    list-style: none;
    margin: 0;
    padding: .85rem 1rem 1rem;
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.live-comment-item {
    background: var(--live-surface-alt);
    border: 1px solid #2a2a2a;
    padding: .6rem .7rem .55rem;
    border-radius: 10px;
    position: relative;
}

.live-comment-item.new {
    animation: pop .5s ease;
}

@keyframes pop {
    0% {
        transform: scale(.9);
        opacity: 0;
    }

    60% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.live-comment-meta {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .55px;
    color: var(--casino-text-dim);
    margin-bottom: .15rem;
    display: flex;
    justify-content: space-between;
}

.live-comment-text {
    font-size: .8rem;
    line-height: 1.35;
    word-wrap: break-word;
}

.live-comment-empty {
    font-size: .7rem;
    text-align: center;
    color: var(--casino-text-dim);
    padding: .6rem .5rem;
    border: 1px dashed #2f2f2f;
    border-radius: 8px;
}

.live-comment-form {
    border-top: 1px solid var(--live-border);
    padding: .75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.live-comment-form .row-fields {
    display: flex;
    gap: .55rem;
}

@media (max-width: 420px) {
    .live-comment-form .row-fields {
        flex-direction:column;
    }
}

.live-comment-form input, .live-comment-form textarea {
    background: #171717;
    border: 1px solid #2b2b2b;
    color: var(--casino-text);
    padding: .55rem .65rem;
    font-size: .78rem;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
}

.live-comment-form textarea {
    min-height: 90px;
    line-height: 1.4;
}

.live-comment-form input:focus, .live-comment-form textarea:focus {
    outline: none;
    border-color: var(--live-accent);
    box-shadow: 0 0 0 2px rgba(255,24,76,.35);
}

.live-comment-form button[type=submit] {
    background: var(--casino-gradient-neon, var(--live-accent));
    color: #fff;
    border: none;
    padding: .65rem .95rem;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    letter-spacing: .5px;
    box-shadow: 0 4px 14px -4px rgba(0,0,0,.7);
}

.live-comment-form button[type=submit]:hover {
    filter: brightness(1.08);
}

.live-comment-form button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.live-note {
    font-size: .6rem;
    color: var(--casino-text-dim);
}

/* Subtle scrollbar */
.live-comments-list::-webkit-scrollbar {
    width: 10px;
}

.live-comments-list::-webkit-scrollbar-track {
    background: transparent;
}

.live-comments-list::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border: 2px solid #202020;
    border-radius: 20px;
}

/* Utility */
.live-fade-in {
    animation: fadeIn .3s ease;
}
