    .manifest-wrap {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .manifest-label {
        font-size: 0.73rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #94a3b8;
        margin: 0;
    }
    .manifest-box {
        position: relative;
        display: flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 10px;
        transition: all 0.2s ease;
        cursor: pointer;
    }
    .manifest-box:hover {
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.04);
    }
    .manifest-input {
        width: 100%;
        background: transparent;
        border: none;
        outline: none;
        color: #f1f5f9;
        font-family: monospace;
        font-size: 0.8125rem;
        padding: 0.62rem 0.9rem;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    .manifest-input::selection {
        background: transparent;
    }

    .rec-section-header {
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: #fff;
        margin-top: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .rec-section-sub {
        font-size: 0.85rem;
        color: #888;
        margin-bottom: 1.5rem;
    }

    .bg-discovery {
        background-color: #6f42c1 !important;
        color: #fff !important;
    }

    .bg-search {
        background-color: #0284c7 !important;
        color: #fff !important;
    }

    .bg-dubbed {
        background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
        color: #fff !important;
    }

    .bg-simkl {
        background-color: #e27d00 !important;
        color: #fff !important;
    }

    .rec-label {
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        color: #8c9ba5;
        text-transform: uppercase;
        margin-bottom: 0.5rem;
        display: block;
    }

    .rec-select {
        width: 100%;
        background-color: #0d0d0d;
        border: 1px solid #2a2a2a;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        color: #fff;
        font-size: 0.95rem;
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238c9ba5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 0.75rem;
        transition: border-color 0.2s, background-color 0.2s;
        cursor: pointer;
    }

    .rec-select:hover {
        background-color: #121212;
    }

    .rec-select:focus {
        outline: none;
        border-color: #02a9ff;
    }

    .rec-subtext {
        font-size: 0.75rem;
        color: #888;
        margin-top: 0.4rem;
    }

    /* Genre lists container styling */
    .genre-scroll-container {
        height: 200px;
        overflow-y: auto;
        border: 1px solid rgba(255, 255, 255, 0.06);
        background-color: rgba(0, 0, 0, 0.25);
        border-radius: 10px;
        padding: 0.5rem;
    }

    /* Scrollbar styling */
    .genre-scroll-container::-webkit-scrollbar {
        width: 6px;
    }

    .genre-scroll-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .genre-scroll-container::-webkit-scrollbar-thumb {
        background: #333;
        border-radius: 3px;
    }

    .genre-scroll-container::-webkit-scrollbar-thumb:hover {
        background: #444;
    }

    .genre-checkbox-label {
        display: flex;
        align-items: center;
        padding: 0.35rem 0.5rem;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.85rem;
        color: #bbb;
        transition: background-color 0.2s, color 0.2s;
    }

    .genre-checkbox-label:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: #fff;
    }

    .genre-checkbox {
        margin-right: 0.75rem;
        width: 1rem;
        height: 1rem;
        background-color: #0d0d0d;
        border: 2px solid #555;
        border-radius: 3px;
        cursor: pointer;
        appearance: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: background-color 0.2s, border-color 0.2s;
    }

    .genre-checkbox:checked {
        background-color: #fff;
        border-color: #fff;
    }

    .genre-checkbox:checked::after {
        content: "\f00c";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.65rem;
        color: #000;
        position: absolute;
    }

    /* Gemini API Input Styling */
    .gemini-input-wrapper {
        display: flex;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        padding: 0.55rem 0.85rem;
        transition: border-color 0.2s;
    }

    .gemini-input-wrapper:focus-within {
        border-color: #02a9ff;
    }

    .gemini-icon {
        color: #02a9ff;
        margin-right: 0.75rem;
    }

    .gemini-input {
        flex-grow: 1;
        min-width: 0;
        background: transparent;
        border: none;
        color: #fff;
        outline: none;
        font-size: 0.95rem;
    }

    .gemini-btn {
        background: transparent;
        border: none;
        color: #888;
        padding: 0.25rem 0.5rem;
        cursor: pointer;
        transition: color 0.2s;
        flex-shrink: 0;
    }

    .gemini-btn:hover {
        color: #fff;
    }

    .catalog-sort-subcard {
        background: transparent;
        border: none;
        padding: 0.25rem 0;
        margin-bottom: 0.75rem;
    }
    @media (min-width: 576px) {
        .catalog-sort-subcard {
            background: rgba(255, 255, 255, 0.025);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 0.75rem;
            padding: 0.75rem 1rem;
            margin-bottom: 0.65rem;
        }
    }

    .badge-status-connected {
        background: rgba(34, 197, 94, 0.1) !important;
        border: 1px solid rgba(34, 197, 94, 0.25) !important;
        color: #4ade80 !important;
        font-weight: 500;
    }
    .badge-status-expired {
        background: rgba(239, 68, 68, 0.1) !important;
        border: 1px solid rgba(239, 68, 68, 0.25) !important;
        color: #f87171 !important;
        font-weight: 500;
    }
    .badge-status-disconnected {
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: #94a3b8 !important;
        font-weight: 500;
    }

    .btn-mal,
    .btn-anilist,
    .btn-simkl,
    .btn-disconnect {
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.85rem;
        padding: 0.55rem 1.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease-in-out;
        border: none;
        text-decoration: none;
    }

    @media (max-width: 575.98px) {

        .btn-mal,
        .btn-anilist,
        .btn-simkl,
        .btn-disconnect {
            flex: 1 1 0;
            min-width: 0;
            padding: 0.55rem 0.5rem;
        }
    }

    .btn-disconnect {
        background: rgba(220, 53, 69, 0.08);
        border: 1px solid rgba(220, 53, 69, 0.35);
        color: #f38b8b;
    }

    .btn-disconnect:hover {
        background: rgba(220, 53, 69, 0.2);
        border-color: #e74c3c;
        color: #fff;
    }

    .nested-subcard {
        background: rgba(255, 255, 255, 0.025);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 10px;
        padding: 1rem 1.15rem;
        margin-top: 0.75rem;
        margin-bottom: 1rem;
    }


    /* Custom Dropdown select menu styling */
    .custom-select-wrapper {
        position: relative;
        user-select: none;
        width: 100%;
    }

    /* Custom Select Component (Modern Dark Glass / Radix Popover Design) */
    .custom-select-wrapper {
        position: relative;
        user-select: none;
    }

    .custom-select {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #141416;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        min-height: 40px;
        padding: 0.62rem 0.9rem;
        color: #f1f5f9;
        font-size: 0.85rem;
        cursor: pointer;
        transition: border-color 0.18s ease, background-color 0.18s ease;
        outline: none !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .custom-select:hover {
        background-color: rgba(255, 255, 255, 0.035);
        border-color: rgba(255, 255, 255, 0.18);
    }

    .custom-select.active {
        border-color: rgba(255, 255, 255, 0.22);
        background-color: rgba(255, 255, 255, 0.035);
    }

    .custom-select .fa-chevron-down {
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        font-size: 0.8rem;
        color: #94a3b8;
    }

    .custom-select.active .fa-chevron-down {
        transform: rotate(180deg);
    }

    .custom-options-menu {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        background: #141416;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        z-index: 1050;
        display: none;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
        padding: 0.35rem;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        max-height: 290px;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
        animation: fadeInTab 0.15s ease;
    }
    .custom-options-menu::-webkit-scrollbar {
        display: block;
        width: 6px;
    }
    .custom-options-menu::-webkit-scrollbar-track {
        background: transparent;
        margin: 4px 0;
    }
    .custom-options-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.25);
        border-radius: 4px;
    }
    .custom-options-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.45);
    }

    .custom-options-menu.show {
        display: block;
    }

    .custom-option-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 0.6rem 0.85rem;
        border-radius: 8px;
        font-size: 0.84rem;
        color: #cbd5e1;
        cursor: pointer;
        transition: background-color 0.15s ease, color 0.15s ease;
        text-align: left;
    }

    .custom-option-item:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: #ffffff;
    }

    .custom-option-item.selected {
        background-color: rgba(56, 189, 248, 0.12);
        color: #38bdf8 !important;
        font-weight: 600;
    }

    .custom-option-item::after {
        content: "\f00c";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.8rem;
        color: #38bdf8;
        display: none;
        margin-left: auto;
        padding-left: 8px;
        flex-shrink: 0;
    }

    .custom-option-item.selected::after {
        display: inline-block;
    }

    /* Sidebar & Responsive Navigation */
    .anisync-sidebar {
        background: #141416;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        padding: 1.15rem 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    .anisync-sidebar-link {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 0.68rem 0.8rem;
        border-radius: 9px;
        border: 1px solid transparent;
        background: transparent;
        color: #94a3b8;
        font-size: 0.84rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
        text-align: left;
        text-decoration: none;
        white-space: nowrap;
    }
    .anisync-sidebar-link i {
        font-size: 0.95rem;
        width: 18px;
        text-align: center;
        transition: transform 0.2s ease;
    }
    .anisync-sidebar-link:hover i {
        transform: scale(1.15);
    }

    /* Unique Distinctive Colors per Tab */
    /* 1. Trackers (Cyan) */
    .anisync-sidebar-link[data-tab="trackers"]:hover {
        color: #38bdf8;
        background: rgba(56, 189, 248, 0.06);
    }
    .anisync-sidebar-link[data-tab="trackers"].active {
        color: #38bdf8;
        background: rgba(56, 189, 248, 0.12);
        border-color: rgba(56, 189, 248, 0.32);
        font-weight: 600;
        box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
    }

    /* 2. Catalogs (Indigo / Violet) */
    .anisync-sidebar-link[data-tab="catalogs"]:hover {
        color: #818cf8;
        background: rgba(129, 140, 248, 0.06);
    }
    .anisync-sidebar-link[data-tab="catalogs"].active {
        color: #a5b4fc;
        background: rgba(129, 140, 248, 0.12);
        border-color: rgba(129, 140, 248, 0.32);
        font-weight: 600;
        box-shadow: 0 0 16px rgba(129, 140, 248, 0.12);
    }

    /* 3. Appearance (Amber / Gold) */
    .anisync-sidebar-link[data-tab="appearance"]:hover {
        color: #fbbf24;
        background: rgba(251, 191, 36, 0.06);
    }
    .anisync-sidebar-link[data-tab="appearance"].active {
        color: #fde047;
        background: rgba(251, 191, 36, 0.12);
        border-color: rgba(251, 191, 36, 0.32);
        font-weight: 600;
        box-shadow: 0 0 16px rgba(251, 191, 36, 0.12);
    }

    /* 4. Metadata (Emerald / Mint) */
    .anisync-sidebar-link[data-tab="metadata"]:hover {
        color: #34d399;
        background: rgba(52, 211, 153, 0.06);
    }
    .anisync-sidebar-link[data-tab="metadata"].active {
        color: #6ee7b7;
        background: rgba(52, 211, 153, 0.12);
        border-color: rgba(52, 211, 153, 0.32);
        font-weight: 600;
        box-shadow: 0 0 16px rgba(52, 211, 153, 0.12);
    }

    /* 5. Install (Rose / Coral) */
    .anisync-sidebar-link[data-tab="install"]:hover {
        color: #f87171;
        background: rgba(248, 113, 113, 0.06);
    }
    .anisync-sidebar-link[data-tab="install"].active {
        color: #fca5a5;
        background: rgba(248, 113, 113, 0.12);
        border-color: rgba(248, 113, 113, 0.32);
        font-weight: 600;
        box-shadow: 0 0 16px rgba(248, 113, 113, 0.12);
    }

    @keyframes sectionGlow {
        0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
        50% { box-shadow: 0 0 18px 4px rgba(245, 158, 11, 0.4); }
        100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
    }
    .glow-highlight {
        animation: sectionGlow 1.8s ease-in-out;
        border-color: rgba(245, 158, 11, 0.5) !important;
    }

    /* Search Bar & Dropdown */
    .anisync-search-wrap {
        position: relative;
    }
    .anisync-search-input {
        background: rgba(255, 255, 255, 0.035) !important;
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
        color: #f1f5f9 !important;
        border-radius: 9px !important;
        padding: 0.58rem 1rem 0.58rem 2.2rem !important;
        font-size: 0.8125rem !important;
        transition: all 0.2s ease;
    }
    .anisync-search-input:focus {
        border-color: rgba(2, 169, 255, 0.4) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        box-shadow: 0 0 0 2px rgba(2, 169, 255, 0.15) !important;
    }
    .anisync-search-wrap .search-icon {
        position: absolute;
        left: 11px;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
        font-size: 0.8125rem;
        pointer-events: none;
    }
    .search-results-dropdown {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        z-index: 1050;
        background: #18181b;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        max-height: 320px;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
        scrollbar-width: thin;
    }
    .search-result-item {
        padding: 0.65rem 0.85rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        transition: background 0.15s ease;
        box-sizing: border-box;
    }
    .search-result-item:last-child {
        border-bottom: none;
    }
    .search-result-item:hover, .search-result-item.selected {
        background: rgba(255, 255, 255, 0.06);
    }
    .search-badge {
        font-size: 0.625rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 2px 6px;
        border-radius: 4px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .search-badge-trackers { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.25); }
    .search-badge-catalogs { background: rgba(129, 140, 248, 0.12); color: #a5b4fc; border: 1px solid rgba(129, 140, 248, 0.25); }
    .search-badge-appearance { background: rgba(251, 191, 36, 0.12); color: #fde047; border: 1px solid rgba(251, 191, 36, 0.25); }
    .search-badge-metadata { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.25); }
    .search-badge-install { background: rgba(248, 113, 113, 0.12); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.25); }

    /* Mobile Popover Select (AIOMetadata Custom Select Pattern) */
    .mobile-select-trigger {
        background: #141416;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 0.65rem 0.9rem;
        cursor: pointer;
        transition: border-color 0.18s ease;
        text-align: left;
        outline: none !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent !important;
        user-select: none;
    }
    .mobile-select-trigger:focus,
    .mobile-select-trigger:focus-visible,
    .mobile-select-trigger:active,
    .mobile-select-trigger.active {
        outline: none !important;
        box-shadow: none !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        background: #141416 !important;
    }
    .mobile-select-popover-menu {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        z-index: 1060;
        background: #141416;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        padding: 0.35rem;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        animation: fadeInTab 0.15s ease;
    }
    .mobile-select-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.65rem 0.85rem;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.15s ease;
    }
    .mobile-select-item:hover, .mobile-select-item:active {
        background: rgba(255, 255, 255, 0.05);
    }
    .mobile-select-item[data-tab="trackers"].active { background: rgba(56, 189, 248, 0.12); }
    .mobile-select-item[data-tab="trackers"].active .item-label { color: #38bdf8 !important; font-weight: 600; }
    .mobile-select-item[data-tab="catalogs"].active { background: rgba(129, 140, 248, 0.12); }
    .mobile-select-item[data-tab="catalogs"].active .item-label { color: #a5b4fc !important; font-weight: 600; }
    .mobile-select-item[data-tab="appearance"].active { background: rgba(251, 191, 36, 0.12); }
    .mobile-select-item[data-tab="appearance"].active .item-label { color: #fde047 !important; font-weight: 600; }
    .mobile-select-item[data-tab="metadata"].active { background: rgba(52, 211, 153, 0.12); }
    .mobile-select-item[data-tab="metadata"].active .item-label { color: #6ee7b7 !important; font-weight: 600; }
    .mobile-select-item[data-tab="install"].active { background: rgba(248, 113, 113, 0.12); }
    .mobile-select-item[data-tab="install"].active .item-label { color: #fca5a5 !important; font-weight: 600; }

    /* Step Navigation Action Buttons */
    .step-nav-bar {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 1.15rem;
        width: 100%;
    }
    .step-nav-bar.step-nav-2col {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .step-nav-bar.step-nav-1col-end {
        display: flex !important;
        justify-content: flex-end !important;
        width: 100% !important;
    }
    .step-nav-bar.step-nav-1col-start {
        display: flex !important;
        justify-content: flex-start !important;
        width: 100% !important;
    }
    .btn-step-action {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.62rem 0.8rem !important;
        border-radius: 10px !important;
        font-size: 0.84rem !important;
        font-weight: 500 !important;
        background: rgba(255, 255, 255, 0.035) !important;
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
        color: #cbd5e1 !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        text-decoration: none !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .btn-step-action:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    }
    .btn-step-action:active {
        transform: translateY(0) !important;
    }
    .btn-step-action strong {
        font-weight: 600 !important;
        color: #ffffff !important;
    }
    .btn-step-action span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .btn-step-action i {
        font-size: 0.8rem !important;
        color: #94a3b8 !important;
        transition: transform 0.2s ease, color 0.2s ease !important;
        flex-shrink: 0 !important;
    }
    .btn-step-action:hover i {
        color: #ffffff !important;
    }
    .btn-step-prev:hover i {
        transform: translateX(-3px) !important;
    }
    .btn-step-next:hover i {
        transform: translateX(3px) !important;
    }

    @media (max-width: 575.98px) {
        .step-nav-bar.step-nav-2col {
            gap: 6px !important;
        }
        .btn-step-action {
            padding: 0.6rem 0.35rem !important;
            font-size: 0.76rem !important;
        }
    }

    .anisync-tab-pane {
        display: none;
        animation: fadeInTab 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .anisync-tab-pane.active {
        display: block;
    }
    @keyframes fadeInTab {
        from { opacity: 0; transform: translateY(4px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .btn-save-preferences {
        min-height: 44px;
        background: linear-gradient(135deg, #0284c7 0%, #02a9ff 100%);
        color: #ffffff !important;
        border: none;
        padding: 0.72rem 1.2rem;
        border-radius: 9px;
        font-weight: 600;
        font-size: 0.875rem;
        transition: background 0.2s ease, opacity 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .btn-save-preferences * {
        color: #ffffff !important;
    }
    .btn-save-preferences:hover {
        background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
        color: #ffffff !important;
    }
    .btn-save-preferences:hover * {
        color: #ffffff !important;
    }
    .btn-save-preferences:active {
        opacity: 0.9;
    }
    .btn-save-preferences:focus-visible {
        outline: 2px solid #02a9ff;
        outline-offset: 2px;
    }
    @media (min-width: 768px) {
        .search-results-dropdown {
            min-width: 320px;
        }
    }

    /* Sleek Hero Welcome Bar */
    .welcome-hero-bar {
        background: #101012;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        position: relative;
        overflow: hidden;
    }
    .welcome-avatar-wrap {
        position: relative;
    }
    .welcome-avatar {
        border: 2px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        background: #141416;
    }
    .guest-avatar-box {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.04);
        border: 1.5px solid rgba(255, 255, 255, 0.08);
        color: #94a3b8;
    }
    .welcome-username {
        color: #ffffff;
        font-weight: 700;
    }

    /* Catalog Orientation Segmented Pill Toggles */
    .catalog-shape-pill-group {
        display: inline-flex;
        background: rgba(15, 23, 42, 0.65);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        padding: 2px;
        gap: 2px;
        backdrop-filter: blur(8px);
    }
    .shape-pill-btn {
        border: none;
        background: transparent;
        color: #94a3b8;
        font-size: 0.72rem;
        font-weight: 500;
        padding: 2px 8px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        display: inline-flex;
        align-items: center;
        line-height: 1.25;
        user-select: none;
    }
    .shape-pill-btn:hover {
        color: #e2e8f0;
        background: rgba(255, 255, 255, 0.05);
    }
    .shape-pill-btn.active {
        background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
        color: #ffffff;
        font-weight: 600;
        box-shadow: 0 1px 4px rgba(2, 132, 199, 0.35);
    }
    /* Catalog Row Customization Button & Badge */
    /* Catalog Row Layout & Responsive Subtitle Structure */
    .catalog-content-col {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
    }
    .catalog-content-col .catalog-item-title {
        flex-grow: 1;
        min-width: 0;
        line-height: 1.4;
    }
    .catalog-badges-wrap {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        flex-wrap: nowrap;
    }
    .catalog-source-badge {
        font-size: 0.68rem;
        letter-spacing: 0.03em;
        width: auto;
        min-width: 86px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 3px 8px;
        text-align: center;
        flex-shrink: 0;
        order: 3;
    }
    .catalog-dub-badge {
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.3px;
        padding: 3px 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        white-space: nowrap;
        order: 1;
    }
    .catalog-discover-badge {
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.3px;
        padding: 3px 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        white-space: nowrap;
        background: rgba(16, 185, 129, 0.12);
        border: 1px solid rgba(52, 211, 153, 0.4);
        color: #34d399;
        border-radius: 20px;
        order: 2;
    }
    .catalog-discover-badge.d-none {
        display: none !important;
    }
    .catalog-config-btn {
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #94a3b8;
        position: relative;
        padding: 0;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
    }
    .catalog-config-btn:hover {
        background: rgba(2, 132, 199, 0.15);
        border-color: rgba(56, 189, 248, 0.35);
        color: #38bdf8;
        transform: translateY(-1px);
    }
    .catalog-order-item:hover .grip-handle {
        opacity: 0.85 !important;
    }

    /* Mobile: Subtitle Column Layout (<= 576px) */
    @media (max-width: 576px) {
        .catalog-order-item {
            padding: 8px 10px;
        }
        .catalog-content-col {
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            gap: 4px;
        }
        .catalog-content-col .catalog-item-title {
            width: 100%;
            line-height: 1.25;
        }
        .catalog-badges-wrap {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
            width: 100%;
            margin-top: 3px;
        }
        .catalog-source-badge {
            width: auto;
            min-width: 0;
            font-size: 0.62rem;
            padding: 2px 7px;
            letter-spacing: 0.02em;
            order: 1;
        }
        .catalog-discover-badge {
            font-size: 0.62rem;
            padding: 2px 7px;
            letter-spacing: 0.02em;
            order: 2;
        }
        .catalog-dub-badge {
            font-size: 0.62rem;
            padding: 2px 7px;
            letter-spacing: 0.02em;
            order: 3;
        }
        .catalog-config-btn {
            width: 34px;
            height: 34px;
        }
    }

    /* Catalog Customization Modal - AniSync Native Dark/Cyan Design System */
    .catalog-modal-dialog {
        max-width: 820px;
        margin: 1.75rem auto;
    }
    .catalog-modal-content {
        background: #141416;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(2, 132, 199, 0.12);
        color: #f1f5f9;
        backdrop-filter: blur(24px);
    }
    @media (min-width: 768px) {
        .catalog-modal-dialog {
            max-height: min(650px, calc(100vh - 48px));
            height: min(650px, calc(100vh - 48px));
            margin: auto;
        }
        .catalog-modal-content {
            height: 100%;
            max-height: 100%;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .catalog-modal-content .modal-header {
            flex-shrink: 0;
            padding-bottom: 0.5rem !important;
            padding-top: 1rem !important;
        }
        .catalog-modal-content .modal-footer {
            flex-shrink: 0;
            padding-top: 0.75rem !important;
            padding-bottom: 0.75rem !important;
        }
        .catalog-modal-body {
            flex: 1 1 auto;
            min-height: 0;
            overflow: hidden;
            padding-top: 0.25rem !important;
            padding-bottom: 0.5rem !important;
        }
        .catalog-modal-row {
            height: 100%;
            min-height: 0;
        }
        .catalog-modal-form-col {
            height: 100%;
            max-height: 100%;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 14px;
            padding-bottom: 16px;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }
        .catalog-modal-preview-col {
            height: 100%;
            max-height: 100%;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }
    }
    .catalog-modal-form-col::-webkit-scrollbar {
        display: block;
        width: 6px;
    }
    .catalog-modal-form-col::-webkit-scrollbar-track {
        background: transparent;
        margin: 4px 0;
    }
    .catalog-modal-form-col::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.22);
        border-radius: 4px;
    }
    .catalog-modal-form-col::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.45);
    }
    @media (max-width: 767.98px) {
        .catalog-modal-dialog {
            max-height: calc(100vh - 20px);
            margin: 10px auto;
        }
        .catalog-modal-content {
            max-height: calc(100vh - 20px);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .catalog-modal-content .modal-header,
        .catalog-modal-content .modal-footer {
            flex-shrink: 0;
        }
        .catalog-modal-body {
            overflow-y: auto;
            flex: 1 1 auto;
            min-height: 0;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
        }
        .catalog-modal-preview-col {
            margin-top: 0.5rem;
        }
        .preview-stage-wrap {
            height: auto !important;
        }
        .preview-gallery-container {
            overflow-y: visible !important;
            height: auto !important;
            max-height: none !important;
            overscroll-behavior: auto !important;
            touch-action: pan-y;
        }
        .preview-grid,
        .preview-card,
        .preview-card img {
            touch-action: pan-y;
            pointer-events: none;
            -webkit-user-drag: none;
            user-select: none;
        }
    }
    .catalog-header-badge {
        background: #0284c7;
        color: #ffffff;
        font-size: 0.72rem;
        font-weight: 700;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
        transition: all 0.2s ease;
    }
    .catalog-header-badge.zero {
        background: rgba(255, 255, 255, 0.08);
        color: #94a3b8;
        box-shadow: none;
    }
    .btn-modal-reset-field {
        background: transparent;
        border: none;
        color: #38bdf8;
        font-size: 0.75rem;
        cursor: pointer;
        padding: 0;
        text-decoration: none;
        transition: color 0.15s ease;
    }
    .btn-modal-reset-field:hover {
        color: #7dd3fc;
    }
    .catalog-modal-input {
        background: #141416 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #f8fafc !important;
        border-radius: 10px;
        font-size: 0.85rem;
        padding: 0.55rem 0.85rem;
        min-height: 40px;
    }
    .catalog-modal-input:focus {
        border-color: rgba(56, 189, 248, 0.5) !important;
        background: #141416 !important;
        box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
    }
    .modal-segmented-group {
        display: flex;
        background: #141416;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 3px;
        gap: 3px;
        min-height: 40px;
        align-items: stretch;
    }
    .modal-segmented-btn {
        flex: 1;
        border: 1px solid transparent;
        background: transparent;
        color: #94a3b8;
        font-size: 0.82rem;
        font-weight: 500;
        padding: 0.45rem 0.6rem;
        border-radius: 7px;
        cursor: pointer;
        transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        user-select: none;
        white-space: nowrap;
    }
    .modal-segmented-btn:hover {
        color: #f1f5f9;
        background: rgba(255, 255, 255, 0.04);
    }
    .modal-segmented-btn.active {
        background: rgba(56, 189, 248, 0.14);
        border-color: rgba(56, 189, 248, 0.32);
        color: #38bdf8;
        font-weight: 600;
        box-shadow: 0 0 14px rgba(56, 189, 248, 0.12);
    }

    .catalog-modal-content .custom-select {
        background: #141416;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        min-height: 40px;
        padding: 0.55rem 0.85rem;
        font-size: 0.82rem;
        color: #f1f5f9;
    }
    .catalog-modal-content .custom-select:hover {
        border-color: rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.035);
    }
    .catalog-modal-content .custom-select.active {
        border-color: rgba(56, 189, 248, 0.4);
        background: rgba(255, 255, 255, 0.035);
    }
    @keyframes fadeInDropup {
        from {
            opacity: 0;
            transform: translateY(4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .custom-select-wrapper.dropup .custom-options-menu {
        top: auto;
        bottom: calc(100% + 6px);
        box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 0, 0, 0.7);
        transform-origin: bottom center;
        animation: fadeInDropup 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .catalog-modal-content .custom-options-menu {
        z-index: 1065;
        max-height: 250px;
        background: #141416;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .catalog-modal-content .custom-options-menu::-webkit-scrollbar {
        display: block;
        width: 6px;
    }
    .catalog-modal-content .custom-options-menu::-webkit-scrollbar-track {
        background: transparent;
        margin: 4px 0;
    }
    .catalog-modal-content .custom-options-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.28);
        border-radius: 4px;
    }
    .catalog-modal-content .custom-options-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
    .catalog-modal-content .custom-option-item {
        padding: 0.45rem 0.75rem;
        font-size: 0.82rem;
    }

    /* Modal Live Preview Gallery */
    .preview-stage-wrap {
        background: #0d0d0f;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
    }
    .preview-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        flex-shrink: 0;
    }
    .preview-title {
        font-size: 0.88rem;
        font-weight: 600;
        color: #f1f5f9;
        letter-spacing: -0.01em;
    }
    .preview-gallery-container {
        width: 100%;
    }
    @media (min-width: 768px) {
        .preview-stage-wrap {
            height: 100%;
            max-height: 100%;
            min-height: 0;
        }
        .preview-gallery-container {
            flex: 1 1 auto;
            height: 100%;
            max-height: 100%;
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 4px;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }
    }
    .preview-gallery-container::-webkit-scrollbar {
        display: block;
        width: 5px;
    }
    .preview-gallery-container::-webkit-scrollbar-track {
        background: transparent;
        margin: 4px 0;
    }
    .preview-gallery-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.16);
        border-radius: 4px;
    }
    .preview-gallery-container::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.35);
    }
    .preview-grid {
        display: grid;
        gap: 8px;
    }
    .preview-grid.portrait {
        grid-template-columns: repeat(3, 1fr);
    }
    .preview-grid.landscape {
        grid-template-columns: repeat(2, 1fr);
    }
    @keyframes shapeSwitchMorph {
        0% {
            opacity: 0.45;
            transform: scale(0.98);
        }
        100% {
            opacity: 1;
            transform: scale(1);
        }
    }
    .preview-grid.animate-switch {
        animation: shapeSwitchMorph 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        will-change: opacity, transform;
    }
    .preview-card {
        position: relative;
        border-radius: 6px;
        overflow: hidden;
        background: #1a1926;
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .preview-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
    }
    .preview-grid.portrait .preview-card {
        aspect-ratio: 2 / 3;
    }
    .preview-grid.landscape .preview-card {
        aspect-ratio: 16 / 9;
    }
    .preview-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    #modalPosterArtSection.disabled #modalPosterArtGroup {
        opacity: 0.45;
        pointer-events: none;
        user-select: none;
    }
    #modalPosterArtSection.disabled .btn-modal-reset-field {
        display: none;
    }
    #modalPosterArtDisabledNote {
        pointer-events: auto;
    }

    #modalSortSection.disabled #modalSortControlsRow {
        opacity: 0.42;
        pointer-events: none;
        user-select: none;
        filter: grayscale(0.6);
    }
    #modalSortSection.disabled .btn-modal-reset-field {
        display: none;
    }
    #modalSortDisabledNote {
        pointer-events: auto;
    }

    .preview-card.skeleton {
        background: linear-gradient(110deg, rgba(255, 255, 255, 0.03) 8%, rgba(255, 255, 255, 0.08) 18%, rgba(255, 255, 255, 0.03) 33%);
        background-size: 200% 100%;
        animation: 1.4s previewShimmer linear infinite;
        border: 1px solid rgba(255, 255, 255, 0.04);
    }
    @keyframes previewShimmer {
        to {
            background-position-x: -200%;
        }
    }
    .preview-empty-state {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 240px;
        text-align: center;
        padding: 2.5rem 1rem;
        color: rgba(255, 255, 255, 0.45);
    }
    .preview-empty-state i {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
        opacity: 0.6;
        color: #38bdf8;
    }
    .preview-empty-title {
        font-size: 0.88rem;
        font-weight: 600;
        color: #e2e8f0;
        margin-bottom: 0.25rem;
    }
    .preview-empty-desc {
        font-size: 0.72rem;
        color: rgba(255, 255, 255, 0.45);
    }

    /* Footer buttons */
    .btn-modal-reset {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 9px;
        color: #94a3b8;
        font-size: 0.84rem;
        font-weight: 500;
        padding: 0.45rem 0.85rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        transition: all 0.18s ease;
    }
    .btn-modal-reset:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
        color: #f1f5f9;
    }
    .btn-modal-duplicate {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #cbd5e1;
        font-size: 0.82rem;
        font-weight: 500;
        padding: 6px 14px;
        border-radius: 8px;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
    }
    .btn-modal-duplicate:hover {
        background: rgba(255, 255, 255, 0.09);
        color: #38bdf8;
        border-color: rgba(56, 189, 248, 0.35);
    }
    .btn-modal-done {
        background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
        color: #ffffff;
        font-weight: 600;
        font-size: 0.85rem;
        border-radius: 8px;
        padding: 7px 22px;
        border: none;
        box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
        transition: all 0.2s ease;
        cursor: pointer;
    }
    .btn-modal-done:hover {
        background: linear-gradient(135deg, #0284c7 0%, #0284c7 100%);
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(2, 132, 199, 0.5);
    }
    /* Artwork Live Poster Preview Panel */
    .artwork-preview-panel {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        padding: 0.80rem 0.90rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
    }
    @media (max-width: 576px) {
        .artwork-preview-panel {
            padding: 0.75rem 0.5rem;
        }
    }
    .preview-panel-title {
        font-size: 0.82rem;
        font-weight: 600;
        color: #f1f5f9;
        letter-spacing: 0.02em;
    }
    /* Segmented Controls Matching AniSync Design */
    .preview-mode-switch {
        display: inline-flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 8px;
        padding: 3px;
        gap: 3px;
    }
    .preview-mode-btn {
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.45);
        font-size: 0.72rem;
        font-weight: 500;
        padding: 4px 10px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.18s ease;
        -webkit-user-select: none;
        user-select: none;
        line-height: 1.3;
        white-space: nowrap;
    }
    .preview-mode-btn:hover:not(.active) {
        color: rgba(255, 255, 255, 0.85);
        background: rgba(255, 255, 255, 0.05);
    }
    .preview-mode-btn.active {
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    }
    /* Flanking Poster Carousel Navigation Arrows */
    .btn-poster-nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        flex-shrink: 0;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.09);
        color: rgba(255, 255, 255, 0.45);
        font-size: 0.76rem;
        cursor: pointer;
        transition: all 0.18s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
    }
    .btn-poster-nav:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        transform: scale(1.08);
    }
    .btn-poster-nav:active {
        transform: scale(0.92);
        background: rgba(255, 255, 255, 0.15);
    }
    @media (max-width: 576px) {
        .btn-poster-nav {
            width: 26px;
            height: 26px;
            font-size: 0.7rem;
        }
    }
    /* Hardware-Accelerated Poster Stage */
    .artwork-poster-stage {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 255px; /* Stable height prevents layout reflow of bottom toolbar & rest of page */
        padding: 0.15rem 0;
    }
    @media (max-width: 576px) {
        .artwork-poster-stage {
            gap: 8px;
        }
    }
    @media (max-width: 380px) {
        .artwork-poster-stage {
            gap: 6px;
        }
    }
    .artwork-poster-card {
        position: relative;
        width: 175px;
        height: 255px;
        flex-shrink: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: #18181b;
        user-select: none;
        transform: translateZ(0); /* Promotes to dedicated GPU compositing layer */
        will-change: width, height; /* Prepares mobile GPU rasterizer */
        contain: layout paint; /* Restricts layout recalculation boundary to this element only */
        transition: width 0.24s cubic-bezier(0.2, 0, 0, 1), 
                    height 0.24s cubic-bezier(0.2, 0, 0, 1), 
                    transform 0.2s cubic-bezier(0.2, 0, 0, 1), 
                    box-shadow 0.2s ease;
    }
    .artwork-poster-card.landscape {
        width: 310px;
        height: 174px;
        aspect-ratio: 16 / 9;
        max-width: calc(100% - 76px);
    }
    @media (max-width: 576px) {
        .artwork-poster-card {
            width: 165px;
            height: 240px;
        }
        .artwork-poster-card.landscape {
            width: 245px;
            height: 138px;
            max-width: calc(100% - 68px);
        }
    }
    @media (max-width: 380px) {
        .artwork-poster-card {
            width: 155px;
            height: 225px;
        }
        .artwork-poster-card.landscape {
            width: 225px;
            height: 127px;
            max-width: calc(100% - 62px);
        }
    }
    .artwork-poster-card:hover {
        transform: translateZ(0) translateY(-2px);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(251, 191, 36, 0.15);
    }
    .artwork-poster-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
        transition: opacity 0.18s ease;
    }
    .artwork-preview-spinner {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(15, 23, 42, 0.75); /* Clean alpha background instead of expensive backdrop-filter blur during resize */
        z-index: 5;
        transition: opacity 0.15s ease;
    }
