﻿:root {
    --qr-bg: #0b0f19;
    --qr-bg-2: #121826;
    --qr-text: #f4f6fb;
    --qr-muted: #9aa3b5;
    --qr-accent: #ff3b5c;
    --qr-accent-2: #00e5a0;
}

.qr-shell {
    min-height: 100vh;
    background: var(--qr-bg);
    color: var(--qr-text);
    font-family: Inter, system-ui, sans-serif;
}

.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #1e2638;
}

.qr-logo {
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--qr-text);
    text-decoration: none;
    font-size: 1.2rem;
}

.qr-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

    .qr-nav a {
        color: var(--qr-muted);
        text-decoration: none;
    }

.qr-nav-cta {
    color: var(--qr-bg) !important;
    background: var(--qr-accent);
    padding: .5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
}

.qr-hero {
    padding: 5rem 2rem 4rem;
    background: radial-gradient(ellipse at top, #1a2240 0%, var(--qr-bg) 60%);
}

    .qr-hero h1 {
        font-size: clamp(2.2rem, 5vw, 3.6rem);
        line-height: 1.1;
        margin: .5rem 0 1rem;
    }

        .qr-hero h1 span {
            color: var(--qr-accent);
        }

.qr-badge {
    color: var(--qr-accent-2);
    font-weight: 700;
    letter-spacing: .12em;
    font-size: .8rem;
}

.qr-lead {
    color: var(--qr-muted);
    max-width: 34rem;
    font-size: 1.1rem;
}

.qr-cta-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.qr-btn {
    display: inline-block;
    padding: .85rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.qr-btn-primary {
    background: var(--qr-accent);
    color: white;
}

.qr-btn-ghost {
    background: transparent;
    color: var(--qr-text);
    border: 1px solid #2a3448;
}

.qr-btn-sm {
    padding: .55rem 1rem;
    font-size: .9rem;
}

.qr-btn-block {
    width: 100%;
    text-align: center;
}

.qr-section {
    padding: 3.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.qr-section-dark {
    text-align: center;
    background: var(--qr-bg-2);
    max-width: none;
}

.qr-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.qr-step {
    background: #141b2d;
    border: 1px solid #243049;
    border-radius: 1rem;
    padding: 1.5rem;
}

    .qr-step span {
        color: var(--qr-accent);
        font-weight: 800;
    }

.qr-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #1e2638;
    color: var(--qr-muted);
    font-size: .9rem;
}

/* ===== Auth ===== */
.qr-auth {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.qr-auth-card {
    width: 100%;
    max-width: 420px;
    background: #141b2d;
    border: 1px solid #243049;
    border-radius: 1.25rem;
    padding: 2rem;
}

.qr-field {
    margin: 1rem 0;
}

    .qr-field label {
        display: block;
        margin-bottom: .35rem;
        color: var(--qr-muted);
        font-size: .9rem;
    }

.qr-input {
    width: 100%;
    padding: .75rem 1rem;
    border-radius: .75rem;
    border: 1px solid #2a3448;
    background: #0b0f19;
    color: var(--qr-text);
}

    .qr-input.invalid {
        border-color: #ff6b6b;
    }

.qr-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 1.25rem;
    font-size: .9rem;
}

.qr-check {
    color: var(--qr-muted);
    display: flex;
    gap: .4rem;
    align-items: center;
}

.qr-link {
    color: var(--qr-accent-2);
    text-decoration: none;
}

.qr-error {
    color: #ff7b8a;
    margin-bottom: .75rem;
    font-size: 0.85rem;
    display: block;
}

.qr-auth-footer {
    margin-top: 1.25rem;
    text-align: center;
}

/* ===== Arenas ===== */
.qr-search {
    margin: 1.5rem 0;
    max-width: 420px;
}

.qr-arena-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.qr-arena-card {
    text-align: left;
    background: #141b2d;
    border: 1px solid #243049;
    border-radius: 1rem;
    padding: 1rem;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

    .qr-arena-card:hover {
        border-color: var(--qr-accent);
    }

.qr-arena-thumb {
    height: 120px;
    border-radius: .75rem;
    background: #0b0f19;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
}

    .qr-arena-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.qr-arena-go {
    color: var(--qr-accent);
    font-weight: 700;
    font-size: .9rem;
}

/* ===== Filtros e Partidas ===== */
.qr-filter-bar {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.qr-label {
    display: block;
    color: var(--qr-muted);
    font-size: .85rem;
    margin-bottom: .35rem;
}

.qr-subtitle {
    margin: 2rem 0 1rem;
    font-size: 1.25rem;
}

.qr-partida-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
}

.qr-partida-card {
    background: #141b2d;
    border: 1px solid #243049;
    border-radius: .9rem;
    padding: 1rem;
    color: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

    .qr-partida-card.is-active {
        border-color: var(--qr-accent);
        box-shadow: 0 0 0 1px var(--qr-accent);
    }

/* ===== Highlights antigos ===== */
.qr-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.qr-highlight-card {
    background: #141b2d;
    border: 1px solid #243049;
    border-radius: 1rem;
    overflow: hidden;
}

.qr-thumb {
    height: 120px;
    background: linear-gradient(135deg, #1a2240, #0b0f19);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.qr-highlight-body {
    padding: 1rem;
}

.qr-loading,
.qr-empty {
    color: var(--qr-muted);
    padding: 1.5rem 0;
}

/* ===== Highlights Header + Carrossel ===== */
.qr-highlights-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0 1rem;
    gap: 1rem;
}

.qr-count {
    font-size: 0.9rem;
    color: var(--qr-muted);
    white-space: nowrap;
}

.qr-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.qr-carousel {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1.25rem;
    flex: 1;
    min-width: 0;
}

    .qr-carousel::-webkit-scrollbar {
        height: 6px;
    }

    .qr-carousel::-webkit-scrollbar-thumb {
        background: #334155;
        border-radius: 99px;
    }

.qr-carousel-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #2a3448;
    background: #141b2d;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: 0.2s;
}

    .qr-carousel-nav:hover {
        background: #1e293b;
        border-color: var(--qr-accent);
    }

/* ===== Card de Vídeo (tamanho maior) ===== */
.qr-video-card {
    scroll-snap-align: start;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    background: #141b2d;
    border: 1px solid #243049;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.2s ease;
}

    .qr-video-card:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 59, 92, 0.45);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
    }

.qr-video-preview {
    position: relative;
    width: 100%;
    height: 180px;
    background: #0b0f19;
    overflow: hidden;
    flex-shrink: 0;
}

.qr-preview-video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border: none;
    pointer-events: none;
}

.qr-play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.28);
    transition: opacity 0.2s;
    z-index: 2;
}

.qr-video-preview:hover .qr-play-overlay {
    opacity: 0;
}

.qr-play-overlay span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    padding-left: 2px;
}

.qr-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    z-index: 3;
}

.qr-video-info {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .qr-video-info h3 {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 600;
        color: #f1f5f9;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.qr-video-actions {
    display: flex;
    gap: 0.5rem;
}

    .qr-video-actions .qr-btn {
        flex: 1;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
        text-decoration: none;
    }

/* ===== Tela de Replay ===== */
.qr-replay {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.qr-player-wrap {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .qr-player-wrap {
        grid-template-columns: 1fr;
    }
}

.qr-player {
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 280px;
    border: 1px solid #243049;
}

.qr-video {
    width: 100%;
    display: block;
    max-height: 70vh;
}

.qr-player-placeholder {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--qr-muted);
    gap: .5rem;
}

.qr-replay-meta {
    background: #141b2d;
    border: 1px solid #243049;
    border-radius: 1rem;
    padding: 1.5rem;
}

.qr-meta-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    color: var(--qr-muted);
}

    .qr-meta-list li {
        margin: .4rem 0;
    }

    .qr-meta-list strong {
        color: var(--qr-text);
        margin-right: .35rem;
    }
