/* ================================
   Voice Demo System – Frontend CSS
   ================================ */

:root {
    --vdemo-chat-launcher-offset: 84px;
}

.vdemo-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 1.5rem 1rem 3rem 1rem;
    box-sizing: border-box;
}

.vdemo-wrapper button,
.vdemo-wrapper a,
.vdemo-wrapper .vdemo-card,
.vdemo-wrapper .vdemo-filter-chip,
.vdemo-wrapper .vdemo-badge,
.vdemo-wrapper .vdemo-subline-info-badge,
.vdemo-wrapper .vdemo-drawer-info-badge,
.vdemo-wrapper .vdemo-play-button,
.vdemo-wrapper .vdemo-page-link,
.vdemo-wrapper .vdemo-page-next,
.vdemo-wrapper .vdemo-drawer-toggle,
.vdemo-wrapper .vdemo-drawer-close,
.vdemo-wrapper .vdemo-drawer-item-remove,
.vdemo-wrapper .vdemo-download-mini,
.vdemo-wrapper .vdemo-memo-mini,
.vdemo-wrapper .vdemo-reset-button {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Meta-Reihe über der Filterbar */

.vdemo-filter-shell {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vdemo-filter-shell .vdemo-filter-meta-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.vdemo-filter-shell .vdemo-filter-meta-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.vdemo-filter-shell .vdemo-result-label {
    font-size: 0.85rem;
    color: #0f1231;
}

/* Filterbar */

.vdemo-filter-shell .vdemo-filter-bar {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vdemo-filter-shell .vdemo-reset-button {
    background-color: #1a93ee;
    color: #ffffff;
    border-radius: 999px;
    padding: 0 18px;
    border: 1px solid #1a93ee;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vdemo-filter-shell .vdemo-reset-button:hover {
    background-color: #137ecf;
    border-color: #137ecf;
}

.vdemo-filter-shell .vdemo-reset-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 147, 238, 0.3);
}

.vdemo-filter-shell .vdemo-filter-row-main {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1100px) {
    .vdemo-filter-shell .vdemo-filter-row-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .vdemo-filter-shell .vdemo-filter-row-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .vdemo-filter-shell .vdemo-filter-row-main {
        grid-template-columns: minmax(0, 1fr);
    }
}

.vdemo-filter-shell .vdemo-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vdemo-filter-shell .vdemo-filter-label {
    font-size: 13px;
    color: #333333;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Selects / Dropdowns */

.vdemo-filter-shell .vdemo-select-wrapper {
    position: relative;
}

.vdemo-filter-shell .vdemo-select,
.vdemo-filter-shell .vdemo-multi-toggle {
    width: 100%;
    height: 50px;
    padding: 0 40px 0 15px;
    border-radius: 8px;
    border: 2px solid #eeeeee;
    background-color: #ffffff;
    font-size: 15px;
    color: #111827;
    line-height: normal;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.vdemo-filter-shell .vdemo-select-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.vdemo-filter-shell .vdemo-select-hover,
.vdemo-filter-shell .vdemo-multi-toggle:hover {
    border-color: #e0e0e0;
    box-shadow: none;
}

.vdemo-filter-shell .vdemo-select:focus,
.vdemo-filter-shell .vdemo-multi-toggle:focus,
.vdemo-filter-shell .vdemo-select-focus,
.vdemo-filter-shell .vdemo-multi-open .vdemo-multi-toggle {
    border-color: #1a93ee;
    outline: none;
    box-shadow: none;
    background-color: #ffffff;
}

.vdemo-filter-shell .vdemo-select-icon {
    display: none;
}

/* Custom Dropdown (Single + Multi) */

.vdemo-filter-shell .vdemo-multi {
    position: relative;
}

.vdemo-filter-shell .vdemo-multi-toggle::after {
    content: none;
}

.vdemo-filter-shell .vdemo-multi-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    max-height: 230px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dddddd;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px;
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 30;
}

.vdemo-filter-shell .vdemo-multi-open .vdemo-multi-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.vdemo-filter-shell .vdemo-multi-option,
.vdemo-filter-shell .vdemo-single-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 5px;
    font-size: 13px;
    color: #333333;
    cursor: pointer;
    background: none;
    border: 0;
    width: 100%;
    text-align: left;
}

.vdemo-filter-shell .vdemo-multi-option:hover,
.vdemo-filter-shell .vdemo-single-option:hover {
    background: #f5f5f5;
    border-radius: 4px;
}

.vdemo-filter-shell .vdemo-multi-checkbox {
    margin: 0;
}

/* Aktive Filter – Bar */

.vdemo-active-filters {
    margin: 0.9rem auto 1.3rem auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    text-align: left;
    width: 100%;
    padding: 14px 10px;
    border-radius: var(--has-classic-forms, var(--theme-form-field-border-radius, 3px));
    background: #f7f9ff;
    border: 1px dashed #d3def1;
}

.vdemo-active-filters-empty {
    display: none;
}

.vdemo-active-filters-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
}

.vdemo-active-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-start;
}

/* Kontaktformular: Gemerkte Demos */

.vdemo-contact-memos-wrap {
    margin-top: 0.85rem;
    padding: 14px 12px;
    border-radius: var(--has-classic-forms, var(--theme-form-field-border-radius, 3px));
    background: #f7f9ff;
    border: 1px dashed #d3def1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.vdemo-contact-memos-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
}

.vdemo-contact-memos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.vdemo-contact-chip {
    border-radius: 999px;
    border: 1px solid #d1def7;
    background: #e5f1ff;
    color: #1f2933;
    font-size: 0.78rem;
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.vdemo-contact-chip-remove {
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
}

.vdemo-contact-memos-hint {
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.35;
    margin-top: 0.4rem;
    width: 100%;
    flex-basis: 100%;
}

.vdemo-filter-chip {
    border-radius: 999px;
    border: 1px solid #d1def7;
    background: #e5f1ff;
    color: #1f2933;
    font-size: 0.78rem;
    padding: 3px 9px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vdemo-filter-chip:hover {
    background: #d7e7ff;
    border-color: #8ccaf5;
    color: #111827;
}

.vdemo-filter-chip-label {
    white-space: nowrap;
}

.vdemo-filter-chip-close {
    font-size: 0.82rem;
    line-height: 1;
}

/* Grid */

.vdemo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.26s ease, transform 0.26s ease;
}

.vdemo-grid-fade-out {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

.vdemo-grid-fade-in {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .vdemo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .vdemo-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Demo Card */

.vdemo-card {
    background: linear-gradient(#1a93ee, #1a93ee) top / 100% 3px no-repeat, #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 20, 26, 0.1);
    box-shadow: 0 8px 24px rgba(15, 20, 26, 0.06);
    padding: 0.95rem 1.05rem 0.9rem 1.05rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: visible;
    opacity: 1;
    transform: none;
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.vdemo-card:hover {
    box-shadow: 0 10px 24px rgba(15, 20, 26, 0.1), 0 0 0 3px rgba(26, 147, 238, 0.12);
    border-color: rgba(26, 147, 238, 0.45);
    background-color: #ffffff;
    transform: none;
}


.vdemo-card-hidden {
    display: none;
}

/* Card-Inhalt */

.vdemo-card-inner {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.vdemo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    color: #0f141a;
    border-radius: 12px;
    padding: 0.35rem 0.6rem;
    overflow: visible;
}

.vdemo-card-title-wrap {
    min-width: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem;
}

.vdemo-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #0f141a;
    flex: 1;
    line-height: 1.25;
    position: relative;
    top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badge mit Demo-ID */

.vdemo-badge {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(15, 20, 26, 0.1);
    background: rgba(15, 20, 26, 0.06);
    font-size: 11px;
    font-weight: 600;
    color: #0f141a;
    white-space: nowrap;
    margin-right: 0.3rem;
    line-height: 1;
    position: relative;
    top: 1px;
}

.vdemo-badge::before {
    content: "ID ";
}

.vdemo-badge-inline {
    margin-right: 0.4rem;
}

/* Eigenschaften Tooltip in Card */

.vdemo-subline-info-badge {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(26, 147, 238, 0.25);
    background: rgba(26, 147, 238, 0.1);
    color: #1a93ee;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    padding: 0;
    outline: none;
    flex-shrink: 0;
    top: 1px;
    margin-left: auto;
}

.vdemo-subline-info-badge:hover {
    background: rgba(26, 147, 238, 0.16);
}

.vdemo-card-header .vdemo-badge {
    background: rgba(15, 20, 26, 0.06);
    border-color: rgba(15, 20, 26, 0.1);
    color: #0f141a;
}

.vdemo-card-header .vdemo-subline-info-badge {
    background: rgba(26, 147, 238, 0.1);
    border-color: rgba(26, 147, 238, 0.25);
    color: #1a93ee;
}

.vdemo-subline-info-badge::before {
    content: "i";
    font-weight: 700;
    font-size: 11px;
}

.vdemo-subline-info-badge-small {
    width: 20px;
    height: 20px;
}

/* Tooltip – helles Design */

.vdemo-subline-info-tooltip {
    position: absolute;
    right: 0;
    bottom: 120%;
    transform: translateY(0);
    background: #f9fbff;
    color: #111827;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.vdemo-subline-info-badge:hover .vdemo-subline-info-tooltip {
    opacity: 1;
    transform: translateY(-4px);
}

.vdemo-subline-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(15, 20, 26, 0.06);
    color: #475569;
    font-size: 0.68rem;
    font-weight: 600;
    margin: 0.1rem 0.15rem;
}

/* Subline Info */

.vdemo-subline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.vdemo-subline-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.vdemo-subline-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5f5;
}

/* Player */

/* Player */

.vdemo-card-audio,
.vdemo-drawer-audio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
    padding: 0.6rem 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 20, 26, 0.08);
    background: #f6f8fb;
}

.vdemo-play-button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(15, 20, 26, 0.12);
    background: #ffffff;
    color: #1a93ee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.vdemo-play-button:hover {
    background: #f0f6ff;
    border-color: rgba(26, 147, 238, 0.35);
    box-shadow: 0 8px 16px rgba(26, 147, 238, 0.12);
}

.vdemo-play-button-active:hover {
    background: #0066b3;
    border-color: #0066b3;
}

.vdemo-play-button-active {
    background: #1a93ee;
    border-color: #1a93ee;
    color: #ffffff;
}

.vdemo-play-icon-play,
.vdemo-play-icon-pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    position: relative;
}

.vdemo-play-icon-play {
    background-color: currentColor;
    -webkit-mask: url("https://dev.pascal-krell.de/wp-content/uploads/2025/08/play-icon.svg") center / contain no-repeat;
    mask: url("https://dev.pascal-krell.de/wp-content/uploads/2025/08/play-icon.svg") center / contain no-repeat;
}

.vdemo-play-icon-pause::before,
.vdemo-play-icon-pause::after {
    content: "";
    width: 3px;
    height: 12px;
    background: currentColor;
    display: block;
    border-radius: 2px;
}

.vdemo-play-icon-pause::after {
    margin-left: 3px;
}

.vdemo-play-button .vdemo-play-icon-pause {
    display: none;
}

.vdemo-play-button-active .vdemo-play-icon-play {
    display: none;
}

.vdemo-play-button-active .vdemo-play-icon-pause {
    display: inline-flex;
}

.vdemo-progress-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.vdemo-progress-track {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: #e5e9f0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.vdemo-progress-fill {
    height: 100%;
    width: 0%;
    background: #1a93ee;
    border-radius: inherit;
}

.vdemo-time-label {
    font-size: 0.75rem;
    color: #64748b;
    min-width: 42px;
    text-align: center;
}

/* Buttons */

.vdemo-card-footer {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    width: 100%;
}

.vdemo-btn {
    border-radius: 12px;
    border: 1px solid rgba(15, 20, 26, 0.12);
    padding: 0 0.95rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    line-height: 1;
    width: 100%;
    height: 42px;
}

.vdemo-btn .vdemo-icon-svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.vdemo-memo-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 0.4rem;
}

.vdemo-card-footer .vdemo-btn:first-child {
    border-radius: 12px;
}

.vdemo-card-footer .vdemo-btn:last-child {
    border-radius: 12px;
}

.vdemo-card-footer .vdemo-btn + .vdemo-btn {
    border-left: none;
}

.vdemo-btn-primary {
    background: #1a93ee;
    color: #ffffff;
    border-color: #1a93ee;
    box-shadow: 0 6px 14px rgba(26, 147, 238, 0.18);
}

.vdemo-btn-primary:hover {
    background: #137ecf;
    border-color: #137ecf;
}

.vdemo-btn-secondary {
    background: transparent;
    color: #0f141a;
    border-color: rgba(15, 20, 26, 0.12);
}

.vdemo-btn-secondary:hover {
    background: rgba(15, 20, 26, 0.04);
    border-color: rgba(15, 20, 26, 0.18);
}

.vdemo-card-footer .vdemo-btn:only-child {
    border-radius: 12px;
}

.vdemo-memo-button-active {
    background: #1a93ee;
    border-color: #1a93ee;
    color: #ffffff;
    box-shadow: none;
}

/* Pagination */

.vdemo-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.vdemo-pagination-pages {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.vdemo-page-link {
    border: 1px solid transparent;
    background: transparent;
    color: #0f172a;
    border-radius: 10px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vdemo-page-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.vdemo-page-link-active {
    background: #1a93ee;
    border-color: #1a93ee;
    color: #ffffff;
}

.vdemo-page-next {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.vdemo-page-next svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.vdemo-page-next:hover:not(:disabled) {
    border-color: #cbd5e1;
    color: #0b5fb8;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.vdemo-page-next:disabled {
    opacity: 0.5;
    cursor: default;
    box-shadow: none;
}

/* Drawer */

/* Drawer */

.vdemo-drawer-toggle {
    position: fixed;
    right: calc(1.5rem + var(--vdemo-chat-launcher-offset));
    left: auto;
    bottom: 1.5rem;
    background: #1a93ee;
    color: #ffffff;
    border-radius: 999px;
    border: none;
    padding: 0.65rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    box-shadow: none;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 99999;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.vdemo-drawer-toggle:hover {
    background: #137ecf;
}

.vdemo-is-hidden {
    display: none !important;
}

@media (max-width: 720px) {
    .vdemo-drawer-toggle {
        right: calc(1rem + var(--vdemo-chat-launcher-offset));
        bottom: 1rem;
    }
}

.vdemo-drawer-toggle-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vdemo-drawer-toggle-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.vdemo-drawer-count {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.vdemo-drawer-toggle-pop {
    animation: vdemo-drawer-pop 0.6s ease;
}

@keyframes vdemo-drawer-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.vdemo-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(420px, 92vw);
    background: #ffffff;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    border-left: none;
    box-shadow: -12px 0 30px rgba(15, 20, 26, 0.08);
    transform: translateX(110%);
    transition: transform 0.28s ease;
    z-index: 99999;
}

.vdemo-drawer-open {
    transform: translateX(0);
}

.vdemo-drawer-header {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(15, 20, 26, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #0f141a;
    color: #ffffff;
}

.vdemo-drawer-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.vdemo-drawer-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.vdemo-drawer-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.vdemo-drawer-close::before {
    content: "×";
    font-size: 18px;
    line-height: 1;
}

.vdemo-drawer-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: visible;
    padding: 1rem 1.5rem;
}

.vdemo-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vdemo-drawer-list-wrap {
    overflow-x: visible;
}

.vdemo-drawer-group-header-strip {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a93ee;
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: #f6f8fb;
    border: 1px solid rgba(26, 147, 238, 0.15);
    border-radius: 12px;
    padding: 0.5rem 0.75rem 0.5rem 0.7rem;
    width: 100%;
    box-sizing: border-box;
    border-left: 2px solid rgba(26, 147, 238, 0.6);
}

.vdemo-drawer-group-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.vdemo-drawer-item {
    background: #ffffff;
    border: 1px solid rgba(15, 20, 26, 0.1);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
}

.vdemo-drawer-item--new {
    border-color: rgba(26, 147, 238, 0.6);
    box-shadow: 0 0 0 1px rgba(26, 147, 238, 0.3);
}

.vdemo-drawer-item-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
    background: transparent;
    color: #0f141a;
    border-radius: 0;
    padding: 0;
}

.vdemo-drawer-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f141a;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vdemo-drawer-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.vdemo-drawer-info-badge {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(26, 147, 238, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #1a93ee;
    position: relative;
    background: rgba(26, 147, 238, 0.1);
    z-index: 2;
}

.vdemo-drawer-info-badge:hover {
    background: rgba(26, 147, 238, 0.16);
}

.vdemo-drawer-info-badge::before {
    content: "i";
    font-weight: 700;
    font-size: 11px;
}

.vdemo-drawer-info-tooltip {
    position: absolute;
    right: 0;
    top: 130%;
    background: #f9fbff;
    color: #111827;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 8px;
    min-width: 140px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 0.75rem;
    z-index: 80;
}

.vdemo-drawer-info-badge:hover .vdemo-drawer-info-tooltip {
    opacity: 1;
    transform: translateY(4px);
}

.vdemo-drawer-info-chip {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 20, 26, 0.06);
    color: #475569;
    font-size: 0.68rem;
    margin: 0.1rem 0.15rem;
    font-weight: 600;
}

.vdemo-drawer-item-remove {
    border: 1px solid rgba(214, 69, 69, 0.35);
    background: rgba(214, 69, 69, 0.08);
    color: #d64545;
    cursor: pointer;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vdemo-drawer-item-remove:hover {
    background: rgba(214, 69, 69, 0.14);
    border-color: rgba(214, 69, 69, 0.5);
    color: #c53838;
}

.vdemo-drawer-footer {
    border-top: 1px solid rgba(15, 20, 26, 0.08);
    padding: 1.1rem 1.5rem 1.5rem;
}

.vdemo-drawer-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vdemo-drawer-footer-buttons {
    display: flex;
    gap: 0.6rem;
    width: 100%;
}

.vdemo-drawer-btn {
    border-radius: 12px;
    border: 1px solid rgba(15, 20, 26, 0.12);
    padding: 0 0.85rem;
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    width: 100%;
    height: 42px;
}

.vdemo-drawer-footer-buttons .vdemo-drawer-btn:first-child {
    border-radius: 12px;
}

.vdemo-drawer-footer-buttons .vdemo-drawer-btn:last-child {
    border-radius: 12px;
}

.vdemo-drawer-footer-buttons .vdemo-drawer-btn + .vdemo-drawer-btn {
    border-left: 1px solid rgba(15, 20, 26, 0.12);
}

.vdemo-drawer-btn-primary {
    background: #1a93ee;
    color: #ffffff;
}

.vdemo-drawer-btn-primary:hover {
    background: #137ecf;
    border-color: #137ecf;
}

.vdemo-drawer-btn-ghost {
    background: transparent;
    color: #0f141a;
    border-color: rgba(15, 20, 26, 0.12);
}

.vdemo-drawer-btn-ghost:hover {
    background: rgba(15, 20, 26, 0.04);
    color: #0f141a;
    border-color: rgba(15, 20, 26, 0.18);
}

.vdemo-drawer-btn-danger {
    background: rgba(248, 113, 113, 0.1);
    color: #b91c1c;
    border-color: rgba(248, 113, 113, 0.3);
    border-radius: 12px;
}

.vdemo-drawer-info-box {
    background: linear-gradient(135deg, rgba(26, 147, 238, 0.1), rgba(26, 147, 238, 0.03));
    border-radius: 14px;
    padding: 0.85rem;
    font-size: 0.75rem;
    color: #0f141a;
    border: 1px solid rgba(26, 147, 238, 0.18);
    box-shadow: none;
}

.vdemo-drawer-info-box p {
    margin: 0.35rem 0 0;
    color: #475569;
}

.vdemo-drawer-item--enter {
    opacity: 0;
    transform: translateY(6px);
}

.vdemo-drawer-item--exit {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

@media (max-width: 720px) {
    .vdemo-drawer {
        width: 100%;
    }
}

/* Standalone Player */

.vdemo-standalone-player {
    max-width: 520px;
    margin: 0 auto;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 20, 26, 0.08);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 20, 26, 0.1);
}

.vdemo-standalone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.vdemo-standalone-header-left {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.vdemo-standalone-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 20, 26, 0.06);
    border: 1px solid rgba(15, 20, 26, 0.1);
}

.vdemo-standalone-audio-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b1220;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vdemo-standalone-badge-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.vdemo-standalone-title-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.vdemo-standalone-subline {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.4;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vdemo-standalone-header-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.vdemo-standalone-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.25rem;
}

.vdemo-standalone-actions .vdemo-download-mini,
.vdemo-standalone-actions .vdemo-memo-mini {
    width: 26px;
    height: 26px;
    box-shadow: none;
    border-radius: 10px;
}

.vdemo-download-mini {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    border: 1px solid rgba(15, 20, 26, 0.12);
    background: #f8fafc;
    color: #1a93ee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

.vdemo-download-mini:hover {
    background: #f1f7ff;
    border-color: rgba(26, 147, 238, 0.35);
    color: #0b5fb8;
}

.vdemo-memo-mini {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    border: 1px solid rgba(15, 20, 26, 0.12);
    background: #f8fafc;
    color: #0f141a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

.vdemo-memo-mini:hover {
    background: #f1f7ff;
    border-color: rgba(26, 147, 238, 0.35);
    color: #0b5fb8;
}

.vdemo-download-mini svg,
.vdemo-memo-mini svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.vdemo-memo-mini .vdemo-memo-mini-tooltip {
    position: absolute;
    bottom: 120%;
    right: 0;
    background: #f9fbff;
    color: #111827;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(0);
    z-index: 10;
}

.vdemo-memo-mini:hover .vdemo-memo-mini-tooltip {
    opacity: 1;
    transform: translateY(-4px);
}

.vdemo-standalone-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vdemo-card-audio-standalone {
    margin-top: 0.6rem;
    padding: 0.6rem 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 20, 26, 0.08);
    background: #f6f8fb;
    box-shadow: none;
}

/* Pagination, Drawer, Standalone etc. */

.vdemo-card-filter-hidden {
    display: none;
}

.vdemo-card-page-hidden {
    display: none;
}
