:root {
    --tiles-per-row: 5;
    --gap: 20px;
    --bg-color: #0f0f13;
    --surface-color: #1a1a24;
    --text-primary: #f0f0f5;
    --text-secondary: #9aa0a6;
    --accent-color: #ff9800;
    --success-color: #4caf50;
    --error-color: #f44336;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --h1-gradient: linear-gradient(90deg, #fff, #999);
    --controls-bg: rgba(26, 26, 36, 0.95);
    --controls-shadow: rgba(0, 0, 0, 0.6);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.2);
    --badge-bg: rgba(255, 255, 255, 0.1);
    --badge-text: var(--text-primary);
}

[data-theme="light"] {
    --bg-color: #f5f5f7;
    --surface-color: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --h1-gradient: linear-gradient(90deg, #111, #444);
    --controls-bg: rgba(255, 255, 255, 0.9);
    --controls-shadow: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(0, 0, 0, 0.05);
    --input-border: rgba(0, 0, 0, 0.1);
    --badge-bg: rgba(0, 0, 0, 0.05);
    --badge-text: #1d1d1f;
}

[data-theme="green"] {
    --bg-color: #0a140d;
    --surface-color: #122417;
    --text-primary: #e8f5e9;
    --text-secondary: #a5d6a7;
    --accent-color: #4caf50;
    --h1-gradient: linear-gradient(90deg, #a5d6a7, #4caf50);
    --controls-bg: rgba(18, 36, 23, 0.95);
    --controls-shadow: rgba(0, 0, 0, 0.6);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.2);
}

[data-theme="blue"] {
    --bg-color: #0a111a;
    --surface-color: #121e2e;
    --text-primary: #e3f2fd;
    --text-secondary: #90caf9;
    --accent-color: #2196f3;
    --h1-gradient: linear-gradient(90deg, #90caf9, #2196f3);
    --controls-bg: rgba(18, 30, 46, 0.95);
    --controls-shadow: rgba(0, 0, 0, 0.6);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.2);
}

[data-theme="red"] {
    --bg-color: #1a0a0a;
    --surface-color: #2b1111;
    --text-primary: #ffebee;
    --text-secondary: #ef9a9a;
    --accent-color: #f44336;
    --h1-gradient: linear-gradient(90deg, #ef9a9a, #f44336);
    --controls-bg: rgba(43, 17, 17, 0.95);
    --controls-shadow: rgba(0, 0, 0, 0.6);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.2);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    margin: 0;
    padding: 90px 20px 40px 20px;
    line-height: 1.5;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

h1 {
    margin: 0 0 5px 0;
    font-weight: 800;
    font-size: 2.5rem;
    background: var(--h1-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
}

.stats-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 20px;
    margin-top: 0;
}

.settings-btn {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    font-size: 0.95rem;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-sizing: border-box;
    white-space: nowrap;
}

.settings-btn:hover {
    background: var(--accent-color);
}

.settings-btn span {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.settings-btn:hover span {
    transform: rotate(45deg);
}

.controls-wrapper {
    position: sticky;
    top: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    gap: 10px;
}

.hamburger-btn {
    display: none;
    background: var(--controls-bg);
    color: var(--text-primary);
    border: 1px solid var(--input-border);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 15px var(--controls-shadow);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.hamburger-btn:hover {
    background: var(--accent-color);
}

.controls {
    display: flex;
    align-items: center;
    background: var(--controls-bg);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: 0 8px 30px var(--controls-shadow);
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.controls.collapsed {
    display: none !important;
}

.controls-divider {
    width: 1px;
    height: 24px;
    background: var(--input-border);
    margin: 0 5px;
}

.header-actions {
    display: none;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    right: 30px;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s;
    user-select: none;
}

.favorite-btn:hover {
    transform: scale(1.15);
}

.favorite-btn i.icon-heart8 {
    color: #fff;
    text-shadow: 0px 0px 2px #000;
}

.favorite-btn i.icon-heart7 {
    color: #f44336;
    text-shadow: 0px 0px 3px #f44336;
}

.favorite-btn i {
    font-size: 1.3rem;
    transition: all 0.3s;
}

.star-rating-container {
    max-width: calc(100% - 20px);
    overflow: hidden;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .slider-group {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .stars-outer {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .star-rating-text {
        font-size: 0.75rem;
    }

    .star-rating-container {
        padding: 3px 6px;
        bottom: 5px;
        left: 5px;
    }
}

.search-input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    min-width: 250px;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

select option {
    background-color: var(--surface-color);
    color: var(--text-primary);
}

.controls label {
    margin-right: 0;
    font-weight: 500;
    color: var(--text-secondary);
}

.controls input[type="range"] {
    accent-color: var(--accent-color);
    cursor: pointer;
}

.controls span {
    margin-left: 0;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(var(--tiles-per-row), 1fr);
    gap: var(--gap);
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 1400px) {
    :root {
        --tiles-per-row: 4 !important;
    }
}

@media (max-width: 1024px) {
    :root {
        --tiles-per-row: 3 !important;
    }
}

@media (max-width: 768px) {
    :root {
        --tiles-per-row: 2 !important;
    }
}

@media (max-width: 480px) {
    :root {
        --tiles-per-row: 1 !important;
    }
}

.tile {
    background-color: var(--surface-color);
    border-radius: 12px;
    overflow: visible;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px var(--controls-shadow);
    transform: translateZ(0);
}

.tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    pointer-events: none;
    transition: border-color 0.3s;
    z-index: 100;
}

.tile:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.tile:hover::after {
    border-color: var(--accent-color);
}

.cover-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--surface-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 11px 11px 0 0;
    transform: translateZ(0);
}

.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.tile:hover .cover {
    transform: scale(1.05);
}

.cover.grayscale {
    filter: grayscale(100%);
}

.status-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: transparent;
    display: none;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.status-indicator.loading {
    display: block;
    border: 2px solid #fff;
    border-top-color: transparent;
    background: transparent;
    animation: spin 1s linear infinite;
    box-shadow: none;
}

.status-indicator.green {
    display: block;
    background-color: var(--success-color);
    box-shadow: 0 0 12px var(--success-color);
    border: 2px solid #fff;
}

.status-indicator.red {
    display: block;
    background-color: var(--error-color);
    box-shadow: 0 0 12px var(--error-color);
    border: 2px solid #fff;
}

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

.info {
    padding: 16px;
    border-radius: 0 0 12px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: transparent;
    position: relative;
    z-index: 20;
}

.title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    margin-top: 2px;
}

.release-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

.details {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    border-top: 1px solid var(--input-border);
    padding-top: 12px;
}

.details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-badge {
    background: var(--badge-bg);
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--badge-text);
}

.rating-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.rating-box:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rating-item span {
    color: var(--accent-color);
    font-weight: bold;
}

.rating-error {
    color: var(--error-color);
    text-decoration: underline;
    font-weight: bold;
}

.languages-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lang-badge {
    background: var(--badge-bg);
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--badge-text);
    min-height: 24px;
}

.lang-badge span.icon {
    font-size: 0.9rem;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.lang-flags {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.lang-flag-img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.lang-plus {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-left: 2px;
}

.lang-interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 10px;
    background: var(--input-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
}

.lang-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
}

.links-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.links-btn {
    background: var(--badge-bg);
    border: none;
    color: var(--text-secondary);
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .links-btn {
    color: var(--text-primary);
}

.links-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.links-content {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    background: var(--controls-bg);
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 5000;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.links-content.show {
    display: block !important;
}

.links-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 25px;
    /* Increased to ensure overlap */
    background: transparent;
    pointer-events: all;
}

.links-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 25px;
    background: transparent;
    pointer-events: all;
}

.links-content a {
    color: var(--text-primary);
    padding: 10px 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    transition: all 0.2s;
    border-bottom: 1px solid var(--input-border);
}

.links-content a:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.links-content a:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.links-content a:hover {
    background: var(--accent-color);
    color: white;
}

.emoji-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Rimosso hover per evitare aperture accidentali e conflitti con il gap */
/* .links-dropdown:hover .links-content {
    display: block;
} */

.lang-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
    margin: 0;
    cursor: pointer;
}

.star-rating-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    z-index: 10;
}

.star-rating-container.visible {
    opacity: 1;
}

.stars-outer {
    display: inline-block;
    position: relative;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #ccc;
    letter-spacing: 2px;
}

.stars-outer::before {
    content: "★★★★★★★★★★";
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: var(--accent-color);
}

.stars-inner::before {
    content: "★★★★★★★★★★";
}

.star-rating-text {
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 6px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.loading-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 50px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal h2 {
    margin-top: 0;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.modal-form input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 8px;
    font-family: inherit;
}

.modal-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.modal-btn.danger {
    background: var(--error-color);
    margin-top: 10px;
}

.close-modal {
    text-align: right;
    cursor: pointer;
    color: #888;
}

.close-modal:hover {
    color: white;
}

.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 28, 28, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.video-modal-content {
    width: 80vw;
    aspect-ratio: 16/9;
    position: relative;
}

.close-video-modal {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, .1);
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.close-video-modal:hover {
    background: var(--error-color);
    transform: scale(1.1) rotate(90deg);
}

iframe#youtubeIframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.trailer-btn {
    background: var(--badge-bg);
    border: none;
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    display: none;
    align-items: center;
    gap: 4px;
    position: relative;
    transition: background 0.2s;
}

.trailer-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.trailer-menu {
    position: absolute;
    bottom: 120%;
    right: 0;
    background: var(--controls-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    z-index: 1000;
    display: none;
    min-width: 220px;
    max-height: 215px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.trailer-menu.show {
    display: block;
}

.trailer-menu::-webkit-scrollbar {
    width: 6px;
}

.trailer-menu::-webkit-scrollbar-track {
    background: transparent;
}

.trailer-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.trailer-menu::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.trailer-menu-item {
    padding: 10px 15px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
    font-size: 0.9rem;
}

.trailer-menu-item:hover {
    background: var(--input-bg);
}

/* ==========================================
   CUSTOM ALERT DIALOG DESIGN SYSTEM
   ========================================== */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
}

.custom-alert-overlay.show {
    opacity: 1;
}

.custom-alert-modal {
    background: var(--surface-color);
    border: 1px solid var(--input-border);
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.85) translateY(-30px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.custom-alert-modal.show {
    transform: scale(1) translateY(0);
}

/* Variations styling matching active site accent variables */
.custom-alert-modal.error {
    border-top: 5px solid var(--error-color);
}

.custom-alert-modal.warning {
    border-top: 5px solid var(--accent-color);
}

.custom-alert-modal.success {
    border-top: 5px solid #4caf50;
}

.custom-alert-modal.info {
    border-top: 5px solid #2196f3;
}

.custom-alert-modal.question {
    border-top: 5px solid #9c27b0;
}

.custom-alert-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 5px;
    animation: alertIconBounce 0.5s ease;
}

.custom-alert-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.custom-alert-message {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.custom-alert-btn {
    background: var(--accent-color);
    color: var(--text-primary);
    border: none;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.custom-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.custom-alert-btn:active {
    transform: translateY(0);
}

@keyframes alertIconBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* New User Top Bar & Dropdown Down Styling */
.top-user-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    padding: 12px 24px;
    //border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: var(--text-primary);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.links-content.dropdown-down {
    bottom: auto !important;
    top: calc(100% + 8px) !important;
}

[data-theme="light"] .top-user-bar {
    background: rgba(255, 255, 255, 0.45) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Prevent library label text from rotating on button hover */
.settings-btn:hover span#currentLibraryLabel {
    transform: none !important;
}

/* Align left-side dropdown menus to the left to prevent clipping off-screen */
.top-bar-left .links-content {
    right: auto !important;
    left: 0 !important;
}