/* Valaiscom Signage – CMS
   Designsystem nach «voyane» (Swiss Professional): Manrope, cremeweisse Flächen,
   schwarze Primary-Aktionen, haarfeine Rahmen, Pill-Badges. */

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary:        #0A0A0A;
    --primary-hover:  #1F1F1F;
    --primary-light:  rgba(10, 10, 10, 0.06);

    --success:        #16A34A;
    --success-soft:   #DCFCE7;
    --danger:         #DC2626;
    --danger-soft:    #FEE2E2;
    --warning:        #D97706;
    --warning-soft:   #FEF3C7;
    --info:           #2563EB;
    --info-soft:      #DBEAFE;

    --surface:        #FFFFFF;
    --surface-alt:    #FAFAF9;
    --surface-muted:  #F5F5F4;
    --surface-input:  #FAFAF9;

    --text:           #18181B;
    --text-secondary: #52525B;
    --text-light:     #A1A1AA;

    --border:         #E7E5E4;
    --border-strong:  #D6D3D1;
    --border-soft:    #F0EFEC;

    --radius-sm:      4px;
    --radius:         6px;
    --radius-md:      8px;
    --radius-lg:      10px;
    --radius-pill:    999px;

    --shadow-xs:      0 1px 0 rgba(10, 10, 10, 0.04);
    --shadow-sm:      0 1px 2px rgba(10, 10, 10, 0.05);
    --shadow:         0 1px 3px rgba(10, 10, 10, 0.06), 0 1px 2px rgba(10, 10, 10, 0.04);
    --shadow-md:      0 4px 12px rgba(10, 10, 10, 0.06), 0 2px 4px rgba(10, 10, 10, 0.04);
    --shadow-lg:      0 12px 24px -6px rgba(10, 10, 10, 0.08), 0 4px 8px rgba(10, 10, 10, 0.05);

    --font:           'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --transition:     150ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--surface-alt);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv11', 'ss01';
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
::selection { background: var(--primary); color: #fff; }

.muted { color: var(--text-light); font-size: 13px; }

/* ── Layout ── */
.cms-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 236px; flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: 20px 14px;
    position: sticky; top: 0; height: 100vh;
}
.side-brand {
    font-size: 19px; font-weight: 800; color: var(--text);
    letter-spacing: -0.03em; padding: 6px 10px 22px;
}
.side-brand span { color: var(--text-light); font-weight: 700; }

.sidebar nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sidebar nav > a {
    display: flex; align-items: center; gap: 11px;
    color: var(--text-secondary); padding: 9px 11px;
    border-radius: var(--radius); font-size: 13.5px; font-weight: 600;
    letter-spacing: -0.005em;
    transition: background var(--transition), color var(--transition);
}
.sidebar nav > a:hover { background: var(--surface-muted); color: var(--text); }
.sidebar nav > a.active {
    background: var(--surface-muted); color: var(--text);
    box-shadow: inset 0 0 0 1px var(--border);
}
.sidebar .ico {
    width: 18px; height: 18px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; color: currentColor;
}
.sidebar .ico svg { width: 18px; height: 18px; stroke: currentColor; }

.side-bottom { padding: 14px 10px 2px; border-top: 1px solid var(--border-soft); margin-top: 10px; }
.side-bottom a {
    display: block; color: var(--text-light); font-size: 12.5px;
    padding: 6px 0; font-weight: 600; transition: color var(--transition);
}
.side-bottom a:hover { color: var(--text); }

/* Unternavigation (Player / Einstellungen) */
.subnav { padding: 2px 0 6px 0; margin: 2px 0 4px; display: flex; flex-direction: column; gap: 1px; }
.subnav a {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-light); font-size: 12.5px; font-weight: 600;
    padding: 6px 11px 6px 40px; border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}
.subnav a:hover { background: var(--surface-muted); color: var(--text); }
.subnav a.active { color: var(--text); background: var(--surface-muted); }
.sub-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.sub-dot.on  { background: var(--success); }
.sub-dot.off { background: var(--border-strong); }

.content { flex: 1; padding: 32px 36px 64px; max-width: 1240px; min-width: 0; }
.page-title { margin: 0 0 24px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 15px; font-weight: 700; margin: 30px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 14px; font-weight: 700; margin: 0 0 12px; }

/* ── Flash / Alerts ── */
.flash {
    background: var(--success-soft); border: 1px solid #BBF7D0; color: #166534;
    padding: 11px 16px; border-radius: var(--radius); margin-bottom: 18px;
    font-size: 13.5px; font-weight: 500;
}
.flash.error { background: var(--danger-soft); border-color: #FECACA; color: #991B1B; }

/* ── Panels / Cards ── */
.panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 22px; margin-bottom: 20px;
    box-shadow: var(--shadow-xs);
}
.panel h2 { margin-top: 0; }

/* ── KPI / Stat-Karten ── */
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.stat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 18px 20px 20px;
    min-width: 150px; flex: 1; box-shadow: var(--shadow-xs);
    display: flex; flex-direction: column; gap: 6px;
    transition: background var(--transition);
}
.stat-card:hover { background: var(--surface-alt); }
.stat-num {
    font-size: 26px; font-weight: 800; color: var(--text);
    letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.1;
    order: 2;
}
.stat-num.warnnum { color: var(--warning); }
.stat-unit { font-size: 17px; font-weight: 600; color: var(--text-light); }
.stat-label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); order: 1; }
.stat-label .est { font-weight: 500; color: var(--text-light); }
.stat-label a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.cache-card, .quick-card { align-items: flex-start; justify-content: flex-start; }
.cache-card form, .quick-card .btn { order: 3; margin-top: 4px; }
.quick-card { gap: 10px; }

/* ── Player-Statuskarten ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-xs);
}
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-head strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.card-format { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-status {
    font-size: 13px; font-weight: 500; margin-bottom: 12px;
    padding: 8px 12px; border-radius: var(--radius); background: var(--surface-muted); color: var(--text-secondary);
}
.card-status.share { background: var(--warning-soft); color: #92400E; }
.card-status.play  { background: var(--success-soft); color: #166534; }
.card-status.idle  { background: var(--surface-muted); color: var(--text-light); }
.card-meta { font-size: 12.5px; color: var(--text-light); margin-bottom: 14px; line-height: 1.7; word-break: break-word; }
.card-meta a { color: var(--text-secondary); }
.prob-link { color: var(--warning); font-weight: 700; }
.prob-ok { color: var(--success); font-weight: 600; }
.card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-actions form { margin: 0; }

/* ── Badges (Pill) ── */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
    padding: 3px 10px; border-radius: var(--radius-pill); line-height: 1.5;
}
.badge.on  { background: var(--success-soft); color: #166534; }
.badge.off { background: var(--surface-muted); color: var(--text-secondary); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 38px; padding: 0 16px; border-radius: var(--radius);
    border: 1px solid var(--primary); background: var(--primary); color: #fff;
    font-size: 13.5px; font-weight: 600; font-family: var(--font);
    letter-spacing: -0.005em; cursor: pointer; white-space: nowrap; user-select: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.12); }
.btn:disabled, .btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn.small { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn.tiny  { height: 26px; padding: 0 9px; font-size: 12px; border-radius: var(--radius-sm); }

.btn.ghost, .btn.secondary {
    background: var(--surface); border-color: var(--border); color: var(--text);
}
.btn.ghost:hover, .btn.secondary:hover { background: var(--surface-muted); border-color: var(--border-strong); color: var(--text); }

.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { background: #B91C1C; border-color: #B91C1C; }

/* ── Formulare ── */
input[type=text], input[type=password], input[type=number], input[type=time],
input[type=date], input[type=search], input[type=email], input[type=url], select, textarea {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 9px 12px; font-size: 13.5px; font-family: var(--font);
    color: var(--text); background: var(--surface); outline: none; line-height: 1.4;
    transition: border-color var(--transition), box-shadow var(--transition);
}
input::placeholder, textarea::placeholder { color: var(--text-light); }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus {
    border-color: var(--text); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}
input[type=color] {
    width: 44px; height: 34px; padding: 3px; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--surface); cursor: pointer;
}

.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input[type=text] { flex: 1; min-width: 220px; }
.stack-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.stack-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
.stack-form .muted { font-weight: 400; }
.stack-form button { align-self: flex-start; }
.upload-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
input.mini { width: 90px; }

/* ── Tabellen ── */
.table {
    width: 100%; border-collapse: collapse; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: middle; }
.table th {
    background: var(--surface-alt); border-bottom: 1px solid var(--border);
    font-size: 11.5px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.02em;
}
.table td { border-bottom: 1px solid var(--border-soft); font-size: 13.5px; color: var(--text); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover td { background: var(--surface-alt); }
.table .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.table .actions form { margin: 0; }

/* ── Mediathek ── */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.media-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-xs);
}
.media-thumb { position: relative; aspect-ratio: 16/9; background: var(--surface-muted); }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.type-badge {
    position: absolute; top: 8px; right: 8px; background: rgba(10,10,10,0.78); color: #fff;
    font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-sm);
}
.media-info { padding: 11px 12px 13px; }
.media-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-meta { font-size: 12px; color: var(--text-light); margin: 5px 0 10px; line-height: 1.6; }
.media-card.pick { cursor: pointer; position: relative; display: block; }
.media-card.pick input { position: absolute; top: 10px; left: 10px; z-index: 2; width: 18px; height: 18px; }
.media-card.pick:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.cat-select-form { margin: 6px 0 4px; }
.cat-select-form select { width: 100%; font-size: 12.5px; padding: 6px 8px; }
.picker { margin-bottom: 16px; }
.picker-group-head {
    display: flex; align-items: center; font-weight: 700; font-size: 13.5px;
    margin: 22px 0 10px; color: var(--text);
}
.picker-group-head .muted { margin-left: 7px; font-weight: 500; }

/* ── Format-Vorprüfung beim Upload ── */
#upload-check { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.check-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 8px 12px; font-size: 13px;
}
.check-name { font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-dims { color: var(--text-secondary); min-width: 90px; }
.check-note { color: var(--text-light); }

/* ── Format-Badges & Bereich-Chips ── */
.fmt-badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 2px 9px; border-radius: var(--radius-pill);
    background: var(--surface-muted); color: var(--text-secondary); vertical-align: middle;
}
.fmt-badge.ok   { background: var(--success-soft); color: #166534; }
.fmt-badge.warn { background: var(--warning-soft); color: #92400E; }
.fmt-badge.expired { background: var(--surface-muted); color: var(--text-light); }

.cat-chip {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 2px 10px; border-radius: var(--radius-pill); color: #fff; vertical-align: middle;
}
.chip-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }

.chip-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.filter-chip {
    display: inline-flex; align-items: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
    padding: 6px 14px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.filter-chip:hover { border-color: var(--border-strong); color: var(--text); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Format-Visualisierung (Bildschirm-Rechtecke) ── */
.screen-rect {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--text); border: 1px solid var(--text); border-radius: var(--radius-sm);
    vertical-align: middle; flex-shrink: 0;
}
.screen-rect span { font-size: 10px; color: #fff; letter-spacing: .5px; font-weight: 600; }
.format-legend { display: flex; gap: 34px; flex-wrap: wrap; margin: 6px 0 10px; }
.format-item { display: flex; align-items: center; gap: 14px; }
.format-cell { display: flex; align-items: center; gap: 10px; }

/* ── Wochenplan (Tage) ── */
.day-boxes { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.day-box { position: relative; }
.day-box input { position: absolute; opacity: 0; }
.day-box span {
    display: inline-block; padding: 8px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer; font-weight: 600; font-size: 13px; user-select: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.day-box input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── YouTube-artige Playlist-Liste ── */
.h-row { display: flex; align-items: center; gap: 14px; }
.h-row form { margin: 0; }

.yt-list { list-style: none; margin: 0 0 18px; padding: 0; }
.yt-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 10px 14px; margin-bottom: 8px; position: relative;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.yt-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.yt-item.dragging { opacity: .4; }
.yt-item.is-inactive { opacity: .6; }
.yt-item.is-expired { background: var(--surface-alt); }
.yt-item .drag-handle { cursor: grab; color: var(--text-light); font-size: 20px; }
.yt-item .drag-handle:hover { color: var(--text); }
.yt-pos { width: 22px; text-align: center; font-weight: 700; color: var(--text-light); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.yt-thumb {
    width: 132px; height: 74px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden;
    background: var(--surface-muted); position: relative; border: 1px solid var(--border);
}
.yt-thumb img, .yt-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; text-shadow: 0 1px 6px rgba(0,0,0,.6); pointer-events: none;
}
.yt-info { flex: 1; min-width: 0; }
.yt-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.yt-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.meta-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--surface-muted); color: var(--text-secondary); border-radius: var(--radius-pill);
    padding: 2px 10px; font-size: 11.5px; font-weight: 600;
}
.meta-badge.badge-exp.expired { background: var(--danger-soft); color: #991B1B; }
.meta-badge[hidden] { display: none; }
.inactive-badge {
    display: none; background: var(--surface-muted); color: var(--text-light);
    border-radius: var(--radius-pill); padding: 2px 10px; font-size: 11.5px; font-weight: 600;
}
.yt-item.is-inactive .inactive-badge { display: inline-block; }
.yt-more {
    flex-shrink: 0; background: none; border: 1px solid transparent; cursor: pointer;
    font-size: 20px; line-height: 1; color: var(--text-light); padding: 6px 8px; border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}
.yt-more:hover { background: var(--surface-muted); color: var(--text); }

/* ── Kontextmenü ── */
.ctx-menu {
    display: none; position: absolute; z-index: 200;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); padding: 6px; min-width: 214px;
}
.ctx-menu button {
    display: block; width: 100%; text-align: left; background: none; border: none;
    padding: 9px 12px; border-radius: var(--radius); font-size: 13.5px; font-weight: 500;
    color: var(--text); cursor: pointer; font-family: var(--font);
}
.ctx-menu button:hover { background: var(--surface-muted); }
.ctx-menu button.danger { color: var(--danger); }
.ctx-menu button.danger:hover { background: var(--danger-soft); }

/* ── Modal ── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 300; background: rgba(10, 10, 10, 0.45);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box {
    background: var(--surface); border-radius: var(--radius-lg); padding: 24px;
    width: 100%; max-width: 380px; box-shadow: var(--shadow-lg);
}
.modal-box h3 { margin: 0 0 16px; font-size: 16px; font-weight: 700; }
.modal-body label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; }
.modal-body input { padding: 10px 12px; }
.modal-row { display: flex; gap: 14px; }
.modal-row label { flex-direction: row; align-items: center; gap: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ── Verwaltungs-Links (Einstellungen) ── */
.settings-links { display: flex; gap: 14px; flex-wrap: wrap; }
.settings-link {
    display: flex; align-items: center; gap: 14px; flex: 1; min-width: 260px;
    background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 16px 18px; color: var(--text);
    transition: border-color var(--transition), background var(--transition);
}
.settings-link:hover { border-color: var(--border-strong); background: var(--surface-muted); }
.settings-link .sl-icon { font-size: 24px; flex-shrink: 0; }

/* ── Log ── */
.log-table .log-time { white-space: nowrap; color: var(--text-secondary); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.log-level {
    display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
    padding: 2px 9px; border-radius: var(--radius-pill);
}
.log-level.info    { background: var(--surface-muted); color: var(--text-secondary); }
.log-level.warning { background: var(--warning-soft); color: #92400E; }
.log-level.error   { background: var(--danger-soft); color: #991B1B; }

/* ── Login ── */
.login-body {
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
    background: var(--surface-alt); margin: 0; font-family: var(--font);
}
.login-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 34px 32px; width: 100%; max-width: 380px;
    display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-md);
}
.login-box .side-brand { color: var(--text); padding: 0; }
.login-box h1 { margin: 0 0 4px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.login-box input { padding: 11px 14px; font-size: 14px; }

@media (max-width: 860px) {
    .cms-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; flex-direction: row;
               flex-wrap: wrap; align-items: center; padding: 10px 14px; border-right: none;
               border-bottom: 1px solid var(--border); }
    .side-brand { padding: 4px 8px; }
    .sidebar nav { flex-direction: row; flex-wrap: wrap; }
    .sidebar nav > a { padding: 8px 11px; }
    .subnav { display: flex; flex-direction: row; flex-wrap: wrap; padding: 0; width: 100%; }
    .subnav a { padding: 6px 10px; }
    .side-bottom { border-top: none; margin: 0; padding: 4px 8px; display: flex; gap: 14px; }
    .content { padding: 22px 16px 50px; }
    .yt-thumb { width: 96px; height: 54px; }
}
