* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
}

.stream-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, #1a0a1e 0%, #0a0a1a 100%);
}

/* Header */
.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.rec-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 0, 0.5);
}

.rec-dot {
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse-rec 1.5s ease-in-out infinite;
}

@keyframes pulse-rec {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.rec-text {
    font-size: 14px;
    font-weight: 700;
    color: #ff0000;
    letter-spacing: 1px;
}

.stream-timer {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.viewers {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.viewers-icon {
    font-size: 16px;
}

#viewersCount {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Video area */
.video-area {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d1b3d 0%, #1a1a2e 100%);
    overflow: hidden;
}

.stream-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 2;
}

.model-message {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 105, 180, 0.5);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.3);
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Chat sidebar */
.chat-sidebar {
    position: absolute;
    right: 0;
    top: 70px;
    bottom: 140px;
    width: 280px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.chat-header {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.chat-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-user {
    font-size: 13px;
    font-weight: 700;
    color: #ff69b4;
}

.chat-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Action buttons */
.action-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 60;
}

.action-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6);
    background: linear-gradient(135deg, #ff0080 0%, #ff1493 100%);
}

.action-btn:active {
    transform: translateY(-1px);
}

.action-btn.used {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

.action-btn.used:hover {
    transform: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #1a0a1e 0%, #2d1b3d 100%);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 2px solid rgba(255, 105, 180, 0.5);
    box-shadow: 0 20px 60px rgba(255, 20, 147, 0.5);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.modal-highlight {
    font-size: 18px;
    font-weight: 700;
    color: #ff69b4;
    margin-bottom: 32px;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-button {
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-family: 'Segoe UI', sans-serif;
}

.modal-button-confirm {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.4);
}

.modal-button-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 20, 147, 0.6);
}

.modal-button-leave {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-button-leave:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.modal-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .chat-sidebar {
        width: 220px;
    }

    .model-message {
        font-size: 20px;
        padding: 20px 30px;
        max-width: 90%;
    }

    .action-buttons {
        max-width: 90%;
    }

    .action-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .chat-sidebar {
        display: none;
    }

    .stream-header {
        padding: 10px 15px;
    }

    .rec-text {
        font-size: 12px;
    }

    .stream-timer {
        font-size: 14px;
        padding: 4px 12px;
    }

    .model-message {
        font-size: 18px;
        padding: 20px 25px;
    }

    .action-buttons {
        bottom: 10px;
        gap: 8px;
    }

    .action-btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .modal-content {
        padding: 30px 25px;
    }

    .modal-content h2 {
        font-size: 24px;
    }
}
