:root {
    --primary: #e1306c;
    --secondary: #833ab4;
    --gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --bg-dark: #000000;
    --text-light: #ffffff;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(10px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* Login Screen */
.login-container {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.login-container h1 {
    margin-bottom: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}


.btn-login {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: var(--gradient);
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

/* Live View Container */
.live-wrapper {
    width: 100%;
    max-width: 800px;
    height: 90vh; /* Fixed height for consistency */
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Elements */
.live-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;
    pointer-events: none;
}

.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-badge {
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.viewer-count {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 5px;
}

/* Comments Section */
.comments-container {
    margin-top: auto;
    height: 40%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    mask-image: linear-gradient(to top, black 80%, transparent 100%);
    pointer-events: auto;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient);
    padding: 1.5px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #000;
}

.comment-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 12px;
    border-radius: 15px;
    max-width: 80%;
}

.comment-username {
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.comment-text {
    font-size: 0.9rem;
    word-break: break-word;
}

/* Comment Input */
.live-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    pointer-events: auto;
}

.comment-input-wrapper {
    flex-grow: 1;
    position: relative;
}

.comment-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    outline: none;
    backdrop-filter: blur(5px);
}

.btn-heart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-heart:active {
    transform: scale(1.5);
}

/* Floating Hearts Animation */
.floating-heart {
    position: absolute;
    bottom: 80px;
    right: 20px;
    font-size: 1.5rem;
    animation: floatUp 2s linear forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-300px) scale(0.5); opacity: 0; }
}
