/* ============================================================
   VideoHub — professional dark theme
   Palette: near-black surfaces + violet→indigo accent
   ============================================================ */
:root {
    --bg:          #0b0d12;
    --bg-elev:     #14171f;
    --bg-elev-2:   #1b1f2a;
    --bg-hover:    #222634;
    --border:      #262b37;
    --border-soft: #1e222c;

    --text:        #eef1f6;
    --text-muted:  #9aa4b4;
    --text-dim:    #6b7280;

    --accent:      #8b5cf6;
    --accent-2:    #6366f1;
    --accent-3:    #ec4899;
    --grad:        linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --grad-vivid:  linear-gradient(135deg, #ec4899 0%, #8b5cf6 45%, #6366f1 100%);
    --glow:        rgba(139, 92, 246, .35);

    --success:     #34d399;
    --danger:      #f87171;

    --radius:      16px;
    --radius-sm:   10px;
    --shadow:      0 10px 30px rgba(0, 0, 0, .45);
    --shadow-lg:   0 24px 60px rgba(0, 0, 0, .6);

    --nav-h:       64px;
    --maxw:        1320px;
    --font:        'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

.grad {
    background: var(--grad-vivid);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 6px 18px var(--glow);
}
.btn-primary:not(:disabled):hover { box-shadow: 0 10px 26px var(--glow); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }

.btn-danger-ghost {
    background: transparent;
    color: var(--danger);
    border-color: rgba(248, 113, 113, .35);
}
.btn-danger-ghost:hover { background: rgba(248, 113, 113, .12); }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: rgba(11, 13, 18, .78);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
    height: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-logo {
    display: inline-grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 4px 14px var(--glow);
}
.brand-name { color: var(--text); }

.search {
    position: relative;
    flex: 1;
    max-width: 560px;
    margin: 0 auto;
}
.search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-dim); pointer-events: none;
}
.search input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 42px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.search input::placeholder { color: var(--text-dim); }
.search input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-elev-2);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .15);
}
.search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
}
.hero-glow {
    position: absolute; inset: -40% 0 auto 0; height: 480px;
    background:
        radial-gradient(60% 60% at 30% 0%, rgba(139, 92, 246, .28), transparent 70%),
        radial-gradient(50% 50% at 80% 10%, rgba(236, 72, 153, .18), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 64px 22px 52px;
    text-align: center;
}
.hero-title {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 14px;
    line-height: 1.05;
}
.hero-sub {
    color: var(--text-muted);
    font-size: clamp(15px, 2vw, 18px);
    max-width: 560px;
    margin: 0 auto 30px;
}
.stats {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    padding: 16px 28px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.stat { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.stat-num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ============================================================
   Library grid
   ============================================================ */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 36px 22px 80px;
}
.section-head {
    display: flex; align-items: baseline; gap: 12px;
    margin-bottom: 22px;
}
.section-head h2 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.section-count { color: var(--text-dim); font-size: 14px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px 20px;
}

/* Card */
.card {
    background: transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform .18s ease;
}
.card:hover { transform: translateY(-4px); }
.card:hover .thumb { box-shadow: var(--shadow-lg); border-color: var(--accent); }
.card:hover .play-badge { opacity: 1; transform: scale(1); }

.thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        linear-gradient(135deg, #1a1f2b, #12151d),
        var(--bg-elev);
    border: 1px solid var(--border);
    transition: box-shadow .2s, border-color .2s;
}
.thumb video, .thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    background: #000;
}
.thumb-fallback {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 34px; font-weight: 800;
    color: rgba(255, 255, 255, .16);
    background: var(--grad);
    opacity: .18;
}
.play-badge {
    position: absolute; inset: 0; margin: auto;
    width: 54px; height: 54px;
    display: grid; place-items: center;
    background: rgba(10, 12, 18, .55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    opacity: 0; transform: scale(.85);
    transition: opacity .18s, transform .18s;
}
.duration-badge {
    position: absolute; right: 8px; bottom: 8px;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    font-size: 12px; font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: .02em;
}

.card-body { display: flex; gap: 12px; padding: 12px 4px 0; }
.card-avatar {
    flex: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--grad-vivid);
    display: grid; place-items: center;
    font-weight: 800; font-size: 15px; color: #fff;
}
.card-info { min-width: 0; }
.card-title {
    font-size: 15px; font-weight: 600;
    line-height: 1.35;
    margin: 0 0 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta { color: var(--text-dim); font-size: 13px; }
.card-meta .dot { margin: 0 6px; }

/* Skeleton loading cards */
.skeleton .thumb { animation: pulse 1.4s ease-in-out infinite; }
.skeleton .sk-line {
    height: 12px; border-radius: 6px;
    background: var(--bg-elev-2);
    animation: pulse 1.4s ease-in-out infinite;
    margin-top: 10px;
}
.skeleton .sk-line.short { width: 55%; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* Empty state */
.empty { text-align: center; padding: 70px 20px; color: var(--text-muted); }
.empty-icon { font-size: 46px; margin-bottom: 10px; }
.empty h3 { color: var(--text); margin: 0 0 6px; }
.empty p { margin: 0 0 20px; }

.list-status { text-align: center; color: var(--text-dim); font-size: 14px; padding: 26px 0 0; min-height: 20px; }

/* Numbered page navigation */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; padding: 18px 0 10px; }
.pager button {
    min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: 10px; border: 1px solid var(--border);
    background: var(--bg-elev); color: var(--text-muted);
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.pager button:hover:not(:disabled):not(.active) { background: var(--bg-hover); color: var(--text); border-color: var(--accent); }
.pager button:active:not(:disabled) { transform: scale(.95); }
.pager button.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px var(--glow); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .ellipsis { color: var(--text-dim); padding: 0 2px; }

/* Videos-per-page selector */
.page-size-bar { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 4px 0 14px; }
.page-size-bar .page-size { color: var(--text-dim); font-size: 14px; }
.page-size-bar select {
    height: 40px; padding: 0 34px 0 12px;
    border-radius: 10px; border: 1px solid var(--border);
    background: var(--bg-elev); color: var(--text);
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%239aa0aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
.page-size-bar select:hover { border-color: var(--accent); background-color: var(--bg-hover); }
.page-size-bar select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.spinner {
    display: inline-block; width: 20px; height: 20px;
    border: 2.5px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Modals
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, .72); backdrop-filter: blur(4px); }
.modal-card {
    position: relative;
    width: 100%; max-width: 560px;
    max-height: 90vh; overflow: auto;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 22px;
    animation: rise .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 700; }

/* Dropzone */
.dropzone {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 34px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, background .2s, color .2s;
}
.dropzone:hover, .dropzone.drag {
    border-color: var(--accent);
    background: rgba(139, 92, 246, .07);
    color: var(--text);
}
.dropzone-text strong { display: block; color: var(--text); font-size: 15px; }
.dropzone-text span { font-size: 13px; }

.upload-fields { margin-top: 16px; display: grid; gap: 12px; }
.field span { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.field span em { color: var(--text-dim); font-style: normal; font-size: 12px; }
.field input, .field textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit; font-size: 14px;
    resize: vertical;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .15);
}

.upload-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.upload-list:empty { margin: 0; }
.upload-item {
    display: grid; grid-template-columns: 1fr auto; gap: 4px 10px;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.upload-item .u-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item .u-state { color: var(--text-dim); font-size: 12px; }
.upload-item .u-state.done { color: var(--success); }
.upload-item .u-state.err  { color: var(--danger); }
.u-progress { grid-column: 1 / -1; height: 5px; border-radius: 4px; background: var(--bg-elev-2); overflow: hidden; }
.u-progress-bar { height: 100%; width: 0; background: var(--grad); transition: width .2s ease; }

.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.modal-foot-actions { display: flex; gap: 10px; }
.upload-summary { color: var(--text-dim); font-size: 13px; }

/* Watch modal */
.watch-card { max-width: 900px; padding: 0; overflow: hidden; background: #0e1016; }
.watch-close { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(0, 0, 0, .5); color: #fff; }
.watch-close:hover { background: rgba(0, 0, 0, .75); }
.player-wrap { background: #000; aspect-ratio: 16 / 9; }
.player-wrap video { width: 100%; height: 100%; display: block; background: #000; }
.watch-meta { padding: 18px 22px 24px; }
.watch-meta h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.watch-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-muted); font-size: 14px; }
.watch-desc { margin: 14px 0 0; color: var(--text-muted); font-size: 14px; white-space: pre-wrap; }
.watch-desc:empty { display: none; }

/* Toast */
.toast {
    position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
    z-index: 200;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 14px; font-weight: 500;
    opacity: 0; transition: opacity .25s, transform .25s;
}
.toast[hidden] { display: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(248, 113, 113, .5); }
.toast.ok  { border-color: rgba(52, 211, 153, .5); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
    .brand-name { display: none; }
    .hero-inner { padding: 44px 18px 40px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px 14px; }
    .card-avatar { display: none; }
    .stats { gap: 18px; padding: 14px 20px; }
}
@media (max-width: 420px) {
    .search input { font-size: 13px; }
    .btn-primary span { display: none; }
}

/* ============================================================
   Like button
   ============================================================ */
.like-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 7px 14px;
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.like-btn:hover { background: var(--bg-hover); color: var(--text); }
.like-btn:active { transform: scale(.96); }
.like-btn.liked { color: #fff; background: var(--accent-3); border-color: var(--accent-3); }
.like-btn.liked svg path { fill: #fff; }

/* ============================================================
   Login page
   ============================================================ */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
    width: 100%; max-width: 380px; text-align: center;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: 20px; padding: 34px 30px; box-shadow: var(--shadow-lg);
}
.auth-logo {
    width: 56px; height: 56px; margin: 0 auto 16px;
    display: grid; place-items: center; border-radius: 16px;
    background: var(--grad); color: #fff; box-shadow: 0 6px 18px var(--glow);
}
.auth-card h1 { margin: 0 0 6px; font-size: 22px; }
.auth-sub { margin: 0 0 22px; color: var(--text-muted); font-size: 14px; }
.auth-form { display: grid; gap: 14px; text-align: left; }
.auth-form .field span { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.auth-form input {
    width: 100%; padding: 10px 12px; background: var(--bg);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-family: inherit; font-size: 14px;
}
.auth-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, .15); }
.auth-submit { width: 100%; justify-content: center; margin-top: 4px; }
.auth-back { display: inline-block; margin-top: 18px; color: var(--text-dim); font-size: 13px; }
.auth-back:hover { color: var(--text); }
.auth-err, .auth-ok { padding: 9px 12px; border-radius: 10px; font-size: 13px; margin: 0 0 16px; }
.auth-err { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .4); color: #fca5a5; }
.auth-ok  { background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .4); color: #6ee7b7; }
.auth-alt { margin: 18px 0 0; font-size: 13px; color: var(--text-muted); }
.auth-alt a { color: var(--accent); font-weight: 600; }

/* ---- Subscription / premium ---- */
.sub-price { margin: 6px 0 18px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.sub-price span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.sub-active { margin: 6px 0 16px; font-size: 15px; font-weight: 600; color: #6ee7b7; }
.nav-member { font-size: 12px; font-weight: 700; color: #fbbf24; white-space: nowrap; }

/* Lock badge on a premium video card the viewer can't watch yet */
.lock-badge {
    position: absolute; left: 8px; top: 8px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 9px; border-radius: 8px;
    background: rgba(0, 0, 0, .72); color: #fbbf24;
    font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.card.locked .thumb { filter: saturate(.5) brightness(.7); }

/* "Premium" tag in the admin manage list */
.premium-badge {
    display: inline-block; margin-top: 6px;
    padding: 3px 8px; border-radius: 999px;
    background: rgba(251, 191, 36, .14); border: 1px solid rgba(251, 191, 36, .4);
    color: #fbbf24; font-size: 11px; font-weight: 700;
}

/* Premium checkbox inside the admin edit form */
.edit-check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--text-muted); }
.edit-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* Header login/signup area (public site) */
.nav-auth { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-auth .btn { padding: 7px 13px; font-size: 13px; }
.nav-user { font-size: 13px; color: var(--text-muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
    .nav-user { display: none; }
    .nav-auth .btn { padding: 6px 10px; }
}

/* ============================================================
   Admin dashboard
   ============================================================ */
.nav-spacer { flex: 1; }
.admin-tag {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    color: var(--accent); border: 1px solid var(--border); border-radius: 6px;
    padding: 2px 7px; margin-left: 2px; vertical-align: middle;
}
.admin-container { display: grid; gap: 24px; padding-top: 28px; }
.admin-panel { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.admin-h2 { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.admin-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.admin-actions.center { justify-content: center; }
.manage-list { display: grid; gap: 10px; }
.manage-row {
    display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
    padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
}
.manage-thumb { width: 120px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.manage-thumb video { width: 100%; height: 100%; object-fit: cover; }
.manage-info { min-width: 0; }
.manage-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-meta { color: var(--text-dim); font-size: 13px; }
.manage-actions { display: flex; gap: 8px; align-items: center; }

/* Inline edit form (spans the full width of the row's grid) */
.manage-edit {
    grid-column: 1 / -1;
    margin-top: 6px; padding-top: 14px;
    border-top: 1px solid var(--border);
    display: grid; gap: 12px;
}
.manage-edit .edit-actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 560px) {
    .manage-thumb { width: 84px; }
    .manage-row { gap: 10px; padding: 8px; }
    .admin-tag { display: none; }
}
