.hosh-player{width:100%;max-width:var(--hosh-width,1100px);margin:16px auto;padding:8px;box-sizing:border-box;border:1px solid var(--hosh-border-color,#aabb35);border-radius:var(--hosh-radius,14px);background:var(--hosh-background,#e1f55a);background:color-mix(in srgb,var(--hosh-background,#e1f55a) 45%,transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 12px 35px #0002;color:var(--hosh-text-color,#354000);font-family:inherit}
.hosh-player *{box-sizing:border-box}
.hosh-stage{position:relative;aspect-ratio:var(--hosh-aspect,16/9);background:#000;overflow:hidden;border-radius:max(0px,calc(var(--hosh-radius,14px) - 6px))}
.hosh-stage canvas{width:100%;height:100%;display:block;user-select:none;-webkit-user-select:none}
.hosh-stage .hosh-media{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;inset:0}
.hosh-message{position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:24px;background:#000;color:#fff;font-size:14px;line-height:2;z-index:3}
.hosh-player [hidden]{display:none!important}
.hosh-buffer{position:absolute;top:12px;right:12px;background:#000b;color:#fff;padding:6px 12px;border-radius:6px;pointer-events:none;z-index:2;font-size:13px}
.hosh-caption-text{position:absolute;bottom:6%;left:5%;right:5%;width:fit-content;max-width:90%;margin:auto;padding:4px 10px;border-radius:4px;white-space:pre-line;text-align:center;background:#000c;color:#fff;line-height:1.7;font-size:clamp(13px,2vw,23px);pointer-events:none;unicode-bidi:plaintext;z-index:1}
.hosh-player .hosh-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px;margin-top:8px;border-radius:10px;border-top:1px solid var(--hosh-border-color,#aabb35);background:var(--hosh-controls-background,#e1f55a);background:color-mix(in srgb,var(--hosh-controls-background,#e1f55a) 45%,transparent);color:var(--hosh-text-color,#354000)}
.hosh-player button,.hosh-player select{font-family:inherit;font-size:var(--hosh-button-font,13px);font-weight:normal;line-height:1.2;letter-spacing:normal;text-transform:none;border:1px solid var(--hosh-border-color,#aabb35);border-radius:8px;background:var(--hosh-button-background,#f5ffc3);background:color-mix(in srgb,var(--hosh-button-background,#f5ffc3) 75%,transparent);color:var(--hosh-text-color,#354000);height:var(--hosh-button-size,38px);min-height:var(--hosh-button-size,38px);min-width:var(--hosh-button-size,38px);width:auto;max-width:100%;padding:0 8px;box-shadow:none;white-space:nowrap;cursor:pointer}
.hosh-player button:hover,.hosh-player select:hover{box-shadow:0 3px 12px #0002}
.hosh-player :focus-visible{outline:3px solid var(--hosh-accent,#829900);outline-offset:2px}
.hosh-player input[type=range]{accent-color:var(--hosh-accent,#829900);min-height:24px;height:24px;margin:0;padding:0;border:0;cursor:pointer;direction:ltr}
.hosh-player .hosh-seek{flex:1;min-width:80px;width:0}
.hosh-player .hosh-volume{width:65px}
.hosh-player .hosh-time{font:12px monospace;direction:ltr;white-space:nowrap;color:var(--hosh-text-color,#354000)}
.hosh-player .hosh-subtitles{max-width:160px}
.hosh-resume{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px;font-size:13px;line-height:1.8}
.hosh-chapters{display:flex;flex-wrap:wrap;gap:6px;padding:8px;max-height:180px;overflow:auto}
.hosh-chapters button{white-space:normal;height:auto;min-height:var(--hosh-button-size,38px);padding:6px 10px;line-height:1.5}
.hosh-chapters button[aria-current=true]{outline:2px solid var(--hosh-accent,#829900);outline-offset:-2px}
.hosh-player:fullscreen{width:100vw;max-width:none;height:100vh;height:100dvh;margin:0;border-radius:0;display:flex;flex-direction:column;justify-content:center;background:var(--hosh-background,#e1f55a)}
.hosh-player:fullscreen .hosh-stage,.hosh-expanded .hosh-stage{flex:1;min-height:0;aspect-ratio:auto}
.hosh-expanded{position:fixed!important;inset:0!important;z-index:2147483647!important;margin:0!important;max-width:none!important;border-radius:0!important;display:flex;flex-direction:column;justify-content:center;height:100vh;height:100dvh;background:var(--hosh-background,#e1f55a)}
.hosh-caption{text-align:center;font-size:14px;margin:8px 0}
@media(max-width:600px),(max-height:500px) and (pointer:coarse){
.hosh-player .hosh-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 6px;padding:6px}
.hosh-player button,.hosh-player select{height:var(--hosh-mobile-button-size,34px);min-height:var(--hosh-mobile-button-size,34px);min-width:0;font-size:var(--hosh-mobile-button-font,12px);padding:0 4px;border-radius:6px}
.hosh-controls button,.hosh-controls select{width:100%}
.hosh-player .hosh-seek{grid-row:1;grid-column:1/4;width:100%;min-width:0}
.hosh-player .hosh-time{grid-row:1;grid-column:4;font-size:10px;text-align:center;margin:0}
.hosh-player .hosh-volume{display:none}
.hosh-player .hosh-subtitles{max-width:100%;grid-column:span 2}
.hosh-chapters button{height:auto;padding:6px}
.hosh-player:fullscreen .hosh-chapters,.hosh-expanded .hosh-chapters{max-height:70px}
}
@media(prefers-reduced-motion:reduce){.hosh-player *{scroll-behavior:auto}}
@media print{.hosh-player{display:none!important}}
