:root {
    --luna-icon-arrow-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12H4m7-7-7 7 7 7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --luna-icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16m-7-7 7 7-7 7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --luna-icon-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19 19 5M5 5h14v14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --luna-icon-chevron-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m15 5-7 7 7 7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --luna-icon-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 5 7 7-7 7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --luna-icon-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 9 7 7 7-7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --luna-icon-check-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='%231687c7' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --luna-icon-check-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='%2315191d' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --luna-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --luna-icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    --luna-icon-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16M4 12h16M4 19h16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    --luna-icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-7-7v14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    --luna-icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    --luna-icon-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c1.3 6.3 4.7 9.7 11 11-6.3 1.3-9.7 4.7-11 11C10.7 16.7 7.3 13.3 1 12c6.3-1.3 9.7-4.7 11-11Z'/%3E%3C/svg%3E");
    --luna-icon-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4v16l13-8Z'/%3E%3C/svg%3E");
    --luna-icon-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 4h4v16H6zm8 0h4v16h-4z'/%3E%3C/svg%3E");
    --luna-icon-volume: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9zm13-1c3 2 3 6 0 8m2-11c5 4 5 10 0 14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --luna-icon-muted: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9zm13 0 6 6m0-6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --luna-icon-fullscreen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4H4v5m11-5h5v5M4 15v5h5m6 0h5v-5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --luna-icon-exit-fullscreen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h5V4m6 0v5h5M9 20v-5H4m11 5v-5h5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.luna-icon {
    display: inline-block;
    width: .95em;
    height: .95em;
    flex: 0 0 auto;
    pointer-events: none;
    vertical-align: -.12em;
    background-color: currentColor;
    -webkit-mask: var(--luna-icon-shape) center / contain no-repeat;
    mask: var(--luna-icon-shape) center / contain no-repeat;
}

.luna-icon--arrow-left { --luna-icon-shape: var(--luna-icon-arrow-left); }
.luna-icon--arrow-right { --luna-icon-shape: var(--luna-icon-arrow-right); }
.luna-icon--arrow-up-right { --luna-icon-shape: var(--luna-icon-arrow-up-right); }
.luna-icon--chevron-left { --luna-icon-shape: var(--luna-icon-chevron-left); }
.luna-icon--chevron-right { --luna-icon-shape: var(--luna-icon-chevron-right); }
.luna-icon--check { --luna-icon-shape: var(--luna-icon-check); }
.luna-icon--close { --luna-icon-shape: var(--luna-icon-close); }
.luna-icon--menu { --luna-icon-shape: var(--luna-icon-menu); }
.luna-icon--plus { --luna-icon-shape: var(--luna-icon-plus); }
.luna-icon--sparkle { --luna-icon-shape: var(--luna-icon-sparkle); }
.luna-icon--play { --luna-icon-shape: var(--luna-icon-play); }
.luna-icon--pause { --luna-icon-shape: var(--luna-icon-pause); }
.luna-icon--volume { --luna-icon-shape: var(--luna-icon-volume); }
.luna-icon--muted { --luna-icon-shape: var(--luna-icon-muted); }
.luna-icon--fullscreen { --luna-icon-shape: var(--luna-icon-fullscreen); }
.luna-icon--exit-fullscreen { --luna-icon-shape: var(--luna-icon-exit-fullscreen); }
.luna-sw .menu-button[aria-expanded="true"] .luna-icon--menu { --luna-icon-shape: var(--luna-icon-close); }

.luna-accordion summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.luna-accordion summary::-webkit-details-marker { display: none; }
.luna-accordion summary::after {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: var(--luna-icon-chevron-down) center / contain no-repeat;
    mask: var(--luna-icon-chevron-down) center / contain no-repeat;
}
.luna-accordion details[open] > summary::after { transform: rotate(180deg); }

@media (forced-colors: active) {
    .luna-icon { forced-color-adjust: none; background-color: CanvasText; }
}

input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.luna-video-player {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: inherit;
    overflow: hidden;
}

.luna-video-player > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.luna-video-player:fullscreen > video { object-fit: contain; }

.luna-video-controls {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    color: #fff;
    background: linear-gradient(transparent, #10131af2);
    transition: opacity .2s ease;
}

.luna-video-player.is-playing:not(:hover):not(:focus-within) .luna-video-controls { opacity: .45; }

.luna-video-controls button {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 21px;
    cursor: pointer;
}

.luna-video-controls button[hidden] { display: none; }
.luna-video-controls button:hover { color: #ffcd00; }
.luna-video-controls :focus-visible { outline: 2px solid #ffcd00; outline-offset: 1px; }

.luna-video-controls input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    background: linear-gradient(to right, #ffcd00 var(--luna-video-progress, 0%), #ffffff75 0) center / 100% 3px no-repeat;
    cursor: pointer;
}

.luna-video-controls input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border: 0; border-radius: 50%; background: #ffcd00; }
.luna-video-controls input::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #ffcd00; }
