/* Custom styles beyond Tailwind */

/* Smooth transitions */
* {
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

/* Custom scrollbar - Modern dark theme */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(75, 85, 99, 0.8), rgba(55, 65, 81, 0.8));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(107, 114, 128, 0.9), rgba(75, 85, 99, 0.9));
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(156, 163, 175, 1), rgba(107, 114, 128, 1));
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(75, 85, 99, 0.8) transparent;
}

/* Blink animation for list regeneration */
@keyframes blink-success {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(34, 197, 94, 0.2); }
}

/* Premium Navbar */
.premium-navbar {
    border-bottom: 1px solid rgba(59, 130, 246, 0.28);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.9) 60%, rgba(2, 6, 23, 0.93));
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(148, 163, 184, 0.12);
}

.premium-navbar .nav-brand {
    color: #f8fafc;
    text-shadow: 0 1px 0 rgba(15, 23, 42, 0.45);
}

.premium-navbar .nav-meta-text {
    color: rgba(226, 232, 240, 0.86);
}

.premium-navbar .nav-meta-link {
    color: #93c5fd;
}

.premium-navbar .nav-meta-link:hover {
    color: #bfdbfe;
}

.nav-links-desktop {
    gap: 0.15rem;
    font-size: 0.86rem;
    flex-wrap: wrap;
}

.nav-link-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.24rem 0.42rem;
    border-radius: 0.42rem;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(229, 231, 235, 0.88);
    line-height: 1.15;
    box-shadow: none;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-link-premium:hover {
    color: #f8fafc;
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(59, 130, 246, 0.12);
}

.nav-link-premium:focus-visible {
    outline: none;
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(59, 130, 246, 0.14);
}

.nav-link-premium-admin {
    color: #ddd6fe;
}

.nav-link-premium-admin:hover {
    color: #f3e8ff;
    border-color: rgba(196, 181, 253, 0.38);
    background: rgba(139, 92, 246, 0.14);
}

.nav-link-premium-danger {
    color: #fecaca;
}

.nav-link-premium-danger:hover {
    color: #fee2e2;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(220, 38, 38, 0.12);
}

.nav-hamburger-btn {
    border: 1px solid transparent;
    border-radius: 0.45rem;
    padding: 0.2rem 0.36rem;
    color: rgba(219, 234, 254, 0.9);
    background: transparent;
    box-shadow: none;
}

.nav-hamburger-btn:hover {
    color: #eff6ff;
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(59, 130, 246, 0.14);
}

.premium-mobile-menu {
    margin-top: 0.45rem;
    padding: 0.35rem 0;
    border-top: 1px solid rgba(71, 85, 105, 0.45);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
}

.nav-link-mobile {
    display: block;
    width: 100%;
    padding: 0.42rem 0.35rem;
    border-radius: 0.38rem;
    border: 1px solid transparent;
    color: rgba(229, 231, 235, 0.9);
    background: transparent;
}

.nav-link-mobile:hover {
    color: #f8fafc;
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(59, 130, 246, 0.12);
}

.nav-link-mobile-admin {
    color: #ddd6fe;
}

.nav-link-mobile-danger {
    color: #fecaca;
}

/* Desktop table rows: ensure hover highlight covers full row width */
.row-hover-table {
    width: 100% !important;
    min-width: 100% !important;
    border-collapse: collapse;
    border-spacing: 0;
}

/* Keep comfortable content gutters while table hover spans full row width */
.row-hover-table thead tr > th:first-child,
.row-hover-table tbody tr > td:first-child {
    padding-left: 1rem;
}

.row-hover-table thead tr > th:last-child,
.row-hover-table tbody tr > td:last-child {
    padding-right: 1rem;
}

.row-hover-table .table-hover-row:hover,
.row-hover-table .table-hover-row:hover > td,
.row-hover-table .table-hover-row:hover > th {
    background-color: rgba(55, 65, 81, 0.30) !important;
}

.lists-zebra-table thead tr,
.lists-zebra-table tbody tr,
.lists-zebra-table tbody td,
.lists-zebra-table tbody th {
    border: 0 !important;
}

.lists-zebra-table thead {
    border-bottom: 1px solid rgba(75, 85, 99, 0.85) !important;
}

.lists-zebra-table tbody tr.table-hover-row:last-child > td,
.lists-zebra-table tbody tr.table-hover-row:last-child > th {
    border-bottom: 1px solid rgba(75, 85, 99, 0.85) !important;
}

.lists-zebra-table tbody tr.table-hover-row:nth-child(odd),
.lists-zebra-table tbody tr.table-hover-row:nth-child(odd) > td,
.lists-zebra-table tbody tr.table-hover-row:nth-child(odd) > th {
    background-color: #242e3c;
}

.lists-zebra-table tbody tr.table-hover-row:nth-child(even),
.lists-zebra-table tbody tr.table-hover-row:nth-child(even) > td,
.lists-zebra-table tbody tr.table-hover-row:nth-child(even) > th {
    background-color: #202937;
}

/* External lists page: premium polish without layout/behavior changes */
.external-lists-premium-shell .external-connected-sources {
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.86)) padding-box,
        linear-gradient(145deg, rgba(59, 130, 246, 0.32), rgba(148, 163, 184, 0.22)) border-box;
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.external-lists-premium-shell .source-card {
    border-color: rgba(71, 85, 105, 0.72);
    background-image: linear-gradient(145deg, rgba(30, 41, 59, 0.78), rgba(17, 24, 39, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-image 0.2s ease;
}

.external-lists-premium-shell .source-card:hover {
    border-color: rgba(96, 165, 250, 0.62);
    background-image: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.84));
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.external-lists-premium-shell .source-card.border-blue-500 {
    border-color: rgba(59, 130, 246, 0.9) !important;
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.36),
        0 10px 20px rgba(30, 64, 175, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.external-lists-premium-shell .external-list-section-card {
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.84)) padding-box,
        linear-gradient(145deg, rgba(71, 85, 105, 0.48), rgba(148, 163, 184, 0.3)) border-box;
    box-shadow: 0 14px 26px rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.external-lists-premium-shell .external-list-table thead th {
    color: rgba(203, 213, 225, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.035em;
    font-size: 0.72rem;
}

.external-lists-premium-shell .external-list-table tbody td {
    vertical-align: top;
}

.external-lists-premium-shell .external-list-table tbody tr.table-hover-row:nth-child(odd),
.external-lists-premium-shell .external-list-table tbody tr.table-hover-row:nth-child(odd) > td,
.external-lists-premium-shell .external-list-table tbody tr.table-hover-row:nth-child(odd) > th {
    background-color: rgba(15, 23, 42, 0.02);
}

.external-lists-premium-shell .external-list-table tbody tr.table-hover-row:nth-child(even),
.external-lists-premium-shell .external-list-table tbody tr.table-hover-row:nth-child(even) > td,
.external-lists-premium-shell .external-list-table tbody tr.table-hover-row:nth-child(even) > th {
    background-color: rgba(148, 163, 184, 0.05);
}

.external-lists-premium-shell .external-list-table .table-hover-row:hover,
.external-lists-premium-shell .external-list-table .table-hover-row:hover > td,
.external-lists-premium-shell .external-list-table .table-hover-row:hover > th {
    background-color: rgba(30, 41, 59, 0.44) !important;
}

.external-lists-premium-shell .external-list-mobile-card {
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(17, 24, 39, 0.78)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.26), rgba(148, 163, 184, 0.2)) border-box;
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.external-lists-premium-shell .external-list-mobile-card:hover {
    background:
        linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(17, 24, 39, 0.84)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.38), rgba(148, 163, 184, 0.28)) border-box;
}

@media (max-width: 767px) {
    .external-lists-premium-shell .external-list-section-card {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}

/* Public lists: dual search inputs in premium style */
.public-lists-search-card {
    border: 1px solid transparent;
    border-radius: 0.9rem;
    padding: 0.78rem;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.92), rgba(30, 41, 59, 0.8)) padding-box,
        linear-gradient(145deg, rgba(99, 102, 241, 0.28), rgba(148, 163, 184, 0.18)) border-box;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.public-lists-search-row {
    display: flex;
    align-items: stretch;
    gap: 0.56rem;
}

.public-lists-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.7));
    color: #e5e7eb;
    padding: 0.62rem 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.public-lists-search-input::placeholder {
    color: rgba(148, 163, 184, 0.9);
}

.public-lists-search-input:hover {
    border-color: rgba(129, 140, 248, 0.45);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.76));
}

.public-lists-search-input:focus,
.public-lists-search-input:focus-visible {
    outline: none;
    border-color: rgba(129, 140, 248, 0.68);
    box-shadow:
        0 0 0 2px rgba(17, 24, 39, 0.9),
        0 0 0 4px rgba(99, 102, 241, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.public-lists-search-input:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.public-lists-search-btn {
    flex: 0 0 auto;
    min-height: 2.55rem;
    white-space: nowrap;
    border: 1px solid transparent;
    color: #f8fafc;
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.18s ease;
}

.public-lists-search-btn--trakt {
    background:
        linear-gradient(145deg, rgba(196, 58, 134, 0.96) 0%, rgba(164, 38, 110, 0.95) 52%, rgba(92, 17, 60, 0.97) 100%) padding-box,
        linear-gradient(145deg, rgba(244, 114, 182, 0.52), rgba(253, 164, 175, 0.3)) border-box;
}

.public-lists-search-btn--trakt:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 14px 22px rgba(80, 7, 55, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.public-lists-search-btn--mdblist {
    background:
        linear-gradient(145deg, rgba(66, 132, 202, 0.95), rgba(34, 90, 155, 0.9)) padding-box,
        linear-gradient(145deg, rgba(125, 211, 252, 0.5), rgba(148, 197, 253, 0.3)) border-box;
}

.public-lists-search-btn--mdblist:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 14px 22px rgba(14, 43, 85, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.public-lists-search-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(17, 24, 39, 0.9),
        0 0 0 4px rgba(148, 197, 253, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.public-lists-search-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    filter: saturate(0.62) grayscale(0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

@media (max-width: 639px) {
    .public-lists-search-row {
        flex-direction: column;
    }

    .public-lists-search-btn {
        width: 100%;
    }
}

.pl-desktop-card {
    border: 1px solid transparent !important;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.84)) padding-box,
        linear-gradient(145deg, rgba(71, 85, 105, 0.48), rgba(148, 163, 184, 0.3)) border-box;
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pl-desktop-card:hover {
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(30, 41, 59, 0.88)) padding-box,
        linear-gradient(145deg, rgba(99, 102, 241, 0.28), rgba(148, 163, 184, 0.24)) border-box;
    box-shadow: 0 20px 36px rgba(2, 6, 23, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pl-desktop-table-card {
    border: 1px solid transparent !important;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.84)) padding-box,
        linear-gradient(145deg, rgba(71, 85, 105, 0.48), rgba(148, 163, 184, 0.3)) border-box;
    box-shadow: 0 14px 26px rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pl-desktop-table thead th {
    color: rgba(203, 213, 225, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.035em;
    font-size: 0.72rem;
}

.pl-table-open {
    transition: opacity 0.18s ease;
}

.pl-table-open:hover {
    opacity: 0.96;
}

.pl-table-row--interactive {
    cursor: pointer;
}

.pl-table-row--interactive:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.58);
    outline-offset: -2px;
}

.pl-table-thumb-strip {
    display: flex;
    align-items: center;
    min-height: 4.2rem;
}

.pl-table-thumb {
    position: relative;
    width: 2.55rem;
    height: 3.82rem;
    border-radius: 0.42rem;
    border: 1px solid rgba(31, 41, 55, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.62);
    object-fit: cover;
    overflow: hidden;
}

.pl-table-thumb-overlap {
    margin-left: -0.82rem;
}

.pl-table-thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.95), rgba(15, 23, 42, 0.9));
    border-color: rgba(71, 85, 105, 0.56);
}

.list-type-badge.pl-table-provider-badge {
    border-color: rgba(96, 165, 250, 0.3);
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.76), rgba(30, 41, 59, 0.58)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.22), rgba(148, 163, 184, 0.16)) border-box;
    color: rgba(241, 245, 249, 0.94);
}

.pl-table-provider-icon {
    width: 1rem;
    height: 1rem;
}

.pl-table-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0.18rem 0.48rem;
    border-radius: 9999px;
    border: 1px solid rgba(71, 85, 105, 0.56);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.58), rgba(30, 41, 59, 0.38));
    color: rgba(226, 232, 240, 0.84);
    font-size: 0.7rem;
    line-height: 1.05;
}

.pl-table-meta-chip--movie {
    border-color: rgba(96, 165, 250, 0.32);
    color: rgba(191, 219, 254, 0.96);
}

.pl-table-meta-chip--series {
    border-color: rgba(74, 222, 128, 0.28);
    color: rgba(187, 247, 208, 0.95);
}

.pl-list-card--selected .pl-desktop-card,
.pl-list-card--selected .pl-mobile-card {
    border-color: rgba(74, 222, 128, 0.38) !important;
    box-shadow:
        0 18px 32px rgba(2, 6, 23, 0.3),
        0 0 0 1px rgba(74, 222, 128, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pl-list-card--selected .pl-desktop-card {
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(18, 47, 39, 0.9), rgba(15, 23, 42, 0.92)) padding-box,
        linear-gradient(145deg, rgba(74, 222, 128, 0.34), rgba(148, 163, 184, 0.24)) border-box;
}

.pl-list-card--selected .pl-mobile-card::before {
    background:
        radial-gradient(circle at top right, rgba(74, 222, 128, 0.18), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%);
}

#plGrid .pl-item-add-btn:disabled {
    cursor: not-allowed;
    opacity: 1;
    filter: none;
}

#plGrid .pl-item-add-btn:disabled:hover {
    transform: none;
}

#plDesktopTableWrap .pl-item-add-btn:disabled {
    cursor: not-allowed;
    opacity: 1;
    filter: none;
}

#plDesktopTableWrap .pl-item-add-btn:disabled:hover {
    transform: none;
}

.pl-table-row--selected td,
.pl-table-row--selected th {
    background-color: rgba(22, 101, 52, 0.16) !important;
}

.pl-table-row--selected:hover td,
.pl-table-row--selected:hover th {
    background-color: rgba(22, 101, 52, 0.2) !important;
}

.pl-table-row--already-added td,
.pl-table-row--already-added th {
    border-top-color: rgba(74, 222, 128, 0.12);
}

@media (min-width: 768px) {
    .public-lists-container[data-desktop-view="grid"] #plGrid.pl-has-results {
        display: grid !important;
    }

    .public-lists-container[data-desktop-view="grid"] #plDesktopTableWrap.pl-has-results {
        display: none !important;
    }

    .public-lists-container[data-desktop-view="table"] #plGrid.pl-has-results {
        display: none !important;
    }

    .public-lists-container[data-desktop-view="table"] #plDesktopTableWrap.pl-has-results {
        display: block !important;
    }
}

.pl-mobile-card {
    position: relative;
    isolation: isolate;
    box-shadow:
        0 16px 28px rgba(2, 6, 23, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pl-mobile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 34%);
    opacity: 0.95;
}

.pl-mobile-card:hover {
    transform: translateY(-1px);
    box-shadow:
        0 20px 34px rgba(2, 6, 23, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pl-mobile-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.95rem;
}

.pl-mobile-card-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.pl-thumb-cluster {
    position: relative;
    width: 4.95rem;
    height: 5.85rem;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: -0.2rem;
}

.pl-thumb-item {
    position: absolute;
    width: 2.62rem;
    height: 3.98rem;
    border-radius: 0.42rem;
    border: 1px solid rgba(31, 41, 55, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    object-fit: cover;
    overflow: hidden;
}

.pl-thumb-item:nth-child(1) {
    left: 0;
    top: 0;
    z-index: 40;
}

.pl-thumb-item:nth-child(2) {
    left: 1.5rem;
    top: 0.2rem;
    z-index: 30;
}

.pl-thumb-item:nth-child(3) {
    left: 0.56rem;
    top: 1.66rem;
    z-index: 20;
}

.pl-thumb-item:nth-child(4) {
    left: 2.08rem;
    top: 1.94rem;
    z-index: 10;
}

.pl-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.95), rgba(15, 23, 42, 0.9));
    border-color: rgba(71, 85, 105, 0.56);
}

.pl-mobile-card-title {
    font-size: 0.92rem;
    line-height: 1.25rem;
    color: rgba(248, 250, 252, 0.98);
    text-shadow: 0 1px 0 rgba(15, 23, 42, 0.25);
}

.list-type-badge.pl-mobile-provider-badge {
    border-color: rgba(96, 165, 250, 0.3);
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.76), rgba(30, 41, 59, 0.58)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.22), rgba(148, 163, 184, 0.16)) border-box;
    color: rgba(241, 245, 249, 0.94);
}

.pl-mobile-provider-icon {
    width: 1rem;
    height: 1rem;
}

.pl-mobile-like-badge {
    color: rgba(255, 228, 230, 0.92);
}

.pl-mobile-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    color: rgba(203, 213, 225, 0.88);
    font-size: 0.72rem;
    line-height: 1.1;
}

.pl-mobile-card-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    max-width: 100%;
    padding: 0.22rem 0.52rem;
    border-radius: 9999px;
    border: 1px solid rgba(71, 85, 105, 0.56);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.56), rgba(30, 41, 59, 0.34));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.pl-mobile-card-meta-pill--owner {
    gap: 0.24rem;
    max-width: min(100%, 15rem);
}

.pl-mobile-card-meta-pill--owner strong {
    display: inline-block;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.pl-mobile-card-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-top-color: rgba(71, 85, 105, 0.64) !important;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.5), rgba(30, 41, 59, 0.24));
}

.pl-mobile-card-actions > * + * {
    position: relative;
}

.pl-mobile-card-actions > * + *::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28rem;
    bottom: 0.28rem;
    width: 1px;
    background: rgba(203, 213, 225, 0.28);
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

.pl-mobile-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.6rem;
    padding: 0.58rem 0.55rem;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.1;
    color: rgba(226, 232, 240, 0.84);
    transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.pl-mobile-card-action:hover {
    transform: none !important;
    background: rgba(148, 163, 184, 0.1) !important;
    box-shadow: none !important;
    opacity: 1;
}

.pl-mobile-card-action:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.45) !important;
    background: rgba(125, 211, 252, 0.08) !important;
}

.pl-mobile-card-action svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.pl-mobile-card-action > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pl-mobile-card-action-neutral {
    color: rgba(226, 232, 240, 0.82);
}

.pl-mobile-card-action.pl-item-add-btn.lists-toolbar-btn-manage {
    color: #c4b5fd;
}

.pl-mobile-card-action.pl-item-add-btn.lists-toolbar-btn-create {
    color: #86efac;
}

@media (max-width: 420px) {
    .pl-mobile-card-body {
        padding: 0.85rem;
        gap: 0.75rem;
    }

    .pl-thumb-cluster {
        width: 4.6rem;
        height: 5.45rem;
        margin-top: -0.16rem;
    }

    .pl-thumb-item {
        width: 2.42rem;
        height: 3.66rem;
    }

    .pl-thumb-item:nth-child(2) {
        left: 1.34rem;
        top: 0.16rem;
    }

    .pl-thumb-item:nth-child(3) {
        left: 0.46rem;
        top: 1.46rem;
    }

    .pl-thumb-item:nth-child(4) {
        left: 1.78rem;
        top: 1.72rem;
    }

    .pl-mobile-card-title {
        font-size: 0.86rem;
        line-height: 1.15rem;
    }

    .pl-mobile-card-action {
        min-height: 2.45rem;
        padding-left: 0.42rem;
        padding-right: 0.42rem;
        font-size: 0.7rem;
    }
}

/* History page: aligned with showlists/external-lists premium styling */
.history-premium-shell .history-toolbar-panel,
.history-premium-shell .history-manual-panel,
.history-premium-shell .history-desktop-table-card {
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.84)) padding-box,
        linear-gradient(145deg, rgba(71, 85, 105, 0.48), rgba(148, 163, 184, 0.3)) border-box;
    box-shadow: 0 14px 26px rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.history-premium-shell .history-warning-panel {
    border: 1px solid rgba(245, 158, 11, 0.44);
    background:
        linear-gradient(145deg, rgba(120, 53, 15, 0.28), rgba(146, 64, 14, 0.2)) padding-box,
        linear-gradient(145deg, rgba(251, 191, 36, 0.32), rgba(245, 158, 11, 0.24)) border-box;
    box-shadow: 0 10px 22px rgba(30, 18, 2, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.history-premium-shell .history-desktop-table thead th {
    color: rgba(203, 213, 225, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.035em;
    font-size: 0.72rem;
}

/* Keep deterministic zebra colors after hover for /history desktop rows */
#historyPageRoot .row-hover-table tbody > tr.table-hover-row,
#historyPageRoot .row-hover-table tbody > tr.table-hover-row > td,
#historyPageRoot .row-hover-table tbody > tr.table-hover-row > th {
    background-color: transparent;
}

#historyPageRoot .row-hover-table tbody > tr.table-hover-row:nth-child(even),
#historyPageRoot .row-hover-table tbody > tr.table-hover-row:nth-child(even) > td,
#historyPageRoot .row-hover-table tbody > tr.table-hover-row:nth-child(even) > th {
    background-color: rgba(255, 255, 255, 0.012);
}

#historyPageRoot .row-hover-table tbody > tr.table-hover-row:hover,
#historyPageRoot .row-hover-table tbody > tr.table-hover-row:hover > td,
#historyPageRoot .row-hover-table tbody > tr.table-hover-row:hover > th {
    background-color: rgba(55, 65, 81, 0.22) !important;
}

.history-premium-shell .history-mobile-card {
    border: 1px solid transparent !important;
    background:
        linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(17, 24, 39, 0.78)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.26), rgba(148, 163, 184, 0.2)) border-box;
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.history-premium-shell .history-mobile-card:hover {
    background:
        linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(17, 24, 39, 0.84)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.38), rgba(148, 163, 184, 0.28)) border-box;
}

.history-premium-shell .history-manual-result-card {
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(30, 41, 59, 0.72), rgba(17, 24, 39, 0.66)) padding-box,
        linear-gradient(145deg, rgba(100, 116, 139, 0.44), rgba(148, 163, 184, 0.26)) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.history-premium-shell .history-manual-result-card:hover {
    background:
        linear-gradient(145deg, rgba(30, 41, 59, 0.84), rgba(17, 24, 39, 0.78)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.52), rgba(148, 163, 184, 0.32)) border-box;
}

.history-premium-shell .history-manual-result-card img {
    border: 1px solid rgba(71, 85, 105, 0.58);
}

#historyDeleteModal .history-modal-card {
    border: 1px solid transparent;
    background:
        linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.92)) padding-box,
        linear-gradient(145deg, rgba(99, 102, 241, 0.34), rgba(96, 165, 250, 0.28), rgba(148, 163, 184, 0.2)) border-box;
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Premium action buttons for /lists table */
.list-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.42rem 0.7rem;
    border-radius: 0.55rem;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.list-action-btn svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.list-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.list-action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.9), 0 0 0 4px rgba(96, 165, 250, 0.35);
}

.list-action-edit {
    color: #dbeafe;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.55), rgba(37, 99, 235, 0.4));
    border-color: rgba(96, 165, 250, 0.35);
}

.list-action-edit:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.7), rgba(37, 99, 235, 0.52));
}

.list-action-regen {
    color: #ccfbf1;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.52), rgba(15, 118, 110, 0.38));
    border-color: rgba(45, 212, 191, 0.35);
}

.list-action-regen:hover {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.68), rgba(15, 118, 110, 0.52));
}

.list-action-delete {
    color: #fee2e2;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.52), rgba(153, 27, 27, 0.38));
    border-color: rgba(248, 113, 113, 0.3);
}

.list-action-delete:hover {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.67), rgba(153, 27, 27, 0.52));
}

.list-action-add {
    color: #dcfce7;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.58), rgba(21, 128, 61, 0.42));
    border-color: rgba(74, 222, 128, 0.35);
}

.list-action-add:hover {
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.72), rgba(21, 128, 61, 0.56));
}

.list-action-remove {
    color: #fee2e2;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.52), rgba(153, 27, 27, 0.38));
    border-color: rgba(248, 113, 113, 0.3);
}

.list-action-remove:hover {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.67), rgba(153, 27, 27, 0.52));
}

.list-action-stremio {
    min-width: 6.1rem;
}

.list-action-stremio.list-action-stremio-published {
    color: #dcfce7;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.58), rgba(21, 128, 61, 0.42));
    border-color: rgba(74, 222, 128, 0.35);
}

.list-action-stremio.list-action-stremio-published:hover {
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.72), rgba(21, 128, 61, 0.56));
}

.list-action-stremio.list-action-stremio-unpublished {
    color: #d1d5db;
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.66), rgba(31, 41, 55, 0.52));
    border-color: rgba(107, 114, 128, 0.4);
}

.list-action-stremio.list-action-stremio-unpublished:hover {
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.76), rgba(55, 65, 81, 0.58));
}

.list-action-label {
    white-space: nowrap;
}

.list-action-icon-only {
    padding: 0.42rem;
    min-width: 2rem;
}

.lists-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.62rem 0.95rem;
    border-radius: 0.7rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.lists-toolbar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32);
}

.lists-toolbar-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.9), 0 0 0 4px rgba(96, 165, 250, 0.35);
}

.lists-toolbar-btn-create {
    color: #dcfce7;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.58), rgba(21, 128, 61, 0.42));
    border-color: rgba(74, 222, 128, 0.35);
}

.lists-toolbar-btn-create:hover {
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.72), rgba(21, 128, 61, 0.56));
}

.lists-toolbar-btn-manage {
    color: #ede9fe;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.58), rgba(107, 33, 168, 0.42));
    border-color: rgba(196, 181, 253, 0.34);
}

.lists-toolbar-btn-manage:hover {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.72), rgba(107, 33, 168, 0.56));
}

.lists-toolbar-btn-warning {
    color: #fff7ed;
    background: linear-gradient(135deg, rgba(154, 52, 18, 0.72), rgba(194, 65, 12, 0.58));
    border-color: rgba(251, 146, 60, 0.45);
}

.lists-toolbar-btn-warning:hover {
    background: linear-gradient(135deg, rgba(194, 65, 12, 0.86), rgba(234, 88, 12, 0.68));
}

.lists-toolbar-btn-imdb {
    color: #fffbeb;
    background: linear-gradient(135deg, rgba(161, 98, 7, 0.74), rgba(202, 138, 4, 0.58));
    border-color: rgba(251, 191, 36, 0.46);
}

.lists-toolbar-btn-imdb:hover {
    background: linear-gradient(135deg, rgba(202, 138, 4, 0.86), rgba(234, 179, 8, 0.7));
}

.lists-toolbar-btn-danger {
    color: #fee2e2;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.58), rgba(153, 27, 27, 0.42));
    border-color: rgba(252, 165, 165, 0.36);
}

.lists-toolbar-btn-danger:hover {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.72), rgba(153, 27, 27, 0.56));
}

.lists-toolbar-btn-neutral {
    color: #e5e7eb;
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.62), rgba(55, 65, 81, 0.48));
    border-color: rgba(156, 163, 175, 0.34);
}

.lists-toolbar-btn-neutral:hover {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.72), rgba(75, 85, 99, 0.56));
}

.lists-toolbar-btn-sm {
    padding: 0.45rem 0.72rem;
    border-radius: 0.58rem;
    font-size: 0.8rem;
    line-height: 1.1;
    gap: 0.4rem;
}

.lists-toolbar-btn-sm svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.list-action-enhance {
    color: #ede9fe;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.56), rgba(107, 33, 168, 0.42));
    border-color: rgba(196, 181, 253, 0.34);
}

.list-action-enhance:hover {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.72), rgba(107, 33, 168, 0.56));
}

.shared-list-contents-modal-card {
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.84)) padding-box,
        linear-gradient(145deg, rgba(71, 85, 105, 0.48), rgba(148, 163, 184, 0.3)) border-box;
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shared-list-contents-modal-header {
    border-bottom-color: rgba(71, 85, 105, 0.66) !important;
    background: linear-gradient(145deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.84), rgba(17, 24, 39, 0.78));
}

.shared-list-contents-modal-body {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.72), rgba(17, 24, 39, 0.66), rgba(30, 41, 59, 0.6));
}

.list-items-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.58rem;
    border-radius: 0.52rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    color: #d1d5db;
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.56), rgba(31, 41, 55, 0.42));
    border: 1px solid rgba(107, 114, 128, 0.35);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.search-modal-genre-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 600;
    color: #e5edff;
    border: 1px solid rgba(147, 197, 253, 0.42);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.84), rgba(37, 99, 235, 0.66), rgba(56, 189, 248, 0.42));
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.list-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.25rem;
    padding: 0.34rem 0.58rem;
    border-radius: 0.52rem;
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.list-type-badge-tmdb {
    color: #ede9fe;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.56), rgba(107, 33, 168, 0.42));
    border-color: rgba(196, 181, 253, 0.32);
}

.list-type-badge-smart {
    color: #ffedd5;
    background: linear-gradient(135deg, rgba(154, 52, 18, 0.52), rgba(194, 65, 12, 0.4));
    border-color: rgba(251, 191, 36, 0.3);
}

.list-type-badge-ai {
    color: #dbeafe;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.52), rgba(37, 99, 235, 0.4));
    border-color: rgba(96, 165, 250, 0.32);
}

.list-type-badge-default {
    color: #e5e7eb;
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.64), rgba(31, 41, 55, 0.48));
    border-color: rgba(156, 163, 175, 0.28);
}

.list-type-badge-success {
    color: #dcfce7;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.58), rgba(21, 128, 61, 0.42));
    border-color: rgba(74, 222, 128, 0.35);
}

.list-type-badge-danger {
    color: #fee2e2;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.52), rgba(153, 27, 27, 0.38));
    border-color: rgba(248, 113, 113, 0.3);
}

.blink-success {
    animation: blink-success 1s ease-in-out 3;
}

/* ========== TMDB Discovery Styles ========== */

/* Section headers */
.section-header {
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    padding-bottom: 8px;
}

.section-header h5 {
    color: #3b82f6;
    font-weight: 600;
    margin: 0;
}

/* Autocomplete results */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-top: 4px;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.15s;
    border-bottom: 1px solid #374151;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #374151;
}

/* Chips container */
.chips-container {
    min-height: 50px;
    padding: 10px;
    background: rgba(31, 41, 55, 0.5);
    border: 1px dashed #4b5563;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chips-container:empty::before {
    content: attr(data-empty-text);
    color: #6b7280;
    font-size: 14px;
}

.chips-container:empty:not([data-empty-text])::before {
    content: 'No items selected';
    color: #6b7280;
    font-size: 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    background: rgba(107, 114, 128, 1); /* Gray for unselected */
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.chip.selected {
    background: rgb(59, 130, 246); /* Blue for selected */
}

.chip-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    transition: background-color 0.15s;
}

.chip-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Range sliders - Following slider.html implementation */
.range-input {
    pointer-events: none; /* Critical: prevents input from blocking clicks, only thumbs are clickable */
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all; /* Make thumb clickable */
    width: 24px;
    height: 24px;
    background-color: #2563EB; /* Blue */
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #2563EB;
    cursor: pointer;
}

.range-input::-moz-range-thumb {
    pointer-events: all;
    width: 24px;
    height: 24px;
    background-color: #2563EB;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #2563EB;
    cursor: pointer;
}

/* Old dual-slider-container styles (kept for backwards compatibility) */
.dual-slider-container {
    position: relative;
    padding: 20px 0;
}

.dual-slider-container .form-range {
    position: absolute;
    width: 100%;
    height: 6px;
    pointer-events: none;
    -webkit-appearance: none;
    background: transparent;
}

.dual-slider-container .form-range::-webkit-slider-thumb {
    pointer-events: all;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dual-slider-container .form-range::-moz-range-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dual-slider-container::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #374151, #3b82f6, #374151);
    border-radius: 3px;
}

/* Fame buttons */
.fame-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.fame-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: rgba(31, 41, 55, 0.5);
    border: 2px solid #374151;
    border-radius: 12px;
    transition: all 0.2s;
    gap: 8px;
}

.fame-btn:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.fame-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.fame-btn i {
    font-size: 24px;
}

.fame-btn small {
    font-size: 11px;
    opacity: 0.8;
}

/* Age certification buttons */
.cert-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cert-btn {
    min-width: 80px;
    padding: 12px 20px;
    background: rgba(31, 41, 55, 0.5);
    border: 2px solid #374151;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.cert-btn:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.cert-btn.active {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #059669;
    color: white;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* TMDB discovery: compact, premium-styled filter buttons */
.tmdb-discovery-option-grid {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 10px;
}

.tmdb-discovery-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
    min-height: 56px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(59, 130, 246, 0.26);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.7), rgba(31, 41, 55, 0.58));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 3px rgba(0, 0, 0, 0.24);
    gap: 4px;
}

.tmdb-discovery-option-btn:hover {
    border-color: rgba(59, 130, 246, 0.48);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.34), rgba(37, 99, 235, 0.24));
}

.tmdb-discovery-option-btn.active {
    color: #fff;
    border-color: rgba(30, 64, 175, 0.78);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.88), rgba(37, 99, 235, 0.66), rgba(59, 130, 246, 0.44));
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tmdb-radio-option {
    min-height: 52px;
}

.peer:checked + .tmdb-radio-option {
    color: #fff;
    border-color: rgba(30, 64, 175, 0.78);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.88), rgba(37, 99, 235, 0.66), rgba(59, 130, 246, 0.44));
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tmdb-discovery-option-btn small {
    font-size: 10px;
    line-height: 1.15;
    opacity: 0.84;
}

.tmdb-discovery-option-btn.active small {
    color: rgba(219, 234, 254, 0.95);
    opacity: 1;
}

.tmdb-discovery-age-buttons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

@media (max-width: 768px) {
    .tmdb-discovery-age-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tmdb-step-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #e5edff;
    border: 1px solid rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.82), rgba(37, 99, 235, 0.62), rgba(56, 189, 248, 0.44));
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tmdb-info-icon-shell {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.48);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.78), rgba(37, 99, 235, 0.58), rgba(56, 189, 248, 0.4));
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.external-source-premium-block {
    border-color: rgba(71, 85, 105, 0.72);
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.92), rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.external-source-premium-shell .external-source-form-card {
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(30, 41, 59, 0.88)) padding-box,
        linear-gradient(145deg, rgba(71, 85, 105, 0.54), rgba(148, 163, 184, 0.32)) border-box;
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.external-source-premium-shell .external-source-select-card {
    border: 1px solid rgba(71, 85, 105, 0.72);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(17, 24, 39, 0.74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-image 0.2s ease;
}

.external-source-premium-shell .external-source-select-card:hover {
    border-color: rgba(96, 165, 250, 0.62);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.84));
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.external-source-premium-shell .external-source-list-card {
    border: 1px solid rgba(71, 85, 105, 0.72);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(17, 24, 39, 0.74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-image 0.2s ease;
}

.external-source-premium-shell .external-source-list-card:hover {
    border-color: rgba(96, 165, 250, 0.62);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.84));
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.external-source-premium-shell .external-source-list-card.is-selected {
    border-color: rgba(59, 130, 246, 0.9);
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.36),
        0 10px 20px rgba(30, 64, 175, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.intellisearch-search-card {
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.84)) padding-box,
        linear-gradient(145deg, rgba(71, 85, 105, 0.48), rgba(148, 163, 184, 0.3)) border-box;
    box-shadow: 0 14px 26px rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tmdb-form-premium .input-style {
    border: 1px solid transparent;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(51, 65, 85, 0.78)) padding-box,
        linear-gradient(135deg, rgba(107, 114, 128, 0.52), rgba(75, 85, 99, 0.4)) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tmdb-form-premium .input-style::placeholder {
    color: rgba(156, 163, 175, 0.92);
}

.tmdb-form-premium .input-style:hover {
    background:
        linear-gradient(135deg, rgba(31, 41, 55, 0.84), rgba(55, 65, 81, 0.8)) padding-box,
        linear-gradient(135deg, rgba(148, 163, 184, 0.44), rgba(107, 114, 128, 0.36)) border-box;
}

.tmdb-form-premium .input-style:focus,
.tmdb-form-premium .input-style:focus-visible {
    outline: none;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(51, 65, 85, 0.84)) padding-box,
        linear-gradient(135deg, rgba(30, 64, 175, 0.78), rgba(37, 99, 235, 0.66), rgba(56, 189, 248, 0.5)) border-box;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.tmdb-form-premium select.input-style {
    color: rgba(229, 231, 235, 0.98) !important;
    background-color: #334155 !important;
    color-scheme: dark;
}

.tmdb-form-premium select.input-style option {
    background-color: #334155 !important;
    color: #e5e7eb !important;
}

.tmdb-form-premium select.input-style option:checked {
    background-color: #1e3a8a !important;
    color: #e5edff !important;
}

.tmdb-form-premium select.input-style optgroup {
    background-color: #334155 !important;
    color: #e5e7eb !important;
}

.tmdb-form-premium .tmdb-discovery-collapse {
    border-color: rgba(75, 85, 99, 0.6);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.42), rgba(17, 24, 39, 0.36));
}

.tmdb-form-premium .tmdb-discovery-collapse > summary {
    color: rgba(229, 231, 235, 0.95);
}

.tmdb-form-premium .tmdb-discovery-collapse > summary::marker {
    color: rgba(96, 165, 250, 0.9);
}

.tmdb-form-premium .tmdb-discovery-collapse[open] {
    border-color: rgba(59, 130, 246, 0.56);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.48), rgba(17, 24, 39, 0.4));
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tmdb-form-premium .tmdb-discovery-collapse .autocomplete-results {
    background: #334155;
    border-color: #64748b;
}

.tmdb-form-premium .tmdb-discovery-collapse .autocomplete-item {
    background: rgba(71, 85, 105, 0.54);
    border-bottom-color: rgba(148, 163, 184, 0.46);
}

.tmdb-form-premium .tmdb-discovery-collapse .autocomplete-item:hover {
    background: rgba(100, 116, 139, 0.64);
}

.tmdb-form-premium .tmdb-discovery-collapse select.input-style option {
    background-color: #334155;
}

.tmdb-keyword-action-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    border: 1px solid transparent;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 6px rgba(0, 0, 0, 0.24);
    transition: all 0.18s ease;
}

.tmdb-keyword-action-btn-include {
    color: #dcfce7;
    border-color: rgba(22, 163, 74, 0.62);
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.84), rgba(21, 128, 61, 0.68));
}

.tmdb-keyword-action-btn-include:hover {
    border-color: rgba(34, 197, 94, 0.72);
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.9), rgba(22, 163, 74, 0.74));
}

.tmdb-keyword-action-btn-exclude {
    color: #fee2e2;
    border-color: rgba(220, 38, 38, 0.58);
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.82), rgba(185, 28, 28, 0.66));
}

.tmdb-keyword-action-btn-exclude:hover {
    border-color: rgba(248, 113, 113, 0.7);
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.88), rgba(220, 38, 38, 0.72));
}

.tmdb-form-premium #keywordResults.autocomplete-results {
    background: #334155;
    border-color: #64748b;
    overflow: hidden;
}

.tmdb-form-premium .tmdb-keyword-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.tmdb-form-premium .tmdb-keyword-result-label {
    color: #e5e7eb;
}

.tmdb-form-premium .tmdb-keyword-result-actions {
    display: inline-flex;
    gap: 0.35rem;
}

.tmdb-form-premium .tmdb-keyword-inline-btn {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 0.45rem;
    border: 1px solid transparent;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.16s ease;
}

.tmdb-form-premium .tmdb-keyword-inline-btn-include {
    color: #dcfce7;
    border-color: rgba(22, 163, 74, 0.56);
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.82), rgba(21, 128, 61, 0.62));
}

.tmdb-form-premium .tmdb-keyword-inline-btn-exclude {
    color: #fee2e2;
    border-color: rgba(220, 38, 38, 0.54);
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.8), rgba(185, 28, 28, 0.6));
}

.tmdb-form-premium .tmdb-keyword-chip {
    border: 1px solid transparent;
}

.tmdb-form-premium .tmdb-keyword-chip-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity: 0.95;
}

.tmdb-form-premium .tmdb-keyword-chip-include {
    border-color: rgba(22, 163, 74, 0.62);
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.86), rgba(21, 128, 61, 0.7), rgba(34, 197, 94, 0.46));
}

.tmdb-form-premium .tmdb-keyword-chip-exclude {
    border-color: rgba(220, 38, 38, 0.58);
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.84), rgba(185, 28, 28, 0.7), rgba(239, 68, 68, 0.42));
}

.tmdb-form-premium .chips-container {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.46), rgba(17, 24, 39, 0.4));
    border: 1px solid rgba(75, 85, 99, 0.58);
}

.tmdb-form-premium .chip {
    border: 1px solid rgba(107, 114, 128, 0.62);
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.86), rgba(55, 65, 81, 0.76));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tmdb-form-premium .chip:hover {
    border-color: rgba(148, 163, 184, 0.72);
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.9), rgba(75, 85, 99, 0.8));
}

.tmdb-form-premium .chip.selected {
    border-color: rgba(30, 64, 175, 0.78);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.88), rgba(37, 99, 235, 0.66), rgba(59, 130, 246, 0.44));
    box-shadow: 0 4px 9px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.tmdb-form-premium .chip.selected .chip-remove {
    background: rgba(191, 219, 254, 0.22);
}

.tmdb-range-track-bg {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.86));
    border: 1px solid rgba(55, 65, 81, 0.85);
}

.tmdb-range-track-fill {
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.78), rgba(37, 99, 235, 0.72), rgba(56, 189, 248, 0.6));
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.26);
}

.tmdb-range-input::-webkit-slider-thumb {
    background: linear-gradient(135deg, #1d4ed8, #2563eb, #38bdf8);
    border: 2px solid #dbeafe;
    box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.85), 0 2px 6px rgba(29, 78, 216, 0.35);
}

.tmdb-range-input::-moz-range-thumb {
    background: linear-gradient(135deg, #1d4ed8, #2563eb, #38bdf8);
    border: 2px solid #dbeafe;
    box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.85), 0 2px 6px rgba(29, 78, 216, 0.35);
}

.tmdb-toggle-track {
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(75, 85, 99, 0.82);
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.86), rgba(31, 41, 55, 0.72));
    transition: all 0.22s ease;
}

.peer:checked + .tmdb-toggle-track {
    border-color: rgba(22, 163, 74, 0.76);
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.9), rgba(21, 128, 61, 0.78), rgba(34, 197, 94, 0.65));
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.28), 0 3px 10px rgba(22, 163, 74, 0.24);
}

.tmdb-toggle-thumb {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.93));
    border: 1px solid rgba(148, 163, 184, 0.62);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.peer:checked ~ .tmdb-toggle-thumb {
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.98), rgba(134, 239, 172, 0.9));
    border-color: rgba(34, 197, 94, 0.72);
}

/* Messages premium */
.messages-premium-shell .messages-title-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(56, 189, 248, 0.42);
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.8), rgba(14, 116, 144, 0.62), rgba(6, 182, 212, 0.46));
    box-shadow: 0 7px 16px rgba(14, 116, 144, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.messages-premium-shell .messages-panel {
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.86)) padding-box,
        linear-gradient(145deg, rgba(59, 130, 246, 0.34), rgba(148, 163, 184, 0.24)) border-box;
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.messages-premium-shell .messages-conversation-card {
    border: 1px solid transparent;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.84), rgba(17, 24, 39, 0.76)) padding-box,
        linear-gradient(135deg, rgba(107, 114, 128, 0.5), rgba(75, 85, 99, 0.35)) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease;
}

.messages-premium-shell .messages-conversation-card:hover {
    transform: translateY(-1px);
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(17, 24, 39, 0.82)) padding-box,
        linear-gradient(135deg, rgba(96, 165, 250, 0.56), rgba(148, 163, 184, 0.42)) border-box;
}

.messages-premium-shell .messages-conversation-meta {
    font-size: 0.81rem;
    color: rgba(203, 213, 225, 0.82);
}

.messages-premium-shell .messages-conversation-arrow {
    color: rgba(148, 163, 184, 0.86);
}

.messages-premium-shell .messages-empty-state {
    border: 1px dashed rgba(100, 116, 139, 0.62);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.36), rgba(17, 24, 39, 0.48));
}

.messages-modal-card {
    border: 1px solid rgba(75, 85, 99, 0.72);
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.97), rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.92));
}

.messages-premium-shell .messages-thread-item {
    border-radius: 0.75rem;
    border: 1px solid transparent;
    padding: 0.95rem;
}

.messages-premium-shell .messages-thread-item-admin {
    background:
        linear-gradient(145deg, rgba(6, 78, 59, 0.44), rgba(6, 95, 70, 0.3)) padding-box,
        linear-gradient(145deg, rgba(16, 185, 129, 0.48), rgba(52, 211, 153, 0.32)) border-box;
}

.messages-premium-shell .messages-thread-item-user {
    background:
        linear-gradient(145deg, rgba(30, 58, 138, 0.44), rgba(30, 64, 175, 0.3)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.5), rgba(56, 189, 248, 0.36)) border-box;
}

.messages-premium-shell .messages-thread-author-admin {
    color: #6ee7b7;
}

.messages-premium-shell .messages-thread-author-user {
    color: #93c5fd;
}

.messages-premium-shell .messages-closed-note {
    border: 1px solid rgba(100, 116, 139, 0.64);
    background: linear-gradient(145deg, rgba(51, 65, 85, 0.5), rgba(30, 41, 59, 0.44));
}

/* Onboarding/User settings premium shell */
.wizard-premium-shell .card {
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.86)) padding-box,
        linear-gradient(145deg, rgba(59, 130, 246, 0.34), rgba(148, 163, 184, 0.24)) border-box;
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wizard-premium-shell #wizardProgress > * {
    min-height: 2.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(51, 65, 85, 0.8)) padding-box,
        linear-gradient(135deg, rgba(107, 114, 128, 0.56), rgba(75, 85, 99, 0.38)) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wizard-premium-shell #wizardProgress .list-type-badge-default {
    color: rgba(226, 232, 240, 0.95);
}

.wizard-premium-shell #wizardProgress .list-type-badge-ai {
    color: #eaf2ff;
    background:
        linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(37, 99, 235, 0.74), rgba(56, 189, 248, 0.54)) padding-box,
        linear-gradient(135deg, rgba(147, 197, 253, 0.72), rgba(59, 130, 246, 0.6)) border-box;
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.wizard-premium-shell #wizardProgress .list-type-badge-success {
    color: #dcfce7;
    border: 1px solid transparent;
    background:
        linear-gradient(135deg, rgba(22, 101, 52, 0.9), rgba(21, 128, 61, 0.74), rgba(34, 197, 94, 0.52)) padding-box,
        linear-gradient(135deg, rgba(74, 222, 128, 0.64), rgba(34, 197, 94, 0.5)) border-box;
    box-shadow: 0 7px 16px rgba(22, 163, 74, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.wizard-premium-shell #wizardProgress button:hover {
    transform: translateY(-1px);
}

.wizard-premium-shell label .peer + div.w-11.h-6 {
    position: relative;
    border: 1px solid rgba(75, 85, 99, 0.85);
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.92), rgba(31, 41, 55, 0.8));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wizard-premium-shell label .peer + div.w-11.h-6::after {
    border: 1px solid rgba(148, 163, 184, 0.58);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.92));
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.wizard-premium-shell label .peer:checked + div.w-11.h-6 {
    border-color: rgba(22, 163, 74, 0.78);
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.9), rgba(21, 128, 61, 0.76), rgba(34, 197, 94, 0.66));
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.3), 0 4px 12px rgba(22, 163, 74, 0.22);
}

.wizard-premium-shell label .peer:checked + div.w-11.h-6::after {
    border-color: rgba(34, 197, 94, 0.72);
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.98), rgba(134, 239, 172, 0.9));
}

/* Match /lists/create/tmdb slider look for onboarding + user settings single-range sliders. */
.wizard-premium-shell .wizard-step input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    --range-progress: 0%;
    width: 100%;
    height: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(55, 65, 81, 0.85);
    background: linear-gradient(
        90deg,
        rgba(30, 64, 175, 0.78) 0%,
        rgba(37, 99, 235, 0.72) calc(var(--range-progress) * 0.7),
        rgba(56, 189, 248, 0.6) var(--range-progress),
        rgba(17, 24, 39, 0.86) var(--range-progress),
        rgba(31, 41, 55, 0.9) 100%
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wizard-premium-shell .wizard-step input[type="range"]::-webkit-slider-runnable-track {
    height: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(55, 65, 81, 0.85);
    background: linear-gradient(
        90deg,
        rgba(30, 64, 175, 0.78) 0%,
        rgba(37, 99, 235, 0.72) calc(var(--range-progress) * 0.7),
        rgba(56, 189, 248, 0.6) var(--range-progress),
        rgba(17, 24, 39, 0.86) var(--range-progress),
        rgba(31, 41, 55, 0.9) 100%
    );
}

.wizard-premium-shell .wizard-step input[type="range"]::-moz-range-track {
    height: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(55, 65, 81, 0.85);
    background: linear-gradient(
        90deg,
        rgba(30, 64, 175, 0.78) 0%,
        rgba(37, 99, 235, 0.72) calc(var(--range-progress) * 0.7),
        rgba(56, 189, 248, 0.6) var(--range-progress),
        rgba(17, 24, 39, 0.86) var(--range-progress),
        rgba(31, 41, 55, 0.9) 100%
    );
}

.wizard-premium-shell .wizard-step input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    margin-top: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    border: 2px solid #dbeafe;
    background: linear-gradient(135deg, #1d4ed8, #2563eb, #38bdf8);
    box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.85), 0 2px 6px rgba(29, 78, 216, 0.35);
    cursor: pointer;
}

.wizard-premium-shell .wizard-step input[type="range"]::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    border: 2px solid #dbeafe;
    background: linear-gradient(135deg, #1d4ed8, #2563eb, #38bdf8);
    box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.85), 0 2px 6px rgba(29, 78, 216, 0.35);
    cursor: pointer;
}

.wizard-premium-shell .wizard-history-grid {
    gap: 0.95rem;
    align-items: stretch;
}

/* /lists/create type cards (AI Dynamic / Smart / TMDB Discovery) */
.lists-create-premium-shell .lists-create-type-card {
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.86)) padding-box,
        linear-gradient(145deg, rgba(59, 130, 246, 0.34), rgba(148, 163, 184, 0.24)) border-box;
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lists-create-premium-shell .lists-create-type-card:hover {
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(30, 41, 59, 0.9)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.5), rgba(148, 163, 184, 0.34)) border-box;
    box-shadow: 0 22px 40px rgba(2, 6, 23, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wizard-premium-shell .wizard-history-card {
    border: 1px solid transparent !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.84), rgba(17, 24, 39, 0.78)) padding-box,
        linear-gradient(135deg, rgba(107, 114, 128, 0.5), rgba(75, 85, 99, 0.36)) border-box !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wizard-premium-shell .wizard-history-card:hover {
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(17, 24, 39, 0.84)) padding-box,
        linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(148, 163, 184, 0.42)) border-box !important;
}

.wizard-premium-shell .wizard-history-card-head {
    align-items: flex-start;
}

.wizard-premium-shell .wizard-history-card-logo {
    width: 2.75rem;
    height: 2.75rem;
    margin-top: 0;
    align-self: flex-start;
}

.wizard-premium-shell .wizard-history-card-logo-manual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wizard-premium-shell .wizard-history-card-title-row {
    align-items: flex-start;
    min-height: 2.2rem;
}

.wizard-premium-shell .wizard-history-card-title {
    padding-top: 0 !important;
    margin-top: 0.08rem;
}

.wizard-premium-shell .wizard-history-card-status {
    margin-top: 0;
    align-self: flex-start;
    flex-shrink: 0;
}

/* Auth (login/signup) premium shell */
.auth-premium-shell {
    position: relative;
}

.auth-premium-shell::before,
.auth-premium-shell::after {
    content: "";
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
    filter: blur(36px);
}

.auth-premium-shell::before {
    width: 15rem;
    height: 15rem;
    top: -3rem;
    left: -2rem;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 70%);
}

.auth-premium-shell::after {
    width: 14rem;
    height: 14rem;
    right: -1.5rem;
    bottom: -3.5rem;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0) 70%);
}

.auth-premium-shell .auth-premium-panel {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background:
        linear-gradient(150deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.9), rgba(30, 41, 59, 0.84)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.44), rgba(148, 163, 184, 0.24)) border-box;
}

.auth-premium-shell .auth-premium-panel > * {
    position: relative;
    z-index: 1;
}

.auth-premium-shell .auth-premium-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.16), transparent 42%),
        radial-gradient(circle at 90% 100%, rgba(14, 165, 233, 0.12), transparent 38%);
}

.auth-premium-shell .auth-premium-panel .card {
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.84), rgba(30, 41, 59, 0.72)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.38), rgba(148, 163, 184, 0.2)) border-box;
}

/* Stremio order premium (mobile cards only) */
.stremio-order-page #sortable-catalogs-mobile .catalog-row {
    border: 1px solid rgba(75, 85, 99, 0.46);
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.88), rgba(30, 41, 59, 0.76)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.18), rgba(148, 163, 184, 0.14)) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stremio-order-page #sortable-catalogs-mobile .catalog-row:hover {
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.82)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.36), rgba(148, 163, 184, 0.22)) border-box;
}

.stremio-order-page .catalog-flag-toggle {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    border-radius: 0.32rem;
    border: 1px solid rgba(248, 113, 113, 0.72);
    background:
        linear-gradient(145deg, rgba(127, 29, 29, 0.68), rgba(69, 10, 10, 0.5));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4L4 12' stroke='%23fee2e2' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.62rem 0.62rem;
    box-shadow: 0 0 0 1px rgba(127, 29, 29, 0.46), 0 0 0 3px rgba(248, 113, 113, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.stremio-order-page .catalog-flag-toggle:hover {
    border-color: rgba(252, 165, 165, 0.82);
    box-shadow: 0 0 0 1px rgba(153, 27, 27, 0.52), 0 0 0 3px rgba(248, 113, 113, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stremio-order-page .catalog-flag-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.42), 0 0 0 4px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stremio-order-page .catalog-flag-toggle:checked {
    border-color: rgba(34, 197, 94, 0.78);
    background:
        linear-gradient(145deg, rgba(21, 128, 61, 0.74), rgba(20, 83, 45, 0.56));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l2.5 2.5 6-6' stroke='%23dcfce7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35), 0 0 0 3px rgba(34, 197, 94, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Required field indicator */
.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

/* Trakt Card Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading spinner in button */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Preview modal */
#previewModal .modal-content {
    background: #111827;
    border: 1px solid #374151;
}

#previewModal .table {
    color: #d1d5db;
}

#previewModal .table th {
    background: #1f2937;
    border-color: #374151;
}

#previewModal .table td {
    border-color: #374151;
}

#previewModal .table-hover tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Loading spinner inline */
.spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast notification positioning */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.toast-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* Card hover effects */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Genre chips: show as toggles (faded when off) */
.genre-chip {
    opacity: 0.55;
}

.genre-chip.selected {
    opacity: 1;
}

.tmdb-form-premium .chip.genre-chip-exclude-selected.selected,
.tmdb-form-premium .chip.genre-chip-exclude-selected.selected:hover,
.chip.genre-chip-exclude-selected.selected,
.chip.genre-chip-exclude-selected.selected:hover {
    border-color: rgba(220, 38, 38, 0.82) !important;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(185, 28, 28, 0.76), rgba(239, 68, 68, 0.52)) !important;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.tmdb-form-premium .chip.genre-chip-exclude-selected.selected .chip-remove {
    background: rgba(254, 202, 202, 0.24) !important;
}

/* Button hover effects */
.btn-accent {
    transition: all 0.2s;
}

.btn-accent:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Table row hover */
tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Stremio install button pulse */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(59, 130, 246, 0);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Empty state illustrations */
.empty-state {
    opacity: 0.6;
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    opacity: 0.3;
    margin: 0 auto 20px;
}

/* Responsive utilities */
@media (max-width: 768px) {
    #toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .card {
        border-radius: 12px;
    }
}

/* Dark mode specific enhancements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.badge-success {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge-error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Progress bar */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========== Trakt Hub – Card UI ========== */

/* ─── Trakt Row-based compact layout ─── */

/* Inline poster collage (small, for row thumbnails) */
.trakt-row-posters {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    width: 80px;
    height: 44px;
    position: relative;
}
.trakt-row-posters img {
    position: absolute;
    height: 44px;
    width: 30px;
    min-width: 30px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: -1px 0 4px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}
.trakt-row-posters img[data-idx="0"] { left: 0; z-index: 4; }
.trakt-row-posters img[data-idx="1"] { left: 16px; z-index: 3; }
.trakt-row-posters img[data-idx="2"] { left: 32px; z-index: 2; }
.trakt-row-posters img[data-idx="3"] { left: 48px; z-index: 1; }

.trakt-row-posters:hover img[data-idx="0"] { transform: translateX(-2px); }
.trakt-row-posters:hover img[data-idx="1"] { transform: translateX(-1px); }
.trakt-row-posters:hover img[data-idx="2"] { transform: translateX(1px); }
.trakt-row-posters:hover img[data-idx="3"] { transform: translateX(3px); }

/* Desktop: 50% bigger thumbnails */
@media (min-width: 768px) {
    .trakt-row-posters {
        width: 120px;
        height: 66px;
    }
    .trakt-row-posters img {
        height: 66px;
        width: 45px;
        min-width: 45px;
        border-radius: 4px;
    }
    .trakt-row-posters img[data-idx="0"] { left: 0; }
    .trakt-row-posters img[data-idx="1"] { left: 24px; }
    .trakt-row-posters img[data-idx="2"] { left: 48px; }
    .trakt-row-posters img[data-idx="3"] { left: 72px; }
    .trakt-row-poster-empty {
        width: 120px;
        height: 66px;
        font-size: 1.5rem;
    }
}

.trakt-row-poster-empty {
    width: 80px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 41, 55, 0.4);
    border-radius: 4px;
    font-size: 1.2rem;
}

/* Trakt cards grid */
#traktCardsGrid {
    display: grid;
    gap: 12px 16px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 860px) {
    #traktCardsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1420px) {
    #traktCardsGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#traktCardsGrid .trakt-list-card {
    border-color: rgba(59, 130, 246, 0.24);
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.93), rgba(30, 41, 59, 0.83)) padding-box,
        linear-gradient(145deg, rgba(96, 165, 250, 0.22), rgba(148, 163, 184, 0.14)) border-box;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Single list row */
.trakt-list-row {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease;
    cursor: pointer;
}
.trakt-list-row:hover {
    background: rgba(55, 65, 81, 0.5);
}
/* Keep the + button centered vertically */
.trakt-list-row .trakt-add-btn {
    align-self: center;
}
/* Align poster container with top of info text */
.trakt-list-row .trakt-row-posters {
    align-self: flex-start;
    margin-top: 1px;
}

/* Row info section */
.trakt-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2px;
    padding: 0 0 2px 0;
}
.trakt-row-title {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.2;
    margin-top: -2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trakt-row-owner {
    font-size: 0.7rem;
    opacity: 0.5;
}
.trakt-row-desc {
    font-size: 0.7rem;
    opacity: 0.55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.trakt-row-desc .trakt-detail-link {
    color: rgb(147, 197, 253);
    text-decoration: none;
    font-weight: 500;
    margin-left: 2px;
}
.trakt-row-desc .trakt-detail-link:hover {
    text-decoration: underline;
}

/* Detail modal stat cards */
.trakt-detail-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(55, 65, 81, 0.5);
    border-radius: 0.5rem;
    min-width: 60px;
}
.trakt-detail-stat-value {
    font-weight: 700;
    font-size: 1rem;
}
.trakt-detail-stat-label {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 1px;
}

/* Badges below title inside info */
.trakt-row-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex-shrink: 0;
}

/* Selection card chips */
.trakt-selection-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.4rem 0.65rem;
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    min-width: 0;
    position: relative;
    transition: background 0.15s;
}
.trakt-selection-card:hover {
    background: rgba(37, 99, 235, 0.35);
}
.trakt-selection-card .trakt-sel-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.trakt-selection-card .trakt-sel-meta {
    font-size: 0.65rem;
    opacity: 0.6;
}

/* Card hover lift (remove old, keep minimal for row) */
.trakt-list-row:active {
    background: rgba(55, 65, 81, 0.7);
}

/* Active pill tab */
.trakt-tab {
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* Selection panel (bottom, no longer sidebar) */
#traktSidebar {
    /* No longer sticky sidebar */
}

/* Responsive: on small screens, stack badges below title */
@media (max-width: 640px) {
    .trakt-list-row {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    .trakt-row-badges {
        width: 100%;
        justify-content: flex-end;
    }
}

/* line-clamp-2 utility (fallback if Tailwind doesn't have it) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
