/* ===== PAGE OFFSET ===== */
#livePage { margin-top: 60px; }
#page { padding-top: 0 !important; margin-top: 0 !important; }

/* ===== CATEGORY TABS ===== */
#liveTabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #1a1a1a;
    background: #000;
}
.live-tab {
    padding: 7px 24px;
    border: 1px solid #444;
    border-radius: 3px;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all .15s ease;
}
.live-tab:hover { border-color: #fff; color: #fff; text-decoration: none; }
.live-tab.active { border-color: #ff2a2a; color: #fff; background: transparent; text-decoration: none; }

/* ===== CARD — full width, one per row ===== */
#liveGrid {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 40px 0;
}

.cam-card {
    background: #000;
    border: 1px solid #1a1a1a;
    margin-bottom: 0;
}

/* Header bar — plain div, no links inside */
.cam-card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 10px 16px;
    background: #0d0d0d;
    border-bottom: 1px solid #1a1a1a;
}

/* LIVE NOW — span with onclick, red on hover, pointer cursor */
.cam-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    flex-shrink: 0;
    cursor: pointer;
    transition: color .15s ease;
}
.cam-header-left:hover { color: #ff2a2a; }

/* Goal text — static div, red only on its own hover */
.cam-header-center {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    font-family: Oswald, Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 12px;
    cursor: pointer; /* was default */
    transition: color .15s ease;
}
.cam-header-center:hover { color: #ff2a2a; }

.red-dot {
    width: 10px; height: 10px;
    background: #ff0000;
    border-radius: 50%;
    flex-shrink: 0;
    animation: blink 1s infinite;
}
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Video — centered, not stretched */
.cam-video-wrap {
    position: relative;
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.cam-video-inner {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-top: 56.25%; /* 16:9 */
}
.cam-video-inner a.cam-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
}
.cam-video-inner video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    background: #000;
}

/* Goal bar */
.cam-goal {
    padding: 6px 16px;
    background: #0d0d0d;
    border-top: 1px solid #111;
    font-size: 12px;
    color: #aaa;
}
.cam-goal-text {
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cam-goal-bar {
    height: 4px;
    background: #222;
    border-radius: 2px;
    overflow: hidden;
}
.cam-goal-fill {
    height: 100%;
    background: #ff2a2a;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Footer */
.cam-card-footer {
    padding: 10px 16px 14px;
    background: #0d0d0d;
    border-top: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cam-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cam-username a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    font-family: Oswald, Arial, sans-serif;
}
.cam-username a:hover { text-decoration: underline; color: #ff2a2a; }
.cam-likes {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: Oswald, Arial, sans-serif;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.cam-send-btn {
    display: block;
    text-align: center;
    border: 1px solid #fff;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: Oswald, Arial, sans-serif;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all .15s ease;
    width: fit-content;
    margin: 0 auto;
}
.cam-send-btn:hover {
    background: #ff2a2a;
    border-color: #ff2a2a;
    color: #fff;
    text-decoration: none;
}

/* ===== LOADING ===== */
#liveLoading {
    display: none;
    text-align: center;
    padding: 30px;
    color: #555;
    font-size: 14px;
}
#liveEnd {
    display: none;
    text-align: center;
    padding: 30px;
    color: #444;
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #liveGrid { max-width: 100%; }
}