/*
 * EDCPlay.pt — Design System v2
 * Redesign moderno e limpo sobre Materialize CSS
 */

/* ========================================
   CSS Variables
   ======================================== */
/* Dark mode (default) */
:root,
[data-theme="dark"] {
    --primary: #1565c0;
    --primary-dark: #0d47a1;
    --accent: #1565c0;
    --accent-light: #1976d2;
    --dark: #121212;
    --dark-card: #1a1a2e;
    --dark-surface: #16213e;
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.45);
    --bg-body: #0f0f1a;
    --bg-section: #141425;
    --card-bg: #1a1a2e;
    --card-hover: #222244;
    --border: rgba(255,255,255,0.08);
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.5);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease;
}

/* Light mode */
[data-theme="light"] {
    --primary: #1565c0;
    --primary-dark: #0d47a1;
    --accent: #1565c0;
    --accent-light: #1976d2;
    --dark: #f5f5f5;
    --dark-card: #ffffff;
    --dark-surface: #f0f2f5;
    --text-primary: #1a1a2e;
    --text-secondary: rgba(0,0,0,0.65);
    --text-muted: rgba(0,0,0,0.45);
    --bg-body: #f0f2f5;
    --bg-section: #e8eaed;
    --card-bg: #ffffff;
    --card-hover: #f5f7fa;
    --border: rgba(0,0,0,0.1);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

/* Light mode overrides */
[data-theme="light"] body {
    color: var(--text-primary) !important;
}

[data-theme="light"] .navbar {
    background: rgba(255,255,255,0.95) !important;
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .navbar .site-title h1 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .side-nav {
    background: #fff !important;
    border-left: 1px solid var(--border) !important;
}

[data-theme="light"] .side-nav .photos {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}

[data-theme="light"] .side-nav li a,
[data-theme="light"] .side-nav .collapsible-header {
    color: var(--text-primary) !important;
}

[data-theme="light"] .side-nav li a:hover,
[data-theme="light"] .side-nav .collapsible-header:hover {
    background: rgba(0,0,0,0.04) !important;
}

[data-theme="light"] .video-theater {
    background: #000;
}

[data-theme="light"] .edition-hero-overlay {
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.7) 100%);
}

[data-theme="light"] .edition-hero-overlay h3,
[data-theme="light"] .edition-hero-overlay p {
    color: #fff !important;
}

[data-theme="light"] .auth-screen {
    background:
        radial-gradient(ellipse at 30% 30%, rgba(21,101,192,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(25,118,210,0.04) 0%, transparent 60%),
        var(--bg-body);
}

[data-theme="light"] .auth-card {
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

[data-theme="light"] .auth-field input {
    background: #f5f7fa !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .comment-compose-body textarea,
[data-theme="light"] .reply-compose textarea {
    color: var(--text-primary);
    border-bottom-color: var(--border);
}

[data-theme="light"] footer {
    background: #fff !important;
}

[data-theme="light"] .panel-control-right .sidenav-control-right i {
    color: #fff !important;
}

[data-theme="light"] .flash-message {
    background: var(--primary);
    color: #fff;
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0,0,0,0.06);
}

/* ========================================
   Global Reset & Base
   ======================================== */
body {
    background: var(--bg-body) !important;
    color: var(--text-primary) !important;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text-primary); text-decoration: none; }
a:hover { color: var(--primary); }

/* Screen reader only (acessibilidade) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.container { max-width: 1200px; }

/* ========================================
   Navbar
   ======================================== */
.navbar {
    background: rgba(15,15,26,0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 64px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.navbar .site-title a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar .site-title .navbar-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
}

.navbar .site-title h1 {
    font-family: 'Signika', sans-serif;
    font-size: 26px !important;
    letter-spacing: 1px;
}

.navbar .panel-control-right {
    display: flex;
    align-items: center;
    gap: 8px;
    float: right;
}

.navbar .sidenav-control-right i,
.panel-control-right .sidenav-control-right i {
    color: #fff !important;
    background: var(--primary) !important;
    font-size: 18px;
    padding: 8px 10px;
    border-radius: 6px;
}

/* ========================================
   Side Navigation
   ======================================== */
.side-nav {
    background: var(--dark-surface) !important;
    border-left: 1px solid var(--border) !important;
}

.side-nav .photos {
    background: linear-gradient(135deg, var(--primary-dark), var(--dark-surface)) !important;
    padding: 30px 16px 20px !important;
    text-align: center;
}

.side-nav .photos h3 {
    font-size: 16px !important;
    font-weight: 500;
    margin-top: 8px;
}

.side-nav .photos .sidenav-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
}

.side-nav .photos .sidenav-avatar {
    font-size: 48px;
    color: #fff;
    display: block;
    text-align: center;
    padding: 0 0 5px;
}

.side-nav li a,
.side-nav .collapsible-header {
    color: var(--text-secondary) !important;
    font-size: 14px;
    border-bottom: 1px solid var(--border) !important;
    transition: var(--transition);
}

.side-nav li a:hover,
.side-nav .collapsible-header:hover {
    background: rgba(255,255,255,0.05) !important;
    color: var(--text-primary) !important;
}

.side-nav li a i,
.side-nav .collapsible-header i {
    color: var(--text-muted) !important;
}

.side-nav .collapsible-body {
    background: rgba(0,0,0,0.15) !important;
}

.side-nav .side-nav-panel li a {
    padding-left: 40px !important;
    font-size: 13px;
}

.side-nav .logout-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.side-nav .logout-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

/* ========================================
   Buttons
   ======================================== */
.button,
button.button,
a.button {
    background: var(--primary) !important;
    color: #fff !important;
    border: none;
    border-radius: 50px !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none !important;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.button:hover,
button.button:hover,
a.button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21,101,192,0.4);
}

.button-outline {
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
}

.button-outline:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* ========================================
   Flash Messages
   ======================================== */
.flash-message {
    margin: 74px auto 0;
    max-width: 1200px;
    background: rgba(21,101,192,0.15);
    border-left: 4px solid var(--accent);
    padding: 14px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-primary);
    font-size: 14px;
}

.flash-message i { margin-right: 8px; color: var(--accent-light); }

/* ========================================
   Hero Slider
   ======================================== */

/* Esconder setas Slick fora do slider */
body > .slick-prev,
body > .slick-next,
.slick-prev:not(.slider-slick .slick-prev),
.slick-next:not(.slider-slick .slick-next) {
    display: none !important;
}

.slider-slick {
    margin-top: 64px;
}

.slider-slick .slider-entry {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.slider-slick .slider-entry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-slick .overlay {
    background: linear-gradient(to top, rgba(15,15,26,0.95) 0%, rgba(15,15,26,0.4) 50%, transparent 100%) !important;
}

.slider-slick .caption {
    z-index: 10;
}

.slider-slick .caption h2 {
    font-size: 28px !important;
    font-weight: 700;
    line-height: 1.3;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.slider-slick .caption p {
    color: rgba(255,255,255,0.85) !important;
    font-size: 16px;
    margin-bottom: 16px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.slider-slick .caption .edition-badge {
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
}

/* Slick dots — círculos sólidos limpos (sem o "•" do template) */
.slider-slick .slick-dots {
    bottom: 16px;
}
.slider-slick .slick-dots li {
    width: auto;
    height: auto;
    margin: 0 4px;
}
.slider-slick .slick-dots li button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.45) !important;
    transition: background 0.2s ease, transform 0.2s ease;
}
.slider-slick .slick-dots li button:before {
    display: none !important;
}
.slider-slick .slick-dots li.slick-active button {
    background: var(--primary) !important;
    transform: scale(1.2);
}

/* ========================================
   Section Titles
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.section-header h4 {
    font-size: 22px !important;
    font-weight: 600;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h4 i {
    color: var(--primary);
    font-size: 20px;
}

.section-header .see-all {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.section-header .see-all:hover {
    color: var(--primary);
}

/* Grid: cards com altura uniforme */
.section-videos .row,
.section-content .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.section-videos .row > .col,
.section-content .row > .col {
    display: flex;
    padding: 0 10px;
    margin-bottom: 20px;
}

/* ========================================
   Video Cards
   ======================================== */
.video-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255,255,255,0.12);
}

.video-card .card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .card-thumb img {
    transform: scale(1.05);
}

.video-card .card-thumb .play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .card-thumb .play-overlay {
    opacity: 1;
}

.video-card .card-thumb .play-overlay i {
    font-size: 48px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.video-card .card-thumb .badge-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
}

.video-card .card-thumb .badge-lock {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #ffc107;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
}

.video-card .card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-card .card-body h5 {
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card .card-body h5 a {
    color: var(--text-primary);
    transition: var(--transition);
}

.video-card .card-body h5 a:hover {
    color: var(--primary);
}

.video-card .card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    margin-top: auto;
    color: var(--text-muted);
}

.video-card .card-meta i {
    margin-right: 3px;
}

/* Edition Badge */
.edition-badge {
    display: inline-block;
    background: rgba(21,101,192,0.2);
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(21,101,192,0.3);
}

/* ========================================
   Edition Cards
   ======================================== */
.edition-card-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.edition-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.edition-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255,255,255,0.12);
}

.edition-card .edition-thumb {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.edition-card .edition-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.edition-card:hover .edition-thumb img {
    transform: scale(1.05);
}

.edition-card .edition-thumb .edition-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.edition-card .edition-thumb .edition-placeholder i {
    font-size: 48px;
    color: rgba(255,255,255,0.3);
}

.edition-card .edition-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.edition-card .edition-body h5 {
    font-size: 18px !important;
    font-weight: 600;
    margin: 0 0 6px !important;
}

.edition-card .edition-body .edition-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.5;
    flex: 1;
}

.edition-card .edition-body .edition-count {
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 500;
    margin-top: auto;
}

.edition-card .edition-body .edition-count i {
    margin-right: 4px;
}

.edition-card .edition-body .edition-count.coming-soon {
    color: #ffc107;
}

/* Badge Brevemente */
.edition-card .edition-thumb .badge-lock-edition {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #ffc107;
    font-size: 13px;
    padding: 5px 9px;
    border-radius: 6px;
    z-index: 2;
}

.badge-coming-soon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,193,7,0.9);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.coming-soon-hero {
    color: #ffc107 !important;
    font-size: 16px;
    font-weight: 500;
}

/* ========================================
   Category Cards
   ======================================== */
/* Centrar última row de categorias */
.section-content .row:has(.category-card) {
    justify-content: center;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.category-card .cat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    background: rgba(21,101,192,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card .cat-icon i {
    font-size: 28px;
    color: var(--primary);
}

.category-card h5 {
    font-size: 16px !important;
    font-weight: 600;
    margin: 0 0 6px !important;
}

.category-card .cat-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   Page Headers
   ======================================== */
.page-header {
    margin-top: 64px;
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--border);
}

.page-header h3 {
    font-size: 28px !important;
    font-weight: 700;
    margin: 0 0 6px !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h3 i {
    color: var(--primary);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
}

/* Edition Detail Header */
.edition-hero {
    margin-top: 64px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
}

.edition-hero img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.edition-hero .edition-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(15,15,26,0.95), transparent);
}

.edition-hero .edition-hero-overlay h3 {
    margin: 0 !important;
    font-size: 32px !important;
}

.edition-hero .edition-hero-overlay p {
    color: var(--text-secondary);
    margin: 6px 0 0;
}

/* Session groups (dias/sessões dentro de edição) */
.session-group {
    margin-bottom: 16px;
}

.session-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.session-header h5 {
    font-size: 18px !important;
    font-weight: 600;
    margin: 0 !important;
    color: var(--text-primary) !important;
}

.session-header h5 i {
    color: var(--primary);
    margin-right: 6px;
}

.session-count {
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.06);
    padding: 3px 10px;
    border-radius: 12px;
}

/* ========================================
   Video Single Page (layout estilo YouTube)
   ======================================== */
.video-single {
    margin-top: 64px;
    background: var(--bg-body);
}

.video-theater {
    background: #000;
    display: flex;
    justify-content: center;
    width: 100%;
}

.video-theater-inner {
    width: 100%;
    max-width: 1100px;
}

.video-iframe {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
}

.video-iframe iframe,
.video-iframe .video-locked {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* Layout 2 colunas: info + relacionados (desktop) */
.video-layout {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.video-main {
    flex: 1;
    min-width: 0;
}

.video-sidebar {
    width: 360px;
    flex-shrink: 0;
}

.video-sidebar h6 {
    font-size: 15px !important;
    font-weight: 500;
    margin-bottom: 12px !important;
    color: var(--text-secondary) !important;
    padding: 0;
    border: none;
    display: block;
}

/* Sidebar video cards - estilo YouTube */
.video-sidebar .video-card {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 8px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    height: auto;
    width: auto;
}

.video-sidebar .video-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.video-sidebar .video-card .card-thumb {
    width: 168px;
    min-width: 168px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.video-sidebar .video-card .card-thumb img {
    border-radius: 8px;
}

.video-sidebar .video-card:hover .card-thumb img {
    transform: none;
}

.video-sidebar .video-card .card-thumb .play-overlay {
    display: none;
}

.video-sidebar .video-card .card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: transparent;
    min-width: 0;
}

.video-sidebar .video-card .card-body h5 {
    font-size: 14px !important;
    font-weight: 500;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 4px !important;
    line-height: 1.4;
}

.video-sidebar .video-card .card-body h5 a {
    color: var(--text-primary);
}

.video-sidebar .video-card .card-meta {
    font-size: 12px;
    gap: 2px;
    flex-direction: column;
    color: var(--text-muted);
}

.video-sidebar .video-card .card-meta .edition-badge {
    display: none;
}

.video-sidebar .video-card .card-meta span {
    font-size: 12px;
    color: var(--text-muted);
}

.video-sidebar .video-card .badge-duration {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    bottom: 4px;
    right: 4px;
}

.video-sidebar .video-card .badge-lock {
    top: 4px;
    right: 4px;
    font-size: 11px;
    padding: 2px 6px;
}

@media only screen and (max-width: 992px) {
    .video-layout {
        flex-direction: column;
    }

    .video-sidebar {
        width: 100%;
    }

    .video-sidebar .video-card {
        display: flex;
        gap: 8px;
        height: auto;
        margin-bottom: 12px;
    }

    .video-sidebar .video-card .card-thumb {
        width: 140px;
        min-width: 140px;
        height: auto;
    }

    .video-sidebar .video-card .card-body {
        padding: 0;
    }

    .video-sidebar .video-card .card-body h5 {
        font-size: 13px !important;
    }
}

.video-locked {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #000;
}

/* Estado "mensagem" (sem acesso / indisponível): não forçar 16:9,
   deixar o bloco crescer à altura do conteúdo para o botão não ser cortado. */
.video-iframe--message {
    height: auto;
    padding-bottom: 0;
    overflow: visible;
}
.video-iframe--message .video-locked {
    position: relative;
    height: auto !important;
    min-height: 260px;
    padding: 40px 20px;
    box-sizing: border-box;
}

.video-locked .lock-content .lock-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    max-width: max-content;
    margin: 4px auto 0;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 8px 18px;
    height: auto;
    line-height: 1.2;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 2px 10px rgba(21,101,192,0.35);
    text-decoration: none;
    transition: var(--transition);
}
.video-locked .lock-content .lock-btn:hover {
    background: var(--accent-light);
    color: #fff;
    box-shadow: 0 4px 14px rgba(21,101,192,0.45);
}
.video-locked .lock-content .lock-btn i { font-size: 14px; color: #fff; margin-bottom: 0; }

/* Bloco de mensagem mais compacto */
.video-iframe--message .lock-content i.fa-lock,
.video-iframe--message .lock-content i.fa-exclamation-circle { font-size: 38px; margin-bottom: 12px; }
.video-iframe--message .lock-content h4 { font-size: 18px !important; }
.video-iframe--message .lock-content p { font-size: 14px; max-width: 420px; margin-left: auto; margin-right: auto; }

.video-locked .lock-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.video-locked .lock-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 24px;
}

.video-locked .lock-content i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--primary);
}

.video-locked .lock-content h4 {
    font-size: 20px !important;
    margin-bottom: 8px !important;
    color: #fff !important;
}

.video-locked .lock-content p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}

.video-main .video-title {
    font-size: 22px !important;
    font-weight: 600;
    margin: 0 0 16px !important;
    line-height: 1.3;
}

.video-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    margin-top: 4px;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-meta .badge-public {
    color: #4caf50;
}

.video-meta .badge-private {
    color: #ffc107;
}

.video-source-badge {
    display: inline-block;
    background: #ff0000;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    text-align: right;
}

.video-description {
    margin-top: 20px;
}

.video-description h6,
.video-speaker h6 {
    font-size: 15px !important;
    font-weight: 600;
    color: var(--text-primary) !important;
    margin-bottom: 8px !important;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.video-description p,
.video-speaker p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ========================================
   Sections / Pages
   ======================================== */
.section-editions,
.section-videos,
.section-content {
    padding: 36px 0;
}

.section-editions {
    background: var(--bg-section);
}

/* ========================================
   Auth Screen (fullscreen login)
   ======================================== */
.auth-body {
    background: var(--bg-body) !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(21,101,192,0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(25,118,210,0.06) 0%, transparent 60%),
        var(--bg-body);
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid rgba(21,101,192,0.15);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.auth-logo {
    margin-bottom: 20px;
}

.auth-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.auth-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px !important;
    font-weight: 700;
    margin: 0 0 4px !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px;
}

.auth-title span {
    color: #1976d2;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 32px;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
    text-align: left;
}

.auth-alert.error {
    background: rgba(239,83,80,0.1);
    border: 1px solid rgba(239,83,80,0.2);
    color: #ef9a9a;
}

.auth-alert.info {
    background: rgba(21,101,192,0.1);
    border: 1px solid rgba(21,101,192,0.2);
    color: var(--accent-light);
}

.auth-alert p {
    margin: 0;
}

.auth-form {
    text-align: left;
}

.auth-field {
    position: relative;
    margin-bottom: 16px;
}

.auth-field i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    z-index: 1;
}

.auth-field input {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    padding: 14px 16px 14px 42px !important;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    box-sizing: border-box;
    height: auto !important;
    transition: var(--transition);
    outline: none;
}

.auth-field input:focus {
    border-color: #1976d2 !important;
    box-shadow: 0 0 0 3px rgba(25,118,210,0.2) !important;
    background: rgba(255,255,255,0.08) !important;
}

.auth-field input:focus + i,
.auth-field:focus-within i {
    color: #1976d2;
}

.auth-field input::placeholder {
    color: var(--text-muted);
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-remember input[type="checkbox"] {
    accent-color: #1976d2;
}

.auth-remember label {
    color: var(--text-secondary) !important;
    font-size: 13px;
    cursor: pointer;
}

.auth-btn {
    width: 100%;
    background: #1565c0 !important;
    color: #fff !important;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover {
    background: #1976d2 !important;
    box-shadow: 0 4px 20px rgba(25,118,210,0.35);
}

.auth-footer {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 12px;
}

.auth-footer p {
    margin: 0;
}

@media only screen and (max-width: 480px) {
    .auth-card {
        padding: 36px 24px;
    }

    .auth-logo img {
        width: 80px;
        height: 80px;
    }

    .auth-title {
        font-size: 24px !important;
    }
}

/* Alert boxes */
.alert {
    padding: 14px 18px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.alert-error {
    background: rgba(244,67,54,0.1);
    border-left: 4px solid #f44336;
    color: #ef9a9a;
}

.alert-info {
    background: rgba(21,101,192,0.1);
    border-left: 4px solid var(--accent);
    color: #90caf9;
}

.alert i { margin-right: 8px; }

/* ========================================
   404 Error Page
   ======================================== */
.error-page {
    margin-top: 64px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-page .error-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.error-page h4 {
    font-size: 22px !important;
    margin-bottom: 10px !important;
}

.error-page p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ========================================
   Empty States
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 56px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--dark) !important;
    border-top: 1px solid var(--border);
    padding: 36px 0 20px !important;
}

footer .footer-social {
    text-align: center;
    margin-bottom: 16px;
}

footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition);
}

footer .footer-social a:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

footer .ft-bottom {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    text-align: center;
}

footer .ft-bottom span {
    color: var(--text-muted) !important;
    font-size: 12px;
}

/* ========================================
   Pagination
   ======================================== */
/* Override style.css pagination (remove pink/red) */
.pagination-videos ul,
.pagination-videos nav,
.pagination-videos .pagination-nav {
    background: none !important;
    margin: 30px 0 10px !important;
    text-align: center;
}

.pagination-videos ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 6px;
}

.pagination-videos ul li {
    display: inline-block;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
}

.pagination-videos ul li a,
.pagination-videos ul li span,
.pagination-videos .pagination li a,
.pagination-videos .pagination li span {
    display: inline-block;
    padding: 8px 14px;
    background: var(--card-bg) !important;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border) !important;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    line-height: 1;
}

.pagination-videos ul li a:hover {
    background: var(--card-hover) !important;
    color: var(--text-primary) !important;
}

.pagination-videos ul li.active,
.pagination-videos ul .active {
    background: none !important;
    border: none !important;
}

.pagination-videos ul li.active span,
.pagination-videos ul li.active a,
.pagination-videos ul .active a,
.pagination-videos ul .active span {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.pagination-videos ul li.disabled span {
    opacity: 0.4;
    cursor: default;
}

.pagination-videos .pagination-info,
.pagination-videos p {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 10px;
    background: none !important;
}

/* ========================================
   Responsive
   ======================================== */
@media only screen and (max-width: 600px) {
    .slider-slick .slider-entry {
        height: 300px;
    }

    .slider-slick .caption h2 {
        font-size: 20px !important;
    }

    .page-header h3 {
        font-size: 22px !important;
    }

    .section-header h4 {
        font-size: 18px !important;
    }

    .video-info .video-title {
        font-size: 18px !important;
    }

    .video-meta {
        gap: 10px;
        font-size: 12px;
    }

    .edition-card .edition-thumb {
        height: 120px;
    }
}

@media only screen and (min-width: 601px) and (max-width: 992px) {
    .slider-slick .slider-entry {
        height: 360px;
    }
}

/* ========================================
   Back link
   ======================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 24px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    background: rgba(21,101,192,0.1);
}

/* ========================================
   Comments Section v2
   ======================================== */
.comments-section {
    border-top: 1px solid var(--border);
    background: transparent;
    padding: 32px 0 16px;
    margin-top: 12px;
}

.comments-inner {
    max-width: 100%;
}

.comments-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* Avatar colors */
.comment-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    user-select: none;
}
.comment-avatar.sm { width: 28px; height: 28px; min-width: 28px; font-size: 12px; }
.comment-avatar[data-color="0"] { background: #1565c0; }
.comment-avatar[data-color="1"] { background: #8e24aa; }
.comment-avatar[data-color="2"] { background: #1e88e5; }
.comment-avatar[data-color="3"] { background: #43a047; }
.comment-avatar[data-color="4"] { background: #f4511e; }

/* Compose box */
.comment-compose {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.comment-compose-body {
    flex: 1;
}

.comment-compose-body textarea,
.reply-compose textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 0;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    resize: none;
    min-height: 36px;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

.comment-compose-body textarea:focus,
.reply-compose textarea:focus {
    border-bottom: 2px solid var(--text-primary);
}

.comment-compose-footer,
.reply-compose-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.2s;
}

.comment-compose.active .comment-compose-footer,
.reply-compose .reply-compose-footer {
    opacity: 1;
    height: auto;
    overflow: visible;
}

.comment-compose-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-comment {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}
.btn-comment:hover { background: var(--primary-dark); }
.btn-comment.small { padding: 6px 16px; font-size: 12px; }

.btn-cancel {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: var(--transition);
}
.btn-cancel:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

/* Login CTA */
.comment-login-cta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.comment-login-cta a {
    color: var(--accent-light);
    font-weight: 500;
}
.comment-login-cta a:hover { text-decoration: underline; }

/* Comments list */
.comments-list { margin-top: 4px; }

.comment {
    display: flex;
    gap: 12px;
    padding: 14px 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.comment-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary) !important;
    font-size: 14px;
    line-height: 1.5;
    margin: 2px 0 4px !important;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Toolbar */
.comment-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.comment-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 16px;
    transition: var(--transition);
}
.comment-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.comment-btn.danger:hover { color: #f44336; }

.inline-form { display: inline; }

/* Reply compose */
.reply-compose {
    margin-top: 10px;
    padding-left: 0;
}

.reply-compose textarea {
    font-size: 13px;
    min-height: 32px;
}

.reply-compose-footer {
    opacity: 1;
    height: auto;
    overflow: visible;
    justify-content: flex-end;
    gap: 8px;
}

/* Thread / replies */
.comment-thread {
    margin-top: 4px;
    margin-left: 40px;
}

.comment-thread .comment {
    padding: 10px 0;
}

.comment-thread .comment-text {
    font-size: 13px;
}

/* Empty */
.comments-empty {
    text-align: center;
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 14px;
}
.comments-empty p { margin: 0; }

/* ========================================
   Utility: hide template defaults
   ======================================== */
.app-pages { padding-top: 0 !important; }
.app-section { margin-top: 0 !important; }
.pages-title { display: none; }

/* ========================================
   Área pessoal (perfil)
   ======================================== */
.profile-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}
.profile-inner { width: 100%; }
.profile-heading {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px;
}
.profile-heading i { color: var(--accent); margin-right: 8px; }
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 18px;
}
.profile-card h6 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.profile-field { margin-bottom: 16px; }
.profile-field label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 6px;
}
.profile-field input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 11px 14px;
    font-size: 14px;
    height: auto;
    margin: 0;
}
.profile-field input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(21,101,192,0.25);
}
.profile-field input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.profile-field input.is-readonly,
.profile-field input[readonly] {
    background: var(--bg-body);
    color: var(--text-secondary);
    cursor: default;
    opacity: 1;
}
.profile-field small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 5px;
}
.profile-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.profile-btn:hover { background: var(--accent-light); }
.profile-btn i { margin-right: 6px; }
.profile-note { color: var(--text-secondary); font-size: 14px; margin: 0; }
.profile-cta p { color: var(--text-secondary); font-size: 14px; margin: 0 0 16px; }
.profile-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(21,101,192,0.35);
    transition: var(--transition);
}
.profile-cta-btn:hover { background: var(--accent-light); color: #fff; box-shadow: 0 4px 14px rgba(21,101,192,0.45); }
.profile-cta-btn i { font-size: 15px; }
.profile-note i { color: var(--accent); margin-right: 6px; }
.profile-editions { list-style: none; margin: 0; padding: 0; }
.profile-editions li {
    color: var(--text-primary);
    font-size: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}
.profile-editions li:last-child { border-bottom: none; }
.profile-editions i { color: #4caf50; margin-right: 8px; }
.profile-alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 14px;
}
.profile-alert p { margin: 4px 0; }
.profile-alert.error { background: rgba(229,57,53,0.12); color: #ef5350; border: 1px solid rgba(229,57,53,0.3); }
.profile-alert.info { background: rgba(76,175,80,0.12); color: #66bb6a; border: 1px solid rgba(76,175,80,0.3); }

/* ========================================
   Pesquisa de vídeos
   ======================================== */
.navbar-search-btn {
    color: var(--text-primary);
    font-size: 18px;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
    transition: var(--transition);
}
.navbar-search-btn:hover { color: var(--accent); }

.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    max-width: 560px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 6px 6px 16px;
}
.search-page-form > i { color: var(--text-muted); }
.search-page-form input[type="search"] {
    flex: 1;
    border: none !important;
    border-bottom: none !important;
    background: transparent !important;
    color: var(--text-primary) !important;
    font-size: 15px;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    box-shadow: none !important;
    outline: none;
}
.search-page-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.search-page-form button:hover { background: var(--accent-light); }
.search-count { color: var(--text-secondary); margin: 0 0 16px; font-size: 14px; }

/* ========================================
   Banner de cookies
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    padding: 14px 16px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-banner-inner p {
    margin: 0;
    flex: 1;
    min-width: 240px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}
.cookie-banner-inner a { color: var(--accent); }
.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cookie-btn {
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.cookie-accept { background: var(--primary); color: #fff; }
.cookie-accept:hover { background: var(--accent-light); }
.cookie-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.cookie-reject:hover { color: var(--text-primary); border-color: var(--text-muted); }
@media (max-width: 600px) {
    .cookie-banner-actions { width: 100%; }
    .cookie-btn { flex: 1; }
}

/* Texto legal (política de privacidade) */
.legal-text { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.legal-text h6 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin: 20px 0 8px;
    text-transform: none;
    letter-spacing: 0;
}
.legal-text p { margin: 0 0 10px; }
.legal-text a { color: var(--accent); }
.ft-sep { margin: 0 6px; opacity: 0.5; }
