.cl-videos-panel {
    --bg: #0f1412;
    --bg-2: #171e1a;
    --panel: #1c2621;
    --line: rgba(232, 240, 234, 0.08);
    --text: #e8f0ea;
    --muted: #9aada1;
    --accent: #c8f542;
    --accent-2: #7dd87a;
    --radius: 14px;
    --shadow: 0 18px 50px rgba(0,0,0,.45);
  }
  * { box-sizing: border-box; }
  
  .cl-videos-panel {
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--text);
    background:
      radial-gradient(1100px 500px at 10% -10%, rgba(200,245,66,.12), transparent 55%),
      radial-gradient(900px 480px at 100% 0%, rgba(125,216,122,.08), transparent 50%),
      linear-gradient(180deg, #121916 0%, var(--bg) 40%, #0c100e 100%);
  }
  .wrap { width: 90%; max-width: none; margin: 0 auto; padding: 1rem 0 3rem; }
  header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin-bottom: .85rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
  }
  .brand-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    flex: 1 1 auto;
  }
  .brand-photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 18%;
    border: 2px solid rgba(200,245,66,.55);
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
    flex-shrink: 0;
  }
  .brand {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
    letter-spacing: .04em;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
  }
  .brand span { color: var(--accent); }
  .version-btn {
    appearance: none;
    border: 1px solid rgba(200,245,66,.35);
    background: rgba(200,245,66,.08);
    color: var(--accent);
    border-radius: 999px;
    padding: .2rem .55rem;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }
  .version-btn:hover {
    background: var(--accent);
    color: #12200f;
    border-color: transparent;
  }
  .icon-btn {
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    color: var(--muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
  }
  .icon-btn:hover,
  .icon-btn[aria-expanded="true"] {
    color: #12200f;
    background: var(--accent);
    border-color: transparent;
  }
  .info-wrap {
    position: relative;
    flex-shrink: 0;
  }
  .info-pop {
    display: none;
    position: absolute;
    top: calc(100% + .55rem);
    left: 0;
    z-index: 40;
    width: min(340px, 78vw);
    padding: .85rem 1rem;
    background: var(--bg-2);
    border: 1px solid rgba(200,245,66,.35);
    border-radius: 12px;
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: .86rem;
    line-height: 1.45;
  }
  .info-pop.open { display: block; }
  .info-pop strong { color: var(--accent); font-weight: 650; }
  .channel-btn {
    appearance: none;
    border: 1px solid rgba(200,245,66,.35);
    background: transparent;
    color: var(--text);
    border-radius: 999px;
    padding: .4rem .8rem;
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
  }
  .channel-btn:hover { background: rgba(200,245,66,.1); }
  .live-clock {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    white-space: nowrap;
    margin: 0;
  }
  .live-clock .clock-date {
    font-family: "DM Sans", system-ui, sans-serif;
    font-weight: 200;
    font-size: clamp(1.05rem, 2.4vw, 1.55rem);
    letter-spacing: .05em;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    -webkit-font-smoothing: antialiased;
  }
  .flip-clock {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .flip-digit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 2.15rem;
    border-radius: 4px;
    background:
      linear-gradient(180deg,
        #454545 0%,
        #323232 46%,
        #1a1a1a 50%,
        #2c2c2c 54%,
        #3a3a3a 100%);
    color: #f4f4f4;
    font-family: "DM Sans", system-ui, sans-serif;
    font-weight: 650;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.12),
      inset 0 -1px 0 rgba(0,0,0,.35),
      0 2px 6px rgba(0,0,0,.35);
    overflow: hidden;
  }
  .flip-digit::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0,0,0,.75);
    box-shadow: 0 1px 0 rgba(255,255,255,.05);
    z-index: 1;
  }
  .flip-digit::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: calc(50% - 3px);
    height: 6px;
    background:
      radial-gradient(circle at left center, #0c100e 2.5px, transparent 2.6px),
      radial-gradient(circle at right center, #0c100e 2.5px, transparent 2.6px);
    pointer-events: none;
    z-index: 2;
  }
  .flip-colon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .28rem;
    width: .55rem;
    padding: 0 .1rem;
  }
  .flip-colon i {
    display: block;
    width: .22rem;
    height: .22rem;
    border-radius: 50%;
    background: #d8d8d8;
    box-shadow: 0 1px 2px rgba(0,0,0,.35);
  }
  .flip-digit.flip-sec {
    width: 1.2rem;
    height: 1.7rem;
    font-size: .92rem;
    font-weight: 600;
    color: #b8b8b8;
    opacity: .9;
  }
  .flip-colon.flip-sec-colon {
    gap: .2rem;
    width: .45rem;
  }
  .flip-colon.flip-sec-colon i {
    width: .16rem;
    height: .16rem;
    background: #8a8a8a;
  }
  .toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .65rem;
    align-items: center;
    margin-left: auto;
    justify-content: flex-end;
  }
  .search {
    width: min(220px, 42vw);
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 999px;
    padding: .45rem .85rem;
    font: inherit;
    font-size: .9rem;
    outline: none;
  }
  .search:focus { border-color: rgba(200,245,66,.45); }
  .count {
    font-size: .8rem;
    color: var(--muted);
    white-space: nowrap;
    margin-left: .15rem;
  }
  .has-tip { position: relative; }
  .has-tip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    top: calc(100% + .55rem);
    transform: translateX(-50%);
    width: min(300px, 70vw);
    padding: .7rem .85rem;
    background: var(--bg-2);
    border: 1px solid rgba(200,245,66,.35);
    border-radius: 10px;
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 45;
  }
  .has-tip:hover::after,
  .has-tip:focus-visible::after { opacity: 1; }
  .family-nav {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    position: sticky;
    top: 0;
    z-index: 35;
    margin: 0 0 1rem;
    padding: .55rem 0 .65rem;
    border-bottom: 1px solid var(--line);
    background: rgba(12, 16, 14, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .family-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(1.2rem, 2.6vw, 1.55rem);
    letter-spacing: .06em;
    line-height: 1;
    padding: .45rem .85rem;
    cursor: pointer;
    border-radius: 8px;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
  }
  .family-tab:hover { color: var(--text); background: rgba(255,255,255,.03); }
  .family-tab.active {
    color: var(--accent);
    background: rgba(200,245,66,.08);
  }
  .family-tab.drag-over {
    color: #12200f;
    background: var(--accent);
    box-shadow: 0 0 0 2px rgba(200,245,66,.35);
  }
  .family-tab.blink {
    animation: tabBlink .9s ease;
  }
  @keyframes tabBlink {
    0%, 100% { color: var(--accent); background: rgba(200,245,66,.08); }
    20%, 60% { color: #12200f; background: var(--accent); }
    40%, 80% { color: var(--accent); background: rgba(200,245,66,.22); }
  }
  .family-sep {
    width: 2px;
    align-self: stretch;
    min-height: 1.6rem;
    margin: .2rem .35rem;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
  }
  .catalog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-width: 0;
  }
  .family-empty {
    color: var(--muted);
    font-size: .9rem;
    padding: .75rem .2rem;
  }
  .grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: .65rem;
    width: 100%;
    min-width: 0;
  }
  .card {
    width: 158px;
    flex: 0 0 158px;
    background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%), var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, border-color .2s ease, opacity .25s ease, filter .25s ease;
    cursor: grab;
  }
  .card.card-enter {
    opacity: 0;
    transform: translateY(22px);
    animation: rowIn .48s ease forwards;
    animation-delay: calc(var(--row, 0) * .14s);
  }
  @keyframes rowIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .card:active { cursor: grabbing; }
  .card.dragging {
    opacity: .45;
    transform: scale(.97);
  }
  .card.drop-before {
    box-shadow: inset 3px 0 0 var(--accent);
  }
  .card.drop-after {
    box-shadow: inset -3px 0 0 var(--accent);
  }
  .card-date {
    margin: 0;
    font-size: .68rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: .02em;
  }
  .card:hover { transform: translateY(-2px); border-color: rgba(200,245,66,.28); }
  .card.active-on {
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  }
  .card.active-on:hover {
    border-color: #fff;
  }
  .card.removed {
    border-color: rgba(232, 90, 79, 0.28);
    box-shadow: none;
  }
  .card.removed:hover {
    transform: none;
    border-color: rgba(232, 90, 79, 0.28);
  }
  .card.removed .thumb img,
  .card.removed .title,
  .card.removed .actions {
    opacity: .42;
    filter: grayscale(.55) brightness(.85);
  }
  .card.removed .btn.primary {
    opacity: .45;
    pointer-events: none;
  }
  .card.filed {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
  }
  .card.filed.active-on {
    border-color: rgba(255, 255, 255, 0.55);
  }
  .card.filed .thumb img,
  .card.filed .title,
  .card.filed .actions {
    opacity: .48;
    filter: saturate(.45) brightness(.82);
  }
  .card.filed:hover {
    border-color: rgba(200,245,66,.35);
    border-style: solid;
  }
  .card.filed:hover .thumb img,
  .card.filed:hover .title,
  .card.filed:hover .actions {
    opacity: .9;
    filter: none;
  }
  .card.filed .btn.primary {
    opacity: .55;
  }
  .card-status {
    position: absolute;
    left: .4rem;
    top: .4rem;
    z-index: 3;
    margin: 0;
    max-width: calc(100% - .8rem);
    padding: .22rem .4rem;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-status.off {
    color: #fff;
    background: #e23b30;
    box-shadow: 0 2px 8px rgba(226, 59, 48, .45);
  }
  .card-status.cat {
    color: rgba(232, 240, 234, 0.78);
    background: rgba(200, 245, 66, 0.18);
    border: 1px solid rgba(200, 245, 66, 0.28);
    box-shadow: none;
    font-weight: 600;
  }
  .card.filed.card-enter,
  .card.removed.card-enter {
    animation-name: rowIn;
  }
  .switch {
    position: relative;
    width: 28px;
    height: 16px;
    flex-shrink: 0;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: #2a3830;
    cursor: pointer;
    transition: background .2s ease;
    align-self: center;
  }
  .switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7dd87a;
    box-shadow: 0 1px 3px rgba(0,0,0,.35);
    transition: transform .22s ease, background .2s ease;
  }
  .switch.off {
    background: #3a2a28;
  }
  .switch.off::after {
    transform: translateX(12px);
    background: #e85a4f;
  }
  .switch:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
  }
  .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
  }
  .card:hover .thumb img { transform: scale(1.04); }
  .card.removed:hover .thumb img { transform: none; }
  .dur {
    position: absolute;
    right: .4rem;
    bottom: .4rem;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: .65rem;
    font-weight: 600;
    padding: .12rem .3rem;
    border-radius: 4px;
  }
  .body { padding: .5rem .5rem .5rem; display: grid; gap: .35rem; flex: 1; }
  .title {
    margin: 0;
    font-size: .75rem;
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: .01em;
    color: #eef5f0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
  }
  .title .num {
    color: #8a9a90;
    font-weight: 400;
  }
  .actions {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-top: auto;
    flex-wrap: nowrap;
  }
  .btn {
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    color: var(--text);
    border-radius: 999px;
    padding: .15rem .42rem;
    font: inherit;
    font-size: .62rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
  }
  .btn.primary { background: var(--accent); color: #12200f; border-color: transparent; }
  .btn:hover { filter: brightness(1.08); }
  .toolbar .btn { font-size: .82rem; padding: .45rem .85rem; line-height: inherit; }
  .modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    place-items: center;
    padding: 1rem;
    background: rgba(5,8,6,.82);
    backdrop-filter: blur(8px);
  }
  .modal.open { display: grid; }
  .modal-panel {
    width: min(960px, 100%);
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .modal-panel.narrow { width: min(520px, 100%); }
  .modal-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .modal-head h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 650;
  }
  .modal-body {
    padding: 1.1rem;
    display: grid;
    gap: .85rem;
  }
  .modal-body label {
    display: grid;
    gap: .4rem;
    font-size: .9rem;
    color: var(--muted);
  }
  .modal-body input {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 12px;
    padding: .75rem .9rem;
    font: inherit;
    outline: none;
  }
  .modal-body input:focus { border-color: rgba(200,245,66,.45); }
  .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
  }
  .cat-list {
    display: grid;
    gap: .55rem;
    max-height: min(42vh, 320px);
    overflow: auto;
    padding-right: .15rem;
  }
  .cat-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .45rem;
    align-items: center;
  }
  .cat-row input {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 10px;
    padding: .55rem .7rem;
    font: inherit;
    outline: none;
  }
  .cat-row input:focus { border-color: rgba(200,245,66,.45); }
  .cat-empty {
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
  }
  .cat-add {
    display: grid;
    gap: .55rem;
    padding-top: .35rem;
    border-top: 1px solid var(--line);
  }
  .cat-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem;
  }
  .btn.danger {
    border-color: rgba(232,90,79,.35);
    color: #f0a29a;
  }
  .btn.danger:hover { background: rgba(232,90,79,.12); filter: none; }
  .changelog {
    display: grid;
    gap: 1rem;
    max-height: min(60vh, 480px);
    overflow: auto;
    padding-right: .2rem;
  }
  .changelog-item {
    display: grid;
    gap: .4rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--line);
  }
  .changelog-item:last-child { border-bottom: 0; padding-bottom: 0; }
  .changelog-ver {
    margin: 0;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.25rem;
    letter-spacing: .06em;
    color: var(--accent);
  }
  .changelog-date {
    margin: 0;
    font-size: .78rem;
    color: var(--muted);
  }
  .changelog-item ul {
    margin: .15rem 0 0;
    padding-left: 1.1rem;
    display: grid;
    gap: .25rem;
    color: var(--text);
    font-size: .9rem;
    line-height: 1.4;
  }
  .close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: .15rem .35rem;
  }
  .close:hover { color: var(--text); }
  .player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
  }
  .player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .empty {
    text-align: center;
    color: var(--muted);
    padding: 3rem 1rem;
  }
.cl-videos-panel .wrap header {
  position: relative;
  z-index: 1;
}
.cl-videos-page-wrap {
  width: 100%;
  overflow-x: hidden;
}
.cl-videos-section .cl-videos-panel {
  background: transparent !important;
}