:root {
    --bg-primary: #0C0C0E;
    --bg-surface: #17171B;
    --bg-surface-light: #1F1F24;
    --bg-header: #1C1013;
    --accent: #D62839;
    --accent-soft: rgba(214, 40, 57, 0.12);
    --accent-dark: #A81F2D;
    --text-primary: #F2F2F4;
    --text-secondary: #98989F;
    --divider: #26262B;
    --success: #22c55e;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

a { color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Header ---- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--divider);
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo span {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-desktop a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav-desktop a:hover {
    color: var(--text-primary);
    background: var(--bg-surface-light);
}

.nav-desktop a.active {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: var(--bg-surface);
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* ---- Barra de navegação inferior (visual de app, só mobile/tablet) ---- */
.bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--bg-surface);
    border-top: 1px solid var(--divider);
    justify-content: space-around;
    align-items: center;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    flex: 1;
    padding: 6px 2px;
    border-radius: 10px;
    transition: color 0.2s ease;
}

.bottom-nav a i {
    font-size: 19px;
}

.bottom-nav a.active {
    color: var(--accent);
}

/* ---- Main ---- */
main {
    padding: 40px 0 60px;
}

/* ---- Hero ---- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 0 60px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-content {
    flex: 1;
    min-width: 280px;
}

.hero-content h2 {
    font-size: 48px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 800;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.hero-image .icon-circle {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--accent-soft), transparent 70%);
    border: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image i {
    font-size: 92px;
    color: var(--accent);
}

/* ---- Botões ---- */
.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(214, 40, 57, 0.25);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 14px 32px;
    border: 1px solid var(--divider);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-surface-light);
}

/* ---- Features ---- */
.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--divider);
    border-radius: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.feature .icon-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature i {
    font-size: 22px;
    color: var(--accent);
}

.feature h4 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- CTA band ---- */
.cta-band {
    margin-top: 60px;
    background: linear-gradient(135deg, var(--bg-header), var(--bg-primary));
    border: 1px solid var(--divider);
    border-radius: 18px;
    padding: 48px 32px;
    text-align: center;
}

.cta-band h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.cta-band p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ---- Página de texto simples (Sobre/Contato) ---- */
.pagina-texto {
    max-width: 720px;
    margin: 0 auto;
}

.pagina-texto h2 {
    font-size: 30px;
    margin-bottom: 18px;
}

.pagina-texto h3 {
    font-size: 20px;
    margin: 28px 0 12px;
    color: var(--accent);
}

.pagina-texto p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.pagina-texto a {
    color: var(--accent);
    font-weight: 600;
}

.passos-lista {
    color: var(--text-secondary);
    line-height: 1.9;
    padding-left: 22px;
}

.contato-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-surface);
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 16px;
}

.contato-card i {
    font-size: 24px;
    color: var(--accent);
    margin-top: 2px;
}

.contato-card strong {
    display: block;
    margin-bottom: 4px;
}

.contato-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* ---- Página de cadastro de lista ---- */
.registro-page {
    max-width: 640px;
    margin: 0 auto;
}

.registro-page h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.registro-intro {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.card-form {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 160px;
}

.form-group-pin {
    max-width: 120px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--divider);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    border-color: var(--accent);
    outline: none;
}

.form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.alerta {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alerta-erro {
    background: rgba(214, 40, 57, 0.12);
    color: #ff8890;
    border: 1px solid rgba(214, 40, 57, 0.3);
}

.alerta-sucesso {
    background: rgba(34, 197, 94, 0.12);
    color: #7ee2a8;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.dispositivo-encontrado {
    animation: fadeIn 0.3s ease;
}

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

.dispositivo-info {
    background: var(--bg-surface);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.dispositivo-info > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dispositivo-tipo {
    font-weight: 600;
}

.dispositivo-status {
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
}

.status-trial { background: rgba(59, 130, 246, 0.15); color: #6ea8fe; }
.status-ativo { background: rgba(34, 197, 94, 0.15); color: #7ee2a8; }
.status-pendente { background: rgba(245, 158, 11, 0.15); color: #ffcf7a; }
.status-inativo { background: rgba(107, 114, 128, 0.15); color: #a9adb4; }

.dispositivo-trial, .dispositivo-lista-atual {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.dispositivo-lista-atual strong { color: var(--text-primary); }

.dispositivo-encontrado h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--divider);
    padding: 24px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ---- Responsividade (celular e tablet ganham visual de app) ---- */
@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 76px; /* espaço pra barra inferior não cobrir o conteúdo */
    }

    header {
        justify-content: center;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 34px;
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image i {
        font-size: 90px;
    }
}

@media (min-width: 1025px) {
    .bottom-nav {
        display: none;
    }
}

/* Telas bem pequenas (celulares estreitos) */
@media (max-width: 400px) {
    .hero-content h2 {
        font-size: 28px;
    }

    .hero-badge {
        font-size: 12px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 22px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .card-form {
        padding: 20px 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group-pin {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .bottom-nav a span {
        font-size: 10px;
    }
}

/* ======================================================================
   PLAYER WEB (assistir no navegador)
   ====================================================================== */

.watch-app {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 480px;
    background: var(--bg-surface);
    border-radius: 14px;
    overflow: hidden;
}

.watch-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--divider);
    flex-wrap: wrap;
}

.watch-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.watch-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.watch-tab:hover {
    background: var(--bg-surface-light);
    color: var(--text-primary);
}

.watch-tab.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.watch-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.watch-search-input {
    background: var(--bg-primary);
    border: 1px solid var(--divider);
    border-radius: 16px;
    padding: 7px 14px;
    color: var(--text-primary);
    font-size: 13px;
    width: 160px;
}

.watch-logout-button {
    background: var(--bg-surface-light);
    border: none;
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
}

.watch-logout-button:hover {
    color: var(--accent);
}

.watch-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.watch-sidebar {
    width: 220px;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid var(--divider);
    padding: 8px;
}

.watch-sidebar-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 2px;
}

.watch-sidebar-item:hover {
    background: var(--bg-surface-light);
    color: var(--text-primary);
}

.watch-sidebar-item.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.watch-grid {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    align-content: start;
}

.watch-empty-text {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0;
}

.watch-card {
    background: var(--bg-surface-light);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease;
}

.watch-card:hover {
    transform: translateY(-3px);
}

.watch-card-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: var(--bg-primary);
    display: block;
}

.watch-card.watch-card-live .watch-card-poster {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    padding: 10px;
}

.watch-card-name {
    padding: 8px 10px;
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-card-fav {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 13px;
    cursor: pointer;
}

.watch-player-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 500;
    display: flex;
    flex-direction: column;
}

.watch-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0,0,0,0.7);
    color: #fff;
}

.watch-player-back, .watch-player-favorite {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.watch-player-title {
    font-weight: 600;
    font-size: 14px;
}

.watch-video {
    flex: 1;
    width: 100%;
    background: #000;
}

@media (max-width: 768px) {
    .watch-app {
        height: calc(100vh - 260px);
    }
    .watch-sidebar {
        width: 130px;
    }
    .watch-search-input {
        width: 110px;
    }
    .watch-tabs {
        gap: 3px;
    }
    .watch-tab {
        padding: 6px 9px;
        font-size: 12px;
    }
}

/* ======================================================================
   DOWNLOADS
   ====================================================================== */

.downloads-page {
    max-width: 720px;
}

.downloads-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--bg-surface);
    border: 1px solid var(--divider);
    border-radius: 14px;
    padding: 18px 20px;
    flex-wrap: wrap;
}

.download-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.download-info {
    flex: 1;
    min-width: 180px;
}

.download-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.download-info p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0 0 4px;
}

.download-meta {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.download-card .btn-primary {
    width: auto;
    padding: 10px 22px;
}

@media (max-width: 500px) {
    .download-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .download-card .btn-primary {
        width: 100%;
        justify-content: center;
    }
}
