.epic-creating { display: flex; align-items: center; gap: 8px; color: var(--epic-muted, #5d6d86); font-size: 14px; }
.epic-creating-orbit { width: 64px; height: 64px; flex: 0 0 64px; animation: epic-creating-turn 32s linear infinite; }
.epic-creating-orbit svg { display: block; width: 100%; height: 100%; }
.epic-creating-orbit rect:nth-child(9n + 1) { fill: #579ef4; }
.epic-creating-orbit rect:nth-child(9n + 2) { fill: #ad92e8; }
.epic-creating-orbit rect:nth-child(9n + 3) { fill: #76c6dd; }
.epic-creating-orbit rect:nth-child(9n + 4) { fill: #82b0f6; }
.epic-creating-orbit rect:nth-child(9n + 5) { fill: #899de6; }
.epic-creating-orbit rect:nth-child(9n + 6) { fill: #5bb7d4; }
.epic-creating-orbit rect:nth-child(9n + 7) { fill: #b69fef; }
.epic-creating-orbit rect:nth-child(9n + 8) { fill: #699fdd; }
.epic-creating-orbit rect:nth-child(9n) { fill: #8fbafa; }
.epic-creating.is-paused .epic-creating-orbit { animation-play-state: paused; }
@keyframes epic-creating-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .epic-creating-orbit { animation: none; } }

.epic-media { max-width: 1540px; margin: 0 auto; }
.epic-media-filebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.epic-media-filebar { padding: 14px 2px 24px; font-size: 13px; }
.epic-media-filename { color: var(--epic-muted); overflow-wrap: anywhere; min-width: 0; }

.epic-media :is(button, input, textarea, label):focus, .epic-media :is(button, input, textarea, label):focus-visible { outline: none; box-shadow: none; }
.epic-media .epic-input, .epic-media .epic-input:focus { border-color: #d5e0eb; }
.epic-media button:disabled { cursor: default; opacity: .45; }

@media (max-width: 600px) { .epic-media-filebar { gap: 10px; } }

.epic-media-result video:not(.epic-media-player video) { width: 100%; max-height: 65dvh; background: #101621; border-radius: 14px; }
.epic-media-result audio { width: 100%; }
.epic-media-description { white-space: pre-wrap; line-height: 1.9; margin-top: 24px; overflow-wrap: anywhere; }

.epic-media-player { overflow: hidden; border: 1px solid #d5e0eb; border-radius: 16px; background: #f8fbff; color: var(--epic-ink, #172b49); }
.epic-media-player video { display: block; width: min(100%, 110svh); height: auto; margin-inline: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #101621; border-radius: 0; cursor: pointer; }
.epic-media-player audio { display: none; }
.epic-media-player-controls { padding: 18px 22px; }
.epic-media-player-seek { display: grid; gap: 0; }
.epic-media-player input[type="range"] { display: block; appearance: none; height: 44px; width: 100%; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; box-shadow: none; touch-action: none; --player-progress: 100%; }
.epic-media-player input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 8px; background: linear-gradient(to right, #3488e5 var(--player-progress), #dbe5f0 var(--player-progress)); }
.epic-media-player input[type="range"]::-moz-range-track { height: 6px; border-radius: 8px; background: linear-gradient(to right, #3488e5 var(--player-progress), #dbe5f0 var(--player-progress)); }
.epic-media-player input[type="range"]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 2px solid #fff; border-radius: 50%; background: #3488e5; box-shadow: 0 1px 5px #244b7633; transition: transform 120ms ease; }
.epic-media-player input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: #3488e5; transition: transform 120ms ease; }
.epic-media-player input[type="range"]:is(:active, .is-scrubbing)::-webkit-slider-thumb { transform: scale(1.4); }
.epic-media-player input[type="range"]:is(:active, .is-scrubbing)::-moz-range-thumb { transform: scale(1.4); }
@media (hover: hover) and (pointer: fine) {
  .epic-media-player input[type="range"]:enabled:hover::-webkit-slider-thumb { transform: scale(1.4); }
  .epic-media-player input[type="range"]:enabled:hover::-moz-range-thumb { transform: scale(1.4); }
}
@media (prefers-reduced-motion: reduce) {
  .epic-media-player input[type="range"]::-webkit-slider-thumb { transition: none; }
  .epic-media-player input[type="range"]::-moz-range-thumb { transition: none; }
}
.epic-media-player-time { display: flex; gap: 6px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--epic-muted, #65758a); }
.epic-media-player-toolbar, .epic-media-player-transport, .epic-media-player-options, .epic-media-player-volume { display: flex; align-items: center; gap: 8px; }
.epic-media-player-toolbar { justify-content: space-between; gap: 16px; margin-top: 10px; }
.epic-media-player-button { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--epic-ink, #172b49); cursor: pointer; }
.epic-media-player-button:hover { background: #e5effa; }
.epic-media-player-button .epic-icon { display: block; width: 21px; height: 21px; }
.epic-media-player-toggle { width: 48px; height: 48px; border: 1px solid #c9def6; border-radius: 50%; background: #e9f3ff; color: #2676cb; }
.epic-media-player-toggle .epic-icon { width: 24px; height: 24px; }
.epic-media-player-toggle [data-epic-player-target="playIcon"] .epic-icon { fill: currentColor; stroke: none; }
.epic-media-player-skip { position: absolute; inset: 0; display: grid; place-items: center; font-size: 8px; font-weight: 650; line-height: 1; }
.epic-media-player-volume { gap: 2px; }
.epic-media-player-volume input[type="range"] { width: 72px; }
.epic-media-player-speed { height: 44px; width: 68px; min-width: 0; padding: 0 20px 0 8px; border: 1px solid #d5e0eb; border-radius: 8px; background-color: transparent; font-size: 12px; cursor: pointer; }
.epic-media-player :is(button, input, select):focus, .epic-media-player :is(button, input, select):focus-visible { outline: none; box-shadow: none; border-color: #d5e0eb; }
.epic-media-player-toggle:focus, .epic-media-player-toggle:focus-visible { border-color: #c9def6; }
.epic-media-player [hidden] { display: none !important; }
.epic-media-player :disabled { opacity: .45; cursor: default; }
.epic-media-player-status { font-size: 12px; margin: 12px 0 0; color: var(--epic-muted, #65758a); }
.epic-media-player-audio-mark { display: grid; place-items: center; padding: 26px 0 0; color: #3488e5; }
.epic-media-player-audio-mark .epic-icon { width: 30px; height: 30px; }
.epic-media-player:fullscreen { display: flex; flex-direction: column; justify-content: center; border: 0; border-radius: 0; background: #101621; }
.epic-media-player:fullscreen video { flex: 1; min-height: 0; width: 100%; aspect-ratio: auto; }
.epic-media-player:fullscreen .epic-media-player-controls { flex-shrink: 0; background: #f8fbff; }
@media (max-width: 600px) {
  .epic-media-player-controls { padding: 14px; }
  .epic-media-player-toolbar { display: grid; justify-content: stretch; gap: 8px; }
  .epic-media-player-options, .epic-media-player-transport { justify-content: center; }
  .epic-media-player-options { gap: 4px; }
  .epic-media-player-volume { flex: 1; min-width: 90px; }
  .epic-media-player-speed { flex-shrink: 0; }
  .epic-media-player-volume input[type="range"] { width: 100%; min-width: 44px; }
}

.epic-media-player { container-type: inline-size; }
.epic-media-player .epic-media-player-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.epic-media-player .epic-media-player-transport { grid-column: 2; }
.epic-media-player .epic-media-player-options { grid-column: 3; justify-self: end; }
@container (max-width: 760px) {
  .epic-media-player .epic-media-player-toolbar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .epic-media-player .epic-media-player-transport { grid-column: auto; justify-content: center; }
  .epic-media-player .epic-media-player-options { grid-column: auto; justify-self: stretch; justify-content: center; gap: 4px; }
  .epic-media-player .epic-media-player-volume { flex: 1; min-width: 90px; }
  .epic-media-player .epic-media-player-volume input[type="range"] { width: 100%; min-width: 44px; }
  .epic-media-player .epic-media-player-speed { flex-shrink: 0; }
}

/* Audio has no fullscreen button, so the three groups fit sooner. */
@container (640px < width <= 760px) {
  .epic-media-player--audio .epic-media-player-toolbar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .epic-media-player--audio .epic-media-player-transport { grid-column: 2; }
  .epic-media-player--audio .epic-media-player-options { grid-column: 3; justify-self: end; gap: 8px; }
  .epic-media-player--audio .epic-media-player-volume input[type="range"] { width: 72px; }
}

.epic-media [hidden] { display: none !important; }

.epic-media-edit .epic-media-filename { overflow-wrap: anywhere; }
