/* 🎬 Modal de Recomendación - Simplificado */
#recommendModal .modal-dialog {
    max-width: 800px;
}

#recommendModal .content-info-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

#recommendModal .content-info-card img {
    max-height: 200px;
    object-fit: cover;
}

#recommendModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

#recommendModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

#recommendModal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

#recommendModal .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6b6b8a 100%);
    transform: translateY(-1px);
}

/* Extra info styles for platforms, seasons, runtime */
#recommendModal .content-info-card .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

#recommendModal .content-info-card .badge img {
    max-width: 16px;
    max-height: 16px;
    object-fit: contain;
}

#recommendModal .content-info-card .bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}

#recommendModal .content-info-card .bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
    border: 1px solid rgba(25, 135, 84, 0.2) !important;
}

#recommendModal .content-info-card .bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.1) !important;
    border: 1px solid rgba(13, 202, 240, 0.2) !important;
}

#recommendModal .content-info-card .bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
}

/* Group recommendations - Additional info styles */
.additional-info .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.additional-info .badge img {
    max-width: 16px;
    max-height: 16px;
    object-fit: contain;
}

.additional-info .bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}

.additional-info .bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
    border: 1px solid rgba(25, 135, 84, 0.2) !important;
}

.additional-info .bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.1) !important;
    border: 1px solid rgba(13, 202, 240, 0.2) !important;
}

.additional-info .bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
}

.additional-info .text-primary {
    color: #0d6efd !important;
}

.additional-info .text-success {
    color: #198754 !important;
}

.additional-info .text-warning {
    color: #ffc107 !important;
}

#recommendModal .meta-badge {
    padding: 0.6rem 1.2rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

#recommendModal .form-group-fresh {
    margin-bottom: 2rem !important;
}

#recommendModal .form-label-fresh {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

#recommendModal .form-select-fresh,
#recommendModal .form-textarea-fresh {
    width: 100% !important;
    padding: 1.2rem !important;
    border: 2px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    color: #2d3748 !important;
    background: white !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
}

#recommendModal .form-select-fresh:focus,
#recommendModal .form-textarea-fresh:focus {
    outline: none !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
}

#recommendModal .form-textarea-fresh {
    resize: vertical !important;
    min-height: 140px !important;
}

/* BOTONES MODAL FOOTER - CENTRADOS HORIZONTALMENTE */
.modal#recommendModal .modal-footer .btn,
.modal#recommendModal #recommend-modal-footer .btn,
#recommendModal .modal-footer .btn,
#recommendModal #recommend-modal-footer .btn {
    margin: 0 !important;
    flex: none !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    text-align: center !important;
    min-width: 140px !important;
    display: inline-block !important;
    position: static !important;
    float: none !important;
    clear: none !important;
}

#recommendModal .btn-fresh-outline {
    background: rgba(102, 126, 234, 0.1) !important;
    border: 2px solid rgba(102, 126, 234, 0.3) !important;
    color: #667eea !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 1.1rem !important;
    width: 100% !important;
    text-align: center !important;
}

#recommendModal .btn-fresh-outline:hover {
    background: rgba(102, 126, 234, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    color: #667eea !important;
    transform: translateY(-2px) !important;
}

#recommendModal .btn-fresh-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
    font-size: 1.1rem !important;
    width: 100% !important;
    text-align: center !important;
}

#recommendModal .btn-fresh-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
}

/* Responsive para el modal de recomendación */
@media (max-width: 768px) {
    #recommendModal .modal-dialog {
        max-width: 95vw !important;
        width: 95vw !important;
        margin: 0.5rem auto !important;
    }
    
    #recommendModal .modal-content {
        min-height: 85vh !important;
    }
    
    #recommendModal .modal-body {
        padding: 1.5rem !important;
    }
    
    #recommendModal .modal-header {
        padding: 1.5rem !important;
    }
    
    #recommendModal .modal-footer,
    #recommendModal #recommend-modal-footer {
        padding: 1.5rem !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    #recommendModal .modal-footer .btn,
    #recommendModal #recommend-modal-footer .btn {
        width: 100% !important;
        min-width: auto !important;
    }
    
    #recommendModal .movie-title-fresh {
        font-size: 1.5rem !important;
    }
    
    #recommendModal .movie-preview-fresh {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    #recommendModal .modal-dialog {
        max-width: 98vw !important;
        width: 98vw !important;
        margin: 0.25rem auto !important;
    }
    
    #recommendModal .modal-content {
        min-height: 90vh !important;
    }
    
    #recommendModal .modal-body {
        padding: 1rem !important;
    }
    
    #recommendModal .modal-header {
        padding: 1rem !important;
    }
    
    #recommendModal .modal-footer,
    #recommendModal #recommend-modal-footer {
        padding: 1rem !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    #recommendModal .modal-footer .btn,
    #recommendModal #recommend-modal-footer .btn {
        width: 100% !important;
        min-width: auto !important;
    }
}

/* Overrides adicionales para Bootstrap - Layout horizontal en footer */
.modal#recommendModal .modal-footer,
.modal#recommendModal #recommend-modal-footer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 1rem !important;
}

.modal#recommendModal .modal-footer .btn,
.modal#recommendModal #recommend-modal-footer .btn {
    margin: 0 !important;
    flex: none !important;
    display: inline-block !important;
    text-align: center !important;
}

/* Íconos de plataformas de streaming */
.platform-badge {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 16px;
    padding: 2px 8px 2px 2px;
    margin-right: 0.3em;
    margin-bottom: 2px;
    font-size: 0.92em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.platform-badge-large {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-badge-large:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.platform-name {
    color: #495057;
}
.platform-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin-right: 5px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}
/* Plataformas, temporadas/episodios y duración en el modal */
.content-platforms, .content-seasons, .content-runtime {
    font-size: 0.97rem;
    color: var(--fresh-text-secondary);
    margin-bottom: 0.15rem;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
}

/* Platforms positioning in trending cards - move to bottom */
.trending-info .content-platforms {
    margin-top: 8px;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.85em;
}

.trending-info .platform-badge {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2px 8px 2px 2px;
    display: inline-flex;
    align-items: center;
    font-size: 0.75em;
    color: #6c757d;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.trending-info .platform-badge img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 4px;
}

.content-seasons, .content-runtime {
    color: var(--fresh-text-muted);
    font-size: 0.95rem;
    gap: 0.3em;
}
/* 🎨 RecomiendaFlix Fresh Style - Joven, Informal y Fresco 🎨 */

/* Variables de colores frescos */
:root {
    --fresh-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --fresh-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --fresh-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --fresh-warning: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --fresh-danger: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --fresh-info: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    
    /* RGB values for alpha transparency */
    --fresh-info-rgb: 168, 237, 234;
    
    --fresh-bg-primary: #f8faff;
    --fresh-bg-secondary: #fff;
    --fresh-text-primary: #2d3748;
    --fresh-text-secondary: #4a5568;
    --fresh-text-muted: #718096;
    
    --fresh-shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --fresh-shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --fresh-shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    --fresh-shadow-xl: 0 20px 40px rgba(0,0,0,0.1);
    
    --fresh-radius-sm: 8px;
    --fresh-radius-md: 12px;
    --fresh-radius-lg: 20px;
    --fresh-radius-xl: 28px;
    
    --fresh-spacing-xs: 0.5rem;
    --fresh-spacing-sm: 1rem;
    --fresh-spacing-md: 1.5rem;
    --fresh-spacing-lg: 2rem;
    --fresh-spacing-xl: 3rem;
}

/* Estilos base */
body {
    background: var(--fresh-bg-primary);
    color: var(--fresh-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

/* 🌈 Navegación Fresh */
.navbar-fresh {
    background: white !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1040; /* Z-index para la navbar */
    overflow: visible !important; /* Asegurar que el dropdown sea visible */
}

/* Dropdown del usuario en navbar - MÁS ESPECÍFICO */
.navbar-fresh .nav-item.dropdown {
    position: relative !important;
    overflow: visible !important;
}

.navbar-fresh .dropdown-menu,
.navbar-fresh .dropdown-menu-fresh {
    z-index: 9999 !important; /* Z-index muy alto */
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    transform: none !important;
    margin-top: 0.5rem !important;
    display: none; /* Oculto por defecto */
}

.navbar-fresh .dropdown-menu.show,
.navbar-fresh .dropdown-menu-fresh.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.navbar-fresh .navbar-brand {
    color: var(--fresh-text-primary) !important;
    font-weight: 800;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-fresh .navbar-brand:hover {
    transform: scale(1.05);
}

.brand-text {
    background: var(--fresh-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.nav-link-fresh {
    color: var(--fresh-text-secondary) !important;
    font-weight: 600;
    padding: 0.75rem 1rem !important;
    border-radius: var(--fresh-radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link-fresh:hover {
    color: var(--fresh-text-primary) !important;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.nav-link-fresh::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--fresh-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-fresh:hover::before {
    width: 80%;
}

.navbar-fresh .navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: var(--fresh-radius-sm);
    background: rgba(102, 126, 234, 0.1);
}

.navbar-fresh .navbar-toggler:focus {
    box-shadow: none;
}

.badge-fresh {
    background: var(--fresh-secondary);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
    font-weight: 600;
    box-shadow: var(--fresh-shadow-sm);
    animation: pulse 2s ease-in-out infinite;
}

.dropdown-menu-fresh {
    border: none;
    box-shadow: var(--fresh-shadow-lg);
    border-radius: var(--fresh-radius-md);
    padding: 0.5rem;
    margin-top: 0.5rem;
    z-index: 9999 !important; /* Z-index muy alto para estar sobre todos los elementos */
    position: absolute !important;
    right: 0 !important; /* Alinear a la derecha para que no se salga */
    left: auto !important;
    min-width: 200px !important; /* Ancho mínimo para el dropdown */
    top: 100% !important;
    transform: none !important;
    display: none !important; /* Oculto por defecto */
}

.dropdown-menu-fresh.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.dropdown-item-fresh {
    padding: 0.75rem 1rem;
    border-radius: var(--fresh-radius-sm);
    color: var(--fresh-text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
}

.dropdown-item-fresh:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--fresh-text-primary);
    transform: translateX(4px);
}

.dropdown-item-fresh i {
    margin-right: 0.5rem;
    width: 16px;
}

/* Estilos globales para dropdowns de Bootstrap */
.dropdown-menu {
    z-index: 9999 !important;
    overflow: visible !important;
    clip: none !important;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
}

.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Asegurar que el dropdown del navbar se alinee correctamente */
.navbar .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 200px;
    margin-top: 0.5rem;
}

/* FORZAR VISIBILIDAD DE DROPDOWNS EN TODA LA APLICACIÓN */
body, html, .container, .container-fluid, .navbar, .navbar-nav, .nav-item, main {
    /* overflow-x: hidden !important; Solo ocultar scroll horizontal */
    /* overflow-y: visible !important; Permitir scroll vertical y visibilidad de dropdowns */
}

/* Específicamente para elementos que pueden cortar dropdowns */
.main-content-fresh, .row, .col-12, .col-md-8, .col-md-4 {
    overflow: visible !important;
}

/* Asegurar que los dropdowns estén siempre visibles */
.dropdown {
    position: relative !important;
}

.dropdown .dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
}

/* � Main Content */
.main-content-fresh {
    min-height: calc(100vh - 80px);
}

.main-content-fresh .container {
    padding-top: var(--fresh-spacing-lg);
    padding-bottom: var(--fresh-spacing-lg);
}

/* �🌈 Hero Section Fresh */
.hero-section-fresh {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-bg-animated {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.9) 0%, 
        rgba(118, 75, 162, 0.9) 50%, 
        rgba(240, 147, 251, 0.8) 100%);
}

.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(102, 126, 234, 0.2) 0%, transparent 50%);
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    bottom: 30%;
    left: 60%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-content-fresh {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title-fresh {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--fresh-spacing-md);
}

.hero-subtitle-fresh {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: var(--fresh-spacing-lg);
}

.highlight-text {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* 🎯 Botones Fresh */
.btn-fresh-primary {
    background: var(--fresh-secondary);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: var(--fresh-radius-lg);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--fresh-shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-fresh-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--fresh-shadow-xl);
    color: white;
}

.btn-fresh-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 13px 28px;
    border-radius: var(--fresh-radius-lg);
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-fresh-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

.btn-fresh-secondary {
    background: var(--fresh-warning);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: var(--fresh-radius-md);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--fresh-shadow-md);
    transition: all 0.3s ease;
}

.btn-fresh-secondary:hover {
    transform: translateY(-2px);
    color: white;
}

.bounce-hover {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-hover:hover {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 🎭 Floating Devices */
.floating-devices {
    position: relative;
    height: 400px;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.device {
    position: absolute;
    font-size: 4rem;
    animation: deviceFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.device.phone {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.device.tablet {
    top: 50%;
    right: 20%;
    animation-delay: -2s;
}

.device.tv {
    bottom: 20%;
    left: 50%;
    animation-delay: -4s;
}

@keyframes deviceFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* 🌊 Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* 📋 Features Cards Fresh */
.section-title-fresh {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-sm);
}

.section-subtitle-fresh {
    font-size: 1.2rem;
    color: var(--fresh-text-secondary);
    margin-bottom: var(--fresh-spacing-xl);
}

.feature-card-fresh {
    background: white;
    padding: var(--fresh-spacing-xl);
    border-radius: var(--fresh-radius-xl);
    box-shadow: var(--fresh-shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 2px solid transparent;
}

.feature-card-fresh:hover {
    transform: translateY(-8px);
    box-shadow: var(--fresh-shadow-xl);
    border-color: rgba(102, 126, 234, 0.2);
}

.feature-card-fresh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--fresh-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card-fresh:hover::before {
    transform: scaleX(1);
}

.feature-icon-fresh {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--fresh-spacing-md);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.feature-icon-fresh.feature-groups {
    background: var(--fresh-primary);
}

.feature-icon-fresh.feature-recommend {
    background: var(--fresh-secondary);
}

.feature-icon-fresh.feature-discover {
    background: var(--fresh-success);
}

.feature-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--fresh-text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--fresh-shadow-sm);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-sm);
}

.feature-text {
    color: var(--fresh-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--fresh-spacing-md);
}

.feature-emoji {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* 🏠 Dashboard Fresh */
.dashboard-fresh {
    padding: var(--fresh-spacing-lg) 0;
}

.welcome-section {
    background: white;
    padding: var(--fresh-spacing-xl);
    border-radius: var(--fresh-radius-xl);
    box-shadow: var(--fresh-shadow-md);
    margin-bottom: var(--fresh-spacing-xl);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.03) 0%, 
        rgba(240, 147, 251, 0.03) 100%);
    pointer-events: none;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-xs);
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--fresh-text-secondary);
    margin-bottom: 0;
}

.quick-stats {
    text-align: right;
}

.stat-badge {
    background: var(--fresh-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: var(--fresh-shadow-sm);
}

/* 🎯 Action Cards Fresh */
.action-card-fresh {
    background: white;
    padding: var(--fresh-spacing-lg);
    border-radius: var(--fresh-radius-lg);
    box-shadow: var(--fresh-shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    height: 100%;
}

.action-card-fresh:hover {
    transform: translateY(-4px);
    box-shadow: var(--fresh-shadow-lg);
    border-color: rgba(102, 126, 234, 0.2);
}

.action-card-fresh .action-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.action-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.05) 0%, 
        rgba(240, 147, 251, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.action-card-fresh:hover .action-hover-effect {
    opacity: 1;
}

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: var(--fresh-spacing-md);
    transition: transform 0.3s ease;
}

.action-card-fresh:hover .action-icon {
    transform: scale(1.1);
}

.action-card-fresh.action-groups .action-icon {
    background: var(--fresh-primary);
}

.action-card-fresh.action-create .action-icon {
    background: var(--fresh-secondary);
}

.action-card-fresh.action-discover .action-icon {
    background: var(--fresh-success);
}

.action-card-fresh.action-invites .action-icon {
    background: var(--fresh-warning);
}

.action-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-xs);
}

.action-text {
    font-size: 0.9rem;
    color: var(--fresh-text-muted);
    margin-bottom: 0;
}

/* 📱 Activity Section */
.activity-section {
    background: white;
    padding: var(--fresh-spacing-xl);
    border-radius: var(--fresh-radius-xl);
    box-shadow: var(--fresh-shadow-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--fresh-spacing-xl);
}

.section-title-dashboard {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-xs);
}

.section-subtitle-dashboard {
    color: var(--fresh-text-secondary);
    margin-bottom: 0;
}

.activity-placeholder {
    text-align: center;
    padding: var(--fresh-spacing-xl);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: var(--fresh-spacing-md);
    opacity: 0.6;
}

.activity-placeholder h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-sm);
}

.activity-placeholder p {
    color: var(--fresh-text-secondary);
    margin-bottom: var(--fresh-spacing-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.placeholder-actions {
    display: flex;
    gap: var(--fresh-spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
    .hero-title-fresh {
        font-size: 2.2rem;
    }
    
    .hero-subtitle-fresh {
        font-size: 1.1rem;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .section-title-fresh {
        font-size: 2rem;
    }
    
    .feature-card-fresh {
        padding: var(--fresh-spacing-lg);
    }
    
    .action-card-fresh {
        margin-bottom: var(--fresh-spacing-lg);
        min-height: 120px;
        padding: var(--fresh-spacing-lg);
    }
    
    .action-card-fresh .action-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
        margin-bottom: var(--fresh-spacing-sm);
    }
    
    .action-card-fresh .action-title {
        font-size: 1rem !important;
        margin-bottom: 0.25rem;
    }
    
    .action-card-fresh .action-text {
        font-size: 0.85rem !important;
        opacity: 0.8;
    }
    
    .placeholder-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--fresh-spacing-md);
    }
    
    .placeholder-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1.5rem;
    }
    
    /* Better grid layout for mobile */
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    /* Ensure 2 columns on mobile for action cards */
    .col-lg-3.col-md-6 {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
}

/* Extra responsive for very small screens */
@media (max-width: 480px) {
    /* Single column layout for action cards on very small screens */
    .col-lg-3.col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--fresh-spacing-md);
    }
    
    .action-card-fresh {
        padding: var(--fresh-spacing-md);
        min-height: 100px;
        text-align: center;
    }
    
    .action-card-fresh .action-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.25rem !important;
        margin: 0 auto var(--fresh-spacing-sm);
    }
    
    .action-card-fresh .action-title {
        font-size: 0.95rem !important;
    }
    
    .action-card-fresh .action-text {
        font-size: 0.8rem !important;
    }
    
    /* Hero section adjustments */
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    
    .feature-card-fresh {
        padding: var(--fresh-spacing-md);
        margin-bottom: var(--fresh-spacing-md);
    }
    
    .feature-card-fresh .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Activity Feed Responsive */
    .activity-item {
        flex-direction: row;
        gap: var(--fresh-spacing-sm);
        padding: var(--fresh-spacing-md);
        align-items: flex-start;
        overflow: hidden;
    }
    
    .activity-avatar {
        flex-shrink: 0;
    }
    
    .avatar-circle {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.8rem;
    }
    
    .activity-content {
        flex: 1;
        min-width: 0;
    }
    
    .activity-poster {
        flex-shrink: 0;
        margin-left: var(--fresh-spacing-xs);
        max-width: 35px;
    }
    
    .poster-thumbnail {
        width: 35px !important;
        height: 52px !important;
        border-radius: var(--fresh-radius-sm);
        object-fit: cover;
    }
    
    .activity-meta {
        flex-wrap: wrap;
        gap: var(--fresh-spacing-xs);
        font-size: 0.8rem;
    }
    
    .activity-header {
        line-height: 1.3;
        margin-bottom: var(--fresh-spacing-xs);
    }
    
    .activity-rating {
        margin-bottom: var(--fresh-spacing-xs);
    }
    
    .activity-comment {
        font-size: 0.85rem;
        padding: var(--fresh-spacing-xs);
        margin-bottom: var(--fresh-spacing-xs);
    }
}

/* 🎨 Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 🎯 Utilidades */
.bg-gradient-fresh {
    background: var(--fresh-primary);
}

.text-fresh-primary {
    color: var(--fresh-text-primary);
}

.text-fresh-secondary {
    color: var(--fresh-text-secondary);
}

.shadow-fresh {
    box-shadow: var(--fresh-shadow-md);
}

.rounded-fresh {
    border-radius: var(--fresh-radius-lg);
}

/* 🦶 Footer Fresh */
.footer-fresh {
    background: linear-gradient(135deg, var(--fresh-text-primary) 0%, #1a202c 100%);
    color: white;
    margin-top: var(--fresh-spacing-xl);
    position: relative;
    overflow: hidden;
}

.footer-fresh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--fresh-primary);
}

.footer-fresh .brand-text {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.2rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--fresh-spacing-md);
}

.footer-text .highlight-text {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: var(--fresh-spacing-sm);
    margin-bottom: var(--fresh-spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--fresh-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--fresh-shadow-md);
}

.footer-credits {
    color: rgba(255, 255, 255, 0.7);
}

.tmdb-link {
    color: #01d277;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tmdb-link:hover {
    color: #00ff87;
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.3);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-fresh .text-md-end {
        text-align: left !important;
        margin-top: var(--fresh-spacing-lg);
    }
    
    .social-links {
        justify-content: center;
        margin-top: var(--fresh-spacing-md);
    }
}

/* 🔍 Discover Page Fresh Styles */
.discover-fresh {
    padding: var(--fresh-spacing-lg) 0;
}

.discover-header {
    text-align: center;
    margin-bottom: var(--fresh-spacing-xl);
}

.discover-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-sm);
}

.discover-subtitle {
    font-size: 1.2rem;
    color: var(--fresh-text-secondary);
    margin-bottom: 0;
}

.discover-stats {
    text-align: right;
}

/* 🔍 Search Section Fresh */
.search-section-fresh {
    margin-bottom: var(--fresh-spacing-xl);
}


.search-card {
    background: white;
    padding: var(--fresh-spacing-xl);
    border-radius: var(--fresh-radius-xl);
    box-shadow: var(--fresh-shadow-md);
    position: relative;
    overflow: visible; /* Permite que la lista desplegable se muestre completa */
    z-index: 101;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--fresh-primary);
}

.search-header {
    text-align: center;
    margin-bottom: var(--fresh-spacing-lg);
}

.search-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-xs);
}

.search-subtitle {
    color: var(--fresh-text-secondary);
    margin-bottom: 0;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--fresh-bg-primary);
    border: 2px solid transparent;
    border-radius: var(--fresh-radius-lg);
    padding: 1rem;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-icon {
    color: var(--fresh-text-muted);
    margin-right: var(--fresh-spacing-sm);
    font-size: 1.2rem;
}

.search-input-fresh {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--fresh-text-primary);
    padding: 0;
    outline: none;
}

.search-input-fresh::placeholder {
    color: var(--fresh-text-muted);
    font-weight: 400;
}

.search-clear-btn {
    background: none;
    border: none;
    color: var(--fresh-text-muted);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: var(--fresh-spacing-sm);
}

.search-clear-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #dc3545;
}

.search-results-fresh {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--fresh-radius-md);
    box-shadow: var(--fresh-shadow-lg);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

/* 🎬 Content Sections Fresh */
.content-section-fresh {
    margin-bottom: var(--fresh-spacing-xl);
}

.section-header-fresh {
    text-align: center;
    margin-bottom: var(--fresh-spacing-lg);
}

.section-title-fresh {
    font-size: 2rem;
    font-weight: 800;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-xs);
}

.section-subtitle-fresh {
    font-size: 1.1rem;
    color: var(--fresh-text-secondary);
    margin-bottom: 0;
}

.content-grid-fresh {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--fresh-spacing-lg);
    padding: var(--fresh-spacing-md) 0;
}

/* 🎭 Content Cards Fresh */
.content-card-fresh {
    background: white;
    border-radius: var(--fresh-radius-lg);
    box-shadow: var(--fresh-shadow-sm);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.content-card-fresh:hover {
    box-shadow: var(--fresh-shadow-xl);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-8px) scale(1.02);
}

.content-poster-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
}

.content-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card-fresh:hover .content-poster {
    transform: scale(1.05);
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(102, 126, 234, 0.9) 0%,
        rgba(118, 75, 162, 0.9) 100%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card-fresh:hover .content-overlay {
    opacity: 1;
    pointer-events: auto;
}

.content-actions {
    display: flex;
    gap: var(--fresh-spacing-sm);
    flex-direction: column;
    align-items: center;
}

.action-btn-fresh {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    color: var(--fresh-text-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.action-btn-fresh.primary-action {
    background: white;
    box-shadow: var(--fresh-shadow-md);
    flex-direction: column;
    width: auto;
    height: auto;
    padding: 1rem 1.5rem;
    border-radius: var(--fresh-radius-md);
}

.action-btn-fresh.primary-action span {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.action-btn-fresh:hover {
    transform: scale(1.1);
    box-shadow: var(--fresh-shadow-lg);
}

.action-btn-fresh.primary-action:hover {
    background: var(--fresh-primary);
    color: white;
}

.content-rating {
    position: absolute;
    top: var(--fresh-spacing-sm);
    right: var(--fresh-spacing-sm);
    background: rgba(0, 0, 0, 0.8);
    color: #ffc107;
    padding: 0.25rem 0.5rem;
    border-radius: var(--fresh-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
}

.content-info {
    padding: var(--fresh-spacing-md);
}

.content-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fresh-text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-year {
    font-size: 0.9rem;
    color: var(--fresh-text-muted);
    margin-bottom: 0;
}

/* 🎭 Modal Fresh Styles */
.modal-content-fresh {
    border: none;
    border-radius: var(--fresh-radius-xl);
    box-shadow: var(--fresh-shadow-xl);
    overflow: hidden;
}

.modal-header-fresh {
    background: var(--fresh-primary);
    color: white;
    padding: var(--fresh-spacing-lg);
    border-bottom: none;
    position: relative;
}

.modal-header-fresh .modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0;
}

.btn-close-fresh {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close-fresh:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body-fresh {
    padding: var(--fresh-spacing-xl);
    background: var(--fresh-bg-primary);
}

.movie-preview-fresh {
    background: white;
    padding: var(--fresh-spacing-lg);
    border-radius: var(--fresh-radius-lg);
    box-shadow: var(--fresh-shadow-sm);
}

.poster-container-fresh {
    position: relative;
    border-radius: var(--fresh-radius-md);
    overflow: hidden;
    box-shadow: var(--fresh-shadow-md);
}

.poster-image-fresh {
    width: 100%;
    height: auto;
    display: block;
}

.poster-rating-fresh {
    position: absolute;
    top: var(--fresh-spacing-sm);
    right: var(--fresh-spacing-sm);
    background: rgba(0, 0, 0, 0.8);
    color: #ffc107;
    padding: 0.5rem;
    border-radius: var(--fresh-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.movie-title-fresh {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-sm);
}

.movie-overview-fresh {
    color: var(--fresh-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--fresh-spacing-md);
}

.movie-meta-fresh {
    display: flex;
    gap: var(--fresh-spacing-sm);
    flex-wrap: wrap;
}

.meta-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--fresh-radius-md);
    font-weight: 600;
    font-size: 0.9rem;
}

.year-badge {
    background: var(--fresh-info);
    color: white;
}

.rating-badge {
    background: #ffc107;
    color: #000;
}

.trending-meta-badge {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

/* 📝 Form Elements Fresh */
.form-group-fresh {
    margin-bottom: var(--fresh-spacing-lg);
}

.form-label-fresh {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.select-container-fresh,
.rating-container-fresh {
    position: relative;
}

.form-select-fresh {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--fresh-radius-md);
    font-size: 1rem;
    color: var(--fresh-text-primary);
    background: white;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.form-select-fresh:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-textarea-fresh {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--fresh-radius-md);
    font-size: 1rem;
    color: var(--fresh-text-primary);
    background: white;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-textarea-fresh:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-textarea-fresh::placeholder {
    color: var(--fresh-text-muted);
}

.form-help-fresh {
    margin-top: var(--fresh-spacing-sm);
}

.create-group-link {
    color: var(--fresh-text-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--fresh-radius-md);
    transition: all 0.3s ease;
}

.create-group-link:hover {
    background: rgba(102, 126, 234, 0.2);
    color: var(--fresh-text-primary);
    transform: translateY(-1px);
}

.form-input-fresh {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--fresh-radius-md);
    font-size: 1rem;
    color: var(--fresh-text-primary);
    background: white;
    transition: all 0.3s ease;
}

.form-input-fresh:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-input-fresh::placeholder {
    color: var(--fresh-text-muted);
}

.form-check-fresh {
    display: flex;
    align-items: flex-start;
    gap: var(--fresh-spacing-sm);
}

.form-check-input-fresh {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-check-input-fresh:checked {
    background: var(--fresh-primary);
    border-color: rgba(102, 126, 234, 0.5);
}

.form-check-label-fresh {
    cursor: pointer;
    color: var(--fresh-text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.form-help-text {
    display: block;
    font-size: 0.85rem;
    color: var(--fresh-text-muted);
    margin-top: 0.25rem;
}

.modal-footer-fresh {
    padding: var(--fresh-spacing-lg);
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: var(--fresh-spacing-md);
    justify-content: flex-end;
}

/* 📱 Responsive Design for Discover */
@media (max-width: 768px) {
    .discover-title {
        font-size: 2rem;
    }
    
    .discover-stats {
        text-align: left;
        margin-top: var(--fresh-spacing-md);
    }
    
    .content-grid-fresh {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--fresh-spacing-md);
    }
    
    .search-card {
        padding: var(--fresh-spacing-lg);
    }
    
    .movie-title-fresh {
        font-size: 1.5rem;
    }
    
    .modal-footer-fresh {
        flex-direction: column;
    }
    
    .modal-footer-fresh .btn {
        width: 100%;
    }
}

/* 🌍 Public Groups Section */
.public-groups-section {
    background: white;
    padding: var(--fresh-spacing-xl);
    border-radius: var(--fresh-radius-xl);
    box-shadow: var(--fresh-shadow-md);
    margin-bottom: var(--fresh-spacing-xl);
}

.public-groups-subsection {
    margin-bottom: var(--fresh-spacing-xl);
}

.public-groups-subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.groups-grid-fresh {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--fresh-spacing-lg);
    align-items: stretch; /* Make all grid items same height */
}

.public-group-card {
    background: var(--fresh-bg-primary);
    border: 2px solid transparent;
    border-radius: var(--fresh-radius-lg);
    padding: var(--fresh-spacing-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Take full height of grid item */
}

.public-group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--fresh-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.public-group-card:hover {
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--fresh-shadow-md);
}

.public-group-card:hover::before {
    transform: scaleX(1);
}

.group-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--fresh-spacing-md);
}

.group-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fresh-text-primary);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-stats {
    display: flex;
    gap: var(--fresh-spacing-sm);
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(102, 126, 234, 0.1);
    color: var(--fresh-text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--fresh-radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.group-card-body {
    margin-bottom: var(--fresh-spacing-lg);
    flex: 1; /* Take remaining space, pushing footer to bottom */
}

.group-description {
    color: var(--fresh-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--fresh-spacing-sm);
}

.last-activity {
    font-size: 0.9rem;
    color: var(--fresh-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.group-card-footer {
    display: flex;
    gap: var(--fresh-spacing-sm);
    justify-content: flex-end;
    margin-top: auto; /* Push footer to bottom */
}

/* 🔥 Active Groups List */
.active-groups-list {
    display: flex;
    flex-direction: column;
    gap: var(--fresh-spacing-md);
}

.active-group-item {
    background: var(--fresh-bg-primary);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: var(--fresh-radius-md);
    padding: var(--fresh-spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.active-group-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
    box-shadow: var(--fresh-shadow-sm);
}

.active-group-info {
    flex: 1;
}

.active-group-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fresh-text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.active-group-stats {
    display: flex;
    gap: var(--fresh-spacing-md);
    flex-wrap: wrap;
}

.activity-score {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--fresh-radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.member-count {
    background: rgba(67, 233, 123, 0.2);
    color: var(--fresh-text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--fresh-radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.active-group-actions {
    margin-left: var(--fresh-spacing-md);
}

/* 📱 Responsive Design for Public Groups */
@media (max-width: 768px) {
    .groups-grid-fresh {
        grid-template-columns: 1fr;
    }
    
    .group-card-header {
        flex-direction: column;
        gap: var(--fresh-spacing-sm);
    }
    
    .group-stats {
        align-self: flex-start;
    }
    
    .group-card-footer {
        justify-content: stretch;
    }
    
    .group-card-footer .btn {
        flex: 1;
    }
    
    .active-group-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--fresh-spacing-md);
    }
    
    .active-group-actions {
        margin-left: 0;
        align-self: stretch;
    }
    
    .active-group-actions .btn {
        width: 100%;
    }
    
    .active-group-stats {
        flex-direction: column;
        gap: var(--fresh-spacing-sm);
    }
}

/* 🔥 Trending Section Fresh Styles */
.trending-section-fresh {
    background: white;
    padding: var(--fresh-spacing-xl);
    border-radius: var(--fresh-radius-xl);
    box-shadow: var(--fresh-shadow-md);
    margin-bottom: var(--fresh-spacing-xl);
    position: relative;
    overflow: hidden;
}

.trending-section-fresh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
}

.trending-subsection {
    margin-bottom: var(--fresh-spacing-xl);
}

.trending-subsection:last-child {
    margin-bottom: 0;
}

.trending-grid-fresh {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--fresh-spacing-lg);
    padding: var(--fresh-spacing-md) 0;
}

/* 🎬 Trending Cards */
.trending-card-fresh {
    background: white;
    border-radius: var(--fresh-radius-lg);
    box-shadow: var(--fresh-shadow-sm);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.trending-card-fresh:hover {
    box-shadow: var(--fresh-shadow-xl);
    border-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-8px) scale(1.03);
}

.trending-poster-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
}

.trending-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trending-card-fresh:hover .trending-poster {
    transform: scale(1.1);
}

.trending-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 107, 107, 0.9) 0%,
        rgba(254, 202, 87, 0.9) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-card-fresh:hover .trending-overlay {
    opacity: 1;
}

.trending-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-btn-primary {
    background: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--fresh-radius-lg);
    color: var(--fresh-text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--fresh-shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: column;
}

.trending-btn-primary:hover {
    transform: scale(1.1);
    box-shadow: var(--fresh-shadow-lg);
    background: var(--fresh-primary);
    color: white;
}

.trending-btn-info {
    background: rgba(var(--fresh-info-rgb), 0.9);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--fresh-radius-lg);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--fresh-shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: column;
}

.trending-btn-info:hover {
    transform: scale(1.1);
    box-shadow: var(--fresh-shadow-lg);
    background: var(--fresh-info);
    color: white;
}

/* CTA Section for non-logged users in trending modal */
.cta-section-fresh {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: var(--fresh-radius-lg);
    border: 2px dashed rgba(102, 126, 234, 0.3);
}

.cta-title-fresh {
    color: var(--fresh-text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.cta-text-fresh {
    color: var(--fresh-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.cta-buttons-fresh {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.trending-rating {
    position: absolute;
    top: var(--fresh-spacing-sm);
    right: var(--fresh-spacing-sm);
    background: rgba(0, 0, 0, 0.8);
    color: #ffc107;
    padding: 0.25rem 0.5rem;
    border-radius: var(--fresh-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
}

.trending-badge {
    position: absolute;
    top: var(--fresh-spacing-sm);
    left: var(--fresh-spacing-sm);
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--fresh-radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: var(--fresh-shadow-sm);
}

.trending-info {
    padding: var(--fresh-spacing-md);
}

.trending-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fresh-text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-year {
    font-size: 0.85rem;
    color: var(--fresh-text-muted);
    margin-bottom: 0;
    font-weight: 500;
}

/* 📱 Responsive Design for Trending */
@media (max-width: 768px) {
    .trending-grid-fresh {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: var(--fresh-spacing-md);
    }
    
    .trending-section-fresh {
        padding: var(--fresh-spacing-lg);
    }
    
    .trending-btn-primary {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .trending-title {
        font-size: 0.9rem;
    }
    
    .trending-year {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .trending-grid-fresh {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Activity feed images even smaller on very small screens */
    .activity-poster {
        max-width: 25px !important;
        margin-left: 4px !important;
    }
    
    .poster-thumbnail {
        width: 25px !important;
        height: 37px !important;
        border-radius: 3px !important;
        object-fit: cover;
    }
    
    .activity-item {
        padding: var(--fresh-spacing-sm) !important;
        gap: 6px !important;
    }
    
    .avatar-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.75rem !important;
    }
    
    .activity-meta {
        font-size: 0.75rem !important;
        gap: 0.25rem !important;
    }
    
    .activity-type-badge {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
    }
}

/* 🔧 MODAL FOOTER - SOLO POSICIONAMIENTO */
/* Solo corregir el footer sin romper funcionalidad del modal */

/* BOOTSTRAP OVERRIDE - MODAL FOOTER POSITION ONLY */
.modal#recommendModal .modal-footer,
.modal#recommendModal #recommend-modal-footer,
#recommendModal .modal-footer,
#recommendModal #recommend-modal-footer {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 2rem !important;
    background: white !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    transform: none !important;
    float: none !important;
    clear: both !important;
}

/* BUTTONS - HORIZONTAL LAYOUT */
.modal#recommendModal .modal-footer .btn,
.modal#recommendModal #recommend-modal-footer .btn,
#recommendModal .modal-footer .btn,
#recommendModal #recommend-modal-footer .btn {
    display: inline-block !important;
    position: static !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    flex: none !important;
    min-width: 140px !important;
}

/* ASEGURAR VISIBILIDAD DEL MODAL */
#recommendModal {
    z-index: 1055 !important;
}

#recommendModal.show {
    display: block !important;
}

#recommendModal .modal-dialog,
#recommendModal .modal-content,
#recommendModal .modal-header,
#recommendModal .modal-body,
#recommendModal .modal-footer {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* BACKDROP CORRECTION */
.modal-backdrop {
    z-index: 1040 !important;
}

#recommendModal + .modal-backdrop {
    z-index: 1040 !important;
}

/* 📱 HIGH RESOLUTION PORTRAIT DEVICES */
/* Tablets in portrait orientation (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .poster-thumbnail {
        width: 55px !important;
        height: 82px !important;
        border-radius: 6px !important;
    }
    
    .activity-poster {
        max-width: 60px;
        margin-left: var(--fresh-spacing-md);
    }
    
    .avatar-circle {
        width: 45px !important;
        height: 45px !important;
        font-size: 0.9rem;
    }
    
    .activity-item {
        padding: var(--fresh-spacing-lg);
        gap: var(--fresh-spacing-md);
    }
}

/* Large tablets and small desktops in portrait (1025px - 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) and (orientation: portrait) {
    .poster-thumbnail {
        width: 65px !important;
        height: 97px !important;
        border-radius: 8px !important;
    }
    
    .activity-poster {
        max-width: 70px;
        margin-left: var(--fresh-spacing-lg);
    }
    
    .avatar-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1rem;
    }
    
    .activity-item {
        padding: var(--fresh-spacing-xl);
        gap: var(--fresh-spacing-lg);
    }
    
    .activity-meta {
        font-size: 0.9rem;
    }
}

/* Very high resolution portrait displays (1367px+) */
@media (min-width: 1367px) and (orientation: portrait) {
    .poster-thumbnail {
        width: 70px !important;
        height: 105px !important;
        border-radius: 10px !important;
        box-shadow: var(--fresh-shadow-md);
    }
    
    .activity-poster {
        max-width: 75px;
        margin-left: var(--fresh-spacing-xl);
    }
    
    .avatar-circle {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.1rem;
    }
    
    .activity-item {
        padding: var(--fresh-spacing-xl) var(--fresh-spacing-xxl);
        gap: var(--fresh-spacing-xl);
    }
    
    .activity-meta {
        font-size: 1rem;
        gap: var(--fresh-spacing-sm);
    }
    
    .activity-header {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .activity-comment {
        font-size: 1rem;
        padding: var(--fresh-spacing-md);
    }
}

/* 🖥️ UNIVERSAL PORTRAIT ORIENTATION FIXES */
/* When height > width, adjust poster proportions */
@media (orientation: portrait) and (min-height: 800px) {
    .poster-thumbnail {
        min-width: 45px;
        aspect-ratio: 2/3;
        object-fit: cover;
        object-position: center top;
    }
    
    .activity-poster {
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
}

/* Extra tall screens (height > 1200px) */
@media (orientation: portrait) and (min-height: 1200px) {
    .activity-section {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .activity-feed {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .poster-thumbnail {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .activity-item:hover .poster-thumbnail {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }
}

/* 📺 ULTRA-WIDE SCREENS FIXES */
/* Ultra-wide monitors (aspect ratio > 2:1) */
@media (min-width: 1920px) and (min-aspect-ratio: 2/1) {
    .poster-thumbnail {
        width: 45px !important;
        height: 67px !important;
        border-radius: 6px !important;
        object-fit: cover;
    }
    
    .activity-poster {
        max-width: 50px !important;
        margin-left: var(--fresh-spacing-sm) !important;
    }
    
    .avatar-circle {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
    }
    
    .activity-item {
        padding: var(--fresh-spacing-md) !important;
        gap: var(--fresh-spacing-sm) !important;
    }
    
    .activity-meta {
        font-size: 0.85rem !important;
    }
}

/* Extra ultra-wide screens (2400px+) */
@media (min-width: 2400px) {
    .poster-thumbnail {
        width: 40px !important;
        height: 60px !important;
        border-radius: 6px !important;
    }
    
    .activity-poster {
        max-width: 45px !important;
    }
    
    .avatar-circle {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.85rem !important;
    }
    
    .activity-item {
        padding: var(--fresh-spacing-sm) var(--fresh-spacing-md) !important;
    }
    
    .activity-section {
        max-width: 95% !important;
        margin: 0 auto !important;
    }
}

/* UNIVERSAL POSTER SIZE OVERRIDE */
/* Override base styles from style.css for consistent sizing */
.activity-section .poster-thumbnail,
.activity-feed .poster-thumbnail,
.activity-item .poster-thumbnail {
    width: 40px !important;
    height: 60px !important;
    max-width: 40px !important;
    max-height: 60px !important;
    min-width: 40px !important;
    min-height: 60px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.activity-section .activity-poster,
.activity-feed .activity-poster,
.activity-item .activity-poster {
    max-width: 45px !important;
    min-width: 45px !important;
    width: 45px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

/* Specific fix for large landscape screens */
@media (orientation: landscape) and (min-width: 1600px) {
    .activity-feed .poster-thumbnail {
        width: 40px !important;
        height: 60px !important;
        max-width: 40px !important;
        max-height: 60px !important;
    }
    
    .activity-feed .activity-poster {
        max-width: 45px !important;
    }
    
    /* Limit activity item width on ultra-wide screens */
    .activity-item {
        max-width: 100% !important;
        display: flex !important;
        align-items: flex-start !important;
    }
    
    .activity-content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 90px) !important;
    }
}

/* 🔧 GLOBAL POSTER THUMBNAIL FIX - HIGHEST PRIORITY */
/* This overrides any other rule to ensure consistent poster sizing */
img.poster-thumbnail {
    width: 40px !important;
    height: 60px !important;
    max-width: 40px !important;
    max-height: 60px !important;
    min-width: 40px !important;
    min-height: 60px !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    display: block !important;
}

/* Container fix for all screen sizes */
.activity-poster {
    width: 45px !important;
    max-width: 45px !important;
    min-width: 45px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    overflow: hidden !important;
}

/* 🌍 PUBLIC GROUPS SHOWCASE SECTION */
.public-groups-showcase {
    background: white;
    padding: var(--fresh-spacing-xl);
    border-radius: var(--fresh-radius-xl);
    box-shadow: var(--fresh-shadow-md);
    position: relative;
    overflow: hidden;
}

.public-groups-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.public-group-card-fresh {
    background: white;
    border: 2px solid transparent;
    border-radius: var(--fresh-radius-lg);
    box-shadow: var(--fresh-shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.public-group-card-fresh:hover {
    transform: translateY(-4px);
    box-shadow: var(--fresh-shadow-lg);
    border-color: rgba(67, 233, 123, 0.3);
}

.group-card-header-fresh {
    padding: var(--fresh-spacing-lg) var(--fresh-spacing-lg) var(--fresh-spacing-sm);
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.05) 0%, rgba(56, 249, 215, 0.05) 100%);
    border-bottom: 1px solid rgba(67, 233, 123, 0.1);
}

.group-name-fresh {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-name-fresh i {
    color: #43e97b;
    font-size: 1rem;
}

.group-stats-fresh {
    display: flex;
    gap: var(--fresh-spacing-xs);
    flex-wrap: wrap;
}

.stat-badge-fresh {
    padding: 0.25rem 0.75rem;
    border-radius: var(--fresh-radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-badge-fresh.stat-members {
    background: rgba(67, 233, 123, 0.15);
    color: #2d7d32;
}

.stat-badge-fresh.stat-recommendations {
    background: rgba(255, 193, 7, 0.15);
    color: #f57c00;
}

.stat-badge-fresh.stat-comments {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.group-card-body-fresh {
    padding: var(--fresh-spacing-sm) var(--fresh-spacing-lg);
    flex: 1;
}

.group-description-fresh {
    color: var(--fresh-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--fresh-spacing-sm);
    font-size: 0.95rem;
}

.recent-members-fresh, .group-activity-fresh {
    margin-bottom: var(--fresh-spacing-xs);
}

.recent-members-fresh small, .group-activity-fresh small {
    color: var(--fresh-text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.group-card-footer-fresh {
    padding: var(--fresh-spacing-sm) var(--fresh-spacing-lg) var(--fresh-spacing-lg);
    display: flex;
    justify-content: flex-end;
}

.public-groups-placeholder {
    text-align: center;
    padding: var(--fresh-spacing-xl);
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.05) 0%, rgba(56, 249, 215, 0.05) 100%);
    border-radius: var(--fresh-radius-lg);
    border: 2px dashed rgba(67, 233, 123, 0.3);
}

.public-groups-placeholder .placeholder-icon {
    font-size: 4rem;
    margin-bottom: var(--fresh-spacing-md);
    opacity: 0.7;
}

.public-groups-placeholder h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fresh-text-primary);
    margin-bottom: var(--fresh-spacing-sm);
}

.public-groups-placeholder p {
    color: var(--fresh-text-secondary);
    margin-bottom: var(--fresh-spacing-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive for public groups showcase */
@media (max-width: 768px) {
    .public-groups-showcase {
        padding: var(--fresh-spacing-lg);
    }
    
    .group-card-header-fresh, .group-card-body-fresh, .group-card-footer-fresh {
        padding-left: var(--fresh-spacing-md);
        padding-right: var(--fresh-spacing-md);
    }
    
    .group-name-fresh {
        font-size: 1.1rem;
    }
    
    .group-stats-fresh {
        gap: 0.25rem;
    }
    
    .stat-badge-fresh {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .public-groups-showcase {
        padding: var(--fresh-spacing-md);
    }
    
    .public-group-card-fresh {
        margin-bottom: var(--fresh-spacing-md);
    }
    
    .group-card-footer-fresh .btn {
        width: 100%;
        text-align: center;
    }
}

/* Mejoras para botones en grupos públicos */
.public-groups-showcase .btn-fresh-outline {
    background: var(--fresh-primary);
    border: 2px solid var(--fresh-primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--fresh-radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--fresh-shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.public-groups-showcase .btn-fresh-outline:hover {
    background: var(--fresh-secondary);
    border-color: var(--fresh-secondary);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--fresh-shadow-md);
}

.public-groups-showcase .btn-fresh-outline:active {
    transform: translateY(0);
    box-shadow: var(--fresh-shadow-sm);
}

.public-groups-showcase .btn-fresh-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 233, 123, 0.3);
}

/* Asegurar que el botón sea siempre visible */
.group-card-footer-fresh .btn {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Específicamente para botones en tarjetas de grupos */
.public-group-card-fresh .btn-fresh-outline {
    background: linear-gradient(135deg, var(--fresh-primary) 0%, var(--fresh-secondary) 100%);
    border: 2px solid transparent;
    color: white;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.public-group-card-fresh .btn-fresh-outline:hover {
    background: linear-gradient(135deg, var(--fresh-secondary) 0%, var(--fresh-primary) 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.public-group-card-fresh .btn-fresh-outline i {
    margin-right: 4px;
}

/* Estilos específicos para botón primario en grupos públicos */
.public-groups-showcase .btn-fresh-primary {
    background: linear-gradient(135deg, var(--fresh-primary) 0%, var(--fresh-secondary) 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: var(--fresh-radius-md);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--fresh-shadow-md);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 110px;
    justify-content: center;
}

.public-groups-showcase .btn-fresh-primary:hover {
    background: linear-gradient(135deg, var(--fresh-secondary) 0%, var(--fresh-primary) 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--fresh-shadow-lg);
}

.public-groups-showcase .btn-fresh-primary:active {
    transform: translateY(0);
    box-shadow: var(--fresh-shadow-md);
}

.public-groups-showcase .btn-fresh-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 233, 123, 0.3);
}

/* Asegurar contraste en todas las condiciones */
.public-group-card-fresh .btn {
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: none;
    position: relative;
    z-index: 2;
}