/* YouTube Visual Playlist Mixer v2.1 */

.yvpm-app * { box-sizing: border-box; }

.yvpm-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: #10141f;
    color: #f4f7fb;
    border-radius: 18px;
    font-family: Arial, Helvetica, sans-serif;
}

.yvpm-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.yvpm-header h2,
.yvpm-now-playing h3,
.yvpm-queue-section h3,
.yvpm-saved-mixes h3 {
    margin: 0 0 8px;
    color: #ffffff;
}

.yvpm-header p,
#yvpm-status,
.yvpm-substatus,
.yvpm-help {
    margin: 0;
    color: #b9c2d0;
}

.yvpm-api-notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #332815;
    border: 1px solid #7a5b1e;
    color: #ffdf9e;
}


.yvpm-system-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
}

.yvpm-system-status-icon {
    font-size: 18px;
    line-height: 1.2;
    margin-top: 1px;
}

.yvpm-system-status-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
}

.yvpm-system-status-copy p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.45;
}

.yvpm-system-status-details {
    margin: 8px 0 0 0;
    padding-left: 18px;
    color: #dbeafe;
    line-height: 1.45;
}

.yvpm-system-ready {
    background: rgba(22, 163, 74, .12);
    border-color: rgba(34, 197, 94, .35);
}

.yvpm-system-ready .yvpm-system-status-icon {
    color: #22c55e;
}

.yvpm-system-warning {
    background: rgba(245, 158, 11, .16);
    border-color: rgba(245, 158, 11, .5);
}

.yvpm-system-warning .yvpm-system-status-icon {
    color: #f59e0b;
}

.yvpm-system-error {
    background: rgba(220, 38, 38, .16);
    border-color: rgba(248, 113, 113, .45);
}

.yvpm-system-error .yvpm-system-status-icon {
    color: #f87171;
}

.yvpm-substatus {
    margin-top: 8px;
    font-size: 14px;
}

.yvpm-help {
    margin-top: 10px;
    font-size: 14px;
}

.yvpm-help code {
    background: #101827;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 6px;
}

.yvpm-hidden { display: none !important; }

.yvpm-app button {
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    background: #2d7df6;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.yvpm-app button:hover { filter: brightness(1.08); }

.yvpm-app button.yvpm-danger,
.yvpm-delete-video,
.yvpm-delete-mix { background: #d83a3a; }

.yvpm-app button.yvpm-small {
    padding: 7px 9px;
    font-size: 13px;
    border-radius: 8px;
}

.yvpm-delete-video {
    padding: 8px 10px !important;
    font-size: 13px;
    border-radius: 8px !important;
}

.yvpm-app input,
.yvpm-app select {
    width: 100%;
    border: 1px solid #2d3548;
    border-radius: 10px;
    padding: 12px;
    background: #171d2b;
    color: #ffffff;
}

.yvpm-deck-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.yvpm-deck {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s linear, transform 0.5s linear, filter 0.5s linear;
    pointer-events: none;
    background: #000000;
}

.yvpm-deck.active { opacity: 1; }

.yvpm-deck iframe {
    width: 100%;
    height: 100%;
}

.yvpm-overlay {
    position: absolute;
    left: 18px;
    bottom: 18px;
    max-width: min(700px, 92%);
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(0,0,0,0.68);
    color: #ffffff;
    z-index: 5;
    pointer-events: none;
}

.yvpm-overlay-small {
    color: #b9c2d0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.yvpm-overlay-now {
    font-size: clamp(18px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.15;
}

.yvpm-overlay-next,
.yvpm-overlay-time {
    margin-top: 5px;
    color: #dbe6f7;
    font-size: 14px;
}

.yvpm-controls,
.yvpm-now-playing,
.yvpm-queue-section,
.yvpm-saved-mixes {
    margin-top: 20px;
    padding: 18px;
    background: #171d2b;
    border: 1px solid #252e42;
    border-radius: 18px;
}

.yvpm-add-video,
.yvpm-save-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.yvpm-buttons,
.yvpm-saved-list,
.yvpm-queue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.yvpm-buttons {
    margin-top: 14px;
}

.yvpm-settings {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 14px;
    color: #cfd7e6;
    align-items: center;
}

.yvpm-settings input[type="number"] {
    width: 80px;
    margin: 0 6px;
}

.yvpm-settings select {
    width: 170px;
    margin-left: 6px;
}

.yvpm-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.yvpm-checkbox input {
    width: auto;
}

#yvpm-queue {
    margin: 0;
    padding-left: 22px;
}

#yvpm-queue li {
    margin: 10px 0;
    color: #dce6f7;
}

.yvpm-queue-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    background: #101827;
    border: 1px solid #252e42;
    padding: 10px 12px;
    border-radius: 12px;
}

.yvpm-queue-main {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.yvpm-thumb {
    width: 76px;
    height: 43px;
    object-fit: cover;
    border-radius: 8px;
    background: #05070d;
}

.yvpm-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8aa0;
    font-size: 18px;
}

.yvpm-queue-text { 
    word-break: break-word;
    display: block;
}

.yvpm-track-meta {
    display: block;
    margin-top: 4px;
    color: #9ca8bd;
    font-size: 13px;
}

.yvpm-current-badge,
.yvpm-type-badge,
.yvpm-playlist-source {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.yvpm-current-badge { background: #2d7df6; }
.yvpm-type-badge { background: #59657a; }
.yvpm-playlist-source { background: #7254d8; }

.yvpm-saved-list {
    margin-top: 12px;
}

.yvpm-mix-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #101827;
    border: 1px solid #252e42;
    padding: 10px;
    border-radius: 12px;
}

.yvpm-transition-flash {
    position: absolute;
    inset: 0;
    background: #ffffff;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 700px) {
    .yvpm-header,
    .yvpm-add-video,
    .yvpm-save-row,
    .yvpm-queue-item {
        grid-template-columns: 1fr;
        display: grid;
    }

    .yvpm-queue-main {
        grid-template-columns: 1fr;
    }

    .yvpm-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .yvpm-header { align-items: stretch; }

    .yvpm-queue-actions {
        justify-content: flex-start;
    }
}


/* v2.1.2 playlist group view */
.yvpm-playlist-group {
    margin: 12px 0;
    background: #101827;
    border: 1px solid #37415a;
    border-radius: 14px;
    overflow: hidden;
}

.yvpm-playlist-group-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #151d2c;
}

.yvpm-playlist-group-title {
    font-weight: 800;
    color: #ffffff;
}

.yvpm-playlist-group-meta {
    display: block;
    margin-top: 4px;
    color: #9ca8bd;
    font-size: 13px;
}

.yvpm-playlist-group-tracks {
    padding: 10px 12px 12px;
    display: none;
}

.yvpm-playlist-group.is-expanded .yvpm-playlist-group-tracks {
    display: block;
}

.yvpm-playlist-track-row {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 8px;
    margin: 8px 0;
    background: #0d1422;
    border: 1px solid #222b3d;
    border-radius: 12px;
}

.yvpm-playlist-track-title {
    color: #ffffff;
    font-weight: 700;
    word-break: break-word;
}

.yvpm-playlist-track-meta {
    display: block;
    margin-top: 4px;
    color: #9ca8bd;
    font-size: 13px;
}

.yvpm-playlist-hidden-note {
    margin: 8px 0 0;
    color: #9ca8bd;
    font-size: 13px;
}

@media (max-width: 700px) {
    .yvpm-playlist-group-header,
    .yvpm-playlist-track-row {
        grid-template-columns: 1fr;
    }
}


/* v2.1.4 loading/progress feedback */
.yvpm-loading-panel {
    margin-top: 10px;
    padding: 12px;
    background: #0d1422;
    border: 1px solid #2d7df6;
    border-radius: 12px;
    color: #dbe6f7;
}

.yvpm-loading-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yvpm-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.22);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: yvpm-spin 0.8s linear infinite;
    flex: 0 0 auto;
}

@keyframes yvpm-spin {
    to { transform: rotate(360deg); }
}

.yvpm-progress-wrap {
    margin-top: 10px;
    height: 8px;
    background: #171d2b;
    border-radius: 999px;
    overflow: hidden;
}

.yvpm-progress-bar {
    width: 0%;
    height: 100%;
    background: #2d7df6;
    transition: width 0.2s ease;
}

.yvpm-progress-text {
    display: block;
    margin-top: 8px;
    color: #b9c2d0;
    font-size: 13px;
}

.yvpm-app button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}


/* v2.1.5 manual playback scrubber */
.yvpm-scrub-panel {
    margin-top: 16px;
    padding: 14px 18px;
    background: #171d2b;
    border: 1px solid #252e42;
    border-radius: 18px;
}

.yvpm-scrub-time {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #dbe6f7;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.yvpm-progress-input {
    width: 100%;
    accent-color: #2d7df6;
    cursor: pointer;
}

.yvpm-scrub-help {
    margin-top: 8px;
    color: #9ca8bd;
    font-size: 13px;
}

.yvpm-progress-input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* v2.4.7 Auto-DJ compact controls */
.yvpm-autodj-panel {
    margin-top: 16px;
    padding: 18px;
    background: #101827;
    border: 1px solid #2d3548;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.yvpm-autodj-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.yvpm-autodj-panel h3 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.2;
}

.yvpm-autodj-help {
    margin: 0;
    color: #9ca8bd;
    font-size: 13px;
}

.yvpm-autodj-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(31, 163, 154, 0.15);
    border: 1px solid rgba(31, 163, 154, 0.35);
    color: #9ff3ec;
    font-size: 12px;
    font-weight: 700;
}

.yvpm-autodj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.yvpm-autodj-field,
.yvpm-autodj-trim-limit {
    display: block;
    min-width: 0;
    color: #cfd7e6;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 13px;
    padding: 13px;
}

.yvpm-autodj-field > span,
.yvpm-autodj-trim-limit > span {
    display: block;
    margin-bottom: 6px;
    color: #dbe4f4;
    font-size: 13px;
    font-weight: 700;
}

.yvpm-autodj-wide,
.yvpm-autodj-full {
    grid-column: 1 / -1;
}

.yvpm-autodj-wide {
    background: transparent;
    border-color: transparent;
    padding: 0;
}

.yvpm-autodj-panel input,
.yvpm-autodj-panel select {
    width: 100%;
    box-sizing: border-box;
    background: #0b1220;
    border: 1px solid #364258;
    border-radius: 10px;
    color: #ffffff;
    padding: 10px 11px;
    min-height: 42px;
}

.yvpm-autodj-panel input:focus,
.yvpm-autodj-panel select:focus {
    outline: none;
    border-color: #1fa39a;
    box-shadow: 0 0 0 3px rgba(31, 163, 154, 0.16);
}

.yvpm-autodj-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.yvpm-autodj-inline input {
    width: 92px;
    max-width: 92px;
    flex: 0 0 92px;
    text-align: center;
}

.yvpm-autodj-inline em {
    color: #9ca8bd;
    font-size: 13px;
    font-style: normal;
    white-space: nowrap;
}

.yvpm-autodj-note {
    display: block;
    margin-top: 7px;
    color: #8fa0b8;
    font-size: 12px;
    line-height: 1.35;
}

.yvpm-autodj-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.yvpm-autodj-options .yvpm-checkbox,
.yvpm-autodj-trim-limit {
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.yvpm-autodj-options .yvpm-checkbox {
    align-items: center;
}

.yvpm-autodj-status {
    margin-top: 14px;
    margin-bottom: 0;
}

.yvpm-autodj-badge {
    background: #1fa39a;
}

@media (max-width: 700px) {
    .yvpm-autodj-header,
    .yvpm-autodj-options {
        grid-template-columns: 1fr;
    }

    .yvpm-autodj-header {
        display: block;
    }

    .yvpm-autodj-pill {
        margin-top: 10px;
    }

    .yvpm-autodj-grid {
        grid-template-columns: 1fr;
    }
}

/* v2.4.0 YouTube search panel */
.yvpm-search-panel {
    margin-bottom: 20px;
    padding: 18px;
    background: #171d2b;
    border: 1px solid #252e42;
    border-radius: 18px;
}

.yvpm-search-panel h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.yvpm-search-grid {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 12px;
}

.yvpm-search-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
    color: #cfd7e6;
}

.yvpm-search-options input[type="number"] {
    width: 80px;
    margin-left: 6px;
}

.yvpm-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.yvpm-search-card {
    background: #101827;
    border: 1px solid #252e42;
    border-radius: 14px;
    overflow: hidden;
}

.yvpm-search-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #05070d;
}

.yvpm-search-card-body {
    padding: 12px;
}

.yvpm-search-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.3;
}

.yvpm-search-meta {
    color: #9ca8bd;
    font-size: 13px;
    margin-top: 5px;
}

.yvpm-search-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

@media (max-width: 800px) {
    .yvpm-search-grid {
        grid-template-columns: 1fr;
    }
}

/* v2.4.4 API / No-API front-end mode display */
.yvpm-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.yvpm-panel-heading h3 {
    margin: 0;
}

.yvpm-mode-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(31, 163, 154, 0.14);
    border: 1px solid rgba(31, 163, 154, 0.35);
    color: #9ff3ec;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.yvpm-no-api-mode .yvpm-mode-badge,
.yvpm-no-api-mode .yvpm-autodj-pill {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.38);
    color: #facc15;
}

.yvpm-no-api-mode .yvpm-search-options {
    opacity: 0.55;
}

.yvpm-no-api-mode .yvpm-autodj-grid {
    opacity: 0.62;
}

.yvpm-no-api-mode .yvpm-autodj-panel input:disabled,
.yvpm-no-api-mode .yvpm-autodj-panel select:disabled,
.yvpm-search-options input:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 700px) {
    .yvpm-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* v2.4.6 polish: Simple/Advanced mode, themes, presets and branding */
.yvpm-app {
    --yvpm-accent: #1565C0;
}

.yvpm-app button,
.yvpm-app input[type="range"]::-webkit-slider-thumb {
    background: var(--yvpm-accent);
}

.yvpm-simple-mode .yvpm-advanced-only {
    display: none !important;
}

.yvpm-simple-mode .yvpm-autodj-panel {
    padding-bottom: 16px;
}

.yvpm-autodj-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}

.yvpm-autodj-presets .yvpm-preset-btn {
    padding: 9px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-size: 13px;
}

.yvpm-autodj-presets .yvpm-preset-btn:hover {
    background: var(--yvpm-accent);
}

.yvpm-theme-light {
    background: #f8fafc;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.yvpm-theme-light .yvpm-header h2,
.yvpm-theme-light .yvpm-now-playing h3,
.yvpm-theme-light .yvpm-queue-section h3,
.yvpm-theme-light .yvpm-saved-mixes h3,
.yvpm-theme-light .yvpm-search-title,
.yvpm-theme-light label span {
    color: #111827;
}

.yvpm-theme-light .yvpm-header p,
.yvpm-theme-light #yvpm-status,
.yvpm-theme-light .yvpm-substatus,
.yvpm-theme-light .yvpm-help,
.yvpm-theme-light .yvpm-search-options,
.yvpm-theme-light .yvpm-search-meta {
    color: #4b5563;
}

.yvpm-theme-light .yvpm-search-panel,
.yvpm-theme-light .yvpm-controls,
.yvpm-theme-light .yvpm-now-playing,
.yvpm-theme-light .yvpm-saved-mixes,
.yvpm-theme-light .yvpm-queue-section,
.yvpm-theme-light .yvpm-autodj-panel,
.yvpm-theme-light .yvpm-search-card {
    background: #ffffff;
    border-color: #e5e7eb;
}

.yvpm-theme-light input,
.yvpm-theme-light select,
.yvpm-theme-light textarea {
    background: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}

.yvpm-theme-light .yvpm-autodj-presets .yvpm-preset-btn {
    background: #eef2f7;
    color: #111827;
    border-color: #d1d5db;
}

.yvpm-theme-light .yvpm-autodj-presets .yvpm-preset-btn:hover {
    color: #ffffff;
}


/* v2.4.7 compact Auto-DJ setting cards */
.yvpm-theme-light .yvpm-autodj-field,
.yvpm-theme-light .yvpm-autodj-trim-limit {
    background: rgba(11, 31, 58, 0.045);
    border-color: rgba(11, 31, 58, 0.12);
}

/* v2.4.8 front-end quick start and simplified flow */
.yvpm-quickstart-panel {
    margin-bottom: 18px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(21,101,192,.16), rgba(31,163,154,.10));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
}

.yvpm-quickstart-copy h3 {
    margin: 8px 0 6px;
    color: #ffffff;
    font-size: 22px;
}

.yvpm-quickstart-copy p {
    margin: 0 0 14px;
    color: #cfd7e6;
}

.yvpm-step-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--yvpm-accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.yvpm-quickstart-input {
    margin-top: 12px;
}

.yvpm-quickstart-input input {
    min-height: 48px;
    font-size: 15px;
}

.yvpm-quickstart-input button {
    min-height: 48px;
    white-space: nowrap;
}

.yvpm-link-examples {
    margin-top: 10px;
    color: #9ca8bd;
    font-size: 13px;
}

.yvpm-more-tools,
.yvpm-autodj-disclosure {
    margin-bottom: 18px;
    border-radius: 18px;
    background: #171d2b;
    border: 1px solid #252e42;
    overflow: hidden;
}

.yvpm-more-tools > summary,
.yvpm-autodj-disclosure > summary {
    list-style: none;
    cursor: pointer;
    padding: 15px 18px;
    color: #ffffff;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.yvpm-more-tools > summary::-webkit-details-marker,
.yvpm-autodj-disclosure > summary::-webkit-details-marker {
    display: none;
}

.yvpm-more-tools > summary::after,
.yvpm-autodj-disclosure > summary::after {
    content: "▼";
    color: #9ca8bd;
    font-size: 12px;
    transition: transform .2s ease;
}

.yvpm-more-tools[open] > summary::after,
.yvpm-autodj-disclosure[open] > summary::after {
    transform: rotate(180deg);
}

.yvpm-autodj-disclosure > summary span {
    color: #9ca8bd;
    font-size: 13px;
    font-weight: 600;
}

.yvpm-more-tools .yvpm-search-panel {
    margin: 0;
    border: 0;
    border-top: 1px solid #252e42;
    border-radius: 0;
    background: #101827;
}

.yvpm-autodj-disclosure .yvpm-autodj-panel {
    margin-top: 0;
    border: 0;
    border-top: 1px solid #252e42;
    border-radius: 0;
    box-shadow: none;
}

.yvpm-controls .yvpm-autodj-disclosure {
    margin-top: 16px;
    margin-bottom: 0;
}

.yvpm-theme-light .yvpm-quickstart-panel {
    background: linear-gradient(135deg, rgba(21,101,192,.10), rgba(31,163,154,.08));
    border-color: #e5e7eb;
}

.yvpm-theme-light .yvpm-quickstart-copy h3,
.yvpm-theme-light .yvpm-more-tools > summary,
.yvpm-theme-light .yvpm-autodj-disclosure > summary {
    color: #111827;
}

.yvpm-theme-light .yvpm-quickstart-copy p,
.yvpm-theme-light .yvpm-link-examples,
.yvpm-theme-light .yvpm-autodj-disclosure > summary span {
    color: #4b5563;
}

.yvpm-theme-light .yvpm-more-tools,
.yvpm-theme-light .yvpm-autodj-disclosure {
    background: #ffffff;
    border-color: #e5e7eb;
}

.yvpm-theme-light .yvpm-more-tools .yvpm-search-panel,
.yvpm-theme-light .yvpm-autodj-disclosure .yvpm-autodj-panel {
    background: #ffffff;
    border-top-color: #e5e7eb;
}

@media (max-width: 700px) {
    .yvpm-quickstart-input {
        grid-template-columns: 1fr;
    }

    .yvpm-more-tools > summary,
    .yvpm-autodj-disclosure > summary {
        align-items: flex-start;
    }

    .yvpm-autodj-disclosure > summary span {
        display: block;
    }
}

/* v2.5.0 — No-API Auto-DJ Library */
.yvpm-noapi-library-panel {
    margin: 16px 0;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(21, 101, 192, .10);
}

.yvpm-noapi-library-panel h3 {
    margin: 6px 0 4px;
    font-size: 20px;
}

.yvpm-noapi-library-panel p {
    margin: 0 0 12px;
    color: rgba(255,255,255,.72);
}

.yvpm-noapi-library-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.yvpm-library-btn {
    border: 1px solid rgba(255,255,255,.14);
    background: var(--yvpm-accent, #1565C0);
    color: #fff;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
}

.yvpm-library-btn:hover {
    filter: brightness(1.08);
}

.yvpm-theme-light .yvpm-noapi-library-panel {
    background: #eef5ff;
    border-color: rgba(15, 23, 42, .12);
}

.yvpm-theme-light .yvpm-noapi-library-panel p {
    color: #475569;
}


/* v2.5.5 — Genre presets */
.yvpm-genre-panel {
    margin: 16px 0;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.045);
}

.yvpm-genre-heading h3 {
    margin: 6px 0 4px;
    font-size: 20px;
}

.yvpm-genre-heading p {
    margin: 0 0 14px;
    color: rgba(255,255,255,.72);
}

.yvpm-genre-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.yvpm-genre-btn {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    color: inherit;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
}

.yvpm-genre-btn:hover,
.yvpm-genre-btn.is-active {
    background: var(--yvpm-accent, #1565C0);
    color: #fff;
}

.yvpm-theme-light .yvpm-genre-panel {
    background: #ffffff;
    border-color: #e5e7eb;
}

.yvpm-theme-light .yvpm-genre-heading p {
    color: #475569;
}

.yvpm-theme-light .yvpm-genre-btn {
    border-color: #d1d5db;
    background: #f8fafc;
}

.yvpm-theme-light .yvpm-genre-btn:hover,
.yvpm-theme-light .yvpm-genre-btn.is-active {
    background: var(--yvpm-accent, #1565C0);
    color: #fff;
}


.yvpm-custom-genre-row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.yvpm-custom-genre-row label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.yvpm-custom-genre-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.yvpm-custom-genre-controls input {
    width: 100%;
    min-height: 42px;
}

.yvpm-custom-genre-row small {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,.68);
    line-height: 1.4;
}

.yvpm-theme-light .yvpm-custom-genre-row {
    border-top-color: rgba(11,31,58,.12);
}

.yvpm-theme-light .yvpm-custom-genre-row small {
    color: rgba(11,31,58,.68);
}

@media (max-width: 640px) {
    .yvpm-custom-genre-controls {
        grid-template-columns: 1fr;
    }
}


/* v2.7.9 uniform queue action buttons */
.yvpm-queue-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.yvpm-queue-actions .yvpm-small,
.yvpm-queue-actions .yvpm-delete-video,
.yvpm-playlist-group-header .yvpm-small,
.yvpm-playlist-track-row .yvpm-small {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 15px;
    font-weight: 800;
}

.yvpm-queue-actions .yvpm-action-play {
    background: #1f8f55;
    border-color: #36b46f;
    color: #ffffff;
}

.yvpm-queue-actions .yvpm-action-move,
.yvpm-queue-actions .yvpm-action-toggle {
    background: #263246;
    border-color: #3a465c;
    color: #e8eef8;
}

.yvpm-queue-actions .yvpm-action-delete,
.yvpm-queue-actions .yvpm-delete-video {
    background: #8f2430;
    border-color: #b9424d;
    color: #ffffff;
}

.yvpm-playlist-group-header .yvpm-queue-actions {
    justify-content: flex-end;
}

@media (max-width: 700px) {
    .yvpm-queue-actions,
    .yvpm-playlist-group-header .yvpm-queue-actions {
        justify-content: flex-start;
    }
}


/* v2.9.0 video-stage fullscreen controls */
.yvpm-stage-fullscreen-btn,
.yvpm-mobile-exit-fullscreen {
    position: absolute;
    z-index: 20;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(0,0,0,.62);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
    backdrop-filter: blur(8px);
}

.yvpm-stage-fullscreen-btn {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.yvpm-stage-fullscreen-btn:hover,
.yvpm-mobile-exit-fullscreen:hover {
    background: rgba(0,0,0,.82);
}

.yvpm-mobile-exit-fullscreen {
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    right: calc(env(safe-area-inset-right, 0px) + 14px);
    border-radius: 999px;
    padding: 11px 15px;
    font-size: 14px;
    font-weight: 800;
}

body.yvpm-mobile-video-fullscreen-active {
    overflow: hidden !important;
}

.yvpm-deck-stage.yvpm-mobile-video-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #000 !important;
}

.yvpm-deck-stage.yvpm-mobile-video-fullscreen .yvpm-deck,
.yvpm-deck-stage.yvpm-mobile-video-fullscreen iframe {
    width: 100% !important;
    height: 100% !important;
}

.yvpm-deck-stage.yvpm-mobile-video-fullscreen .yvpm-stage-fullscreen-btn,
.yvpm-deck-stage.yvpm-mobile-video-fullscreen .yvpm-overlay {
    display: none !important;
}

.yvpm-deck-stage.yvpm-mobile-video-fullscreen .yvpm-mobile-exit-fullscreen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.yvpm-deck-stage.yvpm-mobile-video-fullscreen .yvpm-mobile-exit-fullscreen.yvpm-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .yvpm-stage-fullscreen-btn {
        width: 46px;
        height: 46px;
        min-width: 46px;
        font-size: 21px;
    }
}
