:root {
    --bg:#070a0f;
    --panel:#10151d;
    --panel2:#151c26;
    --panel3:#0c1118;
    --line:#252e3b;
    --text:#eef3f8;
    --muted:#8995a5;
    --accent:#687cff;
    --accent2:#29d6a2;
    --danger:#ff667a;
}

* {
    box-sizing:border-box;
}

html,
body {
    margin:0;
    min-height:100%;
    background:var(--bg);
    color:var(--text);
    font-family:
        Inter,
        Segoe UI,
        Arial,
        sans-serif;
}

body {
    overflow-x:hidden;
}

button,
input {
    font:inherit;
}

button {
    color:inherit;
}

.hidden {
    display:none !important;
}


/* =========================================
   TOP BAR
   ========================================= */


.topbar {
    position:relative;

    height:70px;
    padding:0 22px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    background:#0b0f15;

    border-bottom:
        1px solid var(--line);
}

.library-root-pill {
    position:absolute;
    left:50%;
    top:50%;

    transform:
        translate(-50%,-50%);

    display:flex;
    align-items:center;
    gap:7px;

    max-width:40%;

    padding:6px 14px;

    background:
        var(--panel2);

    border:
        1px solid var(--line);

    border-radius:999px;

    font-size:13px;
    font-weight:600;
    color:var(--text);

    white-space:nowrap;
    overflow:hidden;
}

.library-root-icon {
    flex-shrink:0;
    font-size:13px;
}

#libraryRootName {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.brand {
    font-size:23px;
    font-weight:900;
    letter-spacing:1px;
}

.brand span {
    color:var(--accent2);
}

.subtitle {
    margin-top:3px;
    color:var(--muted);
    font-size:12px;
}

.icon-btn,
.home-btn {
    border:
        1px solid var(--line);

    background:
        var(--panel2);

    border-radius:10px;

    width:40px;
    height:40px;

    cursor:pointer;

    font-size:20px;
}


/* =========================================
   LAYOUT
   ========================================= */


.workspace {
    display:grid;

    grid-template-columns:
        minmax(0,1fr)
        330px;

    min-height:
        calc(100vh - 70px);
}

.content {
    min-width:0;
    padding:24px;
}

.content-head {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;

    margin-bottom:18px;
}

.breadcrumb {
    color:var(--muted);
    font-size:12px;
    margin-bottom:6px;
}

h1 {
    margin:0;
    font-size:28px;
}

.count-pill {
    padding:7px 12px;

    background:
        var(--panel2);

    border:
        1px solid var(--line);

    border-radius:999px;

    color:var(--muted);
    font-size:12px;
}


/* =========================================
   ERROR
   ========================================= */


.message {
    margin-top:12px;

    padding:12px;

    background:
        rgba(255,102,122,.09);

    border:
        1px solid
        rgba(255,102,122,.25);

    color:#ff9eaa;

    border-radius:9px;

    font-size:12px;

    white-space:pre-wrap;
}


/* =========================================
   MOVIES
   ========================================= */


.section-title {
    margin:
        26px
        0
        13px;

    color:var(--muted);

    font-size:11px;

    font-weight:800;

    letter-spacing:1.5px;
}

.video-grid {
    display:grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(220px,1fr)
        );

    gap:14px;
}

.video-card {
    position:relative;

    overflow:hidden;

    display:flex;
    flex-direction:column;
    gap:8px;

    padding:14px;

    border:
        1px solid var(--line);

    border-radius:12px;

    background:
        var(--panel);

    cursor:pointer;

    transition:
        .2s ease;
}

.video-card-icon {
    padding:14px 0;

    border-radius:9px;

    background:
        var(--panel2);

    color:var(--accent);

    font-size:22px;

    text-align:center;
}

.video-card-name {
    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    font-size:13px;
    font-weight:700;
}

.video-card-meta {
    color:var(--muted);

    font-size:11px;
}

.watched-badge {
    display:none;

    position:absolute;
    top:10px;
    right:10px;

    align-items:center;
    gap:3px;

    padding:3px 8px;

    background:
        var(--accent2);

    color:#04241b;

    border-radius:999px;

    font-size:10px;
    font-weight:800;
    letter-spacing:.2px;
}

.video-card.watched {
    border-color:
        var(--accent2);

    box-shadow:
        inset 4px 0 0
        var(--accent2);
}

.video-card.watched .watched-badge {
    display:inline-flex;
}

.video-card.watched .video-card-icon {
    background:
        rgba(41,214,162,.18);

    color:
        var(--accent2);

    opacity:1;
}

.video-card.watched .video-card-name {
    color:var(--muted);
}

.sidebar-video.watched {
    background:
        rgba(41,214,162,.1);
}

.sidebar-video.watched .sidebar-video-name {
    color:var(--muted);
}

.sidebar-video.watched .sidebar-video-play {
    color:var(--accent2);
}

.video-card:hover,
.video-card.playing {
    transform:
        translateY(-2px);

    border-color:
        var(--accent);
}

.video-thumb {
    height:125px;

    display:grid;

    place-items:center;

    position:relative;

    background:
        linear-gradient(
            135deg,
            #111a26,
            #080b10
        );
}

.play-circle {
    width:48px;
    height:48px;

    border-radius:50%;

    display:grid;

    place-items:center;

    background:
        rgba(104,124,255,.9);

    padding-left:3px;
}

.format-badge {
    position:absolute;

    right:8px;
    bottom:8px;

    padding:4px 7px;

    border-radius:5px;

    background:
        rgba(0,0,0,.75);

    font-size:9px;

    font-weight:800;
}

.video-info {
    padding:11px;
}

.video-name {
    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    font-size:13px;

    font-weight:700;
}

.video-meta {
    display:flex;

    justify-content:space-between;

    margin-top:7px;

    color:var(--muted);

    font-size:10px;
}


/* =========================================
   EMPTY
   ========================================= */


.empty {
    padding:55px;

    text-align:center;

    color:var(--muted);
}

.empty-icon {
    font-size:42px;
}


/* =========================================
   SIDEBAR
   ========================================= */


.sidebar {
    background:#0b1017;

    border-left:
        1px solid var(--line);

    padding:18px 14px;
}

.sidebar-head {
    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:16px;
}

.sidebar-title {
    font-size:11px;

    letter-spacing:1.4px;

    font-weight:800;
}

.sidebar-subtitle {
    color:var(--muted);

    font-size:11px;

    margin-top:4px;
}

.folder-button {
    width:100%;

    min-height:43px;

    display:flex;

    align-items:center;

    gap:9px;

    border:0;

    border-radius:9px;

    background:transparent;

    cursor:pointer;

    text-align:left;

    padding:8px 10px;
}

.folder-button:hover,
.folder-button.active {
    background:
        var(--panel2);
}

.folder-button-icon {
    font-size:18px;
}

.folder-button-name {
    flex:1;

    overflow:hidden;

    white-space:nowrap;

    text-overflow:ellipsis;

    font-size:13px;
}

.folder-arrow {
    color:var(--muted);

    transition:.2s;
}

.folder-button.expanded
.folder-arrow {
    transform:
        rotate(90deg);
}

.sidebar-video-list {
    margin:
        2px
        0
        7px
        25px;

    border-left:
        1px solid #27313e;

    padding-left:5px;
}

.sidebar-video {
    width:100%;

    display:grid;

    grid-template-columns:
        22px
        1fr
        auto;

    align-items:center;

    gap:4px;

    border:0;

    background:transparent;

    color:var(--muted);

    padding:7px;

    border-radius:6px;

    text-align:left;

    cursor:pointer;

    font-size:11px;
}

.sidebar-video:hover,
.sidebar-video.playing {
    background:
        var(--panel2);

    color:var(--text);
}

.sidebar-video-name {
    overflow:hidden;

    white-space:nowrap;

    text-overflow:ellipsis;
}

.sidebar-video-size {
    font-size:9px;

    color:#647184;
}

.sidebar-no-videos {
    padding:12px;

    color:#657184;

    font-size:11px;
}


/* =========================================
   TOAST
   ========================================= */


.toast {
    position:fixed;

    left:50%;
    bottom:25px;

    transform:
        translate(
            -50%,
            20px
        );

    opacity:0;

    pointer-events:none;

    padding:
        11px 15px;

    border:
        1px solid #394454;

    border-radius:9px;

    background:#121923;

    box-shadow:
        0 12px 40px
        rgba(0,0,0,.5);

    font-size:12px;

    transition:.25s;

    z-index:1000;
}

.toast.show {
    opacity:1;

    transform:
        translate(
            -50%,
            0
        );
}


/* =========================================
   FOLDERS IN THE MAIN AREA
   ========================================= */

/* Hide the "FOLDERS" label and subfolder cards
   in the main content area: this duplicates the
   "VIDEO FOLDERS" list already shown in the
   sidebar. The grid itself (#folderGrid) is left
   visible/untouched because video cards are
   appended into that same element — hiding the
   whole section would also hide videos. */
#folderSection .section-title {
    display: none !important;
}

.folder-card {
    display: none !important;
}

.folder-grid {
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(180px,1fr)
        );
}

.folder-card {
    display:flex;

    align-items:center;

    gap:12px;

    padding:16px;
}

.folder-card-icon {
    font-size:28px;
}

.folder-card-name {
    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    font-size:13px;

    font-weight:700;
}

.breadcrumb a {
    color:var(--muted);

    text-decoration:none;
}

.breadcrumb a:hover {
    color:var(--text);

    text-decoration:underline;
}


/* =========================================
   NESTED SIDEBAR FOLDERS
   ========================================= */


.sidebar-video-list .folder-button {
    min-height:36px;

    padding:6px 8px;
}

.sidebar-video-list .folder-button-name {
    font-size:12px;
}


/* =========================================
   NOW PLAYING
   ========================================= */

.now-playing {
    margin-bottom:18px;

    padding:14px 16px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:14px;

    flex-wrap:wrap;

    background:
        var(--panel);

    border:
        1px solid var(--line);

    border-radius:12px;
}

.now-playing-info {
    display:flex;

    align-items:center;

    gap:12px;

    min-width:0;
}

.playing-dot {
    flex:none;

    width:10px;
    height:10px;

    background:
        var(--accent2);

    border-radius:50%;

    box-shadow:
        0 0 12px
        var(--accent2);
}

.now-playing-title {
    font-weight:700;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    max-width:46vw;
}

.movie-meta {
    margin-top:3px;

    color:var(--muted);

    font-size:11px;
}

.now-playing-buttons {
    display:flex;

    gap:8px;

    flex-wrap:wrap;
}

.np-btn {
    border:
        1px solid var(--line);

    background:
        var(--panel2);

    border-radius:9px;

    padding:8px 12px;

    cursor:pointer;

    font-size:12px;

    font-weight:700;
}

.np-btn:hover {
    border-color:
        var(--accent);
}

.np-btn.danger:hover {
    border-color:
        var(--danger);

    color:
        var(--danger);
}

.notice {
    margin-bottom:14px;

    padding:11px 14px;

    background:
        rgba(255,209,102,.09);

    border:
        1px solid
        rgba(255,209,102,.3);

    color:#ffd166;

    border-radius:9px;

    font-size:12px;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (
    max-width:900px
) {

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

    .sidebar {
        border-left:0;

        border-top:
            1px solid var(--line);
    }
}


@media (
    max-width:600px
) {

    .content {
        padding:12px;
    }

    .topbar {
        padding:0 12px;
    }

    .library-root-pill {
        display:none;
    }

    .now-playing-title {
        max-width:60vw;
    }

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


/* =========================================
   BREADCRUMB
   ========================================= */

.breadcrumb a {
    color:var(--muted);

    text-decoration:none;
}

.breadcrumb a:hover {
    color:var(--text);

    text-decoration:underline;
}


/* =========================================
   PLAYER
   ========================================= */


.player-container {
    position:relative;

    width:100%;

    aspect-ratio:16/9;

    min-height:360px;

    background:#000;

    overflow:hidden;

    border:
        1px solid #202832;

    border-radius:15px;

    box-shadow:
        0 25px 70px
        rgba(0,0,0,.45);
}

.player-container video {
    width:100%;
    height:100%;

    display:block;

    object-fit:contain;

    background:#000;

    /* let JS handle two-finger pinches instead of the browser zooming the page */
    touch-action:none;
}


/* =========================================
   PLAYER START OVERLAY
   ========================================= */


.player-overlay {
    position:absolute;

    inset:0;

    z-index:20;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:14px;

    color:#aab4c3;

    background:
        radial-gradient(
            circle,
            rgba(30,38,51,.45),
            rgba(0,0,0,.9)
        );

    cursor:pointer;
}

.big-play {
    width:72px;
    height:72px;

    display:grid;
    place-items:center;

    border-radius:50%;

    background:
        var(--accent);

    color:#fff;

    font-size:30px;

    padding-left:4px;
}


/* =========================================
   CENTER PLAY
   ========================================= */


.center-play {
    position:absolute;

    z-index:70;

    left:50%;
    top:50%;

    transform:
        translate(-50%,-50%);

    width:82px;
    height:82px;

    border-radius:50%;

    display:grid;
    place-items:center;

    background:
        rgba(0,0,0,.72);

    border:
        1px solid
        rgba(255,255,255,.25);

    font-size:32px;

    cursor:pointer;
}


/* =========================================
   CONTROLS
   ========================================= */


.controls {
    position:absolute;

    left:0;
    right:0;
    bottom:0;

    z-index:100;

    padding:
        12px
        17px
        16px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.97),
            rgba(0,0,0,.7),
            transparent
        );

    opacity:1;

    transform:
        translateY(0);

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.seek-row {
    display:flex;

    align-items:center;

    gap:10px;

    color:#d5dce5;

    font-size:11px;
}

.seek-row input {
    flex:1;
}

input[type=range] {
    accent-color:
        var(--accent);

    cursor:pointer;
}

.control-row {
    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:12px;

    margin-top:6px;
}

.control-group {
    display:flex;

    align-items:center;

    gap:5px;
}

.control-group.center {
    justify-content:center;
}

.control-group.right {
    justify-content:flex-end;
}

.ctrl {
    min-width:36px;
    height:36px;

    border:0;

    background:transparent;

    border-radius:8px;

    cursor:pointer;

    color:#edf2f7;

    font-size:16px;
}

.ctrl:hover,
.ctrl.active {
    background:
        rgba(255,255,255,.12);
}

.ctrl.primary {
    background:
        var(--accent);

    font-size:17px;
}

/* volume pushed past 100% via the Web Audio booster */
.ctrl.boosted {
    color:
        var(--accent2);

    box-shadow:
        inset 0 0 0 1px
        var(--accent2);
}

.text-btn {
    min-width:48px;
    font-size:13px;
}

.volume {
    width:90px;
}


/* =========================================
   MENUS
   ========================================= */


.player-menu {
    position:absolute;

    z-index:200;

    right:16px;
    bottom:72px;

    width:260px;

    max-height:330px;

    overflow:auto;

    background:#111720;

    border:
        1px solid #303b4a;

    border-radius:12px;

    box-shadow:
        0 20px 60px
        rgba(0,0,0,.65);

    padding:8px;
}

.menu-title {
    padding:
        8px 9px;

    color:var(--muted);

    font-size:10px;

    letter-spacing:1.3px;

    font-weight:800;
}

.player-menu button {
    width:100%;

    border:0;

    background:transparent;

    text-align:left;

    padding:10px;

    border-radius:8px;

    cursor:pointer;
}

.player-menu button:hover {
    background:
        rgba(255,255,255,.09);
}

.player-menu button small {
    float:right;
    color:var(--muted);
}

.menu-empty {
    padding:12px;

    color:var(--muted);

    font-size:12px;

    line-height:1.5;
}

.speed-menu {
    width:180px;
}


/* =========================================
   MENUS: ACTIVE / DISABLED ITEMS
   ========================================= */


.player-menu button.active {
    color:var(--accent2);
}

.player-menu button:disabled {
    opacity:.45;

    cursor:not-allowed;
}

.player-menu button:disabled:hover {
    background:transparent;
}


/* =========================================
   FULLSCREEN
   ========================================= */


.player-container:fullscreen,
.player-container:-webkit-full-screen {
    width:100vw;

    height:100vh;

    aspect-ratio:auto;

    border:0;

    border-radius:0;

    background:#000;
}

.player-container.fullscreen-active {
    position:fixed;

    inset:0;

    width:100vw;

    height:100vh;

    background:#000;

    z-index:500;
}

.player-container.fullscreen-active video,
.player-container:fullscreen video {
    width:100%;

    height:100%;

    object-fit:contain;
}


/* Pinch-to-fill: stretching two fingers apart on the video swaps it from
   letterboxed "contain" to an edge-to-edge "cover" fit that fills the
   whole mobile screen. Pinching back in restores the normal fitted view. */

.player-container.fill-mode video,
.player-container.fullscreen-active.fill-mode video,
.player-container:fullscreen.fill-mode video {
    object-fit:cover;
}


/*
    AUTO HIDE CONTROLS
*/

.player-container.controls-hidden
.controls {
    opacity:0;

    transform:
        translateY(100%);

    pointer-events:none;
}

.player-container.controls-hidden {
    cursor:none;
}

.player-container.controls-hidden
.controls:hover {
    opacity:1;

    transform:
        translateY(0);

    pointer-events:auto;
}

.player-container.fullscreen-active
.controls {
    padding-bottom:18px;
}


/* =========================================
   THEATER
   ========================================= */


body.theater .content {
    padding:10px;
}

body.theater .sidebar {
    display:none;
}

body.theater .workspace {
    grid-template-columns:1fr;
}


/* =========================================
   BROWSER PLAYER EXTRAS
   ========================================= */

.subtitle-overlay {
    position:absolute;

    left:6%;
    right:6%;

    bottom:92px;

    z-index:60;

    text-align:center;

    pointer-events:none;

    font-size:clamp(14px,2.1vw,26px);

    line-height:1.35;

    color:#fff;

    text-shadow:
        0 0 4px #000,
        0 0 4px #000,
        1px 1px 3px #000;

    white-space:pre-wrap;
}

.subtitle-overlay span {
    background:
        rgba(0,0,0,.55);

    padding:1px 8px;

    border-radius:4px;

    box-decoration-break:clone;
}

.buffering-badge {
    position:absolute;

    top:14px;
    right:16px;

    z-index:80;

    padding:6px 12px;

    border-radius:999px;

    background:
        rgba(0,0,0,.65);

    border:
        1px solid
        rgba(255,255,255,.2);

    font-size:12px;

    pointer-events:none;
}

/* =========================================
   MOBILE SWIPE GESTURE INDICATOR
   (brightness on the left half, volume on the right half)
   ========================================= */

.gesture-indicator {
    position:absolute;

    top:50%;

    z-index:90;

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:8px;

    width:56px;

    padding:12px 0;

    border-radius:14px;

    background:
        rgba(0,0,0,.6);

    border:
        1px solid
        rgba(255,255,255,.18);

    backdrop-filter:blur(2px);

    pointer-events:none;

    transform:
        translateY(-50%);

    opacity:1;

    transition:
        opacity .3s ease;
}

.gesture-indicator.left {
    left:22px;
}

.gesture-indicator.right {
    right:22px;
}

.gesture-indicator.hidden {
    opacity:0;
    display:flex;
}

.gesture-icon {
    font-size:18px;
}

.gesture-bar {
    width:5px;
    height:90px;

    border-radius:999px;

    background:
        rgba(255,255,255,.2);

    display:flex;

    align-items:flex-end;

    overflow:hidden;
}

.gesture-bar-fill {
    width:100%;
    height:50%;

    background:
        var(--accent);

    border-radius:999px;

    transition:
        height .05s linear;
}

.gesture-value {
    font-size:11px;
    font-variant-numeric:tabular-nums;
    color:#d5dce5;
}

.stream-status {
    margin-top:3px;

    color:var(--muted);

    font-size:11px;
}

.stream-status.building {
    color:#ffd166;
}

.mode-toggle {
    display:flex;

    border:
        1px solid var(--line);

    border-radius:10px;

    overflow:hidden;

    margin-left:auto;

    margin-right:12px;
}

.mode-toggle button {
    border:0;

    background:
        var(--panel2);

    padding:9px 14px;

    cursor:pointer;

    font-size:12px;

    font-weight:700;

    color:var(--muted);
}

.mode-toggle button.active {
    background:
        var(--accent);

    color:#fff;
}

.topbar-right {
    display:flex;

    align-items:center;
}

.message-actions {
    margin-top:10px;

    display:flex;

    gap:8px;

    flex-wrap:wrap;
}

.message-actions button {
    border:
        1px solid
        rgba(255,255,255,.25);

    background:
        rgba(255,255,255,.08);

    padding:7px 12px;

    border-radius:8px;

    cursor:pointer;

    font-size:12px;
}

.message-actions button:hover {
    background:
        rgba(255,255,255,.16);
}

body.native-mode .player-container {
    display:none;
}


/* =========================================
   RESPONSIVE (PLAYER)
   ========================================= */

@media (
    max-width:900px
) {

    .control-group.center {
        display:none;
    }
}


@media (
    max-width:600px
) {

    .player-container {
        min-height:230px;
    }

    .volume {
        width:60px;
    }

    /* Free up space on small screens, but always keep the fullscreen button reachable. */
    #theaterBtn,
    #downloadBtn {
        display:none;
    }
}


/* =========================================
   BROWSE THIS PC (folder picker modal)
   ========================================= */

.browse-modal {
    position:fixed;
    inset:0;

    z-index:800;

    display:flex;
    align-items:center;
    justify-content:center;

    background:
        rgba(3,5,9,.72);

    padding:20px;
}

.browse-modal-box {
    width:100%;
    max-width:520px;
    max-height:80vh;

    display:flex;
    flex-direction:column;

    background:var(--panel);

    border:
        1px solid var(--line);

    border-radius:14px;

    box-shadow:
        0 20px 60px
        rgba(0,0,0,.5);

    overflow:hidden;
}

.browse-modal-head {
    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:16px 18px;

    border-bottom:
        1px solid var(--line);
}

.browse-modal-title {
    font-size:15px;
    font-weight:600;
}

.browse-modal-close {
    width:30px;
    height:30px;

    border:0;
    border-radius:8px;

    background:transparent;

    color:var(--muted);

    cursor:pointer;

    font-size:15px;
}

.browse-modal-close:hover {
    background:var(--panel2);
    color:var(--text);
}

.browse-modal-path {
    display:flex;
    align-items:center;
    gap:10px;

    padding:12px 18px;

    border-bottom:
        1px solid var(--line);
}

.browse-up-btn {
    flex-shrink:0;

    width:32px;
    height:32px;

    border:
        1px solid var(--line);

    border-radius:8px;

    background:var(--panel2);

    cursor:pointer;

    font-size:14px;
}

.browse-up-btn:disabled {
    opacity:.35;
    cursor:not-allowed;
}

.browse-current-path {
    min-width:0;

    flex:1;

    overflow-x:auto;
    white-space:nowrap;

    font-size:12px;
    color:var(--muted);
}

.browse-list {
    flex:1;
    overflow-y:auto;

    padding:8px;

    min-height:200px;
}

.browse-item {
    display:flex;
    align-items:center;
    gap:10px;

    width:100%;

    padding:10px 12px;

    border:0;
    border-radius:8px;

    background:transparent;

    color:var(--text);

    text-align:left;

    cursor:pointer;

    font-size:13px;
}

.browse-item:hover {
    background:var(--panel2);
}

.browse-item.selected {
    background:var(--panel2);
    outline:
        1px solid var(--accent);
}

.browse-item-icon {
    font-size:16px;
}

.browse-item-name {
    min-width:0;

    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.browse-empty {
    padding:24px 12px;

    text-align:center;

    color:var(--muted);

    font-size:13px;
}

.browse-modal-foot {
    display:flex;
    justify-content:flex-end;
    gap:10px;

    padding:14px 18px;

    border-top:
        1px solid var(--line);
}

.browse-btn {
    padding:9px 16px;

    border:
        1px solid var(--line);

    border-radius:9px;

    background:var(--panel2);

    color:var(--text);

    cursor:pointer;

    font-size:13px;
}

.browse-btn:hover {
    background:var(--panel3);
}

.browse-btn.primary {
    background:var(--accent);
    border-color:var(--accent);
    color:#fff;
}

.browse-btn.primary:hover {
    filter:brightness(1.08);
}

.browse-btn:disabled {
    opacity:.4;
    cursor:not-allowed;
    filter:none;
}


/* =========================================
   HTML / TXT FILES IN A FOLDER
   ========================================= */

.document-card .video-card-icon {
    color:var(--accent2);
}

.document-download-btn {
    position:absolute;
    top:10px;
    right:10px;

    width:26px;
    height:26px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:
        1px solid var(--line);

    border-radius:7px;

    background:
        var(--panel2);

    color:var(--text);

    cursor:pointer;

    font-size:12px;
}

.document-download-btn:hover {
    background:var(--panel3);
    border-color:var(--accent);
}


/* =========================================
   HTML / TXT / PDF FILES IN THE SIDEBAR TREE
   ========================================= */

.sidebar-doc-download {
    padding:2px 5px;

    border-radius:5px;

    font-size:10px;

    color:var(--muted);
}

.sidebar-document:hover .sidebar-doc-download {
    background:
        var(--panel3);

    color:var(--text);
}
