:root {
    /* Cores - Light Theme Premium (Mídia Business) */
    --bg-main: #F9FAFB;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;

    /* Destaques e Acentos - Coral */
    --accent-primary: #FF6F61;   /* Coral Amigável e Criativo */
    --accent-secondary: #FF8A80;
    --accent-live: #E63946;

    /* Textos (Brancos e Cinzas) */
    --text-primary: #111827;     
    --text-secondary: #374151;   
    --text-muted: #6B7280;       

    /* Especiais */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 10px 30px rgba(197, 160, 89, 0.15);

    /* Geometria */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Medidas da Interface */
    --header-height: 125px;
    /* Inclui campo de busca */
    --bottom-nav-height: 70px;
    --player-height: 80px;
}

html.dark {
    /* Cores - Dark Theme Premium (Mídia Business) */
    --bg-main: #121212;      
    --bg-secondary: #1A1A1A; 
    --bg-card: #1F1F1F;      

    /* Coral no Dark */
    --accent-primary: #FF6F61;   
    --accent-secondary: #FF8A80; 

    /* Textos */
    --text-primary: #F3F4F6;     
    --text-secondary: #D1D5DB;   
    --text-muted: #9CA3AF;       

    /* Especiais */
    --glass-bg: rgba(26, 26, 26, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 4px 12px -2px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.15);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: hidden;
    /* O conteúdo rolará dentro do main */
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Viewport Height real */
    height: 100dvh;
    /* Dynamic Viewport Height (iOS/Android mobile issue fix) */
}

/* Utilitários Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.app-header {
    background: var(--bg-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 16px 20px 20px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: var(--header-height);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 16px auto;
    width: 100%;
    max-width: 800px;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-primary);
    font-weight: 400;
}

.icon-btn {
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.icon-btn:active {
    background: var(--bg-main);
}

.notif-btn .badge {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-live);
    border-radius: 50%;
}

/* Header Actions & Download App */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    display: none;
    /* Hide on very small screens if needed, otherwise show */
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-main);
    color: var(--text-secondary);
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    transition: background 0.2s, color 0.2s;
    border: 1px solid var(--glass-border);
}

.social-icon:hover {
    color: white;
}

.social-icon.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-icon.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

@media (min-width: 600px) {
    .social-icon {
        display: flex;
    }
}

.download-app-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.download-app-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .download-app-btn .btn-text {
        display: none;
    }

    .download-app-btn {
        padding: 8px 12px;
    }
}

/* Barra de Busca */
.search-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-bar:focus-within {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-right: 10px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

/* ==========================================================================
   MAIN CONTENT AREA (Onde as views são renderizadas)
   ========================================================================== */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding-top: var(--header-height);
    padding-bottom: calc(var(--bottom-nav-height) + var(--player-height) + 20px);
    width: 100%;
    max-width: 800px;
    /* Para ficar elegante no Desktop também */
    margin: 0 auto;
    scroll-behavior: smooth;
}

/* Ocultar barra de rolagem para visual mais limpo */
.app-content::-webkit-scrollbar {
    display: none;
}

.app-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Classes utilitárias para o conteúdo */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 24px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title .view-all {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    text-decoration: none;
}