/* ==================================================================
   BONY.COM - MAIN STYLESHEET
   Extracted from index.html for better code organization
   ================================================================== */

/* ==================================================================
   GLASS & SHADOW EFFECTS
   ================================================================== */
.glass-effect {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-card {
    background: rgba(23, 23, 23, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ios-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==================================================================
   NAVIGATION BUTTON STYLED
   (Replaces inline styles on nav buttons)
   ================================================================== */
.nav-btn-styled {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #181818;
    color: #CCCCCC;
    border: 1px solid #383838;
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn-styled:hover {
    background-color: #272727;
    color: #FFFFFF;
    border-color: #505050;
}

/* Icon switching on hover - uses [class*="-outline"] and [class*="-filled"] pattern */
.nav-btn-styled:hover svg[class*="-outline"] {
    display: none !important;
}

.nav-btn-styled:hover svg[class*="-filled"] {
    display: block !important;
}

.nav-btn-styled.active {
    background-color: #272727;
    color: #FFFFFF;
    border-color: #505050;
}

.nav-btn-styled.active svg[class*="-outline"] {
    display: none !important;
}

.nav-btn-styled.active svg[class*="-filled"] {
    display: block !important;
}

/* Default state for icons inside nav-btn-styled */
.nav-btn-styled svg[class*="-filled"] {
    display: none;
}

/* ==================================================================
   AUTHENTICATION STYLES
   ================================================================== */
/* New Auth Styles */
.active-tab-glow {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.15);
}

.auth-input:focus {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Force Autocomplete/Autofill Dark Mode */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: white;
}

/* Spinner for Watch Party Join Button */
.animate-spin {
    animation: bony-spin 1s linear infinite;
}

.btn-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
}

/* Transitions for join buttons */
#bony-btn-submit-join,
#bony-btn-submit-join-pc,
#global-btn-submit-join {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 52px;
    /* Altura fija para evitar saltos */
}

@media (min-width: 768px) {

    #bony-btn-submit-join-pc,
    #global-btn-submit-join {
        height: 60px;
        /* Altura un poco mayor en PC */
    }
}

.shadow-danger {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.3);
}



/* ==================================================================
   ANIMATIONS
   ================================================================== */
/* Authentication Form Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.5s ease-in forwards;
}

/* Auth Input States */
.auth-input:focus {
    transform: translateY(-1px);
}

.auth-input.error {
    border-color: #ef4444 !important;
    animation: shake 0.3s ease-in-out;
}

.auth-input.success {
    border-color: #22c55e !important;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Toggle password button animation */
.toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

/* Auth Tab Toggle */
.auth-tab {
    color: #9CA3AF;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: #D1D5DB;
}

.auth-tab.active {
    background-color: rgba(5, 150, 105, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==================================================================
   FLOATING ACTION BUTTONS
   ================================================================== */
/* Floating Action Buttons Responsive Logic */
.floating-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 9999px;
    background-color: #181818;
    border: 1px solid #383838;
    color: #CCCCCC;
    z-index: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    bottom: 88px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#back-to-top.with-search,
#watchparty-join-btn.with-search {
    bottom: 160px;
}

#back-to-top.with-search.with-wp {
    bottom: 232px;
}

#back-to-top.with-wp:not(.with-search) {
    bottom: 160px;
}

.floating-action-btn:hover {
    background-color: #272727;
    color: #FFFFFF;
    transform: translateY(-4px);
    border-color: #505050;
}

.floating-action-btn:active {
    transform: scale(0.92) translateY(-2px);
    background-color: #272727;
    transition: all 0.1s;
}

.floating-action-btn .material-icons-round {
    font-size: 32px;
    display: block;
}

.floating-action-btn svg {
    display: block;
    flex-shrink: 0;
}

#search-btn {
    z-index: 10000;
}

#watchparty-join-btn {
    z-index: 10001;
}

#back-to-top {
    z-index: 10002;
}

/* ==================================================================
   MODAL STYLES
   ================================================================== */
/* Payment Modal Styles */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0f0f11;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8), 0 0 50px rgba(34, 197, 94, 0.05);
}

.modal-backdrop.active .modal-content {
    transform: translateY(0) scale(1);
}

/* ==================================================================
   BONY CARD STYLES
   ================================================================== */
/* Bony Card Styles */
.bony-card {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.586;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bony-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
}

.card-chip {
    width: 45px;
    height: 34px;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card-chip::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(black 1px, transparent 1px),
        linear-gradient(90deg, black 1px, transparent 1px);
    background-size: 20px 20px, 15px 15px;
    background-position: 10px 10px;
    opacity: 0.1;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.bony-logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Improved select for better UX */
select#card-payment-method {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
}

select#card-payment-method option {
    background-color: #1a1a1a;
    color: white;
    padding: 15px;
}

/* Essential to stop browsers from seeing this as a password field, but allowed to be seen when toggled */
.mask-secure[type="password"] {
    -webkit-text-security: disc !important;
}

/* ==================================================================
   KEYFRAME ANIMATIONS
   ================================================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

@keyframes wave2 {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }

    50% {
        transform: translateY(20px) translateX(-10px) scale(1.05);
    }
}

/* ==================================================================
   LOADING & SPINNERS
   ================================================================== */
.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.custom-loader {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background:
        radial-gradient(farthest-side, #CCCCCC 94%, #0000) top/16px 16px no-repeat,
        conic-gradient(#272727 0%, #272727 30%, #CCCCCC 100%);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 16px), #000 0);
    mask: radial-gradient(farthest-side, #0000 calc(100% - 16px), #000 0);
    animation: s3 1s infinite linear;
}

@keyframes s3 {
    100% {
        transform: rotate(1turn)
    }
}

/* ==================================================================
   ICON STYLES (css.gg)
   ================================================================== */
.gg-girl,
.gg-girl::after,
.gg-girl::before {
    display: block;
    box-sizing: border-box;
    border-radius: 42px;
}

.gg-girl {
    position: relative;
    transform: scale(var(--ggs, 1));
    width: 20px;
    height: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 0 2px;
}

.gg-girl::after,
.gg-girl::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 2px;
    background: currentColor;
    box-shadow: 6px 0 0;
    left: 6px;
    top: 10px;
}

.gg-girl::after {
    width: 20px;
    height: 20px;
    top: -11px;
    left: -12px;
    box-shadow: 17px -4px 0 3px;
}

.gg-trophy {
    box-sizing: border-box;
    position: relative;
    display: block;
    transform: scale(var(--ggs, 1));
    width: 16px;
    height: 18px;
    border: 2px solid;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    margin: 2px auto;
}

.gg-trophy::after,
.gg-trophy::before {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
}

.gg-trophy::before {
    box-shadow:
        inset 0 0 0 2px,
        0 2px 0 0;
    bottom: -6px;
    width: 10px;
    height: 6px;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    left: 1px;
}

.gg-trophy::after {
    width: 22px;
    height: 8px;
    border-left: 2px solid;
    border-right: 2px solid;
    left: -5px;
    top: 1px;
}

/* ==================================================================
   UTILITY CLASSES
   ================================================================== */
.aspect-square {
    position: relative;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-3000 {
    animation-delay: 3s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animation-delay-5000 {
    animation-delay: 5s;
}

.animation-delay-500 {
    animation-delay: 0.5s;
}

.animation-delay-1500 {
    animation-delay: 1.5s;
}

.float {
    animation: float 3s ease-in-out infinite;
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.gradient-border {
    background: linear-gradient(45deg, #f59e0b, #ef4444, #8b5cf6, #06b6d4);
    background-size: 400% 400%;
    animation: gradient 3s ease infinite;
}

.hover-lift:hover {
    transform: translateY(-5px) scale(1.02);
    transition: all 0.3s ease;
}

.neon-text {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
}

/* ==================================================================
   SECTION & TAB VISIBILITY
   ================================================================== */
.section {
    display: block;
}

.section.hidden {
    display: none;
}

.main-store-tab {
    display: block;
}

.main-store-tab.hidden {
    display: none;
}

.fire-sub-section {
    display: block;
}

.fire-sub-section.hidden {
    display: none;
}

.diamantes-tab {
    display: block;
}

.diamantes-tab.hidden {
    display: none;
}

.parchis-sub-section {
    display: block;
}

.parchis-sub-section.hidden {
    display: none;
}

.ropas-sub-section {
    display: block;
}

.ropas-sub-section.hidden {
    display: none;
}

.mujer-sub-section {
    display: block;
}

.mujer-sub-section.hidden {
    display: none;
}

.hombre-sub-section {
    display: block;
}

.hombre-sub-section.hidden {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ==================================================================
   BODY & BACKGROUND
   ================================================================== */
/* Fondo negro estático */
html {
    color-scheme: dark;
}

body {
    position: relative;
    background: #000000 !important;
    overflow-x: hidden;
    color-scheme: dark;
}

body::before {
    content: none;
}

/* ==================================================================
   HEADER STYLES
   ================================================================== */
/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #000000 !important;
    border-bottom: 1px solid #000000 !important;
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    height: calc(var(--app-header-height) + var(--app-desktop-main-nav-height));
    display: flex;
    flex-direction: column;
}

/* When collapsed, slide header bar up off screen */
body.header-collapsed header {
    transform: translateY(calc(-1 * var(--app-header-height)));
}

body.area-inicio header {
    border-bottom: 1px solid #000000 !important;
}

body.area-tiendas header {
    border-bottom: 1px solid #000000 !important;
}

body.area-inversiones header {
    border-bottom: 1px solid #000000 !important;
}

body.area-perfil header {
    border-bottom: 1px solid #000000 !important;
}

/* ==================================================================
   DUAL PLAYER STYLES
   ================================================================== */
/* Dual Player Styles */
.player-tabs-container {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-tab-btn {
    flex: 1;
    padding: 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #98989D;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.player-tab-btn.active {
    background: #22c55e;
    color: #000;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.player-tab-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.movie-iframe-wrapper {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

#movie-player-iframe {
    width: 100%;
    height: 500px;
}

@media (max-width: 767px) {
    #movie-player-iframe {
        height: 250px;
    }

    .player-tabs-container {
        gap: 8px;
    }

    .player-tab-btn {
        font-size: 11px;
        padding: 10px;
    }
}

/* ==================================================================
   TOAST NOTIFICATIONS
   ================================================================== */
/* Toast Notifications Ultra-Premium Glassmorphism */
.notification-toast {
    position: fixed;
    bottom: 40px;
    right: 24px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    padding: 4px;
    padding-right: 24px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 200000;
    display: flex;
    align-items: center;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast.success {
    border-bottom: 2px solid rgba(34, 197, 94, 0.5);
}

.notification-toast.error {
    border-bottom: 2px solid rgba(239, 68, 68, 0.5);
}

.notification-toast.warning {
    border-bottom: 2px solid rgba(245, 158, 11, 0.5);
}

/* Header hidden (legacy - replaced by body.header-collapsed) */

/* ==================================================================
   CSS VARIABLES (ROOT)
   ================================================================== */
/* Navigation Barra */
:root {
    --app-header-height: 66px;
    --app-desktop-main-nav-height: 0px;
    --app-section-nav-height: 66px;
    --app-bottom-nav-height: 80px;
}

@media (min-width: 768px) {
    :root {
        --app-desktop-main-nav-height: 0px;
        --app-bottom-nav-height: 0px;
    }
}

@media (min-width: 768px) {
    :root {
        --app-header-height: 76px;
    }
}

/* ==================================================================
   NAVIGATION STYLES
   ================================================================== */
nav {
    position: fixed;
    top: calc(var(--app-header-height) + var(--app-desktop-main-nav-height));
    left: 0;
    right: 0;
    z-index: 99;
    background: #000000 !important;
    border-bottom: 1px solid rgba(80, 80, 80, 0.4) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Black bridge above nav to prevent gap with header during animation */
nav::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: calc(var(--app-header-height) + 4px);
    background: #000000;
    pointer-events: none;
}

/* Nav slides up when header is collapsed */
body.header-collapsed nav {
    transform: translateY(calc(-1 * var(--app-header-height)));
}

body.nav-hidden nav {
    transform: translateY(-66px);
}

body {
    padding-top: calc(var(--app-header-height) + var(--app-desktop-main-nav-height) + var(--app-section-nav-height));
    padding-bottom: var(--app-bottom-nav-height) !important;
}

.desktop-main-nav {
    display: none;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .desktop-main-nav {
        display: flex;
        height: var(--app-desktop-main-nav-height);
    }

    .bottom-nav {
        display: none;
    }
}

.top-main-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9999px;
    background: #181818;
    border: 1px solid #383838;
    color: #CCCCCC;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
}

.top-main-nav-btn:hover {
    background: #272727;
    color: #FFFFFF;
    transform: translateY(-1px);
    border-color: #505050;
}

.top-main-nav-btn.active {
    background: #272727;
    color: #FFFFFF;
    border-color: #505050;
}

.nav-btn:focus-visible,
.bottom-nav-btn:focus-visible,
.top-main-nav-btn:focus-visible,
.saldo-add-btn:focus-visible,
.scroll-arrow:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

/* ==================================================================
   SCROLL NAVIGATION ARROWS
   ================================================================== */
/* ?? Flechas de Navegación Inteligentes - Sistema YouTube */
.scroll-container {
    position: relative;
    overflow: visible;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #272727, #383838);
    border: 1px solid #383838;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scroll-arrow.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: fadeInArrow 0.3s ease-out;
}

.scroll-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    background: linear-gradient(135deg, #383838, #4a4a4a);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.scroll-arrow:active {
    transform: translateY(-50%) scale(0.95);
    transition: all 0.08s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-arrow:focus {
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.scroll-arrow-left {
    left: 6px;
}

.scroll-arrow-right {
    right: 6px;
}

.scroll-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.18s ease;
}

.scroll-arrow:hover svg {
    transform: scale(1.1);
}

/* Gradientes sutiles para indicar dirección de scroll */
.scroll-arrow-left::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 0;
    width: 15px;
    height: 100%;
    background: linear-gradient(to right, rgba(39, 39, 39, 0.1), transparent);
    pointer-events: none;
    border-radius: 0 50% 50% 0;
}

.scroll-arrow-right::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 0;
    width: 15px;
    height: 100%;
    background: linear-gradient(to left, rgba(39, 39, 39, 0.1), transparent);
    pointer-events: none;
    border-radius: 50% 0 0 50%;
}

/* Animaciones */
@keyframes fadeInArrow {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 767px) {
    .scroll-arrow {
        width: 44px;
        height: 44px;
    }

    .scroll-arrow svg {
        width: 20px;
        height: 20px;
    }

    .scroll-arrow-left {
        left: 6px;
    }

    .scroll-arrow-right {
        right: 6px;
    }
}

@media (max-width: 480px) {
    .scroll-arrow {
        width: 40px;
        height: 40px;
    }

    .scroll-arrow svg {
        width: 18px;
        height: 18px;
    }

    .scroll-arrow-left {
        left: 6px;
    }

    .scroll-arrow-right {
        right: 6px;
    }
}

/* ==================================================================
   BOTTOM NAVIGATION BAR
   ================================================================== */
/* Barra de Navegación Inferior - Mobile Style */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    border-top: 1px solid rgba(80, 80, 80, 0.4);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 12px 0;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #CCCCCC;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 6px 12px;
    flex: 1;
    max-width: 100px;
}

.bottom-nav-btn:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
}

.bottom-nav-btn.active {
    color: #FFFFFF;
}

.bottom-nav-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.bottom-nav-btn:hover svg {
    transform: scale(1.1);
}

.bottom-nav-btn span {
    font-size: 11px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==================================================================
   HEADER BAR STYLES
   ================================================================== */
.header-bar {
    height: var(--app-header-height);
    display: flex;
    align-items: center;
    width: 100%;
}

.header-bar-inner {
    width: 100%;
}

/* ==================================================================
   SALDO DISPLAY
   ================================================================== */
.unified-balance-card {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    height: 60px;
    /* Aumentado de 52px */
    overflow: hidden;
    transition: all 0.3s ease;
}

.balance-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    /* Aumentado de 16px */
    height: 100%;
    cursor: pointer;
    transition: background 0.2s;
}

.balance-section:hover {
    background: rgba(255, 255, 255, 0.05);
}

.balance-section .value {
    font-weight: 800;
    font-size: 24px;
    /* Aumentado de 20px */
    color: #ffffff;
}

.balance-section .currency-symbol {
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    margin-right: 2px;
}

.balance-section.tokens {
    color: #fbbf24;
}

.balance-section.tokens .value {
    color: #fbbf24;
}

.token-icon {
    font-size: 24px;
    /* Aumentado de 20px */
    margin-right: 10px;
}

.balance-section.add-action {
    color: #888;
    padding: 0 20px;
}

.balance-section.add-action:hover {
    color: #ffffff;
    background: rgba(34, 197, 94, 0.1);
}

.balance-divider {
    width: 1px;
    height: 28px;
    /* Aumentado para mayor visibilidad */
    background: #333;
}

.saldo-add-btn {
    display: none;
}

/* Desktop Specific removed to match mobile/tablet look */

/* ==================================================================
   SVG ICON STYLES
   ================================================================== */
/* SVG Icon Styles */
.svg-icon-white {
    fill: #ffffff;
}

.svg-icon-hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .bottom-nav-btn span {
        font-size: 10px;
    }

    .bottom-nav-btn svg {
        width: 22px;
        height: 22px;
    }

    .unified-balance-card {
        height: 52px;
        border-radius: 8px;
    }

    .balance-section {
        padding: 0 16px;
    }

    .balance-section .value {
        font-size: 20px;
    }

    .token-icon {
        font-size: 20px;
        margin-right: 6px;
    }

    .balance-section.add-action {
        padding: 0 18px;
    }

    .balance-section.add-action .material-icons-round {
        font-size: 24px;
    }

    .saldo-add-btn-inner .material-icons-round {
        font-size: 20px;
    }

    /* Botón Hamburguesa Mobile */
    .hamburger-btn {
        width: 46px;
        height: 46px;
        border-radius: 8px;
    }

    .hamburger-icon-lines {
        width: 20px;
        gap: 5px;
        height: auto;
    }

    .hamburger-icon-lines span {
        height: 2px;
        /* Usamos 2px exactos en móvil para evitar que se vea desigual */
    }

    .hamburger-btn.active .hamburger-icon-lines span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-btn.active .hamburger-icon-lines span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Sidebar Desktop Styles */
.sidebar-only-btn {
    display: none !important;
}

/* Ensure horizontal layout on mobile/tablet */
.bottom-nav-center-group {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex: 1;
}

@media (max-width: 767px) {

    /* Let buttons be direct children of .bottom-nav for mobile spacing */
    .bottom-nav-center-group {
        display: contents;
    }
}

@media (min-width: 768px) {

    /* Tablet y Laptop: Mostrar hamburguesa en el header */
    #hamburger-btn {
        display: flex !important;
    }

    /* Ocultar hamburguesa de la sidebar en tablet */
    .sidebar-only-btn {
        display: none !important;
    }

    /* Computadoras grandes: Mover hamburguesa a la sidebar */
    @media (min-width: 1024px) {
        #hamburger-btn {
            display: none !important;
        }

        .sidebar-only-btn {
            display: flex !important;
            margin-bottom: 20px;
            /* Space from top */
            flex: none;
        }
    }

    /* Transformar bottom-nav en sidebar vertical */
    .bottom-nav {
        width: 100px;
        height: 100vh;
        left: 0;
        top: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: space-between;
        padding: 30px 0;
        border-top: none;
        border-right: 1px solid rgba(80, 80, 80, 0.4);
        border-radius: 0;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.4);
        background: #000000;
        z-index: 1000;
        overflow-y: auto;
        /* Scrollbar hiding logic */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .bottom-nav::-webkit-scrollbar {
        display: none;
    }

    .bottom-nav-center-group {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        flex: 1;
        width: 100%;
    }

    .bottom-nav-btn {
        max-width: none;
        width: 100%;
        padding: 12px 0;
        flex: none;
    }

    /* Ajustar Header y Contenido Principal */
    header {
        left: 100px !important;
        width: calc(100% - 100px) !important;
        right: 0 !important;
    }

    .header-bar {
        max-width: none !important;
        margin: 0 !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Ajustar navegación de secciones */
    nav {
        left: 100px !important;
        width: calc(100% - 100px) !important;
        right: 0 !important;
    }

    nav .max-w-full {
        max-width: none !important;
        margin: 0 !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    body {
        padding-left: 100px !important;
        padding-bottom: 0 !important;
    }

    /* Ajustar posición de botones flotantes en desktop */
    .floating-action-btn {
        bottom: 32px;
    }

    #back-to-top.with-search,
    #watchparty-join-btn.with-search {
        bottom: 104px;
    }

    #back-to-top.with-search.with-wp {
        bottom: 176px;
    }

    #back-to-top.with-wp:not(.with-search) {
        bottom: 104px;
    }
}

/* ==================================================================
   POSTER PLACEHOLDER
   ================================================================== */
/* Estilos para el placeholder de posters */
.poster-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1c1c1e;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.poster-placeholder img {
    width: 60px !important;
    height: auto !important;
    opacity: 0.5;
    animation: logo-pulse 1.5s infinite ease-in-out;
}

@keyframes logo-pulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.95);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.img-finished-loading .poster-placeholder {
    opacity: 0;
    pointer-events: none;
}

/* ==================================================================
   HOME (INICIO) SECTION
   ================================================================== */
/* ==================== HOME (INICIO) SECTION ==================== */
.hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.5rem, 5vw, 4rem);
}

.hero-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: clamp(1.8rem, 6vw, 3.8rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.hero-badge-container {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-badge {
    background: #22c55e;
    color: #000;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 6px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.hero-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 600px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.featured-row {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1rem;
    color: #888;
    margin-top: 0.5rem;
    font-weight: 500;
}

.section-title span.indicator {
    width: 5px;
    height: 32px;
    background: #22c55e;
    border-radius: 4px;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.btn-explore:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(34, 197, 94, 0.1);
}

.btn-explore .material-icons-round {
    font-size: 1.1rem;
    transition: transform 0.4s ease;
}

.btn-explore:hover .material-icons-round {
    transform: translateX(4px);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card p {
    color: #888;
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .hero-overlay {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .info-grid {
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

/* ==================================================================
   CONTAINER CUSTOM
   ================================================================== */
.container-custom {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ==================================================================
   BALANCE GLOW EFFECT
   ================================================================== */
.balance-glow {
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5),
        0 0 40px rgba(34, 197, 94, 0.3);
}

/* ==================================================================
   EPISODE ITEM STYLES
   ================================================================== */
.episode-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateX(4px);
}

.episode-item.active {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
}

/* ==================================================================
   FORM ERROR MESSAGES
   ================================================================== */
.error-message,
.field-error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* ==================================================================
   PASSWORD TOGGLE ICON STATES
   ================================================================== */
.eye-open,
.eye-closed {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    display: inline-flex;
    /* Removed !important to allow .hidden to work */
    align-items: center;
    justify-content: center;
}

.eye-open.hidden,
.eye-closed.hidden,
.hidden {
    display: none !important;
}

/* Desactivar iconos nativos de navegadores (Edge/IE) */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

.eye-open:hover,
.eye-closed:hover {
    opacity: 1;
    color: #a855f7;
}

/* ==================================================================
   SIDE PANEL (Menú Hamburguesa)
   ================================================================== */

/* Botón Hamburguesa */
.hamburger-btn {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.hamburger-icon-lines {
    width: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Espaciado fijo para evitar errores de redondeo del navegador */
    justify-content: center;
    align-items: center;
    height: auto;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon-lines span {
    display: block;
    width: 100%;
    height: 2px;
    /* Grosor fijo de 2px */
    background-color: currentColor;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Transformar a X cuando está activo */
.hamburger-btn.active .hamburger-icon-lines span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-icon-lines span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-btn.active .hamburger-icon-lines span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger-btn:hover,
.hamburger-btn.active {
    background: #222222;
    border-color: #444444;
    color: #22c55e;
}

.hamburger-btn:active {
    transform: scale(0.92);
}

.hamburger-btn .material-icons-round {
    transition: transform 0.3s ease;
}

.hamburger-btn:hover .material-icons-round {
    transform: rotate(90deg);
}

/* Overlay */
.side-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.side-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Panel Principal */
.side-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 310px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #0a0a0a;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 9999;
    transform: translateX(-105%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
}

.side-panel.active {
    transform: translateX(0);
}

/* Header del Panel */
.side-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.side-panel-user {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.side-panel-user:hover {
    background: rgba(255, 255, 255, 0.04);
}

.side-panel-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: rotate(3deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.side-panel-user:hover .side-panel-avatar {
    transform: rotate(0deg);
}

.side-panel-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(to top right, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    overflow: hidden;
}

.side-panel-avatar-inner span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.side-panel-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-panel-user-name {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.side-panel-user-action {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    line-height: 1.2;
}

.side-panel-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.side-panel-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Opciones */
.side-panel-options {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card de Opción */
.side-panel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.side-panel-card:hover {
    background: #161616;
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.side-panel-card:active {
    transform: scale(0.98);
}

.side-panel-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.side-panel-card-icon .material-icons-round {
    font-size: 22px;
}

.side-panel-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.side-panel-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.side-panel-card-desc {
    font-size: 11.5px;
    font-weight: 500;
    color: #666;
    line-height: 1.3;
}

/* Formularios expandibles */
.side-panel-form {
    padding: 0 16px 8px;
    animation: sidePanelFormIn 0.3s ease;
}

@keyframes sidePanelFormIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

.side-panel-textarea {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    font-size: 13px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 12px 14px;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
    margin-bottom: 8px;
}

.side-panel-textarea:focus {
    border-color: rgba(34, 197, 94, 0.4);
}

.side-panel-textarea::placeholder {
    color: #444;
}

.side-panel-form-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #22c55e;
    border: none;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.side-panel-form-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.side-panel-form-btn:active {
    transform: scale(0.97);
}

.side-panel-form-btn-error {
    background: #ef4444;
    color: #fff;
}

.side-panel-form-btn-error:hover {
    background: #dc2626;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Body scroll lock when panel is open */
body.side-panel-open {
    overflow: hidden;
}


/* 🚀 HIGH PERFORMANCE: Hide background layers directly. 
   Removing headers and main sections stops their rendering and animations. */
body.player-active header,
body.player-active nav,
body.player-active .bottom-nav,
body.player-active .area,
body.player-active .section,
body.player-active .container-custom,
body.player-active footer,
body.player-active #search-btn,
body.player-active #back-to-top {
    display: none !important;
}

/* Ensure the modal and its content remain visible */
body.player-active #movie-player-modal {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: #000 !important;
}

/* Ensure notifications still work without using slow wildcard selectors */
body.player-active #notification-container,
body.player-active .notification {
    display: block !important;
    animation-play-state: running !important;
}

/* Ensure the custom player inside the modal is also forced visible */
body.player-active #bony-player {
    visibility: visible !important;
    opacity: 1 !important;
}

/* ==================================================================
   PWA iOS STANDALONE MODE - Safe Area & Adjustments
   ================================================================== */

/* Soporte para safe-area-inset en iPhones con notch */
@supports (padding-top: env(safe-area-inset-top)) {
    /* Standalone mode: Ajustar header para notch */
    @media all and (display-mode: standalone) {
        header {
            padding-top: env(safe-area-inset-top, 0px) !important;
            height: calc(var(--app-header-height) + var(--app-desktop-main-nav-height) + env(safe-area-inset-top, 0px)) !important;
        }

        /* Ajustar la posición de la navegación (que está debajo del header) */
        nav {
            top: calc(var(--app-header-height) + var(--app-desktop-main-nav-height) + env(safe-area-inset-top, 0px)) !important;
        }

        /* Ajustar navegación inferior para barra Home de iOS */
        nav.fixed.bottom-0,
        .fixed.bottom-0.w-full {
            padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        }

        /* Ajustar panel lateral para no solaparse con el notch */
        .side-panel {
            padding-top: env(safe-area-inset-top, 0px) !important;
        }

        /* Ajustar body para evitar cortes, sumando el safe area al espacio original */
        body {
            padding-top: calc(var(--app-header-height) + var(--app-desktop-main-nav-height) + var(--app-section-nav-height) + env(safe-area-inset-top, 0px)) !important;
            padding-bottom: calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom, 0px)) !important;
        }
    }
}

/* También para el meta tag apple-mobile-web-app-capable */
@media all and (display-mode: standalone) {

    /* Prevenir el overscroll bounce nativo de iOS que interfiere con pull-to-refresh */
    html {
        overscroll-behavior-y: none;
    }

    body {
        overscroll-behavior-y: none;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==================================================================
   PWA - Splash Screen CSS & Keyboard Helper
   ================================================================== */

/* iOS Splash Screen (CSS Only Approach) */
#pwa-splash-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#pwa-splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

#pwa-splash-screen img {
    width: 120px;
    height: 120px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ocultar elementos cuando el teclado está abierto en iOS/Android PWA */
body.keyboard-open nav.fixed.bottom-0,
body.keyboard-open .fixed.bottom-0.w-full {
    display: none !important;
}

body.keyboard-open {
    padding-bottom: 0 !important;
}