/* ==========================================================================
   ANDERCODE — YOUTUBE VIDEO LIBRARY + CONTENT ADMIN
   ========================================================================== */

.ytv-page,
.ytv-admin-page {
    --ytv-red: #ff0033;
    --ytv-red-dark: #cc0029;
    --ytv-purple: #7c3aed;
    --ytv-ink: #17151f;
    --ytv-muted: #6d6878;
    --ytv-border: #e9e5f0;
    --ytv-soft: #f8f6ff;
    color: var(--ytv-ink);
}

/* PUBLIC ------------------------------------------------------------------ */

.ytv-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 0, 51, .12), transparent 28%),
        radial-gradient(circle at 8% 88%, rgba(124, 58, 237, .12), transparent 30%),
        linear-gradient(180deg, #fff 0%, #faf8ff 100%);
    border-bottom: 1px solid rgba(124, 58, 237, .08);
}

.ytv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .28;
    pointer-events: none;
    background-image: radial-gradient(rgba(124, 58, 237, .22) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.ytv-eyebrow,
.ytv-section-kicker,
.ytv-admin-eyebrow,
.ytv-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #6d28d9;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.ytv-eyebrow {
    padding: .48rem .75rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, .08);
    border: 1px solid rgba(124, 58, 237, .12);
}

.ytv-eyebrow i {
    color: var(--ytv-red);
}

.ytv-hero h1 {
    max-width: 820px;
    margin: 1rem 0 1.25rem;
    border: 0 !important;
    padding: 0 !important;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: .94;
    letter-spacing: -.065em;
    font-weight: 900;
}

.ytv-hero h1 span {
    display: block;
    color: transparent;
    background: linear-gradient(100deg, var(--ytv-purple), #4f46e5, var(--ytv-red));
    -webkit-background-clip: text;
    background-clip: text;
}

.ytv-hero p {
    max-width: 700px;
    color: var(--ytv-muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.ytv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.6rem;
}

.ytv-hero-actions .btn {
    border-radius: 14px;
    font-weight: 800;
}

.ytv-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.1rem;
}

.ytv-hero-stats > div {
    min-width: 140px;
    padding-right: 1rem;
    border-right: 1px solid rgba(31, 27, 40, .1);
}

.ytv-hero-stats > div:last-child {
    border-right: 0;
}

.ytv-hero-stats strong,
.ytv-hero-stats span {
    display: block;
}

.ytv-hero-stats strong {
    font-size: 1.35rem;
}

.ytv-hero-stats span {
    margin-top: .2rem;
    color: var(--ytv-muted);
    font-size: .76rem;
    font-weight: 700;
}

.ytv-hero-card {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    overflow: hidden;
    padding: 2rem;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 0, 51, .28), transparent 32%),
        #17141f;
    box-shadow: 0 32px 75px rgba(23, 20, 31, .2);
}

.ytv-hero-card strong {
    margin-top: 1.3rem;
    font-size: 1.25rem;
}

.ytv-hero-card p {
    max-width: 330px;
    margin: .45rem 0 0;
    color: rgba(255, 255, 255, .58);
    font-size: .92rem;
}

.ytv-play-orbit {
    position: relative;
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
}

.ytv-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .13);
}

.ytv-orbit-one {
    inset: 0;
    animation: ytvOrbit 14s linear infinite;
}

.ytv-orbit-two {
    inset: 30px;
    border-style: dashed;
    animation: ytvOrbit 9s linear infinite reverse;
}

.ytv-play-core {
    position: relative;
    z-index: 2;
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff0033, #d9002b);
    box-shadow: 0 20px 45px rgba(255, 0, 51, .3);
    font-size: 3.1rem;
    animation: ytvCoreFloat 4.5s ease-in-out infinite;
}

.ytv-library {
    background: #fff;
}

.ytv-library-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ytv-library-head h2 {
    margin: .35rem 0 0;
    border: 0 !important;
    padding: 0 !important;
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: -.045em;
    font-weight: 900;
}

.ytv-search {
    width: min(100%, 470px);
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem .55rem .5rem .85rem;
    border-radius: 16px;
    border: 1px solid var(--ytv-border);
    background: #fff;
    box-shadow: 0 10px 30px rgba(35, 26, 54, .05);
}

.ytv-search i {
    color: #96909f;
}

.ytv-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
}

.ytv-search button {
    border: 0;
    border-radius: 11px;
    padding: .62rem .9rem;
    color: #fff;
    background: var(--ytv-purple);
    font-weight: 800;
}

.ytv-filters {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding-bottom: .55rem;
    margin-bottom: 1.6rem;
    scrollbar-width: none;
}

.ytv-filters::-webkit-scrollbar {
    display: none;
}

.ytv-filters a {
    flex: 0 0 auto;
    padding: .55rem .85rem;
    border-radius: 999px;
    color: #625d6b;
    background: #fff;
    border: 1px solid var(--ytv-border);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 750;
}

.ytv-filters a.active {
    color: #fff;
    border-color: var(--ytv-purple);
    background: linear-gradient(135deg, var(--ytv-purple), #5b21b6);
}

.ytv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.ytv-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--ytv-border);
    box-shadow: 0 12px 36px rgba(35, 26, 54, .055);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ytv-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, .2);
    box-shadow: 0 22px 52px rgba(35, 26, 54, .11);
}

.ytv-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eeeaf3;
}

.ytv-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.ytv-card:hover .ytv-card-media img {
    transform: scale(1.035);
}

.ytv-card-play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 0, 51, .94);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
    transform: translate(-50%, -50%) scale(.9);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}

.ytv-card:hover .ytv-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ytv-duration {
    position: absolute;
    right: .7rem;
    bottom: .7rem;
    padding: .28rem .45rem;
    border-radius: 7px;
    color: #fff;
    background: rgba(0, 0, 0, .78);
    font-size: .69rem;
    font-weight: 800;
}

.ytv-card-body {
    padding: 1.1rem;
}

.ytv-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    margin-bottom: .55rem;
    color: #908a99;
    font-size: .72rem;
    font-weight: 700;
}

.ytv-card-meta span {
    color: var(--ytv-purple);
}

.ytv-card h3 {
    min-height: 3.1em;
    margin: 0 0 .8rem;
    border: 0 !important;
    padding: 0 !important;
    font-size: 1.05rem;
    line-height: 1.45;
    font-weight: 850;
}

.ytv-card h3 a {
    color: var(--ytv-ink);
    text-decoration: none;
}

.ytv-watch-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--ytv-red-dark);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 800;
}

.ytv-empty {
    padding: 4rem 1rem;
    text-align: center;
    border-radius: 24px;
    background: var(--ytv-soft);
    border: 1px solid var(--ytv-border);
}

.ytv-empty > i {
    color: var(--ytv-red);
    font-size: 3rem;
}

/* ADMIN ------------------------------------------------------------------- */

.ytv-admin-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 100% 0, rgba(124, 58, 237, .07), transparent 28%),
        #f8f7fb;
}

.ytv-admin-header,
.ytv-edit-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ytv-admin-header h1,
.ytv-edit-head h1 {
    margin: .35rem 0 .45rem;
    border: 0 !important;
    padding: 0 !important;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    letter-spacing: -.045em;
    font-weight: 900;
}

.ytv-admin-header p,
.ytv-edit-head p {
    max-width: 760px;
    margin: 0;
    color: var(--ytv-muted);
}

.ytv-admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.ytv-admin-header-actions .btn {
    border-radius: 12px;
    font-weight: 750;
}

.ytv-admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ytv-admin-stats article {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--ytv-border);
    box-shadow: 0 10px 28px rgba(35, 26, 54, .045);
}

.ytv-admin-stats span,
.ytv-admin-stats strong {
    display: block;
}

.ytv-admin-stats span {
    color: #77717f;
    font-size: .78rem;
    font-weight: 750;
}

.ytv-admin-stats span i {
    width: 20px;
    color: var(--ytv-purple);
}

.ytv-admin-stats strong {
    margin-top: .35rem;
    font-size: 1.7rem;
    line-height: 1;
}

.ytv-today-card {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    overflow: hidden;
    margin-bottom: 1.25rem;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(124, 58, 237, .3), transparent 30%),
        #18151f;
    box-shadow: 0 24px 60px rgba(23, 20, 31, .18);
}

.ytv-today-media {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.ytv-today-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ytv-today-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, #18151f 100%);
}

.ytv-today-media > span {
    position: absolute;
    z-index: 2;
    top: 1rem;
    left: 1rem;
    padding: .42rem .65rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 0, 51, .94);
    font-size: .72rem;
    font-weight: 850;
}

.ytv-today-content {
    padding: 1.6rem;
    align-self: center;
}

.ytv-today-kicker {
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    color: #c4b5fd;
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.ytv-today-content h2 {
    margin: .55rem 0 .8rem;
    border: 0 !important;
    padding: 0 !important;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 900;
}

.ytv-today-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    color: rgba(255, 255, 255, .55);
    font-size: .8rem;
}

.ytv-copy-buttons,
.ytv-today-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
}

.ytv-today-actions .btn,
.ytv-copy-buttons .btn {
    border-radius: 11px;
    font-weight: 750;
}

.ytv-admin-panel {
    height: 100%;
    padding: 1.25rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--ytv-border);
    box-shadow: 0 12px 34px rgba(35, 26, 54, .045);
}

.ytv-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ytv-panel-head h2 {
    margin: .25rem 0 0;
    border: 0 !important;
    padding: 0 !important;
    font-size: 1.3rem;
    font-weight: 850;
}

.ytv-schedule-table th,
.ytv-admin-table th {
    color: #8a8492;
    border-bottom-color: var(--ytv-border);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.ytv-schedule-table td,
.ytv-admin-table td {
    border-bottom-color: #f0edf4;
    vertical-align: middle;
    font-size: .86rem;
}

.ytv-schedule-table td:first-child small {
    display: block;
    color: #99939f;
}

.ytv-schedule-video,
.ytv-admin-video {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 250px;
}

.ytv-schedule-video img {
    width: 70px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.ytv-schedule-video span {
    display: -webkit-box;
    max-width: 320px;
    overflow: hidden;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ytv-admin-video img {
    width: 92px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 9px;
}

.ytv-admin-video strong,
.ytv-admin-video small {
    display: block;
}

.ytv-admin-video strong {
    max-width: 360px;
    line-height: 1.35;
}

.ytv-admin-video small {
    margin-top: .2rem;
    color: #96909f;
}

.ytv-status,
.ytv-copy-count {
    display: inline-flex;
    align-items: center;
    padding: .34rem .55rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    white-space: nowrap;
}

.ytv-status.new {
    color: #6d28d9;
    background: #f1eafe;
}

.ytv-status.shared,
.ytv-status.active,
.ytv-copy-count.complete {
    color: #15803d;
    background: #eaf8ef;
}

.ytv-status.inactive {
    color: #6b7280;
    background: #f1f2f4;
}

.ytv-copy-count {
    color: #9a6700;
    background: #fff5d6;
}

.ytv-history-list {
    display: grid;
    gap: .75rem;
}

.ytv-history-item {
    display: flex;
    gap: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #f0edf4;
}

.ytv-history-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ytv-history-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #15803d;
    background: #eaf8ef;
}

.ytv-history-item strong,
.ytv-history-item small {
    display: block;
}

.ytv-history-item strong {
    font-size: .84rem;
    line-height: 1.35;
}

.ytv-history-item small {
    margin-top: .18rem;
    color: #96909f;
    font-size: .72rem;
}

.ytv-back-link {
    display: inline-flex;
    align-items: center;
    color: var(--ytv-purple);
    text-decoration: none;
    font-weight: 750;
}

.ytv-video-preview {
    position: sticky;
    top: 100px;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--ytv-border);
    box-shadow: 0 12px 34px rgba(35, 26, 54, .055);
}

.ytv-video-preview > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ytv-video-preview-body {
    padding: 1.2rem;
}

.ytv-video-preview h2 {
    margin: .4rem 0 1rem;
    border: 0 !important;
    padding: 0 !important;
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 850;
}

.ytv-video-preview dl {
    display: grid;
    gap: .65rem;
    margin-bottom: 1rem;
}

.ytv-video-preview dl > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid #f0edf4;
}

.ytv-video-preview dt,
.ytv-video-preview dd {
    margin: 0;
    font-size: .8rem;
}

.ytv-video-preview dt {
    color: #8f8996;
}

.ytv-video-preview dd {
    font-weight: 750;
}

.ytv-edit-form textarea {
    min-height: 130px;
    border-radius: 12px;
}

.ytv-edit-form .form-control {
    border-color: var(--ytv-border);
}

.ytv-edit-form .form-control:focus {
    border-color: rgba(124, 58, 237, .45);
    box-shadow: 0 0 0 .2rem rgba(124, 58, 237, .10);
}

.ytv-copy-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
    padding: .75rem 1rem;
    border-radius: 12px;
    color: #fff;
    background: #17141f;
    box-shadow: 0 14px 34px rgba(23, 20, 31, .22);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    font-size: .82rem;
    font-weight: 750;
}

.ytv-copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes ytvOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ytvCoreFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

@media (max-width: 1199.98px) {
    .ytv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 991.98px) {
    .ytv-hero {
        padding: 4.5rem 0;
    }

    .ytv-library-head,
    .ytv-admin-header,
    .ytv-edit-head {
        align-items: stretch;
        flex-direction: column;
    }

    .ytv-search {
        width: 100%;
    }

    .ytv-today-card {
        grid-template-columns: 1fr;
    }

    .ytv-today-media {
        min-height: 260px;
    }

    .ytv-today-media::after {
        background: linear-gradient(180deg, transparent 60%, #18151f 100%);
    }

    .ytv-video-preview {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .ytv-grid {
        grid-template-columns: 1fr;
    }

    .ytv-hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.4rem);
    }

    .ytv-hero-card {
        min-height: 340px;
    }

    .ytv-play-orbit {
        width: 180px;
        height: 180px;
    }

    .ytv-admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .ytv-admin-header-actions {
        flex-direction: column;
    }

    .ytv-admin-header-actions .btn,
    .ytv-admin-header-actions form,
    .ytv-admin-header-actions form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ytv-admin-stats {
        grid-template-columns: 1fr;
    }

    .ytv-hero-stats > div {
        width: calc(50% - .5rem);
        min-width: 0;
    }

    .ytv-search button {
        padding-inline: .7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ytv-page *,
    .ytv-page *::before,
    .ytv-page *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}


/* CONTENT ROTATION + SETTINGS --------------------------------------------- */

.ytv-cycle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at 95% 10%, rgba(124, 58, 237, .08), transparent 32%),
        #fff;
    border: 1px solid var(--ytv-border);
    box-shadow: 0 10px 28px rgba(35, 26, 54, .045);
}

.ytv-cycle-info {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
}

.ytv-cycle-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #6d28d9;
    background: #f2ebff;
    font-size: 1.05rem;
}

.ytv-cycle-info h2 {
    margin: .18rem 0 .1rem;
    padding: 0 !important;
    border: 0 !important;
    font-size: 1.15rem;
    font-weight: 900;
}

.ytv-cycle-info p {
    margin: 0;
    color: var(--ytv-muted);
    font-size: .8rem;
}

.ytv-cycle-progress-wrap {
    width: min(360px, 38%);
    display: flex;
    align-items: center;
    gap: .75rem;
}

.ytv-cycle-progress-wrap > strong {
    min-width: 42px;
    text-align: right;
    font-size: .85rem;
}

.ytv-cycle-progress {
    position: relative;
    flex: 1;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #eeeaf4;
}

.ytv-cycle-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c3aed, #4f46e5, #ff0033);
    transition: width .35s ease;
}

.ytv-settings-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(27, 20, 43, .22);
}

.ytv-settings-modal .modal-header,
.ytv-settings-modal .modal-footer {
    border-color: #eeeaf4;
}

.ytv-settings-modal .modal-header {
    padding: 1.2rem 1.3rem;
}

.ytv-settings-modal .modal-header h2 {
    margin: .2rem 0 0;
    padding: 0 !important;
    border: 0 !important;
    font-size: 1.35rem;
    font-weight: 900;
}

.ytv-settings-modal .modal-body {
    padding: 1.3rem;
}

.ytv-day-picker {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .55rem;
}

.ytv-day-picker label {
    cursor: pointer;
}

.ytv-day-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ytv-day-picker span {
    min-height: 48px;
    display: grid;
    place-items: center;
    padding: .55rem .35rem;
    border-radius: 13px;
    color: #6f6978;
    background: #f7f5fa;
    border: 1px solid #ece8f1;
    font-size: .78rem;
    font-weight: 850;
    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.ytv-day-picker label:hover span {
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, .22);
}

.ytv-day-picker input:checked + span {
    color: #fff;
    border-color: #7c3aed;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 8px 18px rgba(124, 58, 237, .18);
}

.ytv-day-picker input:focus-visible + span {
    outline: 3px solid rgba(124, 58, 237, .18);
    outline-offset: 2px;
}

.ytv-priority-box {
    min-height: 100%;
    padding: .95rem 1rem;
    border-radius: 15px;
    background: #faf8ff;
    border: 1px solid #ebe6f4;
}

.ytv-priority-box small {
    display: block;
    margin-top: .45rem;
    color: #8c8595;
    line-height: 1.55;
}

.ytv-settings-summary {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .9rem 1rem;
    border-radius: 14px;
    color: #5d5767;
    background: #f6f3fb;
    border: 1px solid #ebe6f4;
    font-size: .82rem;
    line-height: 1.55;
}

.ytv-settings-summary > i {
    margin-top: .15rem;
    color: #7c3aed;
}

@media (max-width: 767.98px) {
    .ytv-cycle-card {
        align-items: stretch;
        flex-direction: column;
    }

    .ytv-cycle-progress-wrap {
        width: 100%;
    }

    .ytv-day-picker {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .ytv-day-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* MAINTENANCE FILTERS + PAGINATION ---------------------------------------- */

.ytv-maintenance-head {
    margin-bottom: .9rem;
}

.ytv-maintenance-subtitle {
    margin: .35rem 0 0;
    color: var(--ytv-muted);
    font-size: .82rem;
}

.ytv-maintenance-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(150px, .85fr)) minmax(125px, .7fr) auto;
    gap: .65rem;
    align-items: center;
    margin-bottom: .8rem;
    padding: .85rem;
    border-radius: 17px;
    background: #faf9fc;
    border: 1px solid #eeeaf4;
}

.ytv-maintenance-filters .form-select {
    min-height: 44px;
    border-color: #e7e2ec;
    border-radius: 11px;
    color: #5f5967;
    background-color: #fff;
    font-size: .8rem;
    font-weight: 650;
}

.ytv-maintenance-filters .form-select:focus {
    border-color: rgba(124, 58, 237, .38);
    box-shadow: 0 0 0 .18rem rgba(124, 58, 237, .08);
}

.ytv-filter-search {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 0 .8rem;
    border-radius: 11px;
    background: #fff;
    border: 1px solid #e7e2ec;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ytv-filter-search:focus-within {
    border-color: rgba(124, 58, 237, .38);
    box-shadow: 0 0 0 .18rem rgba(124, 58, 237, .08);
}

.ytv-filter-search i {
    color: #9b95a3;
    font-size: .78rem;
}

.ytv-filter-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #3e3945;
    font-size: .82rem;
}

.ytv-filter-search input::placeholder {
    color: #aaa4b1;
}

.ytv-filter-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.ytv-filter-actions .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.ytv-maintenance-resultbar {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .25rem .15rem .7rem;
    color: #8b8493;
    font-size: .75rem;
}

.ytv-filter-active-badge {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    padding: .32rem .55rem;
    border-radius: 999px;
    color: #6d28d9;
    background: #f1eafe;
    font-weight: 800;
}

.ytv-category-chip {
    display: inline-flex;
    align-items: center;
    max-width: 170px;
    padding: .34rem .55rem;
    overflow: hidden;
    border-radius: 999px;
    color: #5f4a75;
    background: #f5f0fb;
    border: 1px solid #ece2f8;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .7rem;
    font-weight: 800;
}

.ytv-maintenance-empty {
    min-height: 230px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .45rem;
    text-align: center;
    color: #817b89;
}

.ytv-maintenance-empty > i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: .2rem;
    border-radius: 16px;
    color: #7c3aed;
    background: #f2ebff;
    font-size: 1.1rem;
}

.ytv-maintenance-empty strong {
    color: #3c3743;
    font-size: .95rem;
}

.ytv-maintenance-empty span {
    font-size: .78rem;
}

.ytv-maintenance-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0edf4;
    color: #8b8493;
    font-size: .76rem;
}

.ytv-maintenance-pagination nav {
    margin: 0;
}

.ytv-maintenance-pagination .pagination {
    margin: 0;
    gap: .25rem;
}

.ytv-maintenance-pagination .page-link {
    min-width: 36px;
    min-height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px !important;
    border-color: #e7e2ec;
    color: #625b6b;
    font-size: .76rem;
    font-weight: 750;
    box-shadow: none;
}

.ytv-maintenance-pagination .page-item.active .page-link {
    border-color: #7c3aed;
    background: #7c3aed;
    color: #fff;
}

.ytv-maintenance-pagination .page-item.disabled .page-link {
    color: #bbb5c1;
    background: #f8f7fa;
}

@media (max-width: 1399.98px) {
    .ytv-maintenance-filters {
        grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(150px, .85fr)) minmax(130px, .75fr);
    }

    .ytv-maintenance-filters .ytv-per-page {
        grid-column: span 1;
    }

    .ytv-filter-actions {
        grid-column: span 1;
    }
}

@media (max-width: 991.98px) {
    .ytv-maintenance-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ytv-filter-search {
        grid-column: 1 / -1;
    }

    .ytv-filter-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 575.98px) {
    .ytv-maintenance-filters {
        grid-template-columns: 1fr;
    }

    .ytv-filter-search,
    .ytv-filter-actions {
        grid-column: auto;
    }

    .ytv-filter-actions,
    .ytv-filter-actions .btn {
        width: 100%;
    }

    .ytv-maintenance-resultbar,
    .ytv-maintenance-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .ytv-maintenance-pagination nav {
        overflow-x: auto;
        padding-bottom: .2rem;
    }
}


.ytv-pagination-nav {
    display: flex;
    align-items: center;
    gap: .28rem;
    flex-wrap: wrap;
}

.ytv-page-link,
.ytv-page-ellipsis {
    min-width: 36px;
    min-height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: .76rem;
    font-weight: 800;
}

.ytv-page-link {
    color: #625b6b;
    background: #fff;
    border: 1px solid #e7e2ec;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.ytv-page-link:hover {
    color: #6d28d9;
    border-color: rgba(124, 58, 237, .28);
    background: #faf7ff;
    transform: translateY(-1px);
}

.ytv-page-link.active {
    color: #fff;
    border-color: #7c3aed;
    background: #7c3aed;
    box-shadow: 0 7px 16px rgba(124, 58, 237, .16);
}

.ytv-page-link.disabled {
    color: #bbb5c1;
    background: #f8f7fa;
    cursor: default;
}

.ytv-page-ellipsis {
    color: #a29ba9;
}


/* DAILY EDITORIAL AGENDA --------------------------------------------------- */

.ytv-daily-agenda {
    margin-bottom: 1.35rem;
    padding: 1.15rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(124, 58, 237, .08), transparent 30%),
        #fff;
    border: 1px solid var(--ytv-border);
    box-shadow: 0 16px 42px rgba(35, 26, 54, .06);
}

.ytv-agenda-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.ytv-agenda-head h2 {
    margin: .3rem 0 .25rem;
    padding: 0 !important;
    border: 0 !important;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    letter-spacing: -.035em;
    font-weight: 900;
}

.ytv-agenda-head p {
    margin: 0;
    color: var(--ytv-muted);
    font-size: .84rem;
}

.ytv-agenda-summary {
    width: min(430px, 44%);
    padding: .8rem .9rem;
    border-radius: 16px;
    background: #faf8ff;
    border: 1px solid #eee8f7;
}

.ytv-agenda-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: .55rem;
    color: #726b7b;
    font-size: .74rem;
}

.ytv-agenda-summary-top strong {
    color: #3f3748;
}

.ytv-agenda-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #ebe7f0;
}

.ytv-agenda-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c3aed, #4f46e5, #16a34a);
    transition: width .3s ease;
}

.ytv-agenda-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ytv-agenda-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e9e4ef;
    box-shadow: 0 10px 28px rgba(35, 26, 54, .055);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ytv-agenda-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 58, 237, .2);
    box-shadow: 0 18px 38px rgba(35, 26, 54, .09);
}

.ytv-agenda-card.is-complete {
    border-color: rgba(22, 163, 74, .2);
    background:
        linear-gradient(180deg, rgba(240, 253, 244, .72), #fff 28%);
}

.ytv-agenda-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ece8f1;
}

.ytv-agenda-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .34));
    pointer-events: none;
}

.ytv-agenda-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.ytv-agenda-card:hover .ytv-agenda-media img {
    transform: scale(1.025);
}

.ytv-agenda-slot,
.ytv-agenda-complete {
    position: absolute;
    z-index: 2;
    top: .7rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .34rem .55rem;
    border-radius: 999px;
    color: #fff;
    font-size: .66rem;
    font-weight: 850;
    backdrop-filter: blur(8px);
}

.ytv-agenda-slot {
    left: .7rem;
    background: rgba(23, 20, 31, .8);
}

.ytv-agenda-complete {
    right: .7rem;
    background: rgba(22, 163, 74, .92);
}

.ytv-agenda-card-body {
    padding: .9rem;
}

.ytv-agenda-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    margin-bottom: .45rem;
    color: #918a98;
    font-size: .68rem;
    font-weight: 750;
}

.ytv-agenda-card h3 {
    min-height: 3.6em;
    margin: 0 0 .85rem;
    padding: 0 !important;
    border: 0 !important;
    color: #2d2833;
    font-size: .97rem;
    line-height: 1.35;
    font-weight: 850;
}

.ytv-network-list {
    display: grid;
    gap: .48rem;
}

.ytv-network-row {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    padding: .5rem .55rem;
    border-radius: 12px;
    background: #faf9fc;
    border: 1px solid #efebf3;
    transition: background .18s ease, border-color .18s ease;
}

.ytv-network-row.is-done {
    background: #f2fbf5;
    border-color: #d8f1df;
}

.ytv-network-name {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #504958;
    font-size: .72rem;
    font-weight: 800;
}

.ytv-network-name i {
    width: 15px;
    color: #7c3aed;
    text-align: center;
    font-size: .85rem;
}

.ytv-network-row.is-done .ytv-network-name i {
    color: #16a34a;
}

.ytv-network-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex: 0 0 auto;
}

.ytv-network-actions form {
    margin: 0;
}

.ytv-network-copy,
.ytv-network-state {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .35rem .48rem;
    border-radius: 8px;
    font-size: .65rem;
    font-weight: 850;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.ytv-network-copy {
    color: #625a6b;
    background: #fff;
    border: 1px solid #e4dfE9;
}

.ytv-network-copy:not(:disabled):hover {
    color: #6d28d9;
    border-color: rgba(124, 58, 237, .28);
    transform: translateY(-1px);
}

.ytv-network-copy:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.ytv-network-state {
    color: #6d28d9;
    background: #f4effc;
    border: 1px solid #e7dafb;
}

.ytv-network-state:hover {
    transform: translateY(-1px);
}

.ytv-network-state.is-published {
    color: #15803d;
    background: #eaf8ef;
    border-color: #d5efdd;
}

.ytv-agenda-card-progress {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .55rem;
    margin-top: .8rem;
    color: #88818f;
    font-size: .67rem;
    font-weight: 750;
}

.ytv-agenda-card-progress > div {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #ece8f0;
}

.ytv-agenda-card-progress > div > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c3aed, #16a34a);
}

.ytv-agenda-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-top: .8rem;
    padding-top: .7rem;
    border-top: 1px solid #efebf3;
}

.ytv-agenda-card-footer a {
    display: inline-flex;
    align-items: center;
    gap: .34rem;
    color: #6d28d9;
    text-decoration: none;
    font-size: .68rem;
    font-weight: 820;
}

.ytv-agenda-card-footer a:first-child {
    color: #d90429;
}

.ytv-agenda-note {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-top: .9rem;
    padding: .72rem .8rem;
    border-radius: 13px;
    color: #6f6877;
    background: #f8f6fb;
    border: 1px solid #eee9f3;
    font-size: .74rem;
    line-height: 1.5;
}

.ytv-agenda-note i {
    margin-top: .14rem;
    color: #7c3aed;
}

.ytv-agenda-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 18px;
    background: #faf9fc;
    border: 1px dashed #ddd6e6;
}

.ytv-agenda-empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: .65rem;
    border-radius: 18px;
    color: #7c3aed;
    background: #f0e9fb;
    font-size: 1.25rem;
}

.ytv-agenda-empty h3 {
    margin: 0 0 .3rem;
    padding: 0 !important;
    border: 0 !important;
    font-size: 1.05rem;
    font-weight: 850;
}

.ytv-agenda-empty p {
    max-width: 520px;
    margin: 0;
    color: #857f8b;
    font-size: .8rem;
}

.ytv-status.today {
    color: #6d28d9;
    background: #f1eafe;
}

@media (max-width: 1199.98px) {
    .ytv-agenda-grid {
        grid-template-columns: 1fr;
    }

    .ytv-agenda-card {
        display: grid;
        grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
    }

    .ytv-agenda-media {
        aspect-ratio: auto;
        min-height: 100%;
    }
}

@media (max-width: 767.98px) {
    .ytv-agenda-head {
        align-items: stretch;
        flex-direction: column;
    }

    .ytv-agenda-summary {
        width: 100%;
    }

    .ytv-agenda-card {
        display: block;
    }

    .ytv-agenda-media {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .ytv-daily-agenda {
        padding: .85rem;
        border-radius: 20px;
    }

    .ytv-agenda-summary-top {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .ytv-network-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .ytv-network-actions {
        width: 100%;
    }

    .ytv-network-actions form {
        flex: 1;
    }

    .ytv-network-copy,
    .ytv-network-state {
        width: 100%;
    }

    .ytv-network-copy {
        flex: 1;
    }
}


/* TIKTOK + THUMBNAIL UX --------------------------------------------------- */
.ytv-agenda-card-footer {
    flex-wrap: wrap;
}

.ytv-agenda-card-footer a {
    white-space: nowrap;
}

.ytv-network-row .fa-tiktok {
    color: #111827;
}

.ytv-network-row.is-done .fa-tiktok {
    color: #16a34a;
}


/* AGENDA CONTROLS + NETWORK PICKERS --------------------------------------- */

.ytv-agenda-card-footer {
    align-items: stretch;
    flex-direction: column;
}

.ytv-agenda-card-links,
.ytv-agenda-card-quick-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
}

.ytv-agenda-card-links {
    justify-content: space-between;
}

.ytv-agenda-card-quick-actions {
    padding-top: .65rem;
    border-top: 1px solid #efebf3;
}

.ytv-agenda-card-quick-actions form {
    margin: 0;
}

.ytv-agenda-quick {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .42rem .58rem;
    border-radius: 9px;
    border: 1px solid #e5dfeb;
    color: #5d5665;
    background: #fff;
    font-size: .66rem;
    font-weight: 850;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.ytv-agenda-quick:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, .28);
    background: #faf7ff;
}

.ytv-agenda-quick.success {
    color: #15803d;
    border-color: #d8efdf;
    background: #f1fbf4;
}

.ytv-agenda-quick.warning {
    color: #9a6700;
    border-color: #f0e1af;
    background: #fffaf0;
}

.ytv-agenda-quick:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.ytv-network-picker,
.ytv-edit-network-picker {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .55rem;
}

.ytv-network-picker label,
.ytv-edit-network-picker label {
    cursor: pointer;
}

.ytv-network-picker input,
.ytv-edit-network-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ytv-network-picker span,
.ytv-edit-network-picker span {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    padding: .55rem .45rem;
    border-radius: 13px;
    color: #6f6877;
    background: #f8f6fb;
    border: 1px solid #ebe6f0;
    font-size: .75rem;
    font-weight: 850;
    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.ytv-network-picker label:hover span,
.ytv-edit-network-picker label:hover span {
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, .24);
}

.ytv-network-picker input:checked + span,
.ytv-edit-network-picker input:checked + span {
    color: #fff;
    border-color: #7c3aed;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 8px 18px rgba(124, 58, 237, .15);
}

.ytv-network-picker input:focus-visible + span,
.ytv-edit-network-picker input:focus-visible + span {
    outline: 3px solid rgba(124, 58, 237, .16);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .ytv-network-picker,
    .ytv-edit-network-picker {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ytv-network-picker,
    .ytv-edit-network-picker {
        grid-template-columns: 1fr 1fr;
    }

    .ytv-agenda-card-links,
    .ytv-agenda-card-quick-actions {
        align-items: stretch;
    }

    .ytv-agenda-card-quick-actions form,
    .ytv-agenda-quick {
        width: 100%;
    }
}


.ytv-status.deferred {
    color: #9a6700;
    background: #fff7df;
}


/* PUBLIC LANDING V2 — KNIGHT + RANDOM MODE -------------------------------- */

.ytv-page {
    overflow: hidden;
}

.ytv-hero {
    padding: 5.6rem 0 5rem;
}

.ytv-knight-stage {
    position: relative;
    min-height: 470px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(124, 58, 237, .14);
    background:
        radial-gradient(circle at 50% 34%, rgba(124, 58, 237, .14), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(245, 241, 255, .94));
    box-shadow: 0 32px 75px rgba(70, 49, 111, .14);
}

.ytv-knight-stage::before,
.ytv-knight-stage::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ytv-knight-stage::before {
    width: 300px;
    height: 300px;
    border: 1px solid rgba(124, 58, 237, .15);
    animation: ytvKnightHalo 18s linear infinite;
}

.ytv-knight-stage::after {
    width: 220px;
    height: 220px;
    border: 1px dashed rgba(124, 58, 237, .22);
    animation: ytvKnightHalo 12s linear infinite reverse;
}

.ytv-knight-grid {
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image: radial-gradient(rgba(124, 58, 237, .18) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(circle at center, #000 14%, transparent 78%);
}

.ytv-knight {
    position: relative;
    z-index: 3;
    width: min(250px, 64vw);
    aspect-ratio: 1;
    border-radius: 28px;
    outline: none;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: 300% 300%;
    background-position: 50% 50%;
    filter: drop-shadow(0 20px 25px rgba(47, 30, 77, .20));
    transition: transform .2s ease, filter .2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.ytv-knight:hover,
.ytv-knight:focus-visible {
    transform: translateY(-4px) scale(1.025);
    filter: drop-shadow(0 24px 32px rgba(47, 30, 77, .25));
}

.ytv-knight:focus-visible {
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .18);
}

.ytv-knight.is-reacting {
    animation: ytvKnightPoke .48s ease;
}

.ytv-knight-pill {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    padding: .62rem .82rem;
    border-radius: 14px;
    color: #352d43;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(124, 58, 237, .10);
    box-shadow: 0 14px 32px rgba(57, 39, 89, .10);
    font-size: .76rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.ytv-knight-pill i {
    color: var(--ytv-purple);
}

.ytv-knight-pill-one {
    top: 17%;
    left: 8%;
    animation: ytvKnightPill 5.8s ease-in-out infinite;
}

.ytv-knight-pill-two {
    top: 29%;
    right: 7%;
    animation: ytvKnightPill 6.4s ease-in-out -2s infinite reverse;
}

.ytv-knight-pill-three {
    left: 10%;
    bottom: 21%;
    animation: ytvKnightPill 7s ease-in-out -3.2s infinite;
}

.ytv-knight-caption {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    max-width: calc(100% - 2rem);
    white-space: nowrap;
    padding: .58rem .82rem;
    border-radius: 999px;
    color: #514a5f;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(124, 58, 237, .12);
    box-shadow: 0 12px 28px rgba(47, 30, 77, .09);
    font-size: .74rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.ytv-knight-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .10);
    animation: ytvKnightDot 2s ease-in-out infinite;
}

/* Random challenge --------------------------------------------------------- */

.ytv-random-zone {
    position: relative;
    background:
        radial-gradient(circle at 10% 100%, rgba(124, 58, 237, .12), transparent 32%),
        #17141f;
}

.ytv-random-zone::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .14;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, #000, transparent 80%);
}

.ytv-random-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: 520px;
}

.ytv-random-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .48rem .75rem;
    border-radius: 999px;
    color: #ddd6fe;
    background: rgba(124, 58, 237, .16);
    border: 1px solid rgba(196, 181, 253, .18);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ytv-random-copy h2 {
    margin: 0 0 1rem;
    padding: 0 !important;
    border: 0 !important;
    color: #fff;
    font-size: clamp(2.35rem, 5vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 900;
}

.ytv-random-copy h2 span {
    color: transparent;
    background: linear-gradient(100deg, #c4b5fd, #a78bfa 48%, #fb7185);
    -webkit-background-clip: text;
    background-clip: text;
}

.ytv-random-copy > p {
    max-width: 660px;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, .62);
    font-size: 1rem;
    line-height: 1.75;
}

.ytv-random-rules {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 1.4rem;
}

.ytv-random-rules span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .48rem .65rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .08);
    font-size: .72rem;
    font-weight: 750;
}

.ytv-random-rules i {
    color: #c4b5fd;
}

.ytv-random-button {
    min-width: min(100%, 320px);
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: .75rem 1rem;
    border: 0;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 18px 38px rgba(124, 58, 237, .28);
    font-weight: 850;
    text-align: left;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.ytv-random-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(124, 58, 237, .36);
}

.ytv-random-button:disabled {
    opacity: .72;
    cursor: wait;
}

.ytv-random-button-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, .13);
    font-size: 1.1rem;
}

.ytv-random-button > span:last-child {
    display: grid;
    gap: .04rem;
}

.ytv-random-button small {
    color: rgba(255, 255, 255, .62);
    font-size: .66rem;
    font-weight: 700;
}

.ytv-random-machine {
    overflow: hidden;
    border-radius: 26px;
    background: #0f0d15;
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.ytv-random-machine-top,
.ytv-random-machine-bottom {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
    color: rgba(255, 255, 255, .44);
    background: rgba(255, 255, 255, .025);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .09em;
}

.ytv-random-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .08), 0 0 18px rgba(34, 197, 94, .55);
}

.ytv-random-machine-bottom i {
    color: #22c55e;
    font-size: .48rem;
}

.ytv-random-screen {
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
        radial-gradient(circle at 50% 45%, rgba(124, 58, 237, .12), transparent 35%),
        #14111b;
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.ytv-random-machine.is-rolling .ytv-random-screen {
    animation: ytvRandomScan .48s linear infinite;
}

.ytv-random-idle {
    max-width: 360px;
    text-align: center;
}

.ytv-random-question {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 28px;
    color: #ddd6fe;
    background: linear-gradient(145deg, rgba(124, 58, 237, .25), rgba(255, 255, 255, .04));
    border: 1px solid rgba(196, 181, 253, .14);
    box-shadow: inset 0 0 30px rgba(124, 58, 237, .08);
    font-size: 2.5rem;
    font-weight: 900;
}

.ytv-random-idle strong,
.ytv-random-idle p {
    display: block;
}

.ytv-random-idle strong {
    color: #fff;
    font-size: 1.08rem;
}

.ytv-random-idle p {
    margin: .45rem 0 0;
    color: rgba(255, 255, 255, .44);
    font-size: .8rem;
}

.ytv-random-result {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .2);
}

.ytv-random-result.is-visible {
    animation: ytvRandomReveal .45s ease both;
}

.ytv-random-result-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #282330;
}

.ytv-random-result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ytv-random-result-play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 0, 51, .94);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    transform: translate(-50%, -50%);
}

.ytv-random-result-body {
    padding: 1rem;
}

.ytv-random-result-category {
    display: inline-flex;
    margin-bottom: .45rem;
    padding: .32rem .5rem;
    border-radius: 999px;
    color: #6d28d9;
    background: #f3edff;
    font-size: .66rem;
    font-weight: 850;
}

.ytv-random-result h3 {
    margin: 0 0 .55rem;
    padding: 0 !important;
    border: 0 !important;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 850;
}

.ytv-random-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .8rem;
    margin-bottom: .8rem;
    color: #8f8996;
    font-size: .7rem;
}

.ytv-random-watch {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    color: #d90429;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 850;
}

/* Pagination consistent with blog ----------------------------------------- */

.ytv-pagination {
    margin-top: 2rem;
}

.ytv-pagination .pagination {
    justify-content: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.ytv-pagination .page-link {
    min-width: 40px;
    min-height: 40px;
    display: grid;
    place-items: center;
    padding: .45rem .72rem;
    border-radius: 11px !important;
    border: 1px solid var(--ytv-border);
    color: var(--ytv-ink);
    background: #fff;
    box-shadow: none;
}

.ytv-pagination .page-item.active .page-link {
    color: #fff;
    background: var(--ytv-purple);
    border-color: var(--ytv-purple);
}

.ytv-pagination .page-link:hover {
    color: var(--ytv-purple);
    background: #f5f0ff;
}

.ytv-pagination .page-item.disabled .page-link {
    color: #aaa4b1;
    background: #f8f7fa;
}

/* Animations --------------------------------------------------------------- */

@keyframes ytvKnightHalo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ytvKnightPoke {
    0%, 100% { transform: scale(1); }
    42% { transform: scale(.94) rotate(-2deg); }
    72% { transform: scale(1.04) rotate(2deg); }
}

@keyframes ytvKnightPill {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes ytvKnightDot {
    0%, 100% { opacity: .65; }
    50% { opacity: 1; }
}

@keyframes ytvRandomScan {
    0% { filter: brightness(.95); }
    50% { filter: brightness(1.18); }
    100% { filter: brightness(.95); }
}

@keyframes ytvRandomReveal {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 991.98px) {
    .ytv-knight-stage {
        min-height: 420px;
    }

    .ytv-random-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ytv-random-copy {
        max-width: 760px;
    }
}

@media (max-width: 767.98px) {
    .ytv-hero {
        padding: 4rem 0 3.75rem;
    }

    .ytv-knight-stage {
        min-height: 380px;
        border-radius: 24px;
    }

    .ytv-knight {
        width: min(220px, 62vw);
    }

    .ytv-knight-caption {
        font-size: .68rem;
    }

    .ytv-random-shell {
        gap: 1.5rem;
    }

    .ytv-random-machine {
        border-radius: 20px;
    }

    .ytv-random-screen {
        min-height: 320px;
    }
}

@media (max-width: 520px) {
    .ytv-knight-pill {
        font-size: .67rem;
        padding: .5rem .62rem;
    }

    .ytv-knight-pill-one {
        left: 5%;
    }

    .ytv-knight-pill-two {
        right: 5%;
    }

    .ytv-knight-pill-three {
        left: 7%;
    }

    .ytv-knight-caption {
        width: calc(100% - 2rem);
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .ytv-random-button {
        width: 100%;
        min-width: 0;
    }

    .ytv-random-rules {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ytv-pagination .pagination {
        gap: .25rem;
    }

    .ytv-pagination .page-link {
        min-width: 36px;
        min-height: 36px;
        padding: .4rem .55rem;
        font-size: .75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ytv-knight-stage::before,
    .ytv-knight-stage::after,
    .ytv-knight-pill,
    .ytv-knight-dot,
    .ytv-random-machine.is-rolling .ytv-random-screen,
    .ytv-random-result.is-visible {
        animation: none !important;
    }
}


.ytv-random-hero-btn {
    color: #6d28d9;
    background: #f3edff;
    border: 1px solid #e4d9fb;
    border-radius: 14px;
    font-weight: 800;
}

.ytv-random-hero-btn:hover {
    color: #fff;
    background: #7c3aed;
    border-color: #7c3aed;
}


/* VIDEO EDITOR V2 --------------------------------------------------------- */

.ytv-edit-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 90% 0%, rgba(124, 58, 237, .08), transparent 28%),
        linear-gradient(180deg, #fbfaff 0%, #f7f5fb 100%);
}

.ytv-edit-toolbar {
    margin-bottom: 1.35rem;
}

.ytv-back-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #6d28d9;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 800;
}

.ytv-back-link:hover {
    color: #4c1d95;
}

.ytv-edit-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1rem;
}

.ytv-edit-title-row h1 {
    margin: .35rem 0 .5rem;
    padding: 0 !important;
    border: 0 !important;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
    letter-spacing: -.05em;
    font-weight: 900;
}

.ytv-edit-title-row p {
    max-width: 760px;
    margin: 0;
    color: var(--ytv-muted);
    font-size: .92rem;
    line-height: 1.65;
}

.ytv-edit-health {
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .75rem .9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--ytv-border);
    box-shadow: 0 12px 30px rgba(35, 26, 54, .055);
}

.ytv-edit-health-ring {
    --progress: 0%;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 56%, transparent 58%),
        conic-gradient(#7c3aed var(--progress), #ece8f2 0);
}

.ytv-edit-health-ring strong {
    font-size: .82rem;
}

.ytv-edit-health > div:last-child {
    display: grid;
    gap: .15rem;
}

.ytv-edit-health span {
    color: #4a4351;
    font-size: .78rem;
    font-weight: 850;
}

.ytv-edit-health small {
    color: #8d8695;
    font-size: .68rem;
}

.ytv-edit-layout {
    display: grid;
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.ytv-edit-sidebar {
    display: grid;
    gap: .9rem;
}

.ytv-video-preview-sticky {
    position: sticky;
    top: 1rem;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--ytv-border);
    box-shadow: 0 18px 42px rgba(35, 26, 54, .07);
}

.ytv-video-preview-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eeeaf3;
}

.ytv-video-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ytv-preview-duration {
    position: absolute;
    right: .7rem;
    bottom: .7rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .55rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, .82);
    font-size: .66rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.ytv-video-preview-body {
    padding: 1rem;
}

.ytv-preview-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .55rem;
}

.ytv-video-preview-body h2 {
    margin: 0 0 .9rem;
    padding: 0 !important;
    border: 0 !important;
    color: #2d2833;
    font-size: 1rem;
    line-height: 1.42;
    font-weight: 850;
}

.ytv-preview-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    margin-bottom: .9rem;
}

.ytv-preview-meta-grid > div {
    min-width: 0;
    padding: .65rem;
    border-radius: 12px;
    background: #faf9fc;
    border: 1px solid #efebf3;
}

.ytv-preview-meta-grid span,
.ytv-preview-meta-grid strong {
    display: block;
}

.ytv-preview-meta-grid span {
    margin-bottom: .15rem;
    color: #96909d;
    font-size: .63rem;
    font-weight: 750;
}

.ytv-preview-meta-grid strong {
    overflow: hidden;
    color: #49434f;
    font-size: .72rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ytv-preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.ytv-preview-actions .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-radius: 11px;
    font-size: .72rem;
    font-weight: 800;
}

.ytv-edit-tips {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .8rem;
    border-radius: 16px;
    color: #5e5766;
    background: #fffdf4;
    border: 1px solid #f1e7b9;
}

.ytv-edit-tips-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #a16207;
    background: #fff3bf;
}

.ytv-edit-tips strong {
    display: block;
    margin-bottom: .15rem;
    font-size: .75rem;
}

.ytv-edit-tips p {
    margin: 0;
    color: #887f66;
    font-size: .68rem;
    line-height: 1.5;
}

.ytv-edit-main {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

.ytv-edit-section {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--ytv-border);
    box-shadow: 0 16px 38px rgba(35, 26, 54, .055);
}

.ytv-edit-section-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, #fff, #fcfbfe);
    border-bottom: 1px solid #f0edf4;
}

.ytv-edit-section-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #6d28d9;
    background: #f1eafe;
    font-size: .9rem;
}

.ytv-edit-section-head h2 {
    margin: .15rem 0 .1rem;
    padding: 0 !important;
    border: 0 !important;
    font-size: 1.15rem;
    font-weight: 900;
}

.ytv-edit-section-head p {
    margin: 0;
    color: #8b8492;
    font-size: .7rem;
}

.ytv-edit-section-body {
    padding: 1rem 1.05rem 1.1rem;
}

.ytv-edit-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
}

.ytv-field-card {
    min-width: 0;
    padding: .85rem;
    border-radius: 16px;
    background: #faf9fc;
    border: 1px solid #eeeaf2;
}

.ytv-field-card > small,
.ytv-field-card > div > small {
    display: block;
    margin-top: .42rem;
    color: #918a98;
    font-size: .66rem;
    line-height: 1.45;
}

.ytv-field-label {
    display: block;
    margin-bottom: .28rem;
    color: #4f4856;
    font-size: .78rem;
    font-weight: 800;
}

.ytv-visibility-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ytv-visibility-card strong {
    display: block;
    color: #36313c;
    font-size: .8rem;
}

.ytv-visibility-switch {
    width: 3rem !important;
    height: 1.55rem;
    cursor: pointer;
}

.ytv-network-config {
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px solid #f0edf4;
}

.ytv-network-config-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .7rem;
}

.ytv-network-config-head p {
    margin: 0;
    color: #8b8492;
    font-size: .68rem;
}

.ytv-network-selected-count {
    flex: 0 0 auto;
    padding: .36rem .55rem;
    border-radius: 999px;
    color: #6d28d9;
    background: #f2ebff;
    font-size: .67rem;
    font-weight: 800;
}

.ytv-network-check {
    margin-left: auto;
    opacity: 0;
    font-size: .66rem;
}

.ytv-edit-network-picker input:checked + span .ytv-network-check {
    opacity: 1;
}

.ytv-copy-editor {
    min-width: 0;
}

.ytv-copy-tabs {
    display: flex;
    gap: .45rem;
    overflow-x: auto;
    padding: .8rem 1rem .6rem;
    border-bottom: 1px solid #f0edf4;
    scrollbar-width: none;
}

.ytv-copy-tabs::-webkit-scrollbar {
    display: none;
}

.ytv-copy-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .58rem .72rem;
    border-radius: 11px;
    color: #6d6674;
    background: #f7f5f9;
    border: 1px solid #ebe7ef;
    font-size: .72rem;
    font-weight: 850;
    transition: all .18s ease;
}

.ytv-copy-tab:hover {
    color: #6d28d9;
    border-color: rgba(124, 58, 237, .22);
}

.ytv-copy-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border-color: #7c3aed;
    box-shadow: 0 8px 18px rgba(124, 58, 237, .16);
}

.ytv-copy-tab-status {
    color: #c7c1cd;
    font-size: .62rem;
}

.ytv-copy-tab-status.is-complete {
    color: #16a34a;
}

.ytv-copy-tab.is-active .ytv-copy-tab-status {
    color: rgba(255, 255, 255, .45);
}

.ytv-copy-tab.is-active .ytv-copy-tab-status.is-complete {
    color: #bbf7d0;
}

.ytv-copy-panels {
    padding: 1rem 1.05rem 1.1rem;
}

.ytv-copy-panel {
    display: none;
}

.ytv-copy-panel.is-active {
    display: block;
    animation: ytvEditFade .22s ease both;
}

.ytv-copy-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .7rem;
}

.ytv-copy-network-name {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    color: #3e3845;
    font-size: .88rem;
    font-weight: 900;
}

.ytv-copy-panel-head p {
    margin: .22rem 0 0;
    color: #8a8390;
    font-size: .68rem;
}

.ytv-copy-editor-copy {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .58rem;
    border-radius: 9px;
    color: #6d28d9;
    background: #f3edff;
    border: 1px solid #e7dafb;
    font-size: .68rem;
    font-weight: 850;
}

.ytv-textarea-shell {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e8e3ed;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ytv-textarea-shell:focus-within {
    border-color: rgba(124, 58, 237, .4);
    box-shadow: 0 0 0 .2rem rgba(124, 58, 237, .07);
}

.ytv-copy-textarea {
    min-height: 180px;
    resize: vertical;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: .9rem;
    color: #39333f;
    background: #fff;
    font-size: .82rem;
    line-height: 1.65;
}

#hashtags.ytv-copy-textarea {
    min-height: 105px;
}

.ytv-textarea-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .52rem .72rem;
    color: #918a98;
    background: #faf9fc;
    border-top: 1px solid #efebf3;
    font-size: .64rem;
}

.ytv-textarea-footer strong {
    color: #625b6a;
}

.ytv-final-copy-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-top: .75rem;
    padding: .7rem .8rem;
    border-radius: 13px;
    color: #6f6877;
    background: #f8f6fb;
    border: 1px solid #eee9f3;
    font-size: .68rem;
}

.ytv-final-copy-preview span {
    font-weight: 800;
}

.ytv-final-copy-preview i {
    color: #7c3aed;
}

.ytv-final-copy-preview code {
    padding: .3rem .45rem;
    border-radius: 8px;
    color: #6d28d9;
    background: #efe8ff;
    font-size: .64rem;
}

.ytv-edit-savebar {
    position: sticky;
    z-index: 15;
    bottom: .7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .72rem .8rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--ytv-border);
    box-shadow: 0 18px 40px rgba(35, 26, 54, .13);
    backdrop-filter: blur(14px);
}

.ytv-save-state {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.ytv-save-state strong,
.ytv-save-state small {
    display: block;
}

.ytv-save-state strong {
    color: #4b4552;
    font-size: .72rem;
}

.ytv-save-state small {
    margin-top: .08rem;
    color: #96909d;
    font-size: .62rem;
}

.ytv-save-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #c7c1cd;
    box-shadow: 0 0 0 5px rgba(199, 193, 205, .14);
}

.ytv-save-dot.is-dirty {
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, .12);
}

.ytv-save-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.ytv-save-actions .btn {
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 800;
}

.ytv-edit-page .select2-container--bootstrap-5 .select2-selection {
    min-height: 44px;
    border-color: #e5e0ea;
    border-radius: 11px;
    box-shadow: none;
}

.ytv-edit-page .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.ytv-edit-page .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: rgba(124, 58, 237, .42);
    box-shadow: 0 0 0 .18rem rgba(124, 58, 237, .07);
}

@keyframes ytvEditFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1199.98px) {
    .ytv-edit-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

@media (max-width: 991.98px) {
    .ytv-edit-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .ytv-edit-health {
        width: 100%;
        min-width: 0;
    }

    .ytv-edit-layout {
        grid-template-columns: 1fr;
    }

    .ytv-video-preview-sticky {
        position: static;
        display: grid;
        grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    }

    .ytv-video-preview-media {
        aspect-ratio: auto;
        min-height: 100%;
    }
}

@media (max-width: 767.98px) {
    .ytv-edit-field-grid {
        grid-template-columns: 1fr;
    }

    .ytv-network-config-head,
    .ytv-copy-panel-head,
    .ytv-final-copy-preview {
        align-items: stretch;
        flex-direction: column;
    }

    .ytv-video-preview-sticky {
        display: block;
    }

    .ytv-video-preview-media {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .ytv-preview-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .ytv-edit-page .container {
        padding-left: .8rem;
        padding-right: .8rem;
    }

    .ytv-edit-title-row h1 {
        font-size: 2rem;
    }

    .ytv-edit-section,
    .ytv-video-preview-sticky {
        border-radius: 18px;
    }

    .ytv-edit-section-head,
    .ytv-edit-section-body,
    .ytv-copy-panels {
        padding-left: .8rem;
        padding-right: .8rem;
    }

    .ytv-edit-network-picker {
        grid-template-columns: 1fr 1fr;
    }

    .ytv-copy-tabs {
        padding-left: .8rem;
        padding-right: .8rem;
    }

    .ytv-edit-savebar {
        align-items: stretch;
        flex-direction: column;
        bottom: .35rem;
    }

    .ytv-save-actions {
        width: 100%;
    }

    .ytv-save-actions .btn {
        flex: 1;
    }
}


/* VIDEO EDITOR V2.1 — COMPACT CLASSIFICATION ----------------------------- */

.ytv-edit-page .ytv-edit-field-grid {
    grid-template-columns: minmax(230px, .82fr) minmax(330px, 1.18fr);
    align-items: stretch;
}

.ytv-edit-page .ytv-category-card,
.ytv-edit-page .ytv-visibility-card {
    padding: .72rem .78rem;
}

.ytv-edit-page .ytv-category-card .form-label {
    margin-bottom: .42rem;
    font-size: .78rem;
}

.ytv-edit-page .ytv-category-card > small {
    margin-top: .34rem;
    font-size: .62rem;
}

.ytv-edit-page .select2-container--bootstrap-5 .select2-selection {
    min-height: 38px;
    border-radius: 9px;
}

.ytv-edit-page .select2-container--bootstrap-5 .select2-selection--single {
    padding: .34rem 2.2rem .34rem .68rem;
}

.ytv-edit-page .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: #433d49;
    font-size: .8rem;
    line-height: 1.5;
}

.ytv-edit-page .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    width: 2rem;
}

.ytv-edit-page .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    margin-right: .2rem;
    font-size: 1rem;
}

.ytv-edit-page .ytv-visibility-card {
    min-height: 92px;
}

.ytv-edit-page .ytv-visibility-card strong {
    font-size: .78rem;
}

.ytv-edit-page .ytv-visibility-card > div > small {
    max-width: 430px;
    font-size: .63rem;
}

@media (max-width: 767.98px) {
    .ytv-edit-page .ytv-edit-field-grid {
        grid-template-columns: 1fr;
    }
}


/* EDITORIAL CALENDAR + COMPACT HISTORY ----------------------------------- */

.ytv-planning-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.ytv-calendar-panel,
.ytv-history-panel {
    min-width: 0;
}

.ytv-calendar-panel {
    padding: 1rem 1.05rem 1.1rem;
}

.ytv-calendar-panel-head {
    align-items: center;
    margin-bottom: .7rem;
}

.ytv-calendar-panel-head p {
    max-width: 690px;
    margin: .3rem 0 0;
    color: #8f8996;
    font-size: .72rem;
    line-height: 1.5;
}

.ytv-calendar-head-meta {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ytv-calendar-capacity {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem .62rem;
    border-radius: 999px;
    color: #6d28d9;
    background: #f3edff;
    border: 1px solid #eadfff;
    font-size: .68rem;
    font-weight: 850;
    white-space: nowrap;
}

.ytv-calendar-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .85rem;
    margin-bottom: .75rem;
    padding: .55rem .65rem;
    border-radius: 12px;
    color: #817a88;
    background: #faf9fc;
    border: 1px solid #efebf3;
    font-size: .66rem;
}

.ytv-calendar-legend > span {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
}

.ytv-calendar-legend-note {
    margin-left: auto;
    color: #98919f;
}

.ytv-calendar-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
}

.ytv-calendar-dot.today {
    background: #7c3aed;
}

.ytv-calendar-dot.new {
    background: #2563eb;
}

.ytv-calendar-dot.rotation {
    background: #16a34a;
}

.ytv-content-calendar {
    min-height: 540px;
}

.ytv-content-calendar .fc {
    --fc-border-color: #ece8f1;
    --fc-page-bg-color: #fff;
    --fc-neutral-bg-color: #faf9fc;
    --fc-today-bg-color: rgba(124, 58, 237, .055);
    --fc-button-bg-color: #fff;
    --fc-button-border-color: #e4deea;
    --fc-button-text-color: #5f5867;
    --fc-button-hover-bg-color: #f5f0ff;
    --fc-button-hover-border-color: #d7c8f5;
    --fc-button-active-bg-color: #7c3aed;
    --fc-button-active-border-color: #7c3aed;
    color: #3e3845;
    font-size: .74rem;
}

.ytv-content-calendar .fc .fc-toolbar {
    gap: .6rem;
    margin-bottom: .8rem;
}

.ytv-content-calendar .fc .fc-toolbar-title {
    color: #312b37;
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: capitalize;
}

.ytv-content-calendar .fc .fc-button {
    min-height: 34px;
    padding: .34rem .55rem;
    border-radius: 9px;
    box-shadow: none !important;
    font-size: .68rem;
    font-weight: 800;
    text-transform: capitalize;
}

.ytv-content-calendar .fc .fc-button-primary:not(:disabled):active,
.ytv-content-calendar .fc .fc-button-primary:not(:disabled).fc-button-active {
    color: #fff;
}

.ytv-content-calendar .fc .fc-col-header-cell {
    background: #faf9fc;
}

.ytv-content-calendar .fc .fc-col-header-cell-cushion {
    padding: .5rem .3rem;
    color: #817a88;
    text-decoration: none;
    font-size: .65rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ytv-content-calendar .fc .fc-daygrid-day-number {
    padding: .38rem .45rem;
    color: #68616f;
    text-decoration: none;
    font-size: .7rem;
    font-weight: 800;
}

.ytv-content-calendar .fc .fc-day-today .fc-daygrid-day-number {
    min-width: 28px;
    min-height: 28px;
    display: inline-grid;
    place-items: center;
    margin: .25rem .25rem 0 0;
    padding: .15rem;
    border-radius: 50%;
    color: #fff;
    background: #7c3aed;
}

.ytv-content-calendar .fc .fc-daygrid-day-frame {
    min-height: 94px;
}

.ytv-content-calendar .fc .ytv-calendar-day-off {
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(112, 103, 122, .025),
            rgba(112, 103, 122, .025) 7px,
            rgba(112, 103, 122, .045) 7px,
            rgba(112, 103, 122, .045) 8px
        );
}

.ytv-content-calendar .fc .ytv-calendar-day-off .fc-daygrid-day-number {
    opacity: .48;
}

.ytv-content-calendar .fc .fc-daygrid-event {
    margin: 2px 4px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.ytv-content-calendar .fc .ytv-fc-event {
    color: inherit;
}

.ytv-content-calendar .fc .ytv-fc-event.is-today .ytv-fc-event-content {
    color: #5b21b6;
    background: #f1e9ff;
    border-color: #dfcffc;
}

.ytv-content-calendar .fc .ytv-fc-event.is-new .ytv-fc-event-content {
    color: #1d4ed8;
    background: #eef4ff;
    border-color: #dbe8ff;
}

.ytv-content-calendar .fc .ytv-fc-event.is-rotation .ytv-fc-event-content {
    color: #15803d;
    background: #eefaf2;
    border-color: #d9f1e1;
}

.ytv-fc-event-content {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .34rem .4rem;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: transform .15s ease, filter .15s ease;
}

.ytv-fc-event:hover .ytv-fc-event-content {
    transform: translateY(-1px);
    filter: saturate(1.12);
}

.ytv-fc-slot {
    flex: 0 0 auto;
    min-width: 20px;
    display: inline-flex;
    justify-content: center;
    font-size: .6rem;
    font-weight: 900;
}

.ytv-fc-title {
    min-width: 0;
    overflow: hidden;
    font-size: .63rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ytv-content-calendar .fc .fc-daygrid-more-link {
    margin: .15rem .3rem;
    color: #6d28d9;
    font-size: .63rem;
    font-weight: 850;
}

.ytv-content-calendar .fc .fc-popover {
    overflow: hidden;
    border: 1px solid #e9e3ee;
    border-radius: 13px;
    box-shadow: 0 18px 42px rgba(35, 26, 54, .14);
}

.ytv-content-calendar .fc .fc-popover-header {
    padding: .55rem .65rem;
    color: #554e5d;
    background: #faf8fd;
    font-size: .7rem;
    font-weight: 850;
}

.ytv-content-calendar .fc .fc-list {
    overflow: hidden;
    border: 1px solid #ece8f1;
    border-radius: 14px;
}

.ytv-content-calendar .fc .fc-list-day-cushion {
    padding: .55rem .7rem;
    color: #5d5665;
    background: #faf9fc;
}

.ytv-content-calendar .fc .fc-list-event:hover td {
    background: #faf7ff;
}

.ytv-content-calendar .fc .fc-list-event-title a {
    color: #3f3946;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 780;
}

.ytv-content-calendar .fc .fc-list-event-dot {
    border-color: #7c3aed;
}

.ytv-calendar-load-error {
    min-height: 240px;
    display: grid;
    place-items: center;
    padding: 1rem;
    border-radius: 16px;
    color: #8a4350;
    background: #fff5f5;
    border: 1px dashed #f1c7cc;
    text-align: center;
    font-size: .78rem;
}

.ytv-calendar-swal-popup {
    width: min(94vw, 620px) !important;
    padding: 0 0 1rem !important;
    border-radius: 20px !important;
    overflow: hidden;
}

.ytv-calendar-swal {
    text-align: left;
}

.ytv-calendar-swal-thumb {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    display: block;
    background: #ece8f1;
}

.ytv-calendar-swal-copy {
    padding: 1rem 1.15rem .15rem;
}

.ytv-calendar-swal-copy h3 {
    margin: .55rem 0 .45rem;
    color: #2f2935;
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 900;
}

.ytv-calendar-swal-copy p {
    margin: 0 0 .55rem;
    color: #8f8996;
    font-size: .72rem;
}

.ytv-calendar-swal-status,
.ytv-calendar-swal-category {
    display: inline-flex;
    align-items: center;
    padding: .34rem .5rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 850;
}

.ytv-calendar-swal-status.is-today {
    color: #6d28d9;
    background: #f1eafe;
}

.ytv-calendar-swal-status.is-new {
    color: #1d4ed8;
    background: #eaf1ff;
}

.ytv-calendar-swal-status.is-rotation {
    color: #15803d;
    background: #eaf8ef;
}

.ytv-calendar-swal-category {
    color: #655e6d;
    background: #f4f2f6;
}

/* Compact history --------------------------------------------------------- */

.ytv-history-panel {
    padding: .9rem;
}

.ytv-history-head {
    align-items: center;
    margin-bottom: .55rem;
}

.ytv-history-head h2 {
    font-size: 1rem;
}

.ytv-history-count {
    min-width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #6d28d9;
    background: #f1eafe;
    font-size: .68rem;
    font-weight: 900;
}

.ytv-history-list-compact {
    gap: 0;
    max-height: 535px;
    overflow-y: auto;
    padding-right: .15rem;
    scrollbar-width: thin;
    scrollbar-color: #d9d1e3 transparent;
}

.ytv-history-item-compact {
    position: relative;
    align-items: center;
    gap: .55rem;
    padding: .55rem .15rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #f0edf4;
    transition: background .16s ease, transform .16s ease;
}

.ytv-history-item-compact:hover {
    color: inherit;
    background: #faf8fd;
    transform: translateX(2px);
}

.ytv-history-item-compact > div {
    min-width: 0;
    flex: 1;
}

.ytv-history-thumb {
    width: 50px;
    aspect-ratio: 16 / 9;
    flex: 0 0 50px;
    object-fit: cover;
    border-radius: 8px;
    background: #ece8f1;
}

.ytv-history-item-compact strong {
    display: -webkit-box;
    overflow: hidden;
    color: #403a47;
    font-size: .7rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ytv-history-item-compact small {
    margin-top: .2rem;
    font-size: .62rem;
}

.ytv-history-arrow {
    flex: 0 0 auto;
    color: #c1bac7;
    font-size: .56rem;
}

.ytv-history-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .45rem;
    color: #9b94a2;
    text-align: center;
    font-size: .72rem;
}

.ytv-history-empty i {
    color: #86c99d;
    font-size: 1.35rem;
}

@media (max-width: 1199.98px) {
    .ytv-planning-grid {
        grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    }
}

@media (max-width: 991.98px) {
    .ytv-planning-grid {
        grid-template-columns: 1fr;
    }

    .ytv-history-list-compact {
        max-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .ytv-calendar-panel {
        padding: .8rem;
    }

    .ytv-calendar-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .ytv-calendar-head-meta {
        justify-content: flex-start;
    }

    .ytv-calendar-legend-note {
        width: 100%;
        margin-left: 0;
    }

    .ytv-content-calendar {
        min-height: 420px;
    }

    .ytv-content-calendar .fc .fc-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ytv-content-calendar .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }

    .ytv-content-calendar .fc .fc-toolbar-title {
        font-size: .98rem;
    }
}

@media (max-width: 575.98px) {
    .ytv-calendar-legend {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ytv-calendar-legend-note {
        grid-column: 1 / -1;
    }

    .ytv-calendar-swal-copy {
        padding-left: .85rem;
        padding-right: .85rem;
    }
}


/* ADMIN VIEWPORT STABILITY ------------------------------------------------ */

.ytv-admin-page #agenda-hoy,
.ytv-admin-page #plan-editorial,
.ytv-admin-page #mantenimiento {
    scroll-margin-top: 88px;
}


/* VIDEO LIBRARY FILTER UX ------------------------------------------------- */

.ytv-library {
    scroll-margin-top: 82px;
}

.ytv-filter-shell {
    position: relative;
    display: grid;
    grid-template-columns: 0 minmax(0, 1fr) 0;
    align-items: center;
    margin-bottom: 1.6rem;
    transition: grid-template-columns .18s ease;
}

.ytv-filter-shell.is-scrollable {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: .35rem;
}

.ytv-filter-shell .ytv-filters {
    min-width: 0;
    margin-bottom: 0;
    padding: .15rem 0 .55rem;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
}

.ytv-filter-shell .ytv-filters a {
    scroll-snap-align: start;
}

.ytv-filter-scroll {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #e8e2ed;
    color: #6d28d9;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 20px rgba(35, 26, 54, .08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .16s ease,
        transform .16s ease,
        background .16s ease,
        border-color .16s ease;
}

.ytv-filter-shell.is-scrollable .ytv-filter-scroll {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ytv-filter-scroll:hover:not(:disabled) {
    color: #fff;
    background: #7c3aed;
    border-color: #7c3aed;
    transform: translateY(-1px);
}

.ytv-filter-scroll:disabled {
    opacity: .28 !important;
    cursor: default;
    pointer-events: none !important;
}

.ytv-filter-scroll-left {
    justify-self: start;
}

.ytv-filter-scroll-right {
    justify-self: end;
}

[data-video-results-region] {
    position: relative;
    transition: opacity .18s ease, filter .18s ease;
}

.ytv-library.is-filtering [data-video-results-region] {
    opacity: .42;
    filter: saturate(.7);
    pointer-events: none;
}

.ytv-library.is-filtering [data-video-filter-link],
.ytv-library.is-filtering [data-video-pagination] a {
    pointer-events: none;
}

.ytv-search button.is-loading {
    min-width: 108px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    cursor: wait;
}

.ytv-search button:disabled {
    opacity: .78;
}

@media (max-width: 767.98px) {
    .ytv-filter-shell,
    .ytv-filter-shell.is-scrollable {
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        gap: .25rem;
    }

    .ytv-filter-scroll {
        width: 30px;
        height: 30px;
        font-size: .7rem;
    }

    .ytv-filter-shell .ytv-filters {
        padding-bottom: .4rem;
    }
}
