:root {
    --primary-gold: #d4af37;
    --dark-gold: #b8941f;
    --bg-primary: #0a0a0a;
    --bg-secondary-opacity: 1;
    --bg-secondary: rgba(26, 26, 26, var(--bg-secondary-opacity, 1));
    --bg-tertiary: #2a2a2a;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --accent-purple: #6b46c1;
    --accent-red: #dc2626;
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    --magic-wand-url: url('magic_wand_cursor.png'), auto; /* Define the cursor variable */
    --navbar-bg-color: rgba(10, 10, 10, 0.9); /* Base dark background */
    --navbar-scrolled-bg-color: rgba(10, 10, 10, 0.7); /* Background when scrolled (70% opacity) */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: var(--magic-wand-url); /* Apply the custom cursor globally */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) var(--bg-secondary);
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-gold), var(--dark-gold));
    border-radius: 6px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--dark-gold), var(--primary-gold));
    box-shadow: var(--shadow-glow);
}

.zodiac-row::-webkit-scrollbar {
    height: 8px;
}

.zodiac-row::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
}

.zodiac-row::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-gold), var(--accent-purple));
}

#three-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure it's behind the navbar (z-index 1000) and content (z-index 2) */
    pointer-events: none; /* Ignore clicks */
}

/* Plano 28/C6: quando WebGL não está disponível (ou o usuário pediu economia
   de dados), o fundo cai neste gradiente — mesma paleta, custo zero. */
#three-bg-container.three-bg-fallback {
    background:
        radial-gradient(circle at 18% 28%, rgba(212, 175, 55, 0.18), transparent 42%),
        radial-gradient(circle at 82% 72%, rgba(107, 70, 193, 0.22), transparent 48%),
        radial-gradient(circle at 50% 50%, rgba(42, 0, 80, 0.32), transparent 70%);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(107, 70, 193, 0.1) 0%, transparent 50%),
        var(--bg-primary);
}

.navbar {
    position: sticky; /* Change from fixed to sticky */
    top: 0;
    width: 100%;
    /* Use the variable for base state */
    background: var(--navbar-bg-color);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0;
    min-height: 56px; /* Reduced vertical size for tighter header */
}

/* NEW: Style when the navbar is considered "scrolled" */
.navbar.scrolled {
    background: var(--navbar-scrolled-bg-color);
    /* Optionally, reduce blur for a smoother transition */
    /* backdrop-filter: blur(8px); */
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem; /* Reduced vertical padding for slimmer header */
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.brand-icon {
    width: 32px; /* Square logo: width matches height */
    height: 32px;
    /* Removed custom SVG styling and animation since it's now an image */
}

/* Removed specific SVG animation block */
/* @keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
} */

.brand-text {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    white-space: nowrap;
    margin-left: 0.5rem;
    position: relative;
    color: #39ffea;
    text-shadow:
        0 0 8px rgba(57,255,234,0.9),
        0 0 18px rgba(57,255,234,0.6),
        0 0 30px rgba(107,70,193,0.25);
    animation: neonPulse 2s ease-in-out infinite;
}

/* Neon pulse animation for brand */
@keyframes neonPulse {
    0% {
        text-shadow:
            0 0 6px rgba(57,255,234,0.6),
            0 0 12px rgba(57,255,234,0.4),
            0 0 18px rgba(107,70,193,0.15);
        transform: scale(1);
        opacity: 0.95;
    }
    50% {
        text-shadow:
            0 0 12px rgba(57,255,234,1),
            0 0 24px rgba(57,255,234,0.8),
            0 0 40px rgba(107,70,193,0.35);
        transform: scale(1.03);
        opacity: 1;
    }
    100% {
        text-shadow:
            0 0 6px rgba(57,255,234,0.6),
            0 0 12px rgba(57,255,234,0.4),
            0 0 18px rgba(107,70,193,0.15);
        transform: scale(1);
        opacity: 0.95;
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-menu {
    /* Always hide the horizontal desktop menu */
    display: none;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: 1rem 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    gap: 1rem;
    /* NEW: Add scrolling capability for long menus */
    max-height: calc(100vh - 70px); /* Max height relative to viewport minus navbar height */
    overflow-y: auto;
    padding-bottom: 2rem; /* Ensure links at the bottom are fully visible above the viewport edge */
}

.mobile-menu.active {
    display: flex;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gold);
    box-shadow: var(--shadow-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.settings-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-btn svg {
    width: 24px;
    height: 24px;
}

.settings-btn:hover {
    color: var(--primary-gold);
}

.search-container {
    position: relative;
    /* Allow the dropdown to break out of this container for full width/centering */
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--primary-gold);
}

.search-btn svg {
    width: 24px;
    height: 24px;
}

.search-dropdown {
    position: absolute;
    /* Adjust positioning for centered full-width look */
    top: 100%;
    left: 50%; /* Start from center */
    transform: translateX(-50%) translateY(-10px); /* Adjust to center horizontally and apply initial lift */
    
    width: 90vw; /* Take up 90% of viewport width */
    max-width: 800px; /* Limit maximum width for large screens */
    
    background: var(--bg-secondary);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    /* transform: translateY(-10px); REMOVED: Combined with centering transform */
    transition: all 0.3s ease;
    z-index: 1001;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-bottom-color: var(--primary-gold);
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.search-result-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-result-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    /* Ensure the mobile menu toggle is always visible on desktop */
    display: block; /* Change from 'none' default */
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    text-shadow: 0 0 10px var(--primary-gold);
}

.profile-avatar {
    width: 32px; /* Slightly larger avatar */
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.profile-avatar:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.profile-avatar span {
    font-size: 1.1rem;
}

/* ------------------------------------------- */
/* User Profile Modal Styles                   */
/* ------------------------------------------- */
.profile-modal .modal-content {
    max-width: 450px;
    padding: 1.5rem;
    max-height: 90vh; /* Add maximum height relative to viewport */
    display: flex; /* Enable flex container */
    flex-direction: column;
}

/* Ensure the close button in the profile modal is small and correctly positioned */
.profile-modal .close-btn,
.subscription-modal .close-btn,
.view-all-modal .close-btn,
.settings-modal .close-btn,
.legal-modal .close-btn,
.zodiac-modal .close-btn,
.video-modal .close-btn {
    position: absolute;
    top: 10px; /* Distance from top edge */
    right: 10px; /* Distance from right edge */
    width: 30px; /* Small size */
    height: 30px; /* Small size */
    background: none; /* No distinct background */
    color: var(--text-secondary); /* Less prominent color */
    border: none;
    padding: 0;
    font-size: 1.5rem; /* Sufficiently visible 'x' */
    line-height: 1;
    z-index: 10; /* Ensure it's above other elements */
    transition: color 0.2s ease;
}

.profile-modal .close-btn:hover,
.subscription-modal .close-btn:hover,
.view-all-modal .close-btn:hover,
.settings-modal .close-btn:hover,
.legal-modal .close-btn:hover,
.zodiac-modal .close-btn:hover,
.video-modal .close-btn:hover {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 1rem;
}

.profile-large-avatar {
    width: 80px;
    height: 80px;
    border-width: 3px;
    margin-bottom: 0.75rem;
}

.profile-large-avatar span {
    font-size: 2rem;
}

.profile-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.profile-body {
    padding: 0 0.5rem;
    flex-grow: 1; /* Allow body to grow and consume vertical space */
    min-height: 0; /* Important for flex items with overflow */
}

.profile-detail-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.1);
}

.profile-detail-group h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin-bottom: 0.75rem;
}

.profile-detail-group p {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.profile-detail-group p strong {
    color: var(--primary-gold);
    font-weight: 500;
}

.profile-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.profile-input-group label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 100px; /* Ensure labels align better */
    text-align: right;
}

.profile-input {
    flex-grow: 1;
    min-width: 120px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.profile-input:focus {
    outline: 1px solid var(--primary-gold);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.profile-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(75%) sepia(35%) saturate(300%) hue-rotate(10deg) brightness(100%) contrast(90%); /* Gold color for icon */
    cursor: var(--magic-wand-url), pointer !important;
}

.profile-input-group .btn-save-dob {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    flex-shrink: 0;
    height: auto; /* Override hero button height if needed */
}

/* Ensure the shared Save Data button is also styled */
.profile-input-group .btn-save-data {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    flex-shrink: 0;
    height: auto;
    margin-left: auto; /* Push to the right if possible */
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.profile-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
}

.profile-actions .logout-btn {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-primary);
}

.profile-actions .logout-btn:hover {
    background: rgba(220, 38, 38, 0.8);
    border-color: rgba(220, 38, 38, 0.8);
}

/* ------------------------------------------- */
/* Avatar Modal Styles                         */
/* ------------------------------------------- */

.avatar-modal .modal-content.large-modal-content {
    max-width: 700px; /* Wider for the grid */
    min-height: 500px;
}

.avatar-body {
    padding: 0 1rem;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 15px;
    padding: 10px;
}

.avatar-option {
    width: 70px;
    height: 70px;
    background: var(--bg-primary);
    border: 3px solid var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: var(--magic-wand-url), pointer !important;
    transition: all 0.2s ease;
}

.avatar-option:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(107, 70, 193, 0.8);
    transform: scale(1.1);
}

.upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    cursor: var(--magic-wand-url), pointer !important;
    font-size: 1rem;
    border-radius: 8px;
}

.upload-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .avatar-modal .modal-content.large-modal-content {
        max-width: 100%;
        width: 100%;
        min-height: 90vh;
        border-radius: 0;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
    }

    .avatar-option {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

.main-content {
    /* Adjustment based on new navbar height (approx 70px + 1px border) */
    padding-top: 57px; /* Adjusted to match reduced navbar height */
}

.hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(212, 175, 55, 0.1), transparent),
        linear-gradient(-45deg, rgba(107, 70, 193, 0.1), transparent);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 10, 0.9) 0%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Style for embedded YouTube video */
.hero-youtube-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%; /* Make it larger to cover the area fully */
    height: 150%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none; /* Prevents interaction with the iframe */
}

/* Arquivo direto no hero (fase C): mesmo enquadramento do iframe, mas o
   elemento <video> aceita object-fit de verdade. */
.hero-video-arquivo {
    object-fit: cover;
    background: #000;
}

/* Removed old Remotion styles */
.remotion-hero-video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.hero-particles {
    /* REMOVED: Particles handled by Remotion component now */
    display: none; 
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

.hero-content {
    position: relative;
    max-width: 600px;
    padding: 0 2rem;
    z-index: 2; /* Ensure content is above the three.js background */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 2rem;
}

.hero-badge {
    display: none !important; /* Force removal */
}

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

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    min-height: 2.2rem; /* Reserve space to prevent layout jump when content changes */
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-bottom: 0;
}

.mute-toggle-btn,
.btn.mute-toggle-btn,
button.mute-toggle-btn {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0;
    font-size: 1.2rem;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transition: all 0.3s ease;
    overflow: visible;
}

.mute-toggle-btn:hover,
.btn.mute-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mute-toggle-btn[aria-pressed="true"],
.mute-toggle-btn.active,
.btn.mute-toggle-btn[aria-pressed="true"],
.btn.mute-toggle-btn.active {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}

.mute-toggle-btn .hero-mute-img,
.mute-toggle-btn .hero-mute-svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
    pointer-events: none;
    user-select: none;
}

.mute-toggle-btn:hover .hero-mute-img,
.mute-toggle-btn:hover .hero-mute-svg {
    transform: scale(1.1);
}

.hero-btn-size-match {
    /* Match the height of mute-toggle-btn (44px) */
    height: 44px;
    padding: 0 1rem; /* Adjust padding to keep text readable */
    font-size: 1rem; /* Keep font size consistent */
    display: flex;
    align-items: center;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-gold), var(--dark-gold));
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn-icon {
    font-size: 1.2rem;
}

.content-section {
    padding: 1rem 2rem; /* Reduced vertical padding from 1.5rem to 1rem */
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    display: flex; /* Enable flex for title and button */
    align-items: center;
    gap: 1rem;
}

.view-all-btn {
    background: var(--dark-gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: var(--magic-wand-url), pointer !important;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.view-all-btn:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-glow);
    background: var(--primary-gold);
}

.content-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Redefine/Adapt Content Card for Shelf usage */
.content-card-shelf {
    flex: 0 0 auto;
    width: 280px; /* Standard card width for content */
    min-height: 250px;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.content-card-shelf:hover {
    transform: scale(1.05); /* Zoom effect on hover */
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

/* Plano 27/B1: foco visível para quem navega por teclado. */
.content-card-shelf:focus-visible,
.presenter-card-shelf:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

.content-card-shelf .card-image-shelf-content {
    position: relative;
    height: 160px; /* Aspect ratio suitable for landscape content */
    overflow: hidden;
}

.content-card-shelf .card-image-shelf-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.content-card-shelf:hover .card-image-shelf-content img {
    transform: scale(1.05);
}

.content-card-shelf .card-overlay {
    /* Inherited from existing .card-overlay */
    opacity: 0;
}

.content-card-shelf:hover .card-overlay {
    opacity: 1;
}

.content-card-shelf .card-info-shelf {
    padding: 1rem;
    flex-grow: 1;
}

.content-card-shelf .card-info-shelf h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-card-shelf .card-info-shelf p {
    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;
}

/* Linha discreta de canal sob o titulo (plano 25, §7.2): aparece so quando o
   card nao tem canal interno, e entao com o nome do canal do YouTube. Uma
   linha so, com reticencias -- o card ja tem titulo e descricao para ler. */
.content-card-shelf .card-info-shelf .card-channel-yt {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    line-height: 1.3;
    margin-top: -0.3rem;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.85;
}

/* Hide the old content-card styles since they are no longer used for the grid */
.content-card {
    /* Keeping the base style definitions for other sections that still use it 
       but mystic-highlights-section now uses .content-card-shelf */
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.channel-card {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.channel-card:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-glow);
}

.channel-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.zodiac-row {
    display: grid;
    /* Default to 6 columns on large screens */
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.5rem 1rem;
    padding: 0;
    overflow-x: hidden; /* No more horizontal scroll */
    justify-items: center;
}

.zodiac-sign-container {
    /* Plano 27/B2: o item agora é um <button> nativo (foco + Enter/Espaço). */
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.zodiac-sign-container:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 4px;
    border-radius: 12px;
}

.zodiac-sign-container:hover .zodiac-sign {
    background: var(--primary-gold);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.zodiac-sign-container:hover {
    transform: translateY(-5px);
}

.zodiac-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.zodiac-sign {
    flex-shrink: 0;
    width: 70px; /* Slightly larger targets */
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Add carousel styles */
.featured-carousel-section {
    padding: 1rem 2rem; /* Reduced vertical padding from 1.5rem to 1rem */
    max-width: 1400px;
    margin: 0 auto;
}

/* ------------------------------------------- */
/* NEW Shelf / Horizontal Carousel Styles      */
/* ------------------------------------------- */

.shelf-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0; /* Add padding for buttons/shadows if needed, or rely on content-section padding */
}

.shelf-wrapper {
    overflow-x: scroll; /* Enable horizontal scrolling */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0; /* Remove padding for scrollbar on desktop since we'll hide it */
}

/* Hide scrollbar visually but keep function */
.shelf-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar in WebKit browsers */
    width: 0;
    height: 0;
}
.shelf-wrapper {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.shelf-track {
    display: flex;
    gap: 1.5rem; /* Gap between cards */
    padding-right: 2rem; /* Ensure last element isn't cut off */
    width: fit-content; /* Ensure container only takes necessary width */
}

/* Shelf Navigation Buttons (positioned over the shelf) */
.shelf-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: rgba(10, 10, 10, 0.8);
    color: var(--primary-gold);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 50;
    opacity: 0.8;
    transition: opacity 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden; /* Hide by default, show via JS if needed */
}

.shelf-btn:hover {
    opacity: 1;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.shelf-prev {
    left: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.shelf-next {
    right: 0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

/* Presenter Card Styling (Adapted for shelf view) */
.presenter-card-shelf {
    flex: 0 0 auto; /* Prevent stretching and set explicit size */
    width: 240px; /* Fixed width for standard Netflix card look */
    min-height: 320px;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.presenter-card-shelf:hover {
    transform: scale(1.05); /* Zoom effect on hover */
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.presenter-card-shelf .card-image-shelf {
    height: 240px; /* Fixed aspect ratio for the portrait image */
    position: relative;
    overflow: hidden;
}

.presenter-card-shelf .card-image-shelf img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.presenter-card-shelf:hover .card-image-shelf img {
    transform: scale(1.05);
}

.presenter-card-shelf .card-info-shelf {
    padding: 1rem;
    text-align: left;
}

.presenter-card-shelf .card-info-shelf .presenter-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.presenter-card-shelf .card-info-shelf .presenter-channel {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ------------------------------------------- */
/* Cleanup/Remove Old Carousel Styles          */
/* ------------------------------------------- */

/* Remove the old carousel structure for presenters */
.carousel-controls-container,
.carousel-indicators,
.carousel-navigation-bottom {
    display: none;
}

/* The presenter section is now using the shelf layout, so we hide the old carousel wrappers */
.presenter-carousel-container,
.presenter-carousel-wrapper,
.presenter-carousel-track,
.carousel-item.presenter-item,
.presenter-card {
    /* Ensure these are either hidden or overridden by the new shelf styles */
    display: initial; /* Reset to allow nested elements to function if needed */
}

/* Remove or redefine styles specific to the old full-screen carousel */
.carousel-wrapper {
    height: auto; /* Reset height for the new shelf */
    overflow: visible;
}

.carousel-track {
    transition: none; /* Remove track transition if using scroll */
    width: fit-content;
}

.carousel-item {
    min-width: auto;
    padding: 0;
    opacity: 1; /* Always visible */
    transform: none;
    transition: none;
}
/* Revert general carousel styles that were specific to the old full-screen presenter view */


@media (min-width: 769px) {
    /* Show buttons on larger screens where manual scroll is less intuitive */
    .shelf-btn {
        visibility: visible;
    }
}

@media (max-width: 768px) {
    /* Disable scroll buttons on mobile, encourage swipe scroll */
    .shelf-btn {
        display: none;
    }
    
    .shelf-track {
        gap: 1rem;
    }
    
    .presenter-card-shelf {
        width: 180px; /* Smaller card size for mobile */
        min-height: 250px;
    }
    
    .presenter-card-shelf .card-image-shelf {
        height: 180px;
    }
    
    /* Adjust content shelf card size for mobile */
    .content-card-shelf {
        width: 220px;
    }
    
    .content-card-shelf .card-image-shelf-content {
        height: 140px;
    }
    
    .presenter-card-shelf .card-info-shelf .presenter-name {
        font-size: 1rem;
    }
    
    .presenter-card-shelf .card-info-shelf .presenter-channel {
        font-size: 0.85rem;
    }
    
    /* Adjust modal for mobile */
    .view-all-modal .modal-content.large-modal-content {
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        padding: 1rem 0;
    }
    
    .modal-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Smaller cards on mobile */
        gap: 1rem;
    }
}


/* Add styles for Zodiac Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--primary-gold);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-glow);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.visible .modal-content {
    transform: translateY(0);
}

/* Specific styling for Zodiac Modal */
.zodiac-modal .modal-content {
    /* No changes needed here, relies on .modal-content */
}

/* Since the main .close-btn is now a small button, we just need to ensure the footer button is handled */
.zodiac-modal .modal-footer {
    padding-top: 1rem;
    border-top: 1px dashed rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: flex-end;
}

/* Make sure the OK button uses the correct styling */
.zodiac-modal .modal-close-btn {
    /* Use the standard btn-secondary styling */
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Hide the main close button in the footer */
/* .modal-footer .close-btn { 
    display: none; 
} */ /* Removed since it was already removed from HTML */

/* New style for the larger "View All" modal */
.view-all-modal .modal-content.large-modal-content {
    max-width: 90%;
    min-height: 80vh;
    padding: 2rem 1rem; /* Adjust padding for inner scrollable area */
}

.view-all-modal .modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0; /* Remove bottom margin */
}

.modal-search-container {
    padding: 0 1rem 1rem;
}

.modal-search-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.modal-content-grid {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 1rem; /* Padding for the grid inside the modal */
    
    /* Adapt grid layout for modal */
    /* REMOVED default grid display here to prevent conflict */
    /* display: grid; */ 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Adjusted card width */
    gap: 1.5rem;
    align-content: start; /* Push content to the top */
}

/* ------------------------------------------- */
/* NEW: Horizontal Scroll Grid Override        */
/* ------------------------------------------- */
/* This block transforms the grid into a single horizontal shelf for compliance, 
   while retaining the overall card structure. */
.horizontal-scroll-grid {
    display: flex; /* Use flexbox to force horizontal layout */
    flex-direction: row;
    flex-wrap: nowrap; /* Prevent wrapping */
    
    overflow-y: hidden; /* Disable vertical scroll */
    overflow-x: auto; /* Enable horizontal scroll */
    
    padding-bottom: 0.5rem; /* Space for the scrollbar */
    align-items: stretch; /* Ensure cards fill height */
    
    /* Replaces grid gap with margin for flex layout */
    gap: 1.5rem; 
}

.view-all-modal .content-card-shelf,
.view-all-modal .presenter-card-shelf {
    /* Fixed width settings for horizontal scrolling elements */
    width: 240px; 
    min-width: 240px;
    flex-shrink: 0; /* Important: prevent shrinking */
    
    /* Reset properties that conflict with fixed width in flex container */
    flex: none; 
    height: auto;
    min-height: 250px; 
}

/* Adjust scrollable content back to auto for the modal body parent */
.modal-content .scrollable-content {
    max-height: 100%; /* Use available height in the flex container */
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
}

/* Specific adjustment for the grid to use its own scroll */
.view-all-modal .modal-content-grid.scrollable-content {
    overflow-y: hidden;
    overflow-x: auto; 
    /* Remove padding right and negative margin for scrollbar width if horizontal */
    padding-right: 0;
    margin-right: 0;
    
    /* Ensure scrollbar is visible for horizontal scroll */
    padding-bottom: 1rem; 
}

/* Card styles inside the modal grid (use the shelf card styles but adapt them for the grid) */
.view-all-modal .content-card-shelf {
    width: 240px; 
    min-width: 240px;
    flex-shrink: 0;
    height: auto;
    min-height: 250px;
    flex: none; /* Crucial for horizontal layout */
}

.view-all-modal .presenter-card-shelf {
    width: 240px;
    min-width: 240px;
    flex-shrink: 0;
    height: auto;
    min-height: 320px;
    flex: none; /* Crucial for horizontal layout */
}

/* Keep scrollable content styling */
.modal-content .scrollable-content {
    max-height: 100%; /* Use available height in the flex container */
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
}

/* New setting group styles for the Settings Modal */
.setting-group {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.1);
}

.setting-group h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin-bottom: 0.75rem;
}

.setting-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.setting-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.font-size-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-color: rgba(255, 255, 255, 0.1);
}

.font-size-btn.active {
    background: var(--primary-gold);
    color: var(--bg-primary);
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Range Input Styling (Cross-browser) */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: var(--bg-primary);
    border-radius: 5px;
    border: 1px solid var(--text-muted);
    outline: none;
    transition: background 0.2s ease;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: background 0.3s ease;
}

input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
}

/* Toggle Switch Styling */
.session-visibility-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-primary);
    user-select: none;
    padding-left: 55px; /* Space for the slider */
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: auto;
    width: 40px;
    height: 20px;
    background-color: var(--text-muted);
    transition: 0.4s;
    border-radius: 34px;
    border: 1px solid var(--text-muted);
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 3px;
    background-color: var(--text-primary);
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(20px);
    background-color: var(--bg-primary);
}

/* Base Font Sizes for Accessibility */
.app[data-font-size="small"] {
    font-size: 0.9em;
}
.app[data-font-size="medium"] {
    font-size: 1em;
}
.app[data-font-size="large"] {
    font-size: 1.1em;
}

/* Transparency controls for backgrounds */
.hero-video-container {
    opacity: var(--bg-secondary-opacity, 1);
    transition: opacity 0.3s ease;
}

.hero-overlay {
    opacity: var(--bg-secondary-opacity, 1);
    transition: opacity 0.3s ease;
}

.carousel-container, .content-card-shelf, .presenter-card-shelf, .channel-card, .zodiac-sign {
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* Settings Modal Specific Styling (if needed beyond generic modal) */
.settings-modal .modal-content {
    max-width: 600px;
    max-height: 90vh; /* Ensure modal itself has a max height */
    display: flex; /* Enable flex container */
    flex-direction: column;
}

/* Ensure modal body scrollable content uses available height */
.settings-modal .modal-body.scrollable-content {
    flex-grow: 1; /* Allow it to take up available space */
    min-height: 0; /* Important for scrollable flex children */
    overflow-y: auto;
    padding-right: 0.5rem; /* Space for scrollbar */
    margin-right: -0.5rem; /* Counteract padding to keep content centered */
    padding-top: 0; /* Already separated by h3/groups */
}

/* Ensure save button is visible */
.settings-modal .modal-save-btn {
    margin-right: 0.5rem;
}

/* Utility classes for session visibility */
.hidden-section {
    display: none !important;
}

/* ------------------------------------------- */
/* Legal Information Modal Styles              */
/* ------------------------------------------- */
.legal-modal .modal-content {
    max-width: 450px;
}

.legal-body {
    padding: 1rem 0;
}

.legal-action-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legal-action-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.legal-modal .modal-footer {
    display: none; /* Removed the button, so hide the footer */
    /* original: display: flex;
    justify-content: flex-end; */
}

.legal-modal .modal-close-btn {
    display: block !important;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.modal-header .modal-sign-icon {
    font-size: 1.6rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(212,175,55,0.08);
    color: var(--primary-gold);
}
/* Ensure modal title doesn't wrap awkwardly when inline */
.modal-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 600;
}

@media (max-width: 550px) {
    .modal-content {
        padding: 1.5rem 1rem;
        width: 95%;
    }
    
    .modal-header {
        margin-bottom: 1rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-message {
        font-size: 1rem;
    }

    .close-btn {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .presenter-image-container {
        width: 150px;
        height: 150px;
    }

    .presenter-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem; /* Slimmer mobile header padding */
        min-height: 52px; /* Reduced mobile header height to match desktop */
    }
    
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .search-dropdown {
        width: 95vw; /* Slightly more width on mobile */
        right: auto; /* Remove right property override */
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .search-dropdown.active {
        transform: translateX(-50%) translateY(0);
    }
    
    /* Adjust carousel for medium screens */
    .featured-carousel-section {
        padding: 1.5rem 1rem; /* Reduced for mobile */
    }

    .carousel-wrapper {
        height: 400px;
    }

    .carousel-item {
        padding: 2rem;
    }

    .carousel-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .carousel-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .carousel-meta {
        margin-bottom: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-navigation-bottom {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .brand-icon {
        width: 32px;
        height: 32px;
        /* Square logo on small screens: width matches height */
    }
    
    .search-dropdown {
        width: 250px;
        right: -10px;
    }
    
    .mobile-menu {
        padding: 1rem;
    }

    /* Further adjust carousel for small screens */
    .featured-carousel-section {
        padding: 1.5rem 1rem; /* Reduced for mobile */
    }

    .carousel-wrapper {
        height: 350px;
    }

    .carousel-item {
        padding: 1.5rem 1rem;
    }

    .carousel-title {
        font-size: 1.5rem; 
        margin-bottom: 0.5rem;
    }

    .carousel-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .carousel-category {
        font-size: 0.7rem;
    }
    
    /* Adjust Zodiac Grid for mobile */
    .zodiac-row {
        grid-template-columns: repeat(3, 1fr); /* 3 signs per row */
        gap: 1.5rem 0.5rem;
    }
    
    .zodiac-sign {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Hero badge positioning fix */
.hero-badge {
    display: none !important; /* Force removal */
}

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

/* Mobile styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .search-dropdown {
        width: 280px;
        right: -20px;
    }
    
    .mobile-menu {
        padding: 1rem;
    }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .carousel-wrapper {
        height: 350px;
    }
    
    .carousel-item {
        padding: 1rem 1.5rem;
    }
}

/* Safe area for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
    /* Adjusted base height for padding top */
    .navbar {
        padding-top: env(safe-area-inset-top);
        /* 70px minimum height + safe area */
        min-height: calc(56px + env(safe-area-inset-top)); 
        height: auto;
    }
    
    .main-content {
        /* 70px base height + 1px border + safe area */
        padding-top: calc(57px + env(safe-area-inset-top));
    }
    
    .nav-container {
        min-height: 44px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-icon,
    .profile-avatar {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Override cursor for interactive elements to provide visual feedback (e.g., a pointer hand) 
   while still using the custom image. We'll use the 'pointer' fallback as the second argument, 
   but the image should indicate interaction */
a, button, .zodiac-sign-container, .content-card-shelf, .presenter-card-shelf, .search-result-item {
    cursor: var(--magic-wand-url), pointer !important; 
}

/* Ensure text inputs and text areas use the default text cursor for usability */
input[type="text"], textarea, .search-input {
    cursor: text !important;
}

/* Override for elements where a different system cursor is required (e.g., resizing) */
input[type=range] {
    cursor: default !important; /* Or use grab/grabbing if relevant, but default for range is safest */
}

input[type=range]::-webkit-slider-thumb {
    cursor: grab !important;
}

input[type=range]::-moz-range-thumb {
    cursor: grab !important;
}

/* ------------------------------------------- */
/* Subscription Management Modal Styles        */
/* ------------------------------------------- */
.subscription-modal .modal-content {
    max-height: 90vh; /* Consistent with other modals */
    display: flex;
    flex-direction: column;
}

.subscription-modal .close-btn {
    position: absolute;
    top: 10px; /* Distance from top edge */
    right: 10px; /* Distance from right edge */
    width: 30px; /* Small size */
    height: 30px; /* Small size */
    background: none; /* No distinct background */
    color: var(--text-secondary); /* Less prominent color */
    border: none;
    padding: 0;
    font-size: 1.5rem; /* Sufficiently visible 'x' */
    line-height: 1;
    z-index: 10; /* Ensure it's above other elements */
    transition: color 0.2s ease;
}

.subscription-modal .close-btn:hover {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
}

/* ------------------------------------------- */
/* Video Modal Styles                          */
/* ------------------------------------------- */
.video-modal .video-modal-content {
    max-width: 900px;
    width: 95%;
    padding: 0;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--primary-gold);
}

.video-container-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container-wrapper iframe,
.video-container-wrapper .video-arquivo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-container-wrapper .video-arquivo[hidden] {
    display: none;
}

.video-modal-info {
    padding: 1.5rem;
    background: var(--bg-secondary);
}

.video-modal .modal-title {
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    margin-bottom: 0.5rem;
}

.video-modal .modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Linha auxiliar "No YouTube" (plano 25, §7.1/§7.5): o canal interno vira o
   subtitulo e o canal real do YouTube fica logo abaixo, como link discreto.
   Criada em runtime pelo script.js -- some quando nao ha o que mostrar. */
.video-modal .modal-canal-yt {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 0.35rem;
    text-decoration: none;
    opacity: 0.85;
}

.video-modal .modal-canal-yt:hover,
.video-modal .modal-canal-yt:focus {
    color: var(--primary-gold);
    opacity: 1;
    text-decoration: underline;
}

.video-modal .modal-canal-yt[hidden] {
    display: none;
}

.demo-badge {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1b1b1b;
    background: var(--primary-gold, #d4af37);
}

.demo-badge[hidden] {
    display: none;
}



.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 1rem;
}

.profile-large-avatar {
    width: 80px;
    height: 80px;
    border-width: 3px;
    margin-bottom: 0.75rem;
}

.profile-large-avatar span {
    font-size: 2rem;
}

.profile-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.profile-body {
    padding: 0 0.5rem;
    flex-grow: 1; /* Allow body to grow and consume vertical space */
    min-height: 0; /* Important for flex items with overflow */
}

.profile-detail-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.1);
}

.profile-detail-group h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin-bottom: 0.75rem;
}

.profile-detail-group p {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.profile-detail-group p strong {
    color: var(--primary-gold);
    font-weight: 500;
}

.profile-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.profile-input-group label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 100px; /* Ensure labels align better */
    text-align: right;
}

.profile-input {
    flex-grow: 1;
    min-width: 120px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.profile-input:focus {
    outline: 1px solid var(--primary-gold);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.profile-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(75%) sepia(35%) saturate(300%) hue-rotate(10deg) brightness(100%) contrast(90%); /* Gold color for icon */
    cursor: var(--magic-wand-url), pointer !important;
}

.profile-input-group .btn-save-dob {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    flex-shrink: 0;
    height: auto; /* Override hero button height if needed */
}

/* Ensure the shared Save Data button is also styled */
.profile-input-group .btn-save-data {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    flex-shrink: 0;
    height: auto;
    margin-left: auto; /* Push to the right if possible */
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.profile-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
}

.profile-actions .logout-btn {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-primary);
}

.profile-actions .logout-btn:hover {
    background: rgba(220, 38, 38, 0.8);
    border-color: rgba(220, 38, 38, 0.8);
}

/* Card Lock Badge */
.card-lock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.card-lock-badge .lock-icon {
    font-size: 0.8rem;
}

/* Conteudo ainda sem midia: "Em breve" em vez do padrao "Premium". */
.card-soon-badge {
    border-color: rgba(160, 160, 160, 0.6);
    color: #c9c9c9;
}

/* Auth Tabs & Modal */
.auth-tab-btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: var(--primary-gold);
    color: var(--bg-primary);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-glow);
}

/* Plan Badges & Cards */
.plan-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-glow);
}

.plan-card.current-plan {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--primary-gold);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.plan-features li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================================================
   Coleções curadas (listas e cursos) — plano 24, §4.6
   ======================================================================== */

.colecoes-section {
    padding: 1.5rem 2rem 2.5rem;
}

.colecoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.colecao-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    overflow: hidden;
    cursor: var(--magic-wand-url), pointer !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.colecao-card:hover,
.colecao-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-glow);
    outline: none;
}

.colecao-capa {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
}

.colecao-capa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.colecao-capa-vazia {
    font-size: 2.5rem;
    color: var(--primary-gold);
    opacity: 0.6;
}

.colecao-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-gold);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
}

.colecao-info {
    padding: 0.85rem 1rem 1rem;
}

.colecao-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.colecao-info p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Modal "ver coleção" */
.colecao-modal-content {
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.colecao-modal-cabecalho {
    position: relative;
    padding-right: 2.5rem;
    margin-bottom: 1.25rem;
}

.colecao-modal-cabecalho .colecao-badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.65rem;
}

.colecao-modal-cabecalho .modal-title {
    margin: 0 0 0.4rem;
}

.colecao-modal-cabecalho .modal-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.colecao-aulas {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0.25rem;
}

.colecao-aula {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    cursor: var(--magic-wand-url), pointer !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.colecao-aula:hover,
.colecao-aula:focus-visible {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
    outline: none;
}

.colecao-aula-num {
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--primary-gold);
}

.colecao-aula-capa {
    flex-shrink: 0;
    width: 84px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}

.colecao-aula-capa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.colecao-aula-capa:empty {
    display: none;
}

.colecao-aula-titulo {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.35;
}

.colecao-vazia {
    color: var(--text-secondary);
    text-align: center;
    padding: 8vh 0;
}

@media (max-width: 600px) {
    .colecoes-section {
        padding: 1rem 1rem 2rem;
    }

    .colecoes-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
}

/* ============================================================
   Plano 30 — Continuar Assistindo
   ============================================================ */

/* Seção */
.continuar-assistindo-section {
    margin-bottom: 1.5rem;
}

.continuar-title {
    color: var(--primary-gold, #d4af37);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Cards */
.continuar-card {
    position: relative;
    cursor: pointer;
    flex: 0 0 auto;
    width: 160px;
}

.continuar-card:focus {
    outline: 2px solid var(--primary-gold, #d4af37);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Barra de progresso */
.card-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    border-radius: 0 0 4px 4px;
}

.card-progress-fill {
    height: 100%;
    background: var(--primary-gold, #d4af37);
    transition: width 0.3s ease;
    border-radius: 0 0 4px 4px;
}

/* Botão dismiss */
.btn-dismiss-progress {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.65);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 11px;
    line-height: 22px;
    text-align: center;
    padding: 0;
    transition: background 0.2s, transform 0.15s;
    z-index: 5;
}

.btn-dismiss-progress:hover {
    background: rgba(212, 175, 55, 0.85);
    transform: scale(1.15);
}

.btn-dismiss-progress:focus {
    outline: 2px solid var(--primary-gold, #d4af37);
    outline-offset: 2px;
}

/* Rótulo de tempo */
.continuar-tempo-label {
    font-size: 0.72rem;
    color: var(--text-secondary, #aaa);
    margin: 2px 0 0;
}

/* Reduz motion para usuários que preferem */
@media (prefers-reduced-motion: reduce) {
    .card-progress-fill { transition: none; }
    .btn-dismiss-progress { transition: none; }
}

/* Mobile: cards um pouco menores */
@media (max-width: 600px) {
    .continuar-card {
        width: 130px;
    }
}

/* ============================================================
   Plano 30 — Minha Lista (Favoritos)
   ============================================================ */

.minha-lista-section {
    margin-bottom: 1.5rem;
}

.minha-lista-title {
    color: var(--primary-gold, #d4af37);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.favorito-card {
    position: relative;
    cursor: pointer;
    flex: 0 0 auto;
    width: 160px;
}

.favorito-card:focus {
    outline: 2px solid var(--primary-gold, #d4af37);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ícone bookmark (★/☆) sobreposto nos cards */
.btn-bookmark {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.65);
    border: none;
    color: #ccc;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
    padding: 0;
    transition: color 0.2s, background 0.2s, transform 0.15s;
    z-index: 5;
    opacity: 0;           /* visível ao hover do card */
}

.content-card-shelf:hover .btn-bookmark,
.content-card-shelf:focus-within .btn-bookmark,
.favorito-card .btn-bookmark {
    opacity: 1;
}

.btn-bookmark.active {
    color: var(--primary-gold, #d4af37);
    opacity: 1;
}

.btn-bookmark:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.2);
}

.btn-bookmark:focus {
    outline: 2px solid var(--primary-gold, #d4af37);
    outline-offset: 2px;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .btn-bookmark { transition: none; }
}

@media (max-width: 600px) {
    .favorito-card  { width: 130px; }
    .btn-bookmark   { opacity: 1; }  /* sempre visível em touch */
}

/* ==========================================================================
   Plano 33: Streaming UI/UX - PiP, Controles, Modo Cinema e Spotlight
   ========================================================================== */

/* Top Actions do Player Modal */
.modal-top-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pip-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--text-primary, #fff);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.pip-btn:hover {
    background: var(--primary-gold, #d4af37);
    color: #000;
    border-color: var(--primary-gold, #d4af37);
    transform: scale(1.08);
}

.video-modal .close-btn {
    position: static;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary, #fff);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-modal .close-btn:hover {
    background: #d63638;
    color: #fff;
    border-color: #d63638;
}

/* Mini-Player Flutuante (Picture-in-Picture Interno) */
.video-modal.pip-active {
    background: transparent !important;
    backdrop-filter: none !important;
    pointer-events: none !important;
}

.video-modal.pip-active .video-modal-content {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 360px !important;
    max-width: 90vw !important;
    pointer-events: auto !important;
    z-index: 99999 !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95), 0 0 24px rgba(212, 175, 55, 0.35) !important;
    border: 1px solid var(--primary-gold, #d4af37) !important;
    overflow: hidden !important;
    background: #0d0d10 !important;
    animation: pipSlideIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

@keyframes pipSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.video-modal.pip-active .video-modal-info {
    padding: 0.6rem 0.8rem;
}

.video-modal.pip-active .video-player-controls,
.video-modal.pip-active .player-shortcuts-hint,
.video-modal.pip-active .demo-badge {
    display: none !important;
}

.video-modal.pip-active .modal-title {
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 2px !important;
}

.video-modal.pip-active .modal-subtitle {
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Seletor de Velocidade no Player */
.video-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.video-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.speed-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #a0a0a0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.speed-selector {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    overflow: hidden;
}

.speed-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #a0a0a0);
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.speed-btn:hover {
    color: #fff;
    background: rgba(212, 175, 55, 0.2);
}

.speed-btn.active {
    background: var(--primary-gold, #d4af37);
    color: #000;
    font-weight: 700;
}

/* Dica de Atalhos de Teclado */
.player-shortcuts-hint {
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: var(--text-secondary, #a0a0a0);
    opacity: 0.8;
}

.player-shortcuts-hint kbd,
.spotlight-footer kbd {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    padding: 1px 5px;
    font-family: monospace;
    font-size: 0.7rem;
    color: #fff;
}

/* Modo Cinema / Dimmer de Fundo */
.cinema-dimmed {
    opacity: 0.12 !important;
    filter: blur(4px) !important;
    transition: opacity 0.4s ease, filter 0.4s ease !important;
    pointer-events: none !important;
}

/* Spotlight de Busca Rápida Global (Ctrl+K) */
.spotlight-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.spotlight-modal.active {
    display: flex !important;
    opacity: 1 !important;
}

.spotlight-modal-content {
    width: 92%;
    max-width: 640px;
    background: #121215;
    border: 1px solid var(--primary-gold, #d4af37);
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95), 0 0 25px rgba(212, 175, 55, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: spotlightPop 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes spotlightPop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.spotlight-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    gap: 12px;
    position: relative;
    background: #18181c;
}

.spotlight-icon {
    font-size: 1.25rem;
    color: var(--primary-gold, #d4af37);
}

.spotlight-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.15rem;
    font-family: inherit;
}

.spotlight-input::placeholder {
    color: #6c6c75;
}

.spotlight-header .close-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #a0a0a0);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.spotlight-header .close-btn:hover {
    color: #fff;
}

.spotlight-results {
    max-height: 52vh;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spotlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, transform 0.15s ease;
    border-left: 3px solid transparent;
}

.spotlight-item:hover,
.spotlight-item.active-item {
    background: rgba(212, 175, 55, 0.15);
    border-left-color: var(--primary-gold, #d4af37);
    transform: translateX(4px);
}

.spotlight-item img {
    width: 60px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.spotlight-item-info {
    flex: 1;
    overflow: hidden;
}

.spotlight-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.spotlight-item-sub {
    font-size: 0.8rem;
    color: var(--text-secondary, #a0a0a0);
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-item-tag {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.18);
    color: var(--primary-gold, #d4af37);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    white-space: nowrap;
}

.spotlight-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.95rem;
}

.spotlight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #0a0a0c;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: var(--text-secondary, #a0a0a0);
}

/* Hover Cards Interativos nas Prateleiras */
.content-card-shelf {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.content-card-shelf:hover {
    transform: translateY(-8px) scale(1.05) !important;
    z-index: 20 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(212, 175, 55, 0.3) !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
}

.content-card-shelf:hover .card-overlay {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

.card-quick-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--primary-gold, #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    cursor: pointer;
    z-index: 10;
}

.content-card-shelf:hover .card-quick-fav {
    opacity: 1;
    transform: scale(1);
}

.card-quick-fav:hover {
    background: var(--primary-gold, #d4af37);
    color: #000;
    transform: scale(1.15);
}
