/* Dramicbox Advanced Live System - Premium Styling */

.live-center-hero {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    padding: 60px;
    border-radius: 30px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.live-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.live-card-modern {
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
}

.live-card-modern:hover {
    transform: translateY(-10px);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.live-card-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.live-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.live-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ef4444;
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 900;
    z-index: 2;
}

.viewer-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    z-index: 2;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: 0.3s;
}

.live-card-modern:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 3rem;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.live-card-body {
    padding: 20px;
}

.live-card-body h3 {
    margin: 0 0 15px;
    font-size: 1.1rem;
    color: #fff;
}

.broadcaster-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.broadcaster-meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.broadcaster-meta span {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Studio & Player Layouts */
.live-player-container, .studio-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    height: calc(100vh - 120px);
    margin-top: 20px;
}

.live-main-content, .studio-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.live-video-wrapper, .preview-video-container {
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

video {
    width: 100%;
    height: 100%;
}

.live-chat-panel, .studio-sidebar {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.chat-author {
    font-weight: 800;
    margin-right: 8px;
}

.chat-text {
    color: #e2e8f0;
}

.donation {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 15px;
    border-radius: 12px;
}

.chat-input-area {
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.coin-bar-container {
    height: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.coin-bar-progress {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    transition: width 0.5s;
}

.coin-bar-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.status-online {
    background: #ef4444;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 0.75rem;
    animation: pulse 1.5s infinite;
}

.status-offline {
    background: #334155;
    color: #94a3b8;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 0.75rem;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@media (max-width: 1200px) {
    .live-player-container, .studio-container {
        grid-template-columns: 1fr;
        height: auto;
    }
/* Theater Mode */
.live-player-container.theater-mode {
    grid-template-columns: 1fr;
    max-width: 100%;
}

.live-player-container.theater-mode .live-video-wrapper {
    aspect-ratio: 21/9;
}

.live-player-container.theater-mode .live-chat-panel {
    display: none;
}

/* Video Overlay Alerts */
.video-overlay-alerts {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.donation-alert-popup {
    background: rgba(15, 15, 20, 0.95);
    border: 2px solid #f59e0b;
    border-radius: 24px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.5);
    min-width: 400px;
    backdrop-filter: blur(20px);
}

.alert-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    animation: alert-icon-pulse 1s infinite alternate;
}

.alert-user {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
}

.alert-amount {
    font-size: 2rem;
    font-weight: 900;
    color: #f59e0b;
    text-transform: uppercase;
}

.alert-msg {
    color: #94a3b8;
    margin-top: 10px;
    font-style: italic;
}

@keyframes alert-icon-pulse {
    from { transform: scale(1); box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
    to { transform: scale(1.1); box-shadow: 0 0 20px rgba(245, 158, 11, 0.6); }
}

.animate-bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.animate-fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-30px) scale(0.9); }
}

.theater-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.theater-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.chat-delete-btn {
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: 0.2s;
}

.chat-delete-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.donation {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    padding: 15px !important;
    border-radius: 16px !important;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(245, 158, 11, 0.2); }
    to { box-shadow: 0 0 20px rgba(245, 158, 11, 0.4); }
}

.live-center-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 20px;
}

.live-leaderboard h3 {
    margin: 0 0 20px;
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

.leaderboard-item:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.05);
}

.leaderboard-item .rank {
    font-weight: 900;
    color: #64748b;
    font-size: 0.8rem;
    width: 20px;
}

.leaderboard-item img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.leaderboard-item .name {
    flex: 1;
    font-weight: 700;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.leaderboard-item .viewers {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.live-stats-mini {
    padding: 20px;
}

@media (max-width: 1000px) {
    .live-center-layout {
        grid-template-columns: 1fr;
    }
}

.stream-tags-list {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.stream-tag {
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 700;
}

.broadcaster-lvl {
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
    margin-left: 5px;
    vertical-align: middle;
}

/* Polls */
.poll-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 15;
    width: 280px;
    pointer-events: auto;
}

.poll-card {
    background: rgba(15, 15, 20, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 15px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.poll-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.poll-header h4 {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.3;
}

.poll-timer {
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: 800;
    white-space: nowrap;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-option {
    position: relative;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
    height: 35px;
}

.poll-option:hover {
    background: rgba(255,255,255,0.1);
}

.poll-option.voted {
    cursor: default;
}

.option-bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: rgba(124, 58, 237, 0.3);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-text {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.poll-footer {
    margin-top: 15px;
    font-size: 0.7rem;
    color: #64748b;
    text-align: center;
}
