/*
Theme Name: Blogpage Live Theme V3
Theme URI: http://blogpage.in/
Author: Antigravity
Description: Smooth, Ultra-Fast Live Stream Theme
Version: 3.0.0
Text Domain: blogpage-live-v3
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html,
body {
    background-color: #010140;
    color: #ffffff;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

.app-container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header Bar */
.stream-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.live-badge {
    background-color: #ff2b56;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.viewer-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #8caaff;
    font-weight: 500;
}

.eye-icon {
    stroke: #8caaff;
}

/* Main Content Layout */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Video Card Area */
.video-card-container {
    width: 100%;
}

.video-preview-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #02025e;
    border-radius: 14px;
    border: 1px solid #0030ad;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 80, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.video-thumbnail-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,50,0.15) 0%, rgba(0,0,80,0.65) 100%);
    z-index: 1;
}

/* Center Red Play Button */
.center-play-btn {
    position: relative;
    z-index: 2;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff2b56 0%, #ff1744 100%);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 22px rgba(255, 43, 86, 0.7);
    animation: redPlayPulse 2s infinite ease-in-out;
}

@keyframes redPlayPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 43, 86, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(255, 43, 86, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 43, 86, 0); }
}

/* Player Timeline & Controls Bar Overlay */
.player-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(0deg, rgba(0,0,30,0.92) 0%, rgba(0,0,30,0.5) 70%, transparent 100%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
}

.timeline-played {
    width: 25%;
    height: 100%;
    background: #ff2b56;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctrl-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.volume-slider-box {
    width: 45px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.volume-fill {
    width: 70%;
    height: 100%;
    background: #ffffff;
}

.time-counter-text {
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 600;
}

/* Thread Info Card */
.thread-card {
    background: #02025e;
    border: 1px solid #0030ad;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 80, 0.4);
}

.thread-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.35;
}

.stats-bar {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: #8caaff;
    margin-bottom: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-item.trending {
    color: #ff2b56;
    font-weight: 700;
}

.cta-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0050e6 0%, #0036cc 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 80, 230, 0.5);
}

.cta-icon {
    font-size: 0.9rem;
}

/* Pagination */
.pagination-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.pagination-grid {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-num {
    background: #02025e;
    border: 1px solid #0030ad;
    color: #8caaff;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

.page-num.active {
    background: #0050e6;
    color: white;
    border-color: #0050e6;
}

.footer-seo-links {
    text-align: center;
    font-size: 0.76rem;
    color: #5570bb;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #02025e;
    border: 1px solid #0030ad;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    position: relative;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
}

.video-player-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-player-wrapper video {
    width: 100%;
    display: block;
}
