.ero-stories-widget { position: fixed; z-index: 90; bottom: calc(20px + env(safe-area-inset-bottom, 0px) + var(--ero-stories-bottom-offset, 0px)); left: max(14px, env(safe-area-inset-left, 0px)); width: max-content; font-family: var(--body-font, 'Jost', sans-serif); }
.ero-stories-launcher { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #5e2533 !important; cursor: pointer; text-decoration: none !important; transition: transform .2s ease; -webkit-tap-highlight-color: transparent; }
.ero-stories-launcher:hover { transform: translateY(-2px); }
.ero-stories-launcher:focus-visible { outline: 3px solid #b5904a; outline-offset: 5px; }
.ero-stories-launcher-frame { position: relative; display: block; width: 74px; height: 74px; padding: 4px; border-radius: 50%; background: linear-gradient(145deg, #f0d9a2, #b5904a 55%, #5e2533); box-shadow: 0 4px 18px #251a1930; }
.ero-stories-launcher-frame::before { position: absolute; inset: 2px; border-radius: 50%; background: #fcfaf6; content: ''; }
.ero-stories-launcher-cover { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 24%; }
.ero-stories-launcher-play { position: absolute; right: 0; bottom: 1px; display: grid; width: 25px; height: 25px; place-items: center; border: 2px solid #fcfaf6; border-radius: 50%; background: #b5904a; color: #fff; box-shadow: 0 2px 5px #251a1926; }
.ero-stories-launcher-play svg { width: 14px; height: 14px; margin-left: 1px; fill: currentColor; }
.ero-stories-launcher-label { display: block; padding: 3px 9px; border: 1px solid #eadbc5; border-radius: 20px; background: #fcfaf6; color: #5e2533; font-size: 10px; font-weight: 500; line-height: 14px; letter-spacing: .015em; white-space: nowrap; box-shadow: 0 2px 8px #251a191a; }
.ero-stories-avatar { display: grid; flex: 0 0 38px; width: 38px; height: 38px; padding: 5px; place-items: center; border: 1px solid #b5904a; border-radius: 50%; background: #000; }
.ero-stories-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ero-stories-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: #100c0ae6; color: #fff; font-family: var(--body-font, 'Jost', sans-serif); overscroll-behavior: contain; }
.ero-stories-dialog[open] { display: grid; place-items: center; }
.ero-stories-dialog::backdrop { background: #100c0ae6; backdrop-filter: blur(12px); }
.ero-stories-stage { position: relative; width: 100%; height: 100%; overflow: hidden; background: #1b1512; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ero-stories-video { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.ero-stories-player-top { position: absolute; top: 0; right: 0; left: 0; padding: max(12px, env(safe-area-inset-top)) 14px 48px; background: linear-gradient(#000a, transparent); pointer-events: none; }
.ero-stories-progress { display: flex; gap: 4px; margin-bottom: 12px; }
.ero-stories-progress-segment { flex: 1; height: 2px; overflow: hidden; border-radius: 2px; background: #ffffff45; }
.ero-stories-progress-fill { display: block; width: 100%; height: 100%; background: #f0ddae; transform: scaleX(0); transform-origin: left; }
.ero-stories-player-header { display: flex; align-items: center; gap: 9px; }
.ero-stories-player-brand { display: grid; flex: 1; gap: 3px; min-width: 0; }
.ero-stories-player-brand strong { font-size: 12px; font-weight: 500; }
.ero-stories-player-brand > span { color: #eadccd; font-size: 9px; }
.ero-stories-control { display: grid; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; place-items: center; border: 0; border-radius: 50%; background: #00000030; color: #fff; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.ero-stories-control svg { width: 24px; height: 24px; }
.ero-stories-control:disabled { opacity: .35; cursor: default; }
.ero-stories-control:focus-visible, .ero-stories-resume:focus-visible, .ero-stories-error button:focus-visible { outline: 2px solid #ead6a4; outline-offset: 3px; }
.ero-stories-player-center { position: absolute; z-index: 2; top: 50%; right: 20px; left: 20px; display: grid; justify-items: center; transform: translateY(-50%); pointer-events: none; }
.ero-stories-resume { display: grid; gap: 10px; justify-items: center; padding: 14px 18px; border: 0; border-radius: 12px; background: #00000040; color: #fff; font: 400 12px var(--body-font, sans-serif); pointer-events: auto; cursor: pointer; backdrop-filter: blur(8px); }
.ero-stories-resume svg { width: 40px; height: 40px; fill: #fff; }
.ero-stories-loading { width: 32px; height: 32px; border: 2px solid #ffffff40; border-top-color: #ead6a4; border-radius: 50%; animation: ero-stories-spin .9s linear infinite; }
.ero-stories-error { padding: 24px 18px; border-radius: 12px; background: #1b1512e8; text-align: center; pointer-events: auto; }
.ero-stories-error p { margin: 0 0 14px; font-size: 13px; }
.ero-stories-error button { min-height: 44px; padding: 10px 18px; border: 1px solid #ddc490; border-radius: 6px; background: transparent; color: #f1dfb9; font: 400 12px var(--body-font, sans-serif); cursor: pointer; }
.ero-stories-player-bottom { position: absolute; right: 0; bottom: 0; left: 0; padding: 60px 24px max(18px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, #000b); pointer-events: none; }
.ero-stories-player-eyebrow { color: #e8d09f; font-size: 9px; letter-spacing: .2em; }
.ero-stories-player-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 9px 0 6px !important; color: #fff !important; font: 400 36px/1.05 var(--heading-font, Georgia, serif) !important; }
.ero-stories-player-description { margin: 0 0 14px; color: #efe1d3; font-size: 11px; }
.ero-stories-player-controls { display: flex; align-items: center; gap: 10px; }
.ero-stories-counter { margin-left: auto; color: #efe1d3; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.ero-stories-swipe-hint { display: block; margin-top: 13px; color: #d1c1b3; font-size: 9px; text-align: center; }
.ero-stories-widget [hidden], .ero-stories-dialog [hidden] { display: none !important; }
@keyframes ero-stories-spin { to { transform: rotate(360deg); } }
@media (max-height: 600px) {
    .ero-stories-player-bottom { padding-top: 35px; }
    .ero-stories-player-title { font-size: 30px !important; }
}
@media (min-width: 768px) {
    .ero-stories-launcher-frame { width: 78px; height: 78px; }
    .ero-stories-launcher-label { font-size: 11px; }
    .ero-stories-stage { width: min(460px, calc(88dvh * .5625)); height: 88%; height: 88dvh; max-height: 820px; border: 1px solid #fff2; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .ero-stories-launcher { transition: none; }
    .ero-stories-loading { animation-duration: 2s; }
}
