/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Crucial for internal scrolling */
    min-height: 0;
}

/* Global controls bar spanning both sidebars */
.controls-bar {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.controls-bar h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    flex: 0 0 auto;
}

.sidebar-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* Horizontal row: [left sidebar | image | right sidebar] */
.main-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}

/* Image Side */
.video-stage {
    flex: 1;
    background: #000;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.player-container {
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16/9;
    background: #050505;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-container.drag-over {
    border-color: var(--accent-gold);
    background: rgba(255, 201, 14, 0.05);
}

.placeholder-content {
    text-align: center;
    color: var(--muted);
    cursor: pointer;
}

.placeholder-icon {
    margin-bottom: 12px;
    opacity: 0.9;
}

.placeholder-icon svg {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto;
}

.video-wrapper,
#player-container video,
#player-container iframe,
#player-container img {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: contain;
}

.preview-layer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-layer .error {
    color: var(--muted);
    text-align: center;
    padding: 24px;
    font-size: 13px;
}

/* Crossfade between images; transform animates discrete geometry changes. */
.preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.2s ease;
    will-change: transform;
    transform-origin: center center;
}

.video-caption {
    margin-top: 32px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    max-width: 600px;
}

.stage-filename {
    width: 100%;
    max-width: 1100px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--muted-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Controls Side */
.control-sidebar {
    width: 310px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-left {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-right {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    color: var(--muted-light);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.bar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 201, 14, 0.35);
    color: #fff;
}

.bar-btn:active {
    transform: translateY(1px);
}

.bar-btn .kbd {
    margin-left: 0;
}

.control-scroll-panel {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    scroll-behavior: smooth;
}

/* Master Toggle Styles */
.master-toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.toggle-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked+.slider {
    background-color: var(--accent-red);
}

input:checked+.slider:before {
    transform: translateX(14px);
}

.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

.control-scroll-panel::-webkit-scrollbar {
    width: 6px;
}

.control-scroll-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Enhancement Cards */
.card {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.card:hover {
    border-color: rgba(237, 28, 36, 0.15);
}

.card h3 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin: 0;
    opacity: 0.8;
}

/* Collapsible section headers */
.card-heading {
    margin: 0;
}

.card-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    opacity: inherit;
    text-align: left;
}

.card-title {
    flex: 1;
}

.card-chevron {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    transition: transform 0.25s ease;
}

.card.collapsed .card-chevron {
    transform: rotate(-90deg);
}

.card-toggle:hover .card-title {
    color: #fff;
}

/* Smooth height animation via grid-template-rows */
.card-body {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.25s ease;
}

.card-body-inner {
    overflow: hidden;
    min-height: 0;
}

.card-body-inner > :first-child {
    margin-top: 20px;
}

.card.collapsed .card-body {
    grid-template-rows: 0fr;
}

.row {
    margin-bottom: 20px;
}

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

.row label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted-light);
    margin-bottom: 8px;
}

.row input[type="range"] {
    width: 100%;
    cursor: pointer;
    accent-color: var(--accent-red);
}

.value-display {
    display: block;
    text-align: right;
    font-size: 10px;
    color: var(--accent-gold);
    font-family: monospace;
    margin-top: 4px;
}

/* Sub-controls indentation */
.row.sub-control {
    margin-left: 15px;
    margin-top: -10px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.row.sub-control label {
    font-size: 11px;
    color: var(--accent-gold);
}

/* === IMAGE ACTIONS === */
.image-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.action-btn {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted-light);
    border-radius: 10px;
    padding: 9px 6px;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: normal;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 201, 14, 0.35);
    color: #fff;
}

.action-btn:active {
    transform: translateY(1px);
}

.action-btn.compact {
    display: inline-flex;
    width: 100%;
}

.action-btn.active {
    background: rgba(255, 201, 14, 0.15);
    border-color: var(--accent-gold);
    color: #fff;
}

/* === BUTTON ICONS === */
.btn-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    display: block;
}

.btn-spinner {
    display: none;
    animation: yz-spin 0.8s linear infinite;
}

.is-busy .btn-icon-default {
    display: none;
}

.is-busy .btn-spinner {
    display: block;
}

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

/* Eyedropper pick mode */
.preview-img.picking {
    cursor: crosshair;
}

/* === HOTKEY BADGES === */
.kbd {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 4px;
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.5;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom-width: 2px;
    border-radius: 5px;
    white-space: nowrap;
    vertical-align: middle;
}

.shortcut-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    margin-top: 10px;
    font-size: 10px;
    color: var(--muted);
}

.sc-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.sc-item .kbd {
    margin-left: 0;
}

/* === SPATIAL PROGRESS BAR === */
.spatial-progress {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(60%, 420px);
    padding: 8px 14px;
    background: rgba(5, 5, 5, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    z-index: 5;
    pointer-events: none;
}

.spatial-progress[hidden] {
    display: none;
}

.spatial-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    overflow: hidden;
}

.spatial-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-red));
    border-radius: 3px;
    transition: width 0.12s linear;
}

.spatial-progress-text {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #ddd;
    text-align: center;
}

/* === FOLDER-LOAD PROGRESS BAR === */
.load-progress {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(60%, 420px);
    padding: 8px 14px;
    background: rgba(5, 5, 5, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    z-index: 5;
    pointer-events: none;
}

.load-progress[hidden] {
    display: none;
}

.load-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    overflow: hidden;
}

.load-progress-bar {
    width: 40%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-red));
    animation: yz-indeterminate 1.1s ease-in-out infinite;
}

.load-progress.determinate .load-progress-bar {
    width: 0%;
    margin-left: 0;
    animation: none;
    transition: width 0.12s linear;
}

.load-progress-text {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #ddd;
    text-align: center;
}

@keyframes yz-indeterminate {
    0% { margin-left: -40%; }
    100% { margin-left: 100%; }
}

.download-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-red), #d0181f);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.25);
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(237, 28, 36, 0.35);
}

.download-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.export-note {
    margin-top: 10px;
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    line-height: 1.4;
}

.export-note.error {
    color: var(--accent-red);
}

.save-folder-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    background: transparent;
    color: var(--accent-gold);
    border: 1.5px solid rgba(255, 201, 14, 0.35);
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.save-folder-btn:hover:not(:disabled) {
    background: rgba(255, 201, 14, 0.08);
    border-color: rgba(255, 201, 14, 0.6);
}

.save-folder-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* === PLAYLIST / SEARCH === */
.playlist-controls {
    margin-bottom: 12px;
}

.playlist-controls[hidden] {
    display: none;
}

.image-search {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #F4F4F4;
    font-family: inherit;
    font-size: 12px;
    padding: 9px 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.image-search::placeholder {
    color: rgba(191, 191, 191, 0.6);
}

.image-search:focus {
    outline: none;
    border-color: rgba(255, 201, 14, 0.5);
    background: rgba(255, 255, 255, 0.07);
}

.image-search:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.playlist-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pl-btn {
    flex: 0 0 auto;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    color: var(--muted-light);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
    pointer-events: none;
}

.pl-btn.pl-fs svg {
    fill: none;
}

.pl-icon-pause {
    display: none;
}

.pl-btn.playing .pl-icon-play {
    display: none;
}

.pl-btn.playing .pl-icon-pause {
    display: block;
}

.pl-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.pl-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pl-btn.pl-shuffle.active {
    background: rgba(237, 28, 36, 0.2);
    border-color: rgba(237, 28, 36, 0.5);
    color: #fff;
    box-shadow: 0 0 12px rgba(237, 28, 36, 0.35);
}

.pl-counter {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-family: monospace;
    color: var(--accent-gold);
    white-space: nowrap;
    min-width: 42px;
}

.playlist-meta {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.playlist-meta .pl-interval {
    grid-column: 1;
    justify-self: start;
}

.playlist-meta .pl-counter {
    grid-column: 2;
    justify-self: center;
    text-align: center;
}

.playlist-meta .pl-shuffle {
    grid-column: 3;
    justify-self: end;
}

.pl-interval {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    color: var(--muted-light);
    font-family: inherit;
    font-size: 11px;
    height: 34px;
    padding: 0 6px;
    cursor: pointer;
    color-scheme: dark;
}

.pl-interval option {
    background-color: #1b1b1b;
    color: #F4F4F4;
}

.pl-interval option:checked {
    background-color: #2a2a2a;
    color: #fff;
}

.pl-interval:focus {
    outline: none;
    border-color: rgba(255, 201, 14, 0.5);
}

.pl-interval:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* === FOOTER === */
footer {
    height: var(--footer-height);
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    font-size: 11px;
    color: var(--muted);
    flex-shrink: 0;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 20px;
}

.footer-links a:hover {
    color: #fff;
}

/* Browse button in placeholder */
.browse-btn {
    margin-top: 16px;
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    border-radius: 12px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 201, 14, 0.15);
}
.browse-btn:hover {
    background: rgba(255, 201, 14, 0.08);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 201, 14, 0.25);
}

#player-container:fullscreen {
    max-width: none;
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 0;
    border: none;
}

#player-container.fs-sidebar-mode .control-sidebar.fs-active {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 320px;
    z-index: 9999;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#player-container.fs-sidebar-mode .sidebar-right.fs-active {
    right: 0;
    transform: translateX(100%);
    border-left: none;
    border-radius: 16px 0 0 16px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
}

#player-container.fs-sidebar-mode .sidebar-left.fs-active {
    left: 0;
    transform: translateX(-100%);
    border-right: none;
    border-radius: 0 16px 16px 0;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.5);
}

#player-container.fs-sidebar-mode .control-sidebar.fs-active.fs-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

#player-container.fs-sidebar-mode .controls-bar.fs-active {
    position: fixed;
    top: 0;
    left: 50%;
    width: min(680px, 92vw);
    z-index: 9999;
    background: rgba(11, 11, 12, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 16px 16px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -120%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#player-container.fs-sidebar-mode .controls-bar.fs-active.fs-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* === RESPONSIVE === */

/* Medium screens / tablet portrait (≤1024px) */
@media (max-width: 1024px) {
    .video-stage { padding: 20px; }
    .control-sidebar { width: 260px; }
    .controls-bar { padding: 14px 20px; }
    .control-scroll-panel { padding: 24px; }
}

/* Small screen landscape: keep side-by-side, compact */
@media (max-width: 900px) and (orientation: landscape) {
    :root { --footer-height: 0px; }

    .video-stage { padding: 6px; }
    #player-container { max-width: none; }
    .video-caption { display: none; }

    .control-sidebar { width: 200px; }
    .controls-bar { padding: 8px 12px; }
    .controls-bar h2 { font-size: 12px; }
    .control-scroll-panel { padding: 8px 12px; }
    .card { padding: 8px; margin-bottom: 8px; }
    .card h3 { font-size: 8px; }
    .card-body-inner > :first-child { margin-top: 6px; }
    .row { margin-bottom: 6px; }
    .row label { font-size: 10px; }
    .action-btn { padding: 8px 6px; font-size: 10px; }
    .download-btn { padding: 9px 12px; font-size: 11px; }

    footer { display: none; }
}

/* Phone portrait: stack vertically, image pinned at top, sidebar scrolls below */
@media (max-width: 768px) and (orientation: portrait) {
    :root { --footer-height: 0px; }

    .main-content {
        flex-direction: column;
        overflow: hidden;
    }

    .controls-bar { padding: 10px 16px; flex-wrap: wrap; row-gap: 8px; }
    .controls-bar h2 { font-size: 13px; }

    .main-body {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .video-stage {
        order: -1;
        flex: none;
        padding: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .player-container { max-width: none; }
    .video-caption { margin-top: 8px; font-size: 10px; }

    .control-sidebar {
        width: 100%;
        flex: none;
        border: none;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    .control-scroll-panel {
        flex: none;
        overflow: visible;
        padding: 12px 16px;
    }
    .card { padding: 12px; margin-bottom: 12px; }
    .card h3 { font-size: 9px; }
    .card-body-inner > :first-child { margin-top: 10px; }
    .row { margin-bottom: 10px; }
    .row label { font-size: 11px; }

    footer { display: none; }
}

/* Very small portrait phones */
@media (max-width: 480px) and (orientation: portrait) {
    .video-stage { padding: 6px; }
    .video-caption { font-size: 9px; }
    .card { padding: 8px; margin-bottom: 8px; }
    .control-scroll-panel { padding: 8px 12px; }
    .controls-bar { padding: 8px 12px; }
    .browse-btn { font-size: 11px; padding: 5px 12px; }
    .placeholder-icon svg { width: 36px; height: 36px; }
    #player-container.fs-sidebar-mode .control-sidebar.fs-active { width: 260px; }
}

/* Short screens: hide caption, tighter cards */
@media (max-height: 520px) {
    .video-caption { display: none; }
    .card { padding: 6px; margin-bottom: 6px; }
    .card h3 { font-size: 8px; }
    .card-body-inner > :first-child { margin-top: 6px; }
    .row { margin-bottom: 4px; }
    .row label { font-size: 9px; }
    .control-scroll-panel { padding-left: 8px; padding-right: 8px; }
    .controls-bar { padding-top: 6px; padding-bottom: 6px; }
}

/* Touch: bigger targets */
@media (hover: none) and (pointer: coarse) {
    .action-btn { padding: 12px 8px; }
    .row input[type="range"] { height: 24px; }
}
