
.kp-root {
    --kp-pink: #FF3D8B;
    --kp-cyan: #22E4FF;
    --kp-text: #F5F3FF;
    --kp-dim: #B6AFD0;
    --kp-glass: rgba(13, 11, 26, .72);
    --kp-border: rgba(255, 255, 255, .12);
    --kp-ui: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --kp-display: 'Unbounded', 'Manrope', sans-serif;

    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--kp-ui);
    color: var(--kp-text);
}

.kp-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.kp-center-state {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 3;
}
.kp-center-state:empty { display: none; }
.kp-center-state > * {
    padding: 14px 22px;
    border-radius: 14px;
    background: var(--kp-glass);
    border: 1px solid var(--kp-border);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    max-width: min(420px, 86%);
}

.kp-fail {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kp-text);
    border-color: rgba(255, 61, 139, .5) !important;
    box-shadow: 0 0 30px rgba(255, 61, 139, .15);
    pointer-events: auto;
}

.kp-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 56px 20px calc(14px + env(safe-area-inset-bottom, 0px));

    background: linear-gradient(180deg, rgba(7, 6, 15, 0) 0%, rgba(7, 6, 15, .38) 32%, rgba(7, 6, 15, .78) 62%, rgba(7, 6, 15, .96) 100%);
    opacity: 1;
    transform: translateY(0);
    transition: opacity .3s ease, transform .3s ease;
}

.kp-root.is-idle:not(.is-paused) .kp-controls {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
}
.kp-root.is-idle:not(.is-paused) { cursor: none; }

.kp-progress-row { padding: 0 2px 10px; }

.kp-progress {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    cursor: pointer;

    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    background-clip: padding-box;
    transition: height .18s ease;

    touch-action: none;}
.kp-progress:hover, .kp-progress:focus-visible { height: 9px; }

.kp-buffered {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}
.kp-played {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--kp-pink), var(--kp-cyan));
    box-shadow: 0 0 16px rgba(255, 61, 139, .55);
}
.kp-knob {
    position: absolute;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-left: -7.5px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%) scale(.82);
    box-shadow: 0 0 0 4px rgba(255, 61, 139, .28), 0 2px 10px rgba(0, 0, 0, .6);
    transition: transform .18s ease;
    pointer-events: none;
}
.kp-progress:hover .kp-knob { transform: translateY(-50%) scale(1); }

.kp-marks { position: absolute; inset: 0; pointer-events: none; }

.kp-mark {
    position: absolute;
    bottom: calc(100% + 7px);
    transform: translateX(-50%);
    font-size: 15px;
    line-height: 1;
    background: none;
    border-radius: 0;
    box-shadow: none;
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .85));
    transition: transform .15s ease;
}
.kp-mark:hover { transform: translateX(-50%) scale(1.35); }

.kp-hover-time {
    position: absolute;
    bottom: 22px;
    transform: translateX(-50%);
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--kp-glass);
    border: 1px solid var(--kp-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-family: var(--kp-display);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
}

.kp-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kp-spacer { flex: 1; }

.kp-btn {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--kp-text);
    font-family: var(--kp-ui);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.kp-btn:hover, .kp-btn:focus-visible {
    background: rgba(255, 255, 255, .08);
    border-color: var(--kp-border);
}
.kp-btn:focus-visible { outline: 2px solid var(--kp-cyan); outline-offset: 2px; }
.kp-text-btn { padding: 0 14px; }

.kp-play, .kp-mute, .kp-pip, .kp-full, .kp-window, .kp-next, .kp-prev, .kp-icon-btn { font-size: 0; }
.kp-play::before, .kp-mute::before, .kp-pip::before, .kp-full::before,
.kp-window::before, .kp-next::before, .kp-prev::before, .kp-icon-btn::before {
    content: '';
    width: 24px;
    height: 24px;
    background: currentColor;
    -webkit-mask: var(--kp-icon) center / contain no-repeat;
    mask: var(--kp-icon) center / contain no-repeat;
}

.kp-play {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6.5' y='5' width='4' height='14' rx='1'/%3E%3Crect x='13.5' y='5' width='4' height='14' rx='1'/%3E%3C/svg%3E");
    background: rgba(255, 61, 139, .16);
    border-color: rgba(255, 61, 139, .5);
}
.kp-play:hover { background: rgba(255, 61, 139, .26); }
.kp-root.is-paused .kp-play {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E");
}
.kp-mute {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z'/%3E%3Cpath d='M16 8.5a5 5 0 010 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.kp-root.is-muted .kp-mute {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z'/%3E%3Cpath d='M16 9.5l5 5m0-5l-5 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    color: var(--kp-dim);
}
.kp-pip {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Crect x='12' y='11' width='7' height='6' rx='1.5' fill='black'/%3E%3C/svg%3E");
}
.kp-full {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 9V5h4M20 9V5h-4M4 15v4h4M20 15v4h-4'/%3E%3C/svg%3E");
}

.kp-reactions-toggle {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 14.5a4.5 4.5 0 007 0' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='10' r='1.1' fill='black' stroke='none'/%3E%3Ccircle cx='15' cy='10' r='1.1' fill='black' stroke='none'/%3E%3C/svg%3E");
}
.kp-share {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='2.6'/%3E%3Ccircle cx='6' cy='12' r='2.6'/%3E%3Ccircle cx='18' cy='19' r='2.6'/%3E%3Cpath d='M8.4 10.8l7.2-4.2M8.4 13.2l7.2 4.2'/%3E%3C/svg%3E");
}
.kp-audio-toggle {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M12 3a6 6 0 00-6 6v3a6 6 0 0012 0V9a6 6 0 00-6-6z'/%3E%3Cpath d='M4 12v1a8 8 0 0016 0v-1M12 21v-2'/%3E%3C/svg%3E");
}
.kp-quality-toggle {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M19.4 14.5a1.7 1.7 0 00.35 1.87l.06.06a2 2 0 11-2.83 2.83l-.06-.06a1.7 1.7 0 00-1.87-.35 1.7 1.7 0 00-1 1.56V21a2 2 0 01-4 0v-.12a1.7 1.7 0 00-1.1-1.56 1.7 1.7 0 00-1.87.35l-.06.06a2 2 0 11-2.83-2.83l.06-.06a1.7 1.7 0 00.35-1.87 1.7 1.7 0 00-1.56-1H3a2 2 0 010-4h.12a1.7 1.7 0 001.56-1.1 1.7 1.7 0 00-.35-1.87l-.06-.06a2 2 0 112.83-2.83l.06.06a1.7 1.7 0 001.87.35H9a1.7 1.7 0 001-1.56V3a2 2 0 014 0v.12a1.7 1.7 0 001 1.56 1.7 1.7 0 001.87-.35l.06-.06a2 2 0 112.83 2.83l-.06.06a1.7 1.7 0 00-.35 1.87V9a1.7 1.7 0 001.56 1H21a2 2 0 010 4h-.12a1.7 1.7 0 00-1.56 1z'/%3E%3C/svg%3E");
}

.kp-window {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 5v4H5M15 5v4h4M9 19v-4H5M15 19v-4h4'/%3E%3C/svg%3E");
}

.player-overlay.is-windowed .kp-window {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 9V5h4M19 9V5h-4M5 15v4h4M19 15v4h-4'/%3E%3C/svg%3E");
}

.kp-back, .kp-fwd { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }

.kp-airplay, .kp-cast { font-size: 0; }
.kp-airplay::before, .kp-cast::before {
    content: '';
    width: 24px;
    height: 24px;
    background: currentColor;
    -webkit-mask: var(--kp-icon) center / contain no-repeat;
    mask: var(--kp-icon) center / contain no-repeat;
}
.kp-airplay {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M6 17H4.5A1.5 1.5 0 013 15.5v-10A1.5 1.5 0 014.5 4h15A1.5 1.5 0 0121 5.5v10a1.5 1.5 0 01-1.5 1.5H18'/%3E%3Cpath d='M12 14l5 6H7z' fill='black'/%3E%3C/svg%3E");
}
.kp-cast {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M3 8V6.5A1.5 1.5 0 014.5 5h15A1.5 1.5 0 0121 6.5v11a1.5 1.5 0 01-1.5 1.5H14'/%3E%3Cpath d='M3 12a8 8 0 018 8M3 15.5a4.5 4.5 0 014.5 4.5'/%3E%3Ccircle cx='3.6' cy='19.4' r='1.1' fill='black' stroke='none'/%3E%3C/svg%3E");
}
.kp-airplay[hidden], .kp-cast[hidden] { display: none; }

.kp-root.is-casting .kp-cast, .kp-root.is-airplay .kp-airplay { color: var(--kp-cyan, #22E4FF); }

.kp-cast-screen {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(ellipse at center, #141122, #07060F);
    text-align: center;
}
.kp-cast-screen[hidden] { display: none; }
.kp-cast-box { max-width: 420px; }
.kp-cast-label {
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--kp-cyan, #22E4FF);
    margin-bottom: 8px;
}
.kp-cast-device { font-size: 22px; font-weight: 700; margin-bottom: 6px; min-height: 1em; }
.kp-cast-time { font-size: 15px; color: rgba(255, 255, 255, .7); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.kp-cast-btns { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.kp-cast-btns .kp-btn, .kp-cast-stop {
    min-width: 64px;
    background: rgba(255, 255, 255, .08);
    border-color: var(--kp-border, rgba(255, 255, 255, .14));
}

.kp-root.is-casting .kp-bigplay { visibility: hidden !important; opacity: 0 !important; }
.kp-cast-toggle { min-width: 120px !important; }
.kp-cast-stop { opacity: .8; }

.kp-volume-wrap { display: flex; align-items: center; gap: 2px; }
.kp-volume {
    width: 0;
    opacity: 0;
    height: 4px;
    margin-right: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    appearance: none;
    cursor: pointer;
    transition: width .25s ease, opacity .25s ease, margin-right .25s ease;

    accent-color: var(--kp-pink, #FF3D8B);}

.kp-volume-wrap:hover .kp-volume,
.kp-volume:focus-visible { width: 84px; opacity: 1; margin-right: 6px; }
.kp-volume::-webkit-slider-thumb {
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(34, 228, 255, .3);
}
.kp-volume::-moz-range-thumb {
    width: 13px; height: 13px; border: none; border-radius: 50%;
    background: #fff; box-shadow: 0 0 0 3px rgba(34, 228, 255, .3);
}

.kp-time {
    font-family: var(--kp-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--kp-dim);
    white-space: nowrap;
    padding: 0 6px;
}
.kp-cur { color: var(--kp-text); }

.kp-menu-wrap { position: relative; }
.kp-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    min-width: 172px;
    max-height: 46vh;
    overflow-y: auto;
    padding: 6px;
    border-radius: 14px;
    background: var(--kp-glass);
    border: 1px solid var(--kp-border);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
    z-index: 6;
}
.kp-menu[hidden] { display: none; }
.kp-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--kp-text);
    font-family: var(--kp-ui);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.kp-menu-item:hover { background: rgba(255, 255, 255, .08); }

.kp-menu-item[aria-checked="true"],
.kp-menu-item.is-active {
    color: var(--kp-cyan);
    background: rgba(34, 228, 255, .1);
}
.kp-menu-item[aria-checked="true"]::after,
.kp-menu-item.is-active::after {
    content: '';
    margin-left: auto;
    width: 15px;
    height: 15px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.kp-reactions-menu { min-width: 190px; }
.kp-reaction-item { font-size: 14.5px; }
.kp-reaction-icon { font-size: 19px; line-height: 1; }

.kp-reaction-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}
.kp-burst-item {
    position: absolute;
    bottom: 96px;
    font-size: 30px;
    animation: kp-burst 1.5s ease-out forwards;
    filter: drop-shadow(0 0 14px rgba(255, 61, 139, .7));
}
@keyframes kp-burst {
    0%   { opacity: 0; transform: translateY(14px) scale(.7); }
    18%  { opacity: 1; transform: translateY(0) scale(1.12); }
    100% { opacity: 0; transform: translateY(-120px) scale(.94); }
}

.kp-toast {
    position: absolute;
    left: 50%;
    bottom: 104px;
    transform: translateX(-50%);
    padding: 11px 18px;
    border-radius: 12px;
    background: var(--kp-glass);
    border: 1px solid rgba(34, 228, 255, .45);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 14px;
    z-index: 7;
    animation: kp-toast-in .25s ease-out;
}

.kp-toast[hidden] { display: none; }
@keyframes kp-toast-in {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

.kp-menu-wrap[hidden],
.kp-audio-wrap[hidden],
.kp-quality-wrap[hidden] { display: none; }

.kp-audio-wrap, .kp-quality-wrap, .kp-reactions-wrap { position: relative; }

.kp-audio-toggle.is-active,
.kp-quality-toggle.is-active,
.kp-reactions-toggle.is-active {
    background: rgba(34, 228, 255, .14);
    border-color: rgba(34, 228, 255, .6);
    color: var(--kp-cyan, #22E4FF);
}

.kp-audio-menu, .kp-quality-menu, .kp-reactions-menu { right: 0; }
.kp-audio-menu[hidden],
.kp-quality-menu[hidden],
.kp-reactions-menu[hidden] { display: none; }

.kp-share { letter-spacing: .01em; }
.kp-dur { color: var(--kp-text-dim, #B6AFD0); }

.kp-root.is-loading .kp-center-state:empty { display: grid; }
.kp-root.is-loading .kp-center-state::after {
    content: '';
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(255, 61, 139, 0) 0%, #FF3D8B 35%, #b06bff 65%, #22E4FF 100%);
    -webkit-mask: radial-gradient(circle, transparent 58%, #000 61%);
    mask: radial-gradient(circle, transparent 58%, #000 61%);
    animation: kp-spin .9s linear infinite;
}
@keyframes kp-spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .kp-controls { padding: 44px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
    .kp-buttons { gap: 4px; }

    .kp-btn { min-width: 44px; height: 44px; padding: 0 8px; }
    .kp-text-btn { padding: 0 11px; font-size: 13.5px; }

    .kp-back, .kp-fwd, .kp-pip, .kp-window { display: none; }

    .kp-volume-wrap { display: none; }
    .kp-time { font-size: 12px; padding: 0 4px; }
    .kp-menu { min-width: 156px; max-height: 40vh; }
    .kp-menu-item { padding: 12px; font-size: 14.5px; }
    .kp-burst-item { bottom: 84px; font-size: 26px; }
}

@media (max-width: 460px) {
    .kp-controls { padding-left: 8px; padding-right: 8px; }
    .kp-buttons { gap: 2px; flex-wrap: nowrap; }
    .kp-btn { min-width: 38px; height: 40px; padding: 0 4px; }
    .kp-play::before, .kp-mute::before, .kp-pip::before, .kp-full::before,
    .kp-window::before, .kp-next::before, .kp-prev::before, .kp-icon-btn::before {
        width: 22px; height: 22px;
    }
    .kp-text-btn { padding: 0 8px; font-size: 12.5px; }
    .kp-time {
        position: absolute; left: 12px; top: 22px;
        font-size: 12px; padding: 0;
    }
}

@media (max-width: 380px) {
    .kp-btn { min-width: 34px; padding: 0 2px; }
}

@media (orientation: landscape) and (max-height: 500px) {
    .kp-controls { padding: 32px 16px calc(8px + env(safe-area-inset-bottom, 0px)); }
    .kp-progress-row { padding-bottom: 6px; }
    .kp-btn { height: 40px; min-width: 40px; }
    .kp-menu { max-height: 58vh; bottom: calc(100% + 8px); }
}

@media (prefers-reduced-motion: reduce) {
    .kp-controls, .kp-progress, .kp-knob, .kp-btn, .kp-volume { transition: none; }
    .kp-burst-item { animation-duration: .01ms; }
    .kp-toast { animation: none; }
}

.player-overlay.is-windowed {
    background: rgba(7, 6, 15, .82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.player-overlay.is-windowed .kp-root,
.player-overlay.is-windowed > div {
    width: min(1100px, 100%);
    max-height: min(72vh, 100%);
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6),
                inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.player-overlay.is-windowed .kp-video { border-radius: 16px; }
@media (max-width: 768px) {

    .player-overlay.is-windowed { padding: 0; background: #000; }
    .player-overlay.is-windowed .kp-root,
    .player-overlay.is-windowed > div {
        width: 100%; max-height: none; aspect-ratio: auto;
        border-radius: 0; box-shadow: none;
    }
}

.kp-played {
    background: linear-gradient(90deg, var(--kp-pink) 0%, #b06bff 55%, var(--kp-cyan) 100%);
    box-shadow: 0 0 10px rgba(255, 61, 139, .75), 0 0 22px rgba(34, 228, 255, .45);
}

.kp-progress { background-color: rgba(255, 255, 255, .20); }
.kp-buffered { background: rgba(255, 255, 255, .32); }

.kp-eps-toggle {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M7 9h4M7 12.5h7'/%3E%3C/svg%3E");
}

.kp-next {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 5l9 7-9 7z' fill='black'/%3E%3Cpath d='M18 5v14'/%3E%3C/svg%3E");
}
.kp-prev {
    --kp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 5l-9 7 9 7z' fill='black'/%3E%3Cpath d='M6 5v14'/%3E%3C/svg%3E");
}
.kp-next[hidden], .kp-prev[hidden], .kp-eps-wrap[hidden] { display: none; }

.kp-eps-menu {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    min-width: 260px;
}
.kp-eps-menu .kp-menu-item { text-align: left; }
@media (max-width: 768px) {
    .kp-eps-menu { min-width: 210px; max-height: 46vh; }
}

.kp-bigplay {
    position: absolute;
    left: 50%; top: 50%;
    width: clamp(76px, 9vw, 104px);
    height: clamp(76px, 9vw, 104px);
    transform: translate(-50%, -50%) scale(.9);
    border: none; padding: 0; background: none; cursor: pointer;
    z-index: 4;
    opacity: 0; pointer-events: none;

    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.kp-root.is-paused:not(.is-loading) .kp-bigplay {
    opacity: 1; pointer-events: auto; visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
}
.kp-bigplay-ring {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, #FF3D8B, #b06bff, #22E4FF, #b06bff, #FF3D8B);

    -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
    mask: radial-gradient(circle, transparent 58%, #000 60%);
    filter: drop-shadow(0 0 14px rgba(255, 61, 139, .55)) drop-shadow(0 0 22px rgba(34, 228, 255, .35));
    animation: kpRingSpin 9s linear infinite;
    animation-play-state: paused;
}
.kp-root.is-paused:not(.is-loading) .kp-bigplay-ring { animation-play-state: running; }
.kp-bigplay::before {

    content: ''; position: absolute; inset: 9%; border-radius: 50%;
    background: rgba(7, 6, 15, .55);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.kp-bigplay-icon {
    position: absolute; left: 50%; top: 50%;
    width: 34%; height: 38%;
    transform: translate(-40%, -50%);
    background: #fff;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    border-radius: 3px;
}
.kp-bigplay:hover .kp-bigplay-ring { animation-duration: 2.4s; }

.kp-root.is-paused:not(.is-loading) .kp-bigplay:hover { transform: translate(-50%, -50%) scale(1.06); }
.kp-bigplay:focus-visible { outline: 2px solid #22E4FF; outline-offset: 4px; border-radius: 50%; }
@keyframes kpRingSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .kp-bigplay-ring { animation: none; }
}

.kp-root.is-pseudo-full {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    z-index: 2147483000 !important;
    border-radius: 0 !important;
    background: #000;
}
.kp-root.is-pseudo-full .kp-video { object-fit: contain; }
html.kp-pseudo-full-open, html.kp-pseudo-full-open body { overflow: hidden !important; }

html.ks-open { overflow: hidden; }
.ks-root[hidden] { display: none; }
.ks-root {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(4, 4, 10, .78);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: flex-start;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 14px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #F5F3FF;
}
.ks-panel {
    width: min(680px, 100%);
    max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px);
    display: flex; flex-direction: column;
    background: rgba(13, 11, 26, .97);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    overflow: hidden;
}
.ks-field { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08); color: #B6AFD0; }
.ks-input { flex: 1; min-width: 0; background: none; border: none; outline: none;
    color: #F5F3FF; font: inherit; font-size: 17px; padding: 6px 0; }
.ks-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ks-close { background: none; border: none; color: #B6AFD0; font: inherit; font-size: 15px;
    cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.ks-close:hover { color: #F5F3FF; background: rgba(255, 255, 255, .06); }
.ks-note { padding: 12px 16px 4px; font-size: 13.5px; color: #B6AFD0; }
.ks-note:empty { display: none; }
.ks-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.ks-item { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px;
    color: inherit; text-decoration: none; }
.ks-item:hover, .is-active > .ks-item { background: rgba(34, 228, 255, .08); }
.ks-thumb { flex: 0 0 46px; height: 68px; border-radius: 6px; overflow: hidden; background: #1a1630; }
.ks-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ks-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ks-title { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.ks-orig { font-size: 13px; color: #B6AFD0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-meta { font-size: 13px; color: #8F88AA; }
.ks-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 11px;
    font-weight: 800; letter-spacing: .03em; vertical-align: 2px;
    color: #0A0817; background: linear-gradient(90deg, #FF3D8B, #22E4FF); }
