/**
 * VSL YouTube - Lipo Challenge
 * Estilos para página de VSL com layout estilo YouTube
 * @version 1.0.0
 */

/* ========== CSS Variables ========== */
:root {
    --yt-bg-color: #0f0f0f;
    --yt-surface-color: #272727;
    --yt-text-primary: #f1f1f1;
    --yt-text-secondary: #aaaaaa;
    --yt-red: #cc0000;
    --yt-cta-green: #00e600;
    --yt-hover-color: #3f3f3f;
    --yt-separator: #303030;
    --yt-panel: #111;
    --yt-muted: #9aa0a6;
    --yt-border: #222;
    --yt-accent: #3ea6ff;
}

/* ========== Base Reset ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--yt-bg-color);
    color: var(--yt-text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========== Top Bar ========== */
.top-bar {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--yt-separator);
    position: sticky;
    top: 0;
    background-color: var(--yt-bg-color);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    width: 90px;
    height: 20px;
}

.avatar-header {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-header img,
.avatar-header svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== Main Container ========== */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    /* padding-bottom: 50px; */
}

/* ========== Video Area ========== */
.video-area {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 0;
    margin-bottom: 60px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .video-wrapper {
        max-width: 280px;
    }
}

/* ========== Info Section ========== */
.info-section {
    padding: 0 16px;
}

h1.video-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    margin-top: 12px;
}

.stats-row {
    font-size: 0.8rem;
    color: var(--yt-text-secondary);
    margin-bottom: 15px;
}

/* Live Badge */
.yt-live-badge {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 8px;
}

.yt-live-dot {
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
    margin-right: 6px;
    animation: ytPulse 1.2s infinite ease-in-out;
}

.yt-live-text {
    color: red;
    font-weight: 600;
    margin-right: 8px;
}

@keyframes ytPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.55);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========== Channel Row ========== */
.channel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar svg {
    width: 100%;
    height: 100%;
}

.channel-text h3 {
    font-size: 0.95rem;
    font-weight: 500;
}

.channel-text p {
    font-size: 0.75rem;
    color: var(--yt-text-secondary);
}

.btn-subscribe {
    background-color: var(--yt-text-primary);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 18px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-subscribe:hover {
    background-color: #e8e8e8;
}

/* ========== Actions ========== */
.actions-scroll {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.action-pill {
    background-color: var(--yt-surface-color);
    color: var(--yt-text-primary);
    border: none;
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.action-pill:hover {
    background-color: var(--yt-hover-color);
}

@media (max-width: 480px) {
    .actions-scroll {
        gap: 6px;
    }

    .action-pill {
        padding: 7px 12px;
        font-size: 0.8rem;
        gap: 5px;
    }

    .action-pill i {
        font-size: 0.9rem;
    }
}

/* ========== Chat Section ========== */
#yt-chat-full {
    width: 100%;
    max-width: 760px;
    margin: 20px auto 0;
    color: #fff;
    background: var(--yt-bg-color);
    border-radius: 8px;
    border: 1px solid var(--yt-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.yt-header {
    padding: 14px 16px;
    background: var(--yt-panel);
    border-bottom: 1px solid var(--yt-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yt-title {
    font-weight: 600;
    font-size: 16px;
}

.yt-sub {
    font-size: 13px;
    color: var(--yt-muted);
}

/* ========== Superchats ========== */
.yt-superchats {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
    flex-wrap: wrap;
}

.sc {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    color: #000;
    min-width: 220px;
    flex: 1;
}

.sc img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.sc .sc-text {
    font-size: 13px;
}

.sc-red {
    background: #ef5350;
}

.sc-yellow {
    background: #fbc02d;
}

.sc-blue {
    background: #42a5f5;
}

/* ========== Messages ========== */
.yt-messages {
    height: 520px;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    opacity: 0;
    transform: translateY(8px);
    animation: msgEnter 350ms ease forwards;
}

@keyframes msgEnter {
    to {
        opacity: 1;
        transform: none;
    }
}

.msg .msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.msg .msg-avatar img,
.msg .msg-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msg .body {
    flex: 1;
}

.msg .meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--yt-muted);
}

.msg .meta .name {
    font-weight: 600;
    color: #fff;
}

.msg .text {
    margin-top: 6px;
    font-size: 14px;
    color: #e6e6e6;
    line-height: 1.4;
}

.msg .actions {
    margin-top: 8px;
    display: flex;
    gap: 18px;
    align-items: center;
    color: var(--yt-muted);
    font-size: 13px;
}

.like {
    display: flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.like svg {
    width: 16px;
    height: 16px;
    fill: var(--yt-muted);
    transition: fill 0.2s ease;
}

.like:hover svg {
    fill: #ff6b6b;
}

/* ========== Input Area ========== */
.yt-input-area {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid var(--yt-border);
    background: var(--yt-panel);
}

#ytInput {
    flex: 1;
    background: #0b0b0b;
    color: #fff;
    border: 1px solid #252525;
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

#ytInput:focus {
    border-color: var(--yt-accent);
}

#ytSend {
    background: var(--yt-accent);
    color: #000;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#ytSend:hover {
    background: #5ab7ff;
    transform: scale(1.02);
}

/* ========== Responsive ========== */
@media (min-width: 768px) {
    .video-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .yt-superchats {
        flex-direction: column;
    }

    .yt-messages {
        height: 420px;
    }

    .sc {
        min-width: 100%;
    }
}

