details.pakplan-video-speed {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: 34px;
    margin: 0;
    padding: 0;
    color: #fff;
    font: 14px/1 system-ui, sans-serif;
    white-space: nowrap;
    touch-action: manipulation;
}
.pakplan-video-speed > .pakplan-video-speed-toggle {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 5px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 7px;
    color: #fff;
    background: #30343c;
    font: inherit;
    list-style: none;
    cursor: pointer;
}
.pakplan-video-speed-toggle::-webkit-details-marker { display: none; }
.pakplan-video-speed > .pakplan-video-speed-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 10;
    box-sizing: border-box;
    width: 112px;
    min-width: 112px;
    max-height: min(240px, 50dvh);
    overflow-y: auto;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    background: #252932;
    box-shadow: 0 4px 20px #0006;
    touch-action: pan-y;
}
.pakplan-video-speed:not([open]) > .pakplan-video-speed-menu { display: none; }
.pakplan-video-speed-menu > button {
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 40px !important;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font: 16px/1 system-ui, sans-serif;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}
.pakplan-video-speed-menu > button[aria-pressed="true"] { background: #3169b7; }
.pakplan-video-speed-toggle:focus-visible,
.pakplan-video-speed-menu > button:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: -2px;
}
.pakplan-video-player {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    background: #121418;
}
.pakplan-video-player > video {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}
.pakplan-video-controls {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    color: #fff;
    background: #17191e;
}
.pakplan-video-controls > button {
    flex: 0 0 32px;
    width: 32px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: inherit;
    background: #30343c;
    cursor: pointer;
}
.pakplan-video-controls > input { flex: 1 1 0; min-width: 24px; width: 100%; }
.pakplan-video-controls > output { flex: 0 0 auto; font: 12px system-ui, sans-serif; font-variant-numeric: tabular-nums; }
@media (max-width: 360px) {
    .pakplan-video-controls { gap: 4px; padding: 6px 4px; }
}
