/* ── 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;
    display: flex;
    flex-direction: column;
    padding: 8px 0 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;
}

/* ── Custom lists search ── */

.vrd_list_dialog_search_wrap {
    position: relative;
    padding: 4px 20px 8px;
    flex-shrink: 0;
}

.vrd_list_dialog_search_wrap .fa-search {
    position: absolute;
    left: 30px;
    top: 47%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

.vrd_list_dialog_search_wrap .vrd_list_dialog_search_clear {
    position: absolute;
    right: 30px;
    top: 47%;
    transform: translateY(-50%);
    color: var(--vrd-dl-text-muted);
    font-size: 18px;
    cursor: pointer;
    display: none;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.vrd_list_dialog_search_wrap .vrd_list_dialog_search_clear:hover {
    color: var(--vrd-dl-text);
}

.vrd_list_dialog_search {
    width: 100%;
    padding: 8px 10px 8px 28px !important;
    border: 2px solid var(--vrd-light-dialog-inputs-border-color) !important;
    background: var(--vrd-light-dialog-inputs-background) !important;
    color: var(--vrd-light-dialog-inputs-text-color) !important;

    border-radius: 6px;
    font-size: 14px;
    outline: none;
    margin: 0 !important;
}

body[data-theme="dark"] .vrd_list_dialog_search {
    border: 2px solid var(--vrd-dark-dialog-inputs-border-color) !important;
    background: var(--vrd-dark-dialog-inputs-background) !important;
    color: var(--vrd-dark-dialog-inputs-text-color) !important;
}

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

/* ── Scrollable custom lists ── */

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

/* ── 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-radius: 6px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 0 !important;

    background: var(--vrd-light-dialog-inputs-background) !important;
    color: var(--vrd-light-dialog-inputs-text-color) !important;
    border: 2px solid var(--vrd-light-dialog-inputs-border-color) !important;
}

.dark-schema .vrd_list_create_form_input,
body[data-theme="dark"] .vrd_list_create_form_input {
    border: 2px solid var(--vrd-dark-dialog-inputs-border-color) !important;
    background: var(--vrd-dark-dialog-inputs-background) !important;
    color: var(--vrd-dark-dialog-inputs-text-color) !important;
}

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

.vrd_list_form_group {
    margin-bottom: 14px;
}

.vrd_list_form_group:last-child {
    margin-bottom: 0;
}

.vrd_list_form_label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--vrd-dark-dialog-title-color);
}

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

textarea.vrd_list_desc_input {
    resize: none;
    font-family: inherit;
}

.vrd_list_page_description {
    margin: 0;
    font-size: 16px;
    color: var(--vrd-dl-text-muted);
    line-height: 1.4;
    max-width: 600px;
}

.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;
    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: 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;
    font-size: 14px;
    margin-bottom: 8px;
    outline: none;
    box-sizing: border-box;
}

body[data-theme="dark"] .vrd_list_create_form input[type="text"] {
    border: 2px solid var(--vrd-dark-dialog-inputs-border-color);
    background: var(--vrd-dark-dialog-inputs-background);
    color: var(--vrd-dark-dialog-inputs-text-color);
}



.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,
body[data-theme="dark"] .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),
body[data-theme="dark"] .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 {
    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: 24px;
    font-weight: 700;
    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);
}

button#vrd_profile_add_list_btn {
    margin: 0 0 0 auto;
}

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

.vrd_profile_add_list_btn {
    margin-left: auto;
    flex-shrink: 0;
}

.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-size: cover;
    background-position: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.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);
}

/* ── Stack card variant ── */

.vrd_list_card--stack {
    height: auto;
    background-image: none !important;
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
}

.vrd_list_card--stack:hover {
    transform: none;
}

.vrd_list_card_posters {
    display: flex;
    text-decoration: none;
    height: 195px;
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: none;
}

.vrd_list_card_poster {
    position: absolute;
    width: 130px;
    height: 195px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 7px 3px 10px rgb(0 0 0 / 40%);
    left: calc(var(--pi) * 50px);
    z-index: calc(6 - var(--pi));
    transition: left 0.25s ease;
}

/* Light mode poster backgrounds */
.vrd_list_card_poster:nth-child(1) {
    background: var(--vrd-light-button-hover-background);
}

.vrd_list_card_poster:nth-child(2) {
    background: color-mix(in srgb, var(--vrd-light-button-hover-background) 90%, black);
}

.vrd_list_card_poster:nth-child(3) {
    background: color-mix(in srgb, var(--vrd-light-button-hover-background) 80%, black);
}

.vrd_list_card_poster:nth-child(4) {
    background: color-mix(in srgb, var(--vrd-light-button-hover-background) 70%, black);
}

.vrd_list_card_poster:nth-child(5) {
    background: color-mix(in srgb, var(--vrd-light-button-hover-background) 60%, black);
}

.vrd_list_card_poster:nth-child(6) {
    background: color-mix(in srgb, var(--vrd-light-button-hover-background) 50%, black);
}

/* Dark mode poster backgrounds */
body[data-theme="dark"] .vrd_list_card_poster:nth-child(1) {
    background: var(--vrd-dark-section-text-color);
}

body[data-theme="dark"] .vrd_list_card_poster:nth-child(2) {
    background: color-mix(in srgb, var(--vrd-dark-section-text-color) 90%, black);
}

body[data-theme="dark"] .vrd_list_card_poster:nth-child(3) {
    background: color-mix(in srgb, var(--vrd-dark-section-text-color) 80%, black);
}

body[data-theme="dark"] .vrd_list_card_poster:nth-child(4) {
    background: color-mix(in srgb, var(--vrd-dark-section-text-color) 70%, black);
}

body[data-theme="dark"] .vrd_list_card_poster:nth-child(5) {
    background: color-mix(in srgb, var(--vrd-dark-section-text-color) 60%, black);
}

body[data-theme="dark"] .vrd_list_card_poster:nth-child(6) {
    background: color-mix(in srgb, var(--vrd-dark-section-text-color) 50%, black);
}

.vrd_list_card--stack:hover .vrd_list_card_poster {
    left: calc(var(--pi) * 55px);
}

.vrd_list_card_poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vrd_list_card_stack_info {
    padding: 8px 0 0;
}

.dark-schema .vrd_list_card--stack .vrd_list_card_title {
    color: #FFF;
}

.vrd_list_card--stack .vrd_list_card_title {
    font-size: 15px;
    font-weight: 700;
    color: var(--vrd-dl-text);
    text-decoration: none;
    display: block;
}

.vrd_list_card--stack .vrd_list_card_title:hover {
    text-decoration: underline;
}

.vrd_list_card--stack .vrd_list_card_meta {
    font-size: 13px;
    color: var(--vrd-dl-text-muted);
    margin-bottom: 32px;
}

.vrd_list_card--stack .vrd_list_card_actions {
    position: relative;
    opacity: 1;
    top: auto;
    right: auto;
    padding: 6px 0 0;
    justify-content: flex-start;
}

/* ── 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;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 24px;
}

.vrd_list_page_avatar_link {
    display: block;
}

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

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

.vrd_list_page_owner {
    color: var(--vrd-dl-primary);
    text-decoration: none;
    font-weight: 700;
}

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

.vrd_list_page_actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.vrd_list_page_meta_dot {
    opacity: 0.5;
}

/* 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_avatar_wrap {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 8px;
}

.vrd_profile_avatar_wrap .vrd_profile_photo_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.vrd_profile_avatar_wrap:hover .vrd_profile_photo_overlay {
    opacity: 1;
}

.vrd_profile_avatar_wrap .vrd_profile_photo_overlay i {
    color: #fff;
    font-size: 32px;
}

.vrd_profile_avatar_wrap::after {
    content: "\f030";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 26px;
    height: 26px;
    background: #DB3575;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    cursor: pointer;
    animation: vrd-pulse-profile 2s ease-in-out infinite;
    z-index: 2;
}

body[data-theme="dark"] .vrd_profile_avatar_wrap::after {
    border-color: var(--vrd-dark-section-background, #141920);
}

@keyframes vrd-pulse-profile {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

.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: 4px;
    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;
}

strong.vrd_profile_badge_num {
    color: var(--vrd-dl-text) !important;
}

.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 16px 8px 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;
    margin-left: 12px;
}

.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 {
    font-size: 10px !important;
    transform: scale(0.85);
    transform-origin: bottom left;
}

.vrd_review_poster .cactus-note.vrd_vote span {
    font-size: 10px !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;
    margin-right: 12px;
}

.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;
    }
}

/* ── Add Programs Dialog ── */

.vrd_add_programs_overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vrd-dl-overlay);
}

.vrd_add_programs_dialog {
    background: var(--vrd-dark-dialog-background);
    border: none;
    border-radius: 12px;
    box-shadow: var(--vrd-dark-dialog-shadow);
    width: 90%;
    max-width: 580px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

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

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

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

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

.vrd_add_programs_search_wrap {
    padding: 0 20px 12px;
    flex-shrink: 0;
    position: relative;
}

.vrd_ap_search_icon {
    position: absolute;
    left: 32px;
    top: 0;
    color: var(--vrd-dl-text-muted);
    pointer-events: none;
    z-index: 9;
    line-height: 40px !important;
}

.vrd_ap_search_clear {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--vrd-dl-text-muted);
    padding: 0 4px;
    line-height: 1;
}

.vrd_ap_search_clear:hover {
    color: var(--vrd-dl-text);
}

.vrd_add_programs_search {
    width: 100% !important;
    padding: 10px 36px !important;
    border-radius: 6px !important;
    border: 2px solid var(--vrd-dark-dialog-inputs-border-color) !important;
    background: var(--vrd-dark-dialog-inputs-background) !important;
    color: var(--vrd-dark-dialog-inputs-text-color) !important;
    font-size: 14px;
    outline: none !important;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

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

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

.vrd_add_programs_body {
    overflow-y: auto;
    min-height: 0;
    flex: 1;
    padding: 0 20px 16px;
}

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

.vrd_add_programs_footer {
    padding: 16px;
    flex-shrink: 0;
    text-align: center;
}

.vrd_add_programs_footer .vrd_add_programs_done {
    width: 100%;
    margin: 0;
}

.vrd_add_programs_dialog .vrd_ob_card {
    cursor: pointer;
    max-width: 120px;
}

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

.vrd_add_programs_dialog .vrd_ob_card .vrd_ob_card_poster {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 2/3;
    width: 100%;
    background: var(--vrd-light-button-background);
    border: none;
}

.vrd_add_programs_dialog .vrd_ob_card .vrd_ob_card_poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vrd_add_programs_dialog .vrd_ob_card .vrd_ob_card_title {
    font-size: 11px;
    margin-top: 4px;
    color: var(--vrd-dl-text) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow: hidden;
    line-height: 1.3;
}

body[data-theme="dark"] strong.vrd_profile_badge_num,
.dark-schema strong.vrd_profile_badge_num {
    color: #FFF !important;
}

body[data-theme="dark"] .vrd_add_programs_dialog .vrd_ob_card .vrd_ob_card_title {
    color: #FFF !important;
}


.vrd_add_programs_dialog .vrd_ob_card .vrd_ob_card_check {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.15s;
    border-radius: inherit;
    pointer-events: none;
}

.vrd_add_programs_dialog .vrd_ob_card.is_selected .vrd_ob_card_check {
    opacity: 1;
}

.vrd_add_programs_dialog .vrd_ob_card.is_selected .vrd_ob_card_poster {
    box-shadow: 0 0 0 3px var(--vrd-dl-primary);
}

.vrd_add_programs_suggested_label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--vrd-dl-text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.vrd_ap_type_badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vrd_add_programs_loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 0;
}

.vrd_add_programs_empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 0;
    color: var(--vrd-dl-text-muted);
    font-size: 14px;
}

/* ── Profile: Follow button ── */

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

#vrd_user_follow_btn.is_following {
    background: var(--vrd-light-button-background);
    color: var(--vrd-dl-text);
    border: 1px solid var(--vrd-dl-border);
}

.dark-schema #vrd_user_follow_btn.is_following {
    background: var(--vrd-dark-button-background);
    color: var(--vrd-dl-text);
}

#vrd_user_follow_btn.is_following:hover {
    border-color: var(--vrd-dl-primary);
    color: var(--vrd-dl-primary);
}

/* ── Social list (Followers / Following) ── */

.vrd_social_list {
    display: flex;
    flex-direction: column;
}

.vrd_social_user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--vrd-dl-border);
    transition: opacity 0.15s;
}

.vrd_social_user:last-child {
    border-bottom: none;
}

.vrd_social_user:hover {
    opacity: 0.8;
    text-decoration: none;
}

.vrd_social_user_avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.vrd_social_user_name {
    font-size: 14px;
    font-weight: 600;
    color: var(--vrd-dl-text);
}

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

@media (max-width: 900px) {
    .vrd_social_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.vrd_social_card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    background: var(--vrd-light-button-background);
    text-decoration: none;
    transition: background 0.15s;
}

.vrd_social_card:hover {
    background: var(--vrd-light-button-hover-background);
    text-decoration: none;
}


.vrd_social_card_avatar {
    width: 75px;
    height: 75px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.vrd_social_card_info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vrd_social_card_name {
    font-size: 15px;
    font-weight: 600;
    color: var(--vrd-light-dialog-title-color);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

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

.vrd_social_card_meta {
    font-size: 13px;
    color: var(--vrd-dl-text-muted);
}

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

    .vrd_profile_actions {
        width: 100%;
    }

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

    .vrd_add_programs_grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vrd_profile_badges {
        flex-wrap: wrap;
    }
}
