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

/* CSS Variables for easy theming */
:root {
    --primary-color: #ff4444;
    --primary-hover: #e63939;
    --bg-color: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #aaaaaa;
    --border-color: #333333;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* Base Styles */
html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

body {
    padding: 20px;
}

/* WhatsApp Banner - Redesigned */
.whatsapp-banner {
    background: linear-gradient(90deg, #075E54 0%, #25D366 50%, #128C7E 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.whatsapp-link {
    display: block;
    text-decoration: none;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.whatsapp-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.whatsapp-logo {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.whatsapp-link:hover .whatsapp-logo {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.whatsapp-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: white;
}

.whatsapp-text strong {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.whatsapp-text small {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.whatsapp-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #25D366;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

.arrow-icon {
    animation: slideArrow 1.5s infinite;
    color: #25D366;
}

@keyframes slideArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Mobile responsive for WhatsApp banner */
@media (max-width: 768px) {
    .whatsapp-banner {
        padding: 10px 15px;
    }
    
    .whatsapp-link {
        padding: 6px 12px;
        gap: 10px;
    }
    
    .whatsapp-icon {
        font-size: 1.5rem;
    }
    
    .whatsapp-text strong {
        font-size: 0.95rem;
    }
    
    .whatsapp-text small {
        font-size: 0.75rem;
    }
    
    .whatsapp-arrow {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-text small {
        display: none;
    }
    
    .whatsapp-text strong {
        font-size: 0.9rem;
    }
}

/* Header with Logo and Search */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: "📺";
    font-size: 2.5rem;
}

/* Search Form Styling */
.search-container {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 25px;
    padding: 5px 10px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    min-width: 300px;
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.search-input {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 12px 15px;
    font-size: 1rem;
    outline: none;
    flex: 1;
}

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

.search-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.search-btn::before {
    content: "🔍";
}

/* Featured Video (Latest) */
.featured-video {
    margin-top: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--primary-color);
    position: relative;
    transition: var(--transition);
}

.featured-video:hover {
    box-shadow: 0 8px 30px rgba(255, 68, 68, 0.2);
}

.featured-video a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-label {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    background: var(--primary-color);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.featured-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-video:hover .featured-thumbnail img {
    transform: scale(1.03);
}

.featured-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-color);
}

.featured-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .featured-content {
        grid-template-columns: 1fr;
    }

    .featured-info {
        padding: 20px;
    }

    .featured-title {
        font-size: 1.2rem;
    }
}

/* Video Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Individual Video Card */
.video {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.video:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.video a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Recommendation Score Badge */
.score-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.score-badge.high-score {
    background: #00ff00;
    color: #000;
}

/* Duration Badge */
.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(10px);
}

/* Play Button Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.video:hover .play-overlay,
.featured-video:hover .play-overlay {
    opacity: 1;
}

/* Play overlay visível em dispositivos touch (sem hover) */
@media (hover: none) {
    .play-overlay {
        opacity: 0.8;
    }
}

.play-overlay::before {
    content: "▶";
    color: white;
    font-size: 1.5rem;
    margin-left: 3px;
}

/* Video Info */
.video-info {
    padding: 15px;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;
}

.video-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.published-date {
    opacity: 0.8;
}

.recommendation-reason {
    background: rgba(255, 68, 68, 0.1);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Personalization Banner */
.personalization-banner {
    text-align: center;
    padding: 10px 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.stat {
    background: rgba(255, 68, 68, 0.1);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* High Recommendation Styling */
.video.high-recommendation {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 68, 68, 0.05) 100%);
}

.video.high-recommendation::before {
    content: "⭐ RECOMENDADO";
    position: absolute;
    top: -10px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 3;
}

/* Enhanced Video Cards */
.video {
    overflow: visible;
}

.video-info {
    padding: 20px;
}

.video-stats {
    margin-top: 10px;
}

/* Loading State */
.video[style*="opacity: 0"] {
    opacity: 0 !important;
    transform: translateY(20px) !important;
}

/* Enhanced Score Badge */
.score-badge {
    font-size: 0.75rem;
    padding: 6px 10px;
    min-width: 45px;
    text-align: center;
}

.score-badge.high-score {
    background: linear-gradient(45deg, #00ff00, #32cd32);
    color: #000;
    font-weight: 900;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Enhanced Hover Effects */
.video:hover {
    transform: translateY(-12px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.video.high-recommendation:hover {
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.3);
}

/* Better Typography */
.video-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.video-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Enhanced Search */
.search-container {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-container:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Search Results Styling */
.search-results-header {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.search-results-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.results-count {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Search Relevant Videos */
.video.search-relevant {
    border-left: 4px solid var(--primary-color);
}

/* Highlighted Search Terms */
mark {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* Enhanced No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-results h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.no-results p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.no-results a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.no-results a:hover {
    text-decoration: underline;
}

/* Smooth Animations */
.video,
.search-container,
.search-btn {
    will-change: transform;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .search-container {
        min-width: 100%;
        max-width: 400px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-container {
        min-width: 100%;
    }
    
    .search-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* WhatsApp Banner Compact (for watch.php) */
.whatsapp-banner-compact {
    position: fixed;
    top: max(20px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
    z-index: 1002;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.whatsapp-link-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.whatsapp-link-compact:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.arrow-compact {
    font-size: 1rem;
    animation: slideArrow 1.5s infinite;
}

/* Video Player Styles (for watch.php) */
.video-page {
    background-color: black;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.back-button {
    position: fixed;
    top: max(20px, env(safe-area-inset-top));
    left: max(20px, env(safe-area-inset-left));
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 1002;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    backdrop-filter: blur(10px);
}

.back-button.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-button:hover {
    background: rgba(255, 68, 68, 0.8);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Video Controls */
.video-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 1002;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.video-controls.visible {
    opacity: 1;
    transform: translateY(0);
}

.control-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 68, 68, 0.8);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Notification */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1rem;
    z-index: 1003;
    backdrop-filter: blur(10px);
    animation: fadeInOut 3s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Email Capture Banner */
.email-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.68, -0.15, 0.265, 1.15), opacity 0.5s ease;
}

.email-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.email-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.email-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    position: relative;
}

.email-banner-text {
    display: flex;
    flex-direction: column;
    color: white;
    flex-shrink: 0;
}

.email-banner-text strong {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.email-banner-text small {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 400;
}

.email-banner-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 450px;
}

.email-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    min-width: 0;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.email-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2);
}

.email-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.email-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.email-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.email-banner-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.3s ease;
}

.email-banner-close:hover {
    color: white;
}

.email-banner-feedback {
    text-align: center;
    font-size: 0.9rem;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.email-banner-feedback.success {
    color: #4caf50;
    padding: 8px 20px;
    max-height: 50px;
}

.email-banner-feedback.error {
    color: #ff6b6b;
    padding: 8px 20px;
    max-height: 50px;
}

/* Honeypot - Campo oculto anti-spam */
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* Email banner responsive */
@media (max-width: 768px) {
    .email-banner-content {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
        padding-right: 35px;
    }

    .email-banner-text {
        text-align: center;
    }

    .email-banner-text strong {
        font-size: 1rem;
    }

    .email-banner-form {
        width: 100%;
        max-width: 100%;
    }

    .email-input {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .email-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .email-banner-text small {
        display: none;
    }

    .email-banner-form {
        flex-direction: column;
    }

    .email-input {
        width: 100%;
    }

    .email-btn {
        width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Transcript Panel */
.video-page.has-transcript {
    height: auto;
    overflow: auto;
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounceDown 2s infinite;
}

.scroll-indicator:hover {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
}

.transcript-panel {
    position: relative;
    margin-top: 100vh;
    margin-top: 100dvh;
    background: var(--bg-color);
    min-height: 50vh;
    z-index: 1001;
}

.transcript-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.transcript-video-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.transcript-video-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.transcript-accordion {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.transcript-accordion summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    transition: background 0.2s ease;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.transcript-accordion summary::-webkit-details-marker {
    display: none;
}

.transcript-accordion summary::after {
    content: "▸";
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.transcript-accordion[open] summary::after {
    transform: rotate(90deg);
}

.transcript-accordion summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.transcript-content {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    max-height: 60vh;
    overflow-y: auto;
}

.transcript-content p {
    word-wrap: break-word;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 24px;
}

.faq-title,
.related-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-item p {
    padding: 0 18px 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Related Videos Section */
.related-videos-section {
    margin-top: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.related-card {
    text-decoration: none;
    color: inherit;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.related-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.related-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.related-card span {
    display: block;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .related-card span {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
}

/* Topic Pages */
.topic-header {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.topic-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.topic-count {
    color: var(--text-secondary);
    font-size: 1rem;
}

.topic-back {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.topic-back::before {
    content: "← ";
}

.topic-back:hover {
    text-decoration: underline;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.topic-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.topic-card:hover {
    border-color: var(--primary-color);
    background: rgba(255, 68, 68, 0.08);
    transform: translateY(-2px);
}

.topic-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.topic-video-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

/* Controles mobile para watch.php */
@media (max-width: 480px) {
    .video-controls {
        bottom: 15px;
        right: 15px;
    }
}

/* Visually hidden - acessível para screen readers e SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* About Page */
.about-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.about-content h1 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--text-color);
}

.about-section {
    margin-bottom: 32px;
}

.about-section h2 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.about-credentials {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-credentials li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 6px 0 6px 20px;
    position: relative;
}

.about-credentials li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.about-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.about-link:hover {
    border-color: var(--primary-color);
    background: rgba(255, 68, 68, 0.08);
    transform: translateY(-2px);
}

/* Specialist CTA */
.specialist-cta {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.specialist-cta-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.specialist-cta-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.specialist-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.specialist-link {
    flex: 1;
    min-width: 200px;
    display: block;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.specialist-link:hover {
    border-color: var(--primary-color);
    background: rgba(255, 68, 68, 0.06);
    transform: translateY(-2px);
}

.specialist-link strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.specialist-link span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

/* Header Actions (search + TV button) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* TV Button in Header */
.tv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.tv-btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 68, 68, 0.1);
    transform: translateY(-1px);
}

.tv-btn-icon {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .header-actions {
        width: 100%;
        max-width: 400px;
    }

    .tv-btn-text {
        display: none;
    }

    .tv-btn {
        padding: 12px 14px;
    }
}

/* ===================================
   TV MODE PAGE
   =================================== */

.tv-page {
    background: #000;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    cursor: none;
}

.tv-page *:not(.tv-queue-panel):not(.tv-queue-panel *) {
    cursor: none;
}

.tv-page:hover,
.tv-page.controls-visible,
.tv-page.controls-visible * {
    cursor: default;
}

/* Player */
.tv-player-wrap {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 1;
}

.tv-player-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Info Overlay */
.tv-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 30px 30px 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.tv-info-overlay.visible {
    opacity: 1;
    transform: translateY(0);
}

.tv-info-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    margin-bottom: 6px;
}

.tv-info-pos {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Controls Bar */
.tv-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.75);
    padding: 10px 16px;
    border-radius: 30px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tv-controls.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tv-ctrl-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-ctrl-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.tv-ctrl-btn:active {
    transform: scale(0.95);
}

.tv-ctrl-exit {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
}

.tv-ctrl-exit:hover {
    background: rgba(255,68,68,0.5);
    color: #fff;
}

/* Queue Panel */
.tv-queue-panel {
    position: fixed;
    top: 0;
    right: -360px;
    width: 350px;
    height: 100%;
    z-index: 20;
    background: rgba(15,15,15,0.95);
    backdrop-filter: blur(12px);
    border-left: 1px solid rgba(255,255,255,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: default;
}

.tv-queue-panel.open {
    right: 0;
}

.tv-queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.tv-queue-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.tv-queue-close:hover {
    color: #fff;
}

.tv-queue-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.tv-queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tv-queue-item:hover {
    background: rgba(255,255,255,0.06);
}

.tv-queue-item.active {
    background: rgba(255,68,68,0.15);
    border-left: 3px solid var(--primary-color);
}

.tv-queue-item img {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.tv-queue-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tv-queue-item-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tv-queue-item.active .tv-queue-item-title {
    color: var(--primary-color);
}

.tv-queue-item-meta {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

/* TV Notification */
.tv-notif {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 30;
    backdrop-filter: blur(10px);
    animation: tvNotifAnim 2s ease forwards;
}

@keyframes tvNotifAnim {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    75% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

/* TV Mobile */
@media (max-width: 768px) {
    .tv-controls {
        bottom: 20px;
        gap: 6px;
        padding: 8px 12px;
    }

    .tv-ctrl-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .tv-info-overlay {
        padding: 20px 20px 30px;
    }

    .tv-info-title {
        font-size: 1.1rem;
    }

    .tv-queue-panel {
        width: 280px;
        right: -290px;
    }

    .tv-queue-item img {
        width: 64px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .tv-queue-panel {
        width: 100%;
        right: -100%;
    }
}

/* Queue scrollbar */
.tv-queue-list::-webkit-scrollbar {
    width: 4px;
}

.tv-queue-list::-webkit-scrollbar-track {
    background: transparent;
}

.tv-queue-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 997;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-consent.hide {
    opacity: 0;
    transform: translateY(100%);
}

.cookie-consent p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-consent a {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent a:hover {
    color: var(--primary-color);
}

.cookie-consent-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 5px 18px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-consent-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    .cookie-consent {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
        text-align: center;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg-color: #000000;
        --bg-secondary: #111111;
        --text-color: #ffffff;
        --border-color: #666666;
    }
}
/* ============================================================
   Trilhas, capítulos, mini-player e quiz (retenção/leads)
   ============================================================ */

/* Trilha no watch.php */
.trail-box {
    background: var(--bg-secondary, #f5f5f5);
    border: 1px solid var(--border-color, #ddd);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}
.trail-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.trail-box-name { font-weight: 700; font-size: 1rem; }
.trail-box-progress { font-size: .82rem; color: #2563eb; font-weight: 600; }
.trail-box-videos {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}
.trail-video {
    flex: 0 0 150px;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: 8px;
}
.trail-video img {
    width: 150px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.trail-video-num {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.trail-video-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .78rem;
    line-height: 1.3;
    margin-top: 6px;
}
.trail-video--current img { outline: 3px solid #2563eb; outline-offset: -3px; }
.trail-video--current .trail-video-num { background: #2563eb; }
.trail-video--watched { opacity: .55; }
.trail-video--watched .trail-video-num { background: #16a34a; }

/* Capítulos */
.chapters-section { margin: 20px 0; }
.chapters-title { font-size: 1rem; margin: 0 0 10px; }
.chapters-list { display: flex; flex-direction: column; gap: 4px; }
.chapter-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    background: none;
    border: none;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: background .15s;
}
.chapter-item:hover { background: var(--bg-secondary, #f0f0f0); }
.chapter-time {
    color: #2563eb;
    font-weight: 600;
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.chapter-name { font-size: .9rem; }

/* Mini-player (pip) */
.video-container { transition: all .25s ease; }
.video-container.pip-mode {
    top: auto;
    left: auto;
    bottom: 16px;
    right: 16px;
    width: min(320px, 46vw);
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.45);
    z-index: 1010;
}
.pip-close {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1011;
    background: rgba(0,0,0,.7);
    color: #fff;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.video-container.pip-mode .pip-close { display: block; }

/* Trilhas na home */
.home-trails { margin: 10px 0 4px; }
.home-trails h2 { font-size: 1.1rem; margin: 0 0 10px; padding: 0 4px; }
.home-trails-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 4px 8px;
    -webkit-overflow-scrolling: touch;
}
.home-trail-card {
    flex: 0 0 260px;
    text-decoration: none;
    color: inherit;
    background: var(--bg-secondary, #f5f5f5);
    border: 1px solid var(--border-color, #ddd);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .15s;
}
.home-trail-card:hover { transform: translateY(-2px); }
.home-trail-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.home-trail-info { padding: 10px 12px 12px; }
.home-trail-name { font-weight: 700; font-size: .95rem; display: block; }
.home-trail-meta { font-size: .78rem; color: #2563eb; font-weight: 600; }
.home-trail-bar {
    height: 4px;
    background: var(--border-color, #ddd);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}
.home-trail-bar span { display: block; height: 100%; background: #2563eb; }

/* Banner do quiz na home */
.quiz-banner {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.quiz-banner strong { font-size: 1rem; }
.quiz-banner small { opacity: .85; display: block; }
.quiz-banner .quiz-banner-cta {
    background: #fff;
    color: #1e40af;
    font-weight: 700;
    font-size: .85rem;
    padding: 8px 18px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Página do quiz */
.quiz-wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 60px; }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-question { font-size: 1.25rem; font-weight: 700; margin: 18px 0 16px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
    text-align: left;
    font: inherit;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #ccc);
    background: var(--bg-secondary, #fafafa);
    color: inherit;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.quiz-option:hover { border-color: #2563eb; }
.quiz-progress { font-size: .8rem; color: #888; }
.quiz-result-card {
    background: var(--bg-secondary, #f5f5f5);
    border: 1px solid var(--border-color, #ddd);
    border-radius: 14px;
    padding: 20px;
    margin-top: 14px;
}
.quiz-disclaimer { font-size: .75rem; color: #888; margin-top: 24px; line-height: 1.5; }

/* Banner de instalação do PWA (mobile) */
.pwa-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1b1d1f;
    color: #fff;
    border: 1px solid #333;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
    animation: pwa-slide-up .3s ease;
}
@keyframes pwa-slide-up {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.pwa-banner-text { flex: 1; min-width: 0; }
.pwa-banner-text strong { display: block; font-size: .95rem; }
.pwa-banner-text small { display: block; font-size: .78rem; color: #b9bec4; margin-top: 2px; line-height: 1.35; }
.pwa-ios-share { color: #7ab8ff; white-space: nowrap; }
.pwa-banner-install {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}
.pwa-banner-close {
    background: none;
    border: none;
    color: #9aa0a6;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .pwa-banner { left: auto; right: 20px; max-width: 380px; }
}
