/* ── Theme tokens (dark-first) ── */

:root {
    --vrd-dl-bg: #0f0f13;
    --vrd-dl-surface: #1a1a24;
    --vrd-dl-surface-hover: #252536;
    --vrd-dl-border: #2a2a3a;
    --vrd-dl-text: #e4e4ed;
    --vrd-dl-text-muted: #939494;
    --vrd-dl-primary: #DB3575;
    --vrd-dl-overlay: rgba(0, 0, 0, 0.6);
}

[data-theme="light"],
.light-skin {
    --vrd-dl-bg: #fff;
    --vrd-dl-surface: #f5f5f7;
    --vrd-dl-surface-hover: #eaeaef;
    --vrd-dl-border: #e0e0e6;
    --vrd-dl-text: #1a1a24;
    --vrd-dl-text-muted: #6b6b80;
    --vrd-dl-primary: #DB3575;
    --vrd-dl-overlay: rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]):not(.dark-skin) {
        --vrd-dl-bg: #fff;
        --vrd-dl-surface: #f5f5f7;
        --vrd-dl-surface-hover: #eaeaef;
        --vrd-dl-border: #e0e0e6;
        --vrd-dl-text: #1a1a24;
        --vrd-dl-text-muted: #6b6b80;
        --vrd-dl-primary: #DB3575;
        --vrd-dl-overlay: rgba(0, 0, 0, 0.4);
    }
}

/* ── Add to List Dialog ── */

.vrd_list_dialog_overlay {
    position: fixed;
    inset: 0;
    background: var(--vrd-dl-overlay);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vrd_list_fadeIn 0.2s ease;
}

@keyframes vrd_list_fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.vrd_list_dialog {
    background: var(--vrd-dark-dialog-background);
    box-shadow: var(--vrd-dark-dialog-shadow);
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: vrd_list_dialogIn 0.25s ease;
}

body:not([data-theme=dark]) .vrd_list_dialog {
    background: var(--vrd-light-dialog-background);
    box-shadow: var(--vrd-light-dialog-shadow);
}

@keyframes vrd_list_dialogIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.vrd_list_dialog_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.vrd_list_dialog_header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--vrd-dark-dialog-title-color);
}

body:not([data-theme=dark]) .vrd_list_dialog_header h3 {
    color: var(--vrd-light-dialog-title-color);
}


.vrd_list_dialog_system_wrap {
    flex-shrink: 0;
}

.vrd_list_dialog_body {
    overflow-y: auto;
    padding: 8px 0;
    flex: 1;
    min-height: 0;
}

/* ── System lists: flex row ── */

.vrd_list_dialog_system {
    display: flex;
    padding: 4px 12px;
    gap: 4px;
}

.vrd_list_dialog_system .vrd_list_dialog_item {
    flex: 1;
    border-radius: 8px;
    padding: 10px 12px;
    justify-content: flex-start;
    flex-direction: row;
    gap: 8px;
}

.vrd_list_dialog_system .vrd_list_dialog_item .list-check {
    order: 0;
    align-self: center;
}

.vrd_list_dialog_system .vrd_list_dialog_item .list-info {
    text-align: left;
}

/* ── Section title ── */

.vrd_list_dialog_section_title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--vrd-dl-text-muted);
    padding: 8px 20px 4px;
}

/* ── Dialog List Item ── */

.vrd_list_dialog_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: var(--vrd-dl-text);
}

.vrd_list_dialog_item:hover {
    background: var(--vrd-dl-surface-hover);
}

/* Checkbox on the LEFT */
.vrd_list_dialog_item .list-check {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 2px solid var(--vrd-dl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    color: transparent;
    transition: all 0.15s ease;
    order: -1;
}

.vrd_list_dialog_item.is_active .list-check {
    background: var(--vrd-dl-primary);
    border-color: var(--vrd-dl-primary);
    color: #fff;
}

/* List info */
.vrd_list_dialog_item .list-info {
    flex: 1;
    min-width: 0;
}

.vrd_list_dialog_item .list-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body[data-theme="dark"] .vrd_list_dialog_item:hover{
    background:var(--vrd-dark-button-hover-background);
}
body[data-theme="dark"] .vrd_list_dialog .vrd_list_create_form_title,
body[data-theme="dark"] .vrd_list_dialog .vrd_list_create_toggle,
body[data-theme="dark"] .vrd_list_dialog .vrd_list_dialog_item .list-title {
    color: #FFF;
}

.vrd_list_dialog_item .list-meta {
    font-size: 12px;
    color: var(--vrd-dl-text-muted);
    line-height: 1.4;
}

/* Custom list: bold primary title */
.vrd_list_dialog_item.is_custom .list-title {
    font-weight: 700;
}

/* Separator */
.vrd_list_dialog_sep {
    height: 1px;
    background: var(--vrd-light-dialog-border-color);
    margin: 4px 20px;
}

body[data-theme="dark"] .vrd_list_dialog_sep{
    background: var(--vrd-dark-dialog-border-color);
}

    /* ── Create new list form ── */

.vrd_list_dialog_done_wrap {
    padding: 8px 20px 12px 20px;
    display: none;
}

.vrd_list_dialog_done {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--vrd-dl-primary) !important;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.vrd_list_dialog_done:hover {
    opacity: 0.9;
}

.vrd_list_dialog_footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
}

.vrd_list_create_form_input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--vrd-dark-dialog-inputs-border-color);
    border-radius: 6px;
    background: var(--vrd-dark-dialog-inputs-background);
    color: var(--vrd-dark-dialog-inputs-text-color);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

body:not([data-theme=dark]) .vrd_list_create_form_input {
    background: var(--vrd-light-dialog-inputs-background);
    color: var(--vrd-light-dialog-inputs-text-color);
    border-color: var(--vrd-light-dialog-inputs-border-color);
}

.vrd_list_create_form_input:focus {
    border-color: var(--vrd-dl-primary);
}

.vrd_list_dialog_confirm--danger {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
}

.vrd_list_dialog_confirm--danger:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

.vrd_list_create_toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--vrd-dl-text);
    cursor: pointer;
    padding: 4px 0;
}

.vrd_list_create_toggle:hover {
    opacity: 0.8;
}

.vrd_list_create_form {
    display: none;
}

.vrd_list_create_form.is_open {
    display: block;
    flex: 1;
    border-top: 1px solid var(--vrd-dl-border);
    padding-top: 8px;
}

.vrd_list_create_form_title {
    font-size: 14px;
    font-weight: 600;
    color: var(--vrd-dl-text);
    margin-bottom: 8px;
}

.vrd_list_create_form input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--vrd-dl-border);
    border-radius: 6px;
    background: var(--vrd-dl-bg);
    color: var(--vrd-dl-text);
    font-size: 14px;
    margin-bottom: 8px;
    outline: none;
    box-sizing: border-box;
}

.vrd_list_create_form input[type="text"]:focus {
    border-color: var(--vrd-dl-primary);
}

.vrd_list_create_row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Button group toggle for privacy */
.vrd_list_vis_toggle {
    display: inline-flex;
    border-radius: 6px;
    overflow: hidden;
    background: var(--vrd-light-button-background);
    flex-shrink: 0;
    padding: 4px;
}

.dark-schema .vrd_list_vis_toggle {
    background: var(--vrd-dark-button-background);
}


.vrd_list_vis_toggle button:hover:not(.is_active) {
    background: var(--vrd-light-button-hover-background);
    color: var(--vrd-light-button-hover-color);
}

.dark-schema .vrd_list_vis_toggle button:hover:not(.is_active) {
    background: var(--vrd-dark-button-hover-background);
    color: var(--vrd-dark--button-hover-color);
}

.vrd_list_vis_toggle button {
    padding: 4px 14px;
    border: none;
    color: var(--vrd-dl-text-muted);
    background: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vrd_list_vis_toggle button:hover {
    color: var(--vrd-dl-text);
    background: none;
}

.vrd_list_vis_toggle button.is_active {
    background: var(--vrd-dl-primary);
    color: #fff;
}

/* Cancel button — pushed right */
.vrd_list_cancel_btn {
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--vrd-dl-text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;

}

.vrd_list_cancel_btn:hover {
    color: var(--vrd-dl-text);
    background: none;
}

/* Create button */
.vrd_list_create_row .vrd_list_create_btn {
    padding: 7px 16px;
    border: none;
    margin-left: auto;
    border-radius: 6px;
    background: var(--vrd-dl-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.vrd_list_create_row .vrd_list_create_btn:hover {
    opacity: 0.9;
}

/* ── List Page Title ── */

.vrd_list_page_title {
    font-size: 18px;
    font-weight: 600;
    color: var(--vrd-dl-text);
    margin: 0;
    line-height: 1.3;
    padding: 0;
}

/* ── Lists Hub Page ── */

.vrd_lists_hub_header {
    margin-bottom: 8px;
}

.vrd_lists_hub_header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--vrd-dl-text);
}

/* Tab bar */
.vrd_lists_hub_tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--vrd-light-button-background);
    border-radius: 8px;
    padding: 8px;
}

.dark-schema .vrd_lists_hub_tabs,
body[data-theme="dark"] .vrd_lists_hub_tabs {
    background: var(--vrd-dark-button-background);
}

body[data-theme="dark"] .vrd_lists_hub_tab {
    color: #999;
}

.vrd_lists_hub_tab {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    background: none;
    color: #777;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    text-decoration: none;
}

body[data-theme="dark"] .vrd_lists_hub_tab:not(.is_active):hover {
    color: #FFF;
    background: #222a37;
}

.vrd_lists_hub_tab:not(.is_active):hover {
    color: #38384f;
    background: #cfcfd7;
    text-decoration: none;
}

.vrd_lists_hub_tab.is_active {
    background: var(--vrd-dl-primary);
    color: #FFF !important;
}

/* List card grid */
.vrd_lists_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .vrd_lists_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vrd_profile_reviews_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vrd_reviews_toolbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .vrd_lists_grid {
        grid-template-columns: 1fr;
    }

    .vrd_profile_reviews_grid {
        grid-template-columns: 1fr;
    }
}

/* List card — background-image style */
.vrd_list_card {
    position: relative;
    display: block;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background-color: var(--vrd-light-button-hover-background);
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dark-schema .vrd_list_card {
    background-color: var(--vrd-dark-button-hover-background);
}

.vrd_list_card_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.vrd_list_card_title {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.vrd_list_card_meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0;
    line-height: 1.2;
}

.vrd_list_card_overlay,
.vrd_list_card_overlay:hover {
    text-decoration: none;
    color: #fff;
}

.vrd_list_card_actions {
    position: absolute;
    top: 8px;
    right: 8px;

    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    display: none;
}

.vrd_list_card:hover .vrd_list_card_actions {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.vrd_list_card_actions .vrd_list_vis_toggle {
    padding: 3px !important;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.vrd_list_card_actions .vrd_list_vis_toggle button {
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 0.5px;
    padding: 2px 5px !important;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
}

.vrd_list_card_actions .vrd_list_vis_toggle button:hover {
    color: #fff;
}

.vrd_list_card_actions .vrd_list_vis_toggle button.is_active {
    background: var(--vrd-dl-primary);
    color: #fff;
}

.vrd_list_card_edit,
.vrd_list_card_delete {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    padding: 5px 8px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.vrd_list_card_edit:hover {
    color: #fff;
}

.vrd_list_card_delete:hover {
    color: #ef4444;
}

/* ── List card icon display ── */

.vrd_list_card_icon_display {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(219, 53, 117, 0.15), rgba(219, 53, 117, 0.05));
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
}

.vrd_list_card.vrd_list_card_icon:hover .vrd_list_card_icon_display {
    color: rgba(255, 255, 255, 0.5);
}

/* ── is_selected state on poster list button ── */

.cactus-note.vrd_list_btn.is_selected span i {
    color: var(--vrd-dl-primary, #DB3575);
}

/* ── List page grid spacing ── */

#vrd_refiner_holder + .cactus-listing-wrap,
.vrd_list_page_header + .cactus-listing-wrap {
    margin-top: 16px;
}

/* ── List Page ── */

.vrd_list_page_header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.vrd_list_page_avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.vrd_list_page_icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--vrd-light-button-background);
    color: var(--vrd-light-button-color);
}

body[data-theme="dark"] .vrd_list_page_icon {
    background: var(--vrd-dark-button-background);
    color: var(--vrd-dark-button-color);
}

.vrd_list_page_left {
    flex: 1;
    min-width: 0;
}

.vrd_list_page_meta {
    font-size: 14px;
    color: var(--vrd-dl-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vrd_list_page_actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* Action buttons (Share, Rename, Delete) */
.vrd_list_action_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--vrd-dl-border);
    background: var(--vrd-dl-surface);
    color: var(--vrd-dl-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vrd_list_action_btn:hover {
    background: var(--vrd-dl-surface-hover);
    border-color: var(--vrd-dl-text-muted);
}

.vrd_list_action_btn--danger:hover {
    color: #ef4444;
    border-color: #ef4444;
}

#vrd_list_follow_btn.is_following {
    color: var(--vrd-dl-text-muted);
}

#vrd_list_follow_btn.is_following:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Share tooltip */
.vrd_share_tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--vrd-dl-text);
    color: var(--vrd-dl-bg);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    animation: vrd_list_fadeIn 0.15s ease;
}

/* ── Account Lists Tab ── */

.vrd_account_lists {
    max-width: 700px;
}

.vrd_account_lists h2,
.vrd_account_lists h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--vrd-dl-text);
}

.vrd_account_list_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--vrd-dl-border);
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--vrd-dl-surface);
}

.vrd_account_list_row i.list-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--vrd-dl-text-muted);
}

.vrd_account_list_row .list-info {
    flex: 1;
    min-width: 0;
}

.vrd_account_list_row .list-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--vrd-dl-text);
}

.vrd_account_list_row .list-name a {
    color: inherit;
    text-decoration: none;
}

.vrd_account_list_row .list-name a:hover {
    color: var(--vrd-dl-primary);
}

.vrd_account_list_row .list-count {
    font-size: 12px;
    color: var(--vrd-dl-text-muted);
}

.vrd_account_list_row .list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.vrd_visibility_toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--vrd-dl-border);
    background: transparent;
    color: var(--vrd-dl-text-muted);
    font-size: 12px;
    cursor: pointer;
}

.vrd_visibility_toggle.is_public {
    color: var(--vrd-dl-primary);
    border-color: var(--vrd-dl-primary);
}

.vrd_list_delete_btn {
    background: none;
    border: none;
    color: var(--vrd-dl-text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

.vrd_list_delete_btn:hover {
    color: #ef4444;
}

/* ── Guest CTA ── */

.vrd_ul_guest_cta {
    text-align: center;
    padding: 60px 20px;
    background: #e0e0e6;
    border-radius: 8px;
}

body[data-theme="dark"] .vrd_ul_guest_cta {
    background: #141920;
}

.vrd_ul_guest_cta p {
    font-size: 16px;
    color: var(--vrd-dl-text-muted);
    margin: 0 0 16px;
}

.vrd_ul_guest_cta .vrd_button.is_primary {
    display: inline-block;
}

/* ── Empty state ── */

.vrd_ul_empty {
    text-align: center;
    padding: 60px 20px;
    margin-top: 16px;
    font-size: 16px;
    color: var(--vrd-dl-text-muted);
    background: var(--vrd-light-button-background);
    border-radius: 8px;
    width: 100%;
    grid-column: 1 / -1;
}

body[data-theme="dark"] .vrd_ul_empty {
    background: var(--vrd-dark-button-background);
}

.vrd_ul_loader {
    text-align: center;
    padding: 24px;
    font-size: 14px;
    color: var(--vrd-dl-text-muted);
    display: none;
}

.vrd_ul_loader.is_loading {
    display: block;
}

/* ── Login / Register Dialog ── */

.vrd_login_dialog_overlay {
    position: fixed;
    inset: 0;
    background: var(--vrd-dl-overlay);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vrd_list_fadeIn 0.2s ease;
}

.vrd_login_dialog {
    position: relative;
    background: var(--vrd-light-dialog-background);
    box-shadow: var(--vrd-light-dialog-shadow);
    border: 1px solid var(--vrd-light-dialog-border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 460px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: vrd_list_dialogIn 0.25s ease;
    overflow: hidden;
}

body[data-theme="dark"] .vrd_login_dialog {
    background: var(--vrd-dark-dialog-background);
    box-shadow: var(--vrd-dark-dialog-shadow);
    border-color: var(--vrd-dark-dialog-border-color);
}

.vrd_login_dialog_close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 1;
}

.vrd_login_dialog_body {
    padding: 28px 24px 24px;
    overflow-y: auto;
    flex: 1;
}

.vrd_login_dialog_title {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 700;
    color: var(--vrd-light-dialog-title-color);
    padding: 0 !important;
}

body[data-theme="dark"] .vrd_login_dialog_title {
    color: var(--vrd-dark-dialog-title-color);
}

.vrd_login_dialog_panel {
    display: none;
}

.vrd_login_dialog_panel.is_active {
    display: block;
}

/* ── Form fields ── */

.vrd_login_dialog_field {
    margin-bottom: 12px;
}

.vrd_login_dialog_field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--vrd-light-button-color);
    margin-bottom: 5px;
}

body[data-theme="dark"] .vrd_login_dialog_field label {
    color: var(--vrd-dark-button-color);
}

.vrd_login_dialog_field.is_inline label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 13px;
    color: var(--vrd-dl-text-muted);
    cursor: pointer;
}

.vrd_login_dialog_field input[type=text],
.vrd_login_dialog_field input[type=password],
.vrd_login_dialog_field input[type=email] {
    width: 100%;
    border: 2px solid var(--vrd-light-dialog-inputs-border-color);
    background: var(--vrd-light-dialog-inputs-background);
    color: var(--vrd-light-dialog-inputs-text-color);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
    margin-bottom: 0;
}

body[data-theme="dark"] .vrd_login_dialog_field input[type=text],
body[data-theme="dark"] .vrd_login_dialog_field input[type=password],
body[data-theme="dark"] .vrd_login_dialog_field input[type=email] {
    background: var(--vrd-dark-dialog-inputs-background) !important;
    color: var(--vrd-dark-dialog-inputs-text-color);
    border-color: var(--vrd-dark-dialog-inputs-border-color);
}

.vrd_login_dialog_field input:focus {
    border-color: var(--vrd-dl-primary);
}

.vrd_login_dialog_row {
    display: flex;
    gap: 12px;
}

.vrd_login_dialog_row .vrd_login_dialog_field {
    flex: 1;
}

.vrd_login_dialog_submit {
    width: 100%;
    margin-top: 6px;
}

.vrd_login_dialog_submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vrd_login_dialog_submit.is_loading {
    position: relative;
    color: transparent;
}

.vrd_login_dialog_submit.is_loading::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vrd_login_spin 0.6s linear infinite;
}

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

.vrd_login_dialog_error {
    background: rgba(199, 74, 74, 0.12);
    border: 1px solid #c74a4a;
    color: #c74a4a;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

.vrd_login_dialog_hint {
    font-size: 13px;
    color: var(--vrd-dl-text-muted);
    margin: 0 0 16px;
    line-height: 1.45;
}

.vrd_login_dialog_success {
    background: rgba(46, 160, 67, 0.12);
    border: 1px solid #2ea043;
    color: #2ea043;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.45;
}

.vrd_login_dialog_links {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
}

.vrd_login_dialog_links a {
    font-size: 14px;
    color: var(--vrd-dl-text-muted);
    text-decoration: none;
}

.vrd_login_dialog_links a:hover {
    color: var(--vrd-dl-primary);
}

.vrd_login_dialog_links a strong {
    color: var(--vrd-dl-primary);
    font-weight: 600;
}

.vrd_login_dialog_links_sep {
    display: inline-block;
    margin: 0 8px;
    color: var(--vrd-dl-border);
}

/* Social login slot (future) */
.vrd_login_dialog_social:empty {
    display: none;
}

@media (max-width: 600px) {
    .vrd_login_dialog {
        width: 95%;
        max-width: none;
        border-radius: 8px;
    }

    .vrd_login_dialog_body {
        padding: 16px;
    }

    .vrd_login_dialog_row {
        flex-direction: column;
        gap: 0;
    }
}

/* ══════════════════════════════════════════════════════
   Profile Page  /profil/{slug}/
   ══════════════════════════════════════════════════════ */

.vrd_profile_header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.vrd_profile_avatar {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.vrd_profile_info {
    flex: 1;
    min-width: 0;
}

.vrd_profile_name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    padding: 0;
    color: var(--vrd-dl-text);
}

.vrd_profile_badges {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--vrd-dl-text-muted);
}

.vrd_profile_badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vrd_profile_badge i {
    font-size: 11px;
}

.vrd_profile_badge_sep {
    color: var(--vrd-dl-text-muted);
}

.vrd_profile_actions {
    flex-shrink: 0;
}

/* ── Media grid (Notes & Series) ── */

.vrd_profile_media_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.vrd_profile_media_card {
    display: flex;
    gap: 12px;
    background: var(--vrd-dl-surface);
    border: 1px solid var(--vrd-dl-border);
    border-radius: 8px;
    overflow: hidden;
    padding: 12px;
}

.vrd_profile_media_thumb {
    width: 56px;
    height: 80px;
    border-radius: 4px;
    background: var(--vrd-dl-border) center/cover no-repeat;
    flex-shrink: 0;
    position: relative;
    display: block;
    text-decoration: none;
}

.vrd_profile_rating_badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: var(--vrd-dl-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    padding: 1px 5px;
    line-height: 1.6;
}

.vrd_profile_media_info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vrd_profile_media_title {
    font-size: 14px;
    font-weight: 600;
    color: var(--vrd-dl-text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.vrd_profile_media_title:hover {
    color: var(--vrd-dl-primary);
    text-decoration: none;
}

.vrd_profile_media_review {
    font-size: 13px;
    color: var(--vrd-dl-text-muted);
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.vrd_profile_media_review.is_spoiler .vrd_profile_spoiler_text {
    filter: blur(4px);
    user-select: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.vrd_profile_media_review.is_spoiler.is_revealed .vrd_profile_spoiler_text {
    filter: none;
    user-select: auto;
}

.vrd_profile_spoiler_label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--vrd-dl-primary);
    margin-bottom: 4px;
    cursor: default;
}

/* ── Review Cards (horizontal layout) ── */

/* ── Reviews toolbar ── */

.vrd_reviews_toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.vrd_reviews_search_wrap {
    position: relative;
    flex: 0 0 200px;
}

.vrd_reviews_search_icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--vrd-dl-text-muted);
    pointer-events: none;
}

.vrd_reviews_search {
    width: 100% !important;
    padding: 8px 28px 8px 30px !important;
    border: none !important;
    border-radius: 6px !important;
    background: var(--vrd-light-section-background) !important;
    color: var(--vrd-light-button-color) !important;
    font-size: 14px;
    outline: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.dark-schema .vrd_reviews_search {
    background: var(--vrd-dark-section-background) !important;
    color: var(--vrd-dark-button-color) !important;
}

.vrd_reviews_search:focus {
    border-color: var(--vrd-dl-primary);
}

.vrd_reviews_search_clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--vrd-dl-text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    display: none;
}

.vrd_reviews_search_clear:hover {
    color: var(--vrd-dark-button-color) !important;
    background: none !important;
}

.vrd_reviews_search_wrap.has_value .vrd_reviews_search_clear {
    display: block;
}

.vrd_reviews_sort {
    padding: 8px 28px 8px 12px;
    border: none;
    border-radius: 6px;
    background: var(--vrd-light-section-background) !important;
    color: var(--vrd-light-button-color) !important;
    font-size: 14px;
    margin-bottom: 0;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
    width: auto;
    appearance: auto !important;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

.dark-schema .vrd_reviews_sort {
    background: var(--vrd-dark-section-background) !important;
    color: var(--vrd-dark-button-color) !important;
}

.vrd_reviews_sort:focus {
    border-color: var(--vrd-dl-primary);
}

.vrd_reviews_count {
    margin-left: auto;
    font-size: 13px;
    color: var(--vrd-dl-text-muted);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Reviews grid ── */

.vrd_profile_reviews_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.vrd_review_card {
    display: flex;
    gap: 12px;
    overflow: hidden;
    padding: 8px;
    background: var(--vrd-light-button-background);
    border-radius: 8px;
    transition: border-color 0.15s ease;
}


.dark-schema .vrd_review_card {
    background: var(--vrd-dark-button-background);
}

.vrd_review_poster {
    flex-shrink: 0;
    width: 120px;
    position: relative;
}

.vrd_review_poster .picture-content {
    position: relative;
    width: 120px;
}

.vrd_review_poster .picture-content img {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 4px;
}

.vrd_review_poster .cactus-note {
    font-size: 12px !important;
}

.vrd_review_poster .cactus-note.vrd_type span {
    font-size: 9px !important;
}

.vrd_review_poster .cactus-note.vrd_vote span {
    font-size: 12px !important;
}

.vrd_review_poster .cactus-note.vrd_list_btn {
    display: none;
}

.vrd_review_content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 4px;
    justify-content: flex-start;
}

.vrd_review_program_title {
    font-size: 14px;
    font-weight: 600;
    color: var(--vrd-dl-text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    margin-bottom: 4px;
}

.vrd_review_program_title:hover {
    color: var(--vrd-dl-primary);
}

.vrd_review_user_rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--vrd-dl-primary);
}

.vrd_review_user_rating i {
    font-size: 14px;
}

.vrd_review_text,
.vrd_review_date {
    font-size: 13px;
    color: var(--vrd-light-button-hover-color);
}

.vrd_review_edit_btn {
    margin-top: auto !important;
    align-self: flex-start;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none !important;
}

.vrd_review_edit_btn:hover {
    color: var(--vrd-dl-primary) !important;
}

.dark-schema .vrd_review_text,
.dark-schema .vrd_review_date {
    font-size: 13px;
    color: var(--vrd-dark-button-hover-color);
}


.vrd_review_text {
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.vrd_review_text.is_spoiler .vrd_review_spoiler_text {
    filter: blur(4px);
    user-select: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.vrd_review_text.is_spoiler.is_revealed .vrd_review_spoiler_text {
    filter: none;
    user-select: auto;
}

.vrd_review_spoiler_label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--vrd-dl-primary);
    margin-bottom: 4px;
    cursor: default;
}

/* ── Series Tracking ── */

.vrd_tracking_label {
    display: inline;
    font-size: 13px;
    font-weight: 400;
    color: var(--vrd-light-button-hover-color);
    margin-right: 4px;
    opacity: 0.7;
}

.dark-schema .vrd_tracking_label{
    color:var(--vrd-dark-button-hover-color);
}

.vrd_tracking_progress {
    font-size: 13px;
    font-weight: 600;
    color: var(--vrd-dl-primary);
}

.vrd_tracking_bar {
    margin-top: auto;
    width: 100%;
    height: 6px;
    background: var(--vrd-light-button-hover-background);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.dark-schema .vrd_tracking_bar {
    background: var(--vrd-dark-button-hover-background);
}

.vrd_tracking_bar_fill {
    height: 100%;
    background: var(--vrd-dl-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ── Public Lists Directory ── */

.vrd_public_lists_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.vrd_list_card_owner_link {
    color: var(--vrd-dl-primary);
    cursor: pointer;
}

.vrd_list_card_owner_link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .vrd_public_lists_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .vrd_public_lists_grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .vrd_profile_header {
        flex-wrap: wrap;
    }

    .vrd_profile_actions {
        width: 100%;
    }

    .vrd_profile_media_grid {
        grid-template-columns: 1fr;
    }

}
