:root{font:13px Inter,system-ui,sans-serif;color:#fff;background:#030408;color-scheme:dark}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}.anx-player{position:relative;width:100%;height:100%;min-height:260px;overflow:hidden;background:radial-gradient(circle at 50% 38%,#171a26,#030408 67%);outline:none;user-select:none}.anx-player:focus-visible{box-shadow:inset 0 0 0 2px var(--player-accent)}video{display:block;width:100%;height:100%;background:#000;object-fit:contain}.video-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#03040ab0 0,transparent 26%,transparent 58%,#03040af0 100%);transition:.3s}.topbar{position:absolute;z-index:3;inset:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 20px;transition:.3s}.anx-brand{display:flex;align-items:center;gap:10px;text-shadow:0 2px 12px #000}.anx-brand img{width:37px;height:37px;border-radius:11px;box-shadow:0 7px 22px #594ef766}.anx-brand b,.anx-brand small{display:block}.anx-brand b{font-size:12px;letter-spacing:.13em}.anx-brand small{margin-top:2px;color:#8c94aa;font-size:7px;letter-spacing:.17em}.stream-selectors{display:flex;gap:7px}.stream-selectors label{display:grid;gap:4px}.stream-selectors label span{padding-left:7px;color:#8c94a9;font-size:7px;text-transform:uppercase;letter-spacing:.11em}.stream-selectors select{max-width:180px;height:34px;padding:0 28px 0 10px;border:1px solid #ffffff1c;border-radius:9px;background:#10131be8;color:#edf0f8;backdrop-filter:blur(16px);outline:none;font:600 10px inherit;cursor:pointer}.stream-selectors select:focus{border-color:var(--player-accent)}button{font:inherit}.center-play{position:absolute;z-index:4;top:50%;left:50%;display:grid;width:70px;height:70px;padding:0;place-items:center;border:1px solid #ffffff2c;border-radius:50%;background:#10131bd9;box-shadow:0 15px 50px #0008,0 0 0 8px #ffffff09;backdrop-filter:blur(15px);transform:translate(-50%,-50%);cursor:pointer;transition:.2s}.center-play:hover{border-color:var(--player-accent);transform:translate(-50%,-50%) scale(1.06)}.center-play svg{width:28px;height:28px;margin-left:3px;fill:#fff}.is-playing .center-play,.resume-visible .center-play{opacity:0;pointer-events:none;transform:translate(-50%,-50%) scale(.8)}.resume-card{position:absolute;z-index:7;top:50%;left:50%;display:none;width:min(430px,calc(100% - 32px));padding:25px;border:1px solid #ffffff20;border-radius:18px;background:#10131bec;box-shadow:0 25px 80px #000a;backdrop-filter:blur(24px);transform:translate(-50%,-50%)}.resume-card.show{display:block}.resume-eyebrow{color:#9188ff;font-size:8px;font-weight:800;letter-spacing:.14em}.resume-card h2{margin:10px 0 6px;font-size:20px}.resume-card p{margin:0;color:#929bad;font-size:12px}.resume-card>div{display:flex;gap:8px;margin-top:20px}.resume-card button{min-height:38px;padding:0 15px;border:1px solid #34394a;border-radius:9px;background:#202431;color:#aeb6c7;font-weight:700;cursor:pointer}.resume-card button:first-child{border-color:var(--player-accent);background:var(--player-accent);color:#fff}.bottom-controls{position:absolute;z-index:5;right:0;bottom:0;left:0;padding:0 18px 14px;transition:.3s}.timeline{height:20px;display:flex;align-items:center}.timeline input{width:100%;height:20px;margin:0;appearance:none;background:transparent;cursor:pointer}.timeline input::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(to right,var(--player-accent) 0,var(--player-accent) var(--played,0%),#ffffff54 var(--played,0%),#ffffff54 var(--buffered,0%),#ffffff24 var(--buffered,0%),#ffffff24 100%)}.timeline input::-webkit-slider-thumb{width:14px;height:14px;margin-top:-5px;appearance:none;border:2px solid #fff;border-radius:50%;background:var(--player-accent);box-shadow:0 0 14px var(--player-accent)}.timeline input::-moz-range-track{height:4px;border-radius:4px;background:#ffffff24}.timeline input::-moz-range-progress{height:4px;background:var(--player-accent)}.timeline input::-moz-range-thumb{width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:var(--player-accent)}.control-row{height:38px;display:flex;align-items:center;gap:8px}.icon-btn{display:grid;flex:0 0 34px;width:34px;height:34px;padding:0;place-items:center;border:0;border-radius:9px;background:transparent;color:#fff;cursor:pointer;transition:.16s}.icon-btn:hover{background:#ffffff13}.icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-btn .play-svg,.icon-btn .pause-svg{fill:currentColor;stroke:none}.pause-svg,.muted-svg,.exit-full,.is-playing .play-svg,.is-muted .sound-svg,.is-fullscreen .enter-full{display:none}.is-playing .pause-svg,.is-muted .muted-svg,.is-fullscreen .exit-full{display:block}.volume{display:flex;align-items:center}.volume input{width:72px;height:3px;accent-color:var(--player-accent);cursor:pointer}.time{display:flex;gap:5px;color:#dfe3ed;font-size:10px;font-variant-numeric:tabular-nums}.time i{color:#646d82;font-style:normal}.title-line{min-width:0;flex:1;overflow:hidden;color:#929bad;font-size:10px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.loader{position:absolute;z-index:8;top:50%;left:50%;display:none;transform:translate(-50%,-50%)}.loader.show{display:block}.loader i{display:block;width:42px;height:42px;border:3px solid #ffffff24;border-top-color:var(--player-accent);border-radius:50%;animation:spin .75s linear infinite}.message{position:absolute;z-index:8;top:50%;left:50%;display:none;max-width:80%;padding:12px 16px;border:1px solid #71394a;border-radius:10px;background:#2d1721e8;color:#ffb0bf;text-align:center;transform:translate(-50%,-50%);backdrop-filter:blur(15px)}.message.show{display:block}.controls-hidden{cursor:none}.controls-hidden .topbar,.controls-hidden .bottom-controls{opacity:0;transform:translateY(10px)}.controls-hidden .topbar{transform:translateY(-10px)}.controls-hidden .video-shade{opacity:0}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:720px){.topbar{padding:10px}.anx-brand div{display:none}.anx-brand img{width:32px;height:32px}.stream-selectors{min-width:0;flex:1;justify-content:flex-end}.stream-selectors label span{display:none}.stream-selectors select{max-width:112px;height:32px;padding:0 7px;font-size:9px}.bottom-controls{padding:0 8px 8px}.title-line,.volume input,.time i,.time #duration{display:none}.center-play{width:58px;height:58px}.control-row{gap:2px}.resume-card{padding:20px}.resume-card h2{font-size:17px}}
@media(max-width:460px){.anx-brand{display:none}.stream-selectors{width:100%}.stream-selectors label{min-width:0;flex:1}.stream-selectors select{width:100%;max-width:none}.time{font-size:9px}.icon-btn{flex-basis:31px;width:31px}.resume-card>div{flex-direction:column}.resume-card button{width:100%}}
.anx-brand{text-decoration:none;color:#fff}.next-episode{position:absolute;z-index:7;right:20px;bottom:76px;display:none;min-width:196px;min-height:52px;align-items:center;justify-content:space-between;gap:14px;padding:8px 9px 8px 15px;border:1px solid #a19aff;border-radius:14px;background:linear-gradient(135deg,var(--player-accent),#5549d7);color:#fff;font:700 12px/1 Inter,system-ui,sans-serif;letter-spacing:.01em;box-shadow:0 14px 40px #0009,0 0 0 4px #7168ef1a;cursor:pointer;animation:next-in .2s ease-out}.next-episode.show{display:flex}.next-episode:hover{filter:brightness(1.1);transform:translateY(-1px)}.next-copy{display:flex;align-items:flex-start;flex-direction:column;gap:4px;text-align:left}.next-copy small{color:#d9d6ff;font-size:7px;font-weight:800;letter-spacing:.14em}.next-copy b{font-size:12px}.next-arrow{display:grid;flex:0 0 32px;width:32px;height:32px;place-items:center;border-radius:9px;background:#ffffff18;font-size:19px}@keyframes next-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(max-width:600px){.next-episode{right:10px;bottom:64px;min-width:174px;min-height:46px;padding:6px 7px 6px 12px}.next-arrow{flex-basis:29px;width:29px;height:29px}}
.next-episode{width:auto}
.episode-nav{display:flex;flex:0 0 auto;align-items:center;gap:2px;margin-left:1px;padding-left:4px;border-left:1px solid #ffffff1c}.episode-step{position:relative}.episode-step svg{width:19px!important;height:19px!important;fill:currentColor!important;stroke:none!important}.episode-step:hover:not(:disabled){background:#ffffff17;color:#fff}.episode-step:disabled{cursor:not-allowed;opacity:.28}.episode-step:disabled:hover{background:transparent}@media(max-width:460px){.episode-nav{gap:0;margin-left:0;padding-left:2px}.episode-step{flex-basis:29px!important;width:29px!important}}
.loader.show{display:flex;min-width:138px;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:16px 18px;border:1px solid #ffffff1c;border-radius:16px;background:#0c0f18d9;box-shadow:0 18px 55px #0009;backdrop-filter:blur(14px)}.loader span{color:#d9ddea;font-size:10px;font-weight:700;letter-spacing:.03em}.loader.show i{width:36px;height:36px}
.resume-card{width:min(470px,calc(100% - 28px));padding:24px;border-color:#ffffff24;border-radius:22px;background:linear-gradient(145deg,#161a26f5,#0b0e16f2);box-shadow:0 28px 90px #000c,0 0 0 1px #ffffff08;backdrop-filter:blur(28px)}.resume-card.show{animation:resume-in .22s ease-out}.resume-heading{display:flex!important;align-items:center;gap:13px!important;margin:0!important}.resume-heading>div{min-width:0}.resume-symbol{display:grid;flex:0 0 46px;width:46px;height:46px;place-items:center;border:1px solid #ffffff1f;border-radius:14px;background:linear-gradient(135deg,var(--player-accent),#5045ce);box-shadow:0 10px 28px #6258e84d}.resume-symbol svg{width:22px;height:22px;fill:#fff}.resume-card .resume-eyebrow{display:block;color:#aaa4ff;font-size:8px;font-weight:800;letter-spacing:.14em}.resume-card h2{margin:4px 0 0;font-size:21px;line-height:1.15}.resume-episode{display:block;margin-top:18px;color:#f5f6fb;font-size:13px;line-height:1.45}.resume-card p{margin:6px 0 0;color:#969fb2;font-size:11px}.resume-progress{display:block!important;height:6px;margin:16px 0 0!important;overflow:hidden;border-radius:999px;background:#ffffff14}.resume-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--player-accent),#a19bff);box-shadow:0 0 16px var(--player-accent);transition:width .3s ease}.resume-actions{display:grid!important;grid-template-columns:1.35fr 1fr;gap:9px!important;margin-top:18px!important}.resume-actions button{display:flex;min-height:43px;align-items:center;justify-content:center;gap:8px;padding:0 15px;border-color:#ffffff18;border-radius:11px;background:#ffffff0b;color:#d8dce6;transition:.16s}.resume-actions button:first-child{border-color:transparent;background:linear-gradient(135deg,var(--player-accent),#5549da);box-shadow:0 10px 24px #6258e840;color:#fff}.resume-actions button:hover{border-color:#ffffff2c;background:#ffffff13;transform:translateY(-1px)}.resume-actions button:first-child:hover{border-color:transparent;background:linear-gradient(135deg,#8077f5,#6559e8)}.resume-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.resume-actions button:first-child svg{fill:currentColor;stroke:none}@keyframes resume-in{from{opacity:0;transform:translate(-50%,-46%) scale(.97)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@media(max-width:460px){.resume-card{padding:18px;border-radius:18px}.resume-heading{gap:11px!important}.resume-symbol{flex-basis:40px;width:40px;height:40px;border-radius:12px}.resume-card h2{font-size:18px}.resume-episode{margin-top:15px}.resume-actions{grid-template-columns:1fr!important}.resume-card .resume-actions button{width:100%}}
.is-movie .serial-only,.is-movie .episode-nav,.is-movie .next-episode{display:none!important}.is-movie .stream-selectors{justify-content:flex-end}.is-movie .stream-selectors label{flex:0 1 auto}@media(max-width:460px){.is-movie .anx-brand{display:flex}.is-movie .stream-selectors{width:auto}.is-movie .stream-selectors label{min-width:92px}}
.ad-layer{position:absolute;z-index:30;inset:0;display:none;overflow:hidden;background:#000}.ad-layer.show{display:block}.ad-stage{position:absolute;z-index:1;inset:0;width:100%;height:100%;background:#000}.ad-video{position:absolute!important;z-index:1;inset:0;display:block!important;width:100%!important;height:100%!important;opacity:1!important;visibility:visible!important;background:#000;object-fit:contain!important}.ad-script{position:absolute;inset:0;width:100%;height:100%;overflow:auto}.ad-click{position:absolute;z-index:2;inset:0;cursor:pointer}.ad-top{position:absolute;z-index:5;top:14px;left:14px;display:flex;align-items:center;gap:8px}.ad-label,.ad-time,.ad-info{padding:6px 8px;border:1px solid #ffffff1c;border-radius:7px;background:#000b;color:#fff;font-size:8px;font-weight:800;letter-spacing:.06em;backdrop-filter:blur(10px)}.ad-time{color:#d4d8e4}.ad-info{text-decoration:none;cursor:pointer}.ad-info:hover{background:#262a36}.ad-skip{position:absolute;z-index:6;right:14px;bottom:18px;width:auto;min-width:150px;min-height:40px;padding:0 14px;border:1px solid #ffffff35;border-radius:9px;background:#10131be8;color:#fff;font:700 10px Inter,sans-serif;cursor:pointer;backdrop-filter:blur(12px)}.ad-skip:disabled{cursor:not-allowed;opacity:.7}.ad-playing>.topbar,.ad-playing>.bottom-controls,.ad-playing>.center-play,.ad-playing>.loader{visibility:hidden!important}.video-unavailable .ad-stage:after{content:'Видео использует неподдерживаемый кодек. Загрузите MP4 H.264/AAC или WebM.';position:absolute;z-index:3;top:50%;left:50%;width:min(420px,80%);color:#fff;text-align:center;transform:translate(-50%,-50%)}@media(max-width:600px){.ad-top{top:9px;left:9px;flex-wrap:wrap;gap:5px}.ad-info{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ad-skip{right:9px;bottom:10px}}
/* Player UI 2026.07.20 — unified selectors and control polish */
.topbar{padding:16px 18px;background:linear-gradient(180deg,#05060bcc,transparent);pointer-events:none}.topbar>*{pointer-events:auto}.stream-selectors{align-items:flex-start;gap:8px}.stream-selectors label{position:relative;gap:5px;min-width:0}.stream-selectors label>span{padding-left:5px;color:#a0a8bb;font-size:7px;font-weight:750;letter-spacing:.13em}.anx-native-select{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}.anx-select{position:relative;min-width:96px}.anx-select-season{width:108px}.anx-select-episode{width:min(230px,24vw)}.anx-select-voice{width:min(165px,18vw)}.anx-select-quality{width:100px}.anx-select-trigger{display:flex;width:100%;height:38px;align-items:center;justify-content:space-between;gap:8px;padding:0 10px 0 12px;border:1px solid #ffffff20;border-radius:11px;background:linear-gradient(145deg,#171b26e8,#0d1018e8);box-shadow:0 8px 24px #0004,inset 0 1px #ffffff08;color:#eef1f8;font:650 10px Inter,system-ui,sans-serif;cursor:pointer;backdrop-filter:blur(18px);transition:border-color .16s,background .16s,box-shadow .16s}.anx-select-trigger:hover{border-color:#ffffff34;background:#1b1f2be8}.anx-select-trigger:focus-visible,.anx-select.open .anx-select-trigger{border-color:color-mix(in srgb,var(--player-accent) 78%,white 12%);box-shadow:0 0 0 3px color-mix(in srgb,var(--player-accent) 22%,transparent),0 10px 28px #0005;outline:none}.anx-select-trigger:disabled{cursor:not-allowed;opacity:.45}.anx-select-value{min-width:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.anx-select-trigger>svg{flex:0 0 16px;width:16px;height:16px;fill:none;stroke:#9da6bb;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}.anx-select.open .anx-select-trigger>svg{transform:rotate(180deg)}.anx-select-menu{position:absolute;z-index:25;top:calc(100% + 7px);right:0;display:none;width:max(100%,180px);max-width:min(330px,calc(100vw - 20px));max-height:min(280px,55vh);padding:6px;overflow:auto;overscroll-behavior:contain;border:1px solid #ffffff24;border-radius:13px;background:linear-gradient(155deg,#181c27f8,#0b0e16fa);box-shadow:0 20px 55px #000c,0 0 0 1px #0005;scrollbar-width:thin;scrollbar-color:#57516f transparent;backdrop-filter:blur(24px)}.anx-select.open .anx-select-menu{display:grid;gap:3px;animation:selector-in .14s ease-out}.anx-select-option{display:flex;width:100%;min-height:36px;align-items:center;justify-content:space-between;gap:9px;padding:8px 9px;border:0;border-radius:8px;background:transparent;color:#aeb6c8;font:600 10px/1.35 Inter,system-ui,sans-serif;text-align:left;cursor:pointer}.anx-select-option span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.anx-select-option:hover,.anx-select-option:focus-visible{background:#ffffff0d;color:#fff;outline:none}.anx-select-option.selected{background:color-mix(in srgb,var(--player-accent) 22%,#151824);color:#fff}.anx-select-option:disabled{cursor:not-allowed;opacity:.35}.anx-select-option svg{flex:0 0 16px;width:16px;height:16px;fill:none;stroke:#aaa4ff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}@keyframes selector-in{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:none}}
.bottom-controls{padding:0 16px 13px;background:linear-gradient(180deg,transparent,#030409d9)}.timeline{height:24px}.timeline input::-webkit-slider-runnable-track{height:5px}.timeline input::-webkit-slider-thumb{width:15px;height:15px}.timeline:hover input::-webkit-slider-thumb{transform:scale(1.08)}.control-row{height:40px}.icon-btn{border-radius:10px}.icon-btn:focus-visible{background:#ffffff14;box-shadow:inset 0 0 0 1px #ffffff28,0 0 0 2px color-mix(in srgb,var(--player-accent) 28%,transparent);outline:none}.time{font-weight:600}.title-line{font-size:10px}.center-play:focus-visible,.next-episode:focus-visible,.resume-actions button:focus-visible,.ad-skip:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:820px){.topbar{padding:10px 10px 12px}.stream-selectors{min-width:0;overflow-x:auto;justify-content:flex-start;padding:0 1px 5px;scrollbar-width:none}.stream-selectors::-webkit-scrollbar{display:none}.stream-selectors label{flex:0 0 auto}.stream-selectors label>span{display:none}.anx-select-season{width:90px}.anx-select-episode{width:165px}.anx-select-voice{width:126px}.anx-select-quality{width:84px}.anx-select-trigger{height:34px;padding:0 8px 0 10px;font-size:9px}.anx-select-menu{position:fixed;top:54px;right:10px;left:auto;width:min(310px,calc(100vw - 20px));max-height:min(300px,55vh)}.bottom-controls{padding:0 9px 8px}}
@media(max-width:520px){.anx-brand{display:none}.stream-selectors{width:100%}.anx-select-menu{top:48px}.volume input,.title-line{display:none}.next-episode{bottom:61px}.control-row{gap:1px}.time{margin-right:auto}}
.anx-player:has(.anx-select.open){cursor:default}.anx-player:has(.anx-select.open) .topbar{opacity:1!important;transform:none!important}
.anx-select-search{position:sticky;z-index:2;top:0;width:100%;height:36px;margin:0 0 4px;padding:0 10px;border:1px solid #ffffff20;border-radius:8px;background:#090c13;color:#fff;font:600 10px Inter,system-ui,sans-serif;outline:none}.anx-select-search::placeholder{color:#737c91}.anx-select-search:focus{border-color:var(--player-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--player-accent) 20%,transparent)}.anx-select-option[hidden]{display:none!important}
/* Compact unified player chrome 2026.07.20 */
.stream-selectors{gap:5px;padding:5px;border:1px solid #ffffff18;border-radius:12px;background:linear-gradient(145deg,#151923d9,#090c13d9);box-shadow:0 10px 30px #0005,inset 0 1px #ffffff08;backdrop-filter:blur(20px)}.stream-selectors label{gap:0}.stream-selectors label>span{display:none}.anx-select{min-width:0}.anx-select-season{width:82px}.anx-select-episode{width:min(168px,20vw)}.anx-select-voice{width:min(126px,15vw)}.anx-select-quality{width:82px}.anx-select-trigger{height:32px;padding:0 7px 0 9px;border-color:transparent;border-radius:8px;background:#ffffff08;box-shadow:none;font-size:9px}.anx-select-trigger:hover{border-color:#ffffff20;background:#ffffff10}.anx-select-trigger:focus-visible,.anx-select.open .anx-select-trigger{background:#ffffff0d}.anx-select-trigger>svg{width:14px;height:14px;flex-basis:14px}.anx-select-menu{top:calc(100% + 10px)}
.bottom-controls{right:12px;bottom:12px;left:12px;padding:7px 9px 6px;border:1px solid #ffffff18;border-radius:13px;background:linear-gradient(145deg,#151923e8,#090c13e8);box-shadow:0 14px 38px #0008,inset 0 1px #ffffff08;backdrop-filter:blur(22px)}.timeline{height:13px;padding:0 3px}.timeline input{height:13px}.timeline input::-webkit-slider-runnable-track{height:3px}.timeline input::-webkit-slider-thumb{width:12px;height:12px;margin-top:-4.5px}.timeline input::-moz-range-track,.timeline input::-moz-range-progress{height:3px}.control-row{height:35px;gap:4px}.icon-btn{width:31px;height:31px;flex-basis:31px;border-radius:8px}.icon-btn svg{width:18px;height:18px}.icon-btn:hover{background:#ffffff0d}.volume input{width:62px}.time{font-size:9px}.title-line{font-size:9px;color:#a7afc0}.next-episode{bottom:76px}
@media(max-width:820px){.stream-selectors{gap:3px;padding:4px}.anx-select-season{width:72px}.anx-select-episode{width:132px}.anx-select-voice{width:105px}.anx-select-quality{width:70px}.anx-select-trigger{height:30px;font-size:8px}.bottom-controls{right:6px;bottom:6px;left:6px;padding:6px}.next-episode{bottom:65px}}@media(max-width:520px){.stream-selectors{border-radius:10px}.anx-select-episode{width:122px}.anx-select-voice{width:96px}.bottom-controls{border-radius:11px}.volume input{display:none}.time #duration,.time i{display:none}}


/* Mobile player hardening 2026.07.21 — responsive chrome without changing playback logic */
html,body,.anx-player{min-width:0;min-height:0}
.anx-player{touch-action:manipulation}
.topbar{padding-top:max(10px,env(safe-area-inset-top));padding-right:max(10px,env(safe-area-inset-right));padding-left:max(10px,env(safe-area-inset-left))}
.bottom-controls{right:max(6px,env(safe-area-inset-right));bottom:max(6px,env(safe-area-inset-bottom));left:max(6px,env(safe-area-inset-left))}
.ad-top{top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right))}
.ad-skip{right:max(12px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));display:flex!important;min-width:156px;min-height:44px;align-items:center;justify-content:center;border:1px solid #fff8;background:#090b12f2;box-shadow:0 8px 30px #000d,0 0 0 1px #0008;color:#fff;font-size:11px;line-height:1.2;opacity:1!important;visibility:visible!important;-webkit-tap-highlight-color:transparent}
.ad-skip:not(:disabled){background:linear-gradient(135deg,var(--player-accent),#5549d7);border-color:#c8c4ff;box-shadow:0 10px 32px #000d,0 0 0 2px #7168ef38}
.ad-skip:disabled{color:#e6e8ef;opacity:.9!important}


/* Desktop restoration: mobile hardening must not alter embedded desktop geometry. */
@media (min-width:641px) and (hover:hover) and (pointer:fine){
 .anx-player{height:100%;max-height:none;min-height:260px;touch-action:auto}
 .topbar{padding:18px 20px}
 .bottom-controls{right:12px;bottom:12px;left:12px}
 .ad-top{top:14px;right:14px;left:14px}
 .icon-btn{min-height:0}
 .anx-select-trigger{min-height:0}
 .timeline{height:13px}
 .timeline input{height:13px}
}

@media (hover:none),(pointer:coarse){
 .anx-player{cursor:default}
 .anx-player.controls-hidden{cursor:none}
 .icon-btn,.anx-select-trigger,.ad-skip,.resume-actions button{min-height:42px}
 .icon-btn{width:42px;flex-basis:42px}
 .timeline{height:25px}
 .timeline input{height:25px}
 .timeline input::-webkit-slider-thumb{width:17px;height:17px;margin-top:-7px}
 .timeline input::-moz-range-thumb{width:15px;height:15px}
}

@media(max-width:640px){
 .anx-player{min-height:220px}
 .topbar{display:block;padding-bottom:8px;background:linear-gradient(180deg,#03040aee 0,#03040ab8 70%,transparent)}
 .stream-selectors{display:grid;width:100%;grid-template-columns:minmax(0,.72fr) minmax(0,1.45fr);gap:4px;overflow:visible;padding:4px}
 .stream-selectors label{width:100%;min-width:0}
 .anx-select,.anx-select-season,.anx-select-episode,.anx-select-voice,.anx-select-quality{width:100%;max-width:none}
 .anx-select-trigger{width:100%;height:36px;padding-inline:10px;font-size:9px}
 .anx-select-menu{position:fixed;z-index:60;top:max(96px,calc(env(safe-area-inset-top) + 92px));right:max(8px,env(safe-area-inset-right));left:max(8px,env(safe-area-inset-left));width:auto;max-width:none;max-height:min(46dvh,320px)}
 .bottom-controls{padding:7px 7px 6px}
 .control-row{height:42px;gap:1px}
 .episode-nav{padding-left:1px;border-left:0}
 .time{min-width:38px;margin-right:auto;font-size:9px}
 .volume{display:none}
 .title-line{display:none}
 #pip{margin-left:0!important}
 .center-play{width:56px;height:56px}
 .next-episode{right:max(8px,env(safe-area-inset-right));bottom:calc(max(6px,env(safe-area-inset-bottom)) + 67px)}
 .ad-top{display:flex;max-width:calc(100% - 20px);align-items:flex-start;flex-wrap:wrap}
 .ad-label,.ad-time,.ad-info{min-height:28px;display:flex;align-items:center;padding:5px 7px;font-size:8px}
 .ad-info{max-width:min(62vw,240px)}
 .ad-skip{right:max(10px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));min-width:164px;min-height:48px;padding:0 16px;font-size:11px}
 .resume-card{max-height:calc(100dvh - 24px);overflow:auto}
}

@media(max-width:380px){
 .stream-selectors{grid-template-columns:minmax(0,.68fr) minmax(0,1.32fr)}
 .anx-select-trigger{padding-inline:8px;font-size:8px}
 .icon-btn{width:38px;flex-basis:38px;min-height:38px}
 .episode-step{width:35px!important;flex-basis:35px!important}
 .time{min-width:34px;font-size:8px}
 #pip{display:none}
 .ad-skip{left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));width:auto}
}

/* Short landscape phones: keep every selector and control reachable. */
@media(max-height:480px) and (orientation:landscape){
 .topbar{display:flex;padding-top:max(5px,env(safe-area-inset-top));padding-bottom:5px;background:linear-gradient(180deg,#03040adc,transparent)}
 .anx-brand{display:none}
 .stream-selectors{display:flex;width:100%;grid-template-columns:none;gap:3px;overflow-x:auto;padding:3px;overscroll-behavior-x:contain}
 .stream-selectors label{flex:1 1 0;min-width:70px}
 .stream-selectors label:nth-child(2){flex-grow:1.5;min-width:110px}
 .anx-select-trigger{height:30px;min-height:30px;font-size:8px}
 .anx-select-menu{top:max(44px,calc(env(safe-area-inset-top) + 40px));max-height:55dvh}
 .bottom-controls{padding:4px 6px 3px}
 .timeline{height:17px}
 .timeline input{height:17px}
 .control-row{height:35px}
 .icon-btn{width:35px;min-height:35px;flex-basis:35px}
 .episode-step{width:33px!important;flex-basis:33px!important}
 .center-play{width:48px;height:48px}
 .next-episode{bottom:53px}
 .ad-skip{bottom:max(8px,env(safe-area-inset-bottom));min-height:42px}
}

/* Player layout audit v6 — definitive geometry safeguards */
.anx-player{isolation:isolate;contain:layout paint;}
.topbar,.bottom-controls,.resume-card,.next-episode,.message,.loader{max-width:100%;}
.resume-card{
  top:50%;
  width:min(470px,calc(100% - 24px));
  max-height:calc(100% - 24px);
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  transform:translate(-50%,-50%);
}
.resume-card.show{display:block;}
.resume-heading,.resume-actions{max-width:100%;}
.resume-heading>div,.resume-episode,.resume-card p{min-width:0;overflow-wrap:anywhere;}

/* Advertising UI must always stay above any third-party creative. */
.ad-layer{z-index:1000!important;isolation:isolate;}
.ad-stage{z-index:1!important;}
.ad-video,.ad-script{z-index:1!important;}
.ad-click{z-index:2!important;}
.ad-top{z-index:1002!important;pointer-events:auto;}
.ad-skip{
  z-index:1003!important;
  top:max(14px,env(safe-area-inset-top));
  right:max(14px,env(safe-area-inset-right));
  bottom:auto!important;
  display:flex!important;
  width:auto!important;
  min-width:154px;
  max-width:calc(100% - 28px);
  min-height:42px;
  align-items:center;
  justify-content:center;
  padding:0 15px;
  pointer-events:auto!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  white-space:nowrap;
}
.ad-top{right:auto;max-width:calc(100% - 196px);}
.ad-info{max-width:min(42vw,260px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ad-layer:not(.show){pointer-events:none;}
.ad-layer.show{pointer-events:auto;}

/* Low-height embeds: compact all overlays instead of clipping them. */
@media(max-height:430px){
  .resume-card{width:min(430px,calc(100% - 16px));max-height:calc(100% - 16px);padding:15px 17px;border-radius:16px;}
  .resume-symbol{width:38px;height:38px;flex-basis:38px;border-radius:11px;}
  .resume-symbol svg{width:18px;height:18px;}
  .resume-card h2{font-size:16px;}
  .resume-episode{margin-top:10px;font-size:11px;line-height:1.35;}
  .resume-card p{font-size:9px;}
  .resume-progress{margin-top:10px!important;}
  .resume-actions{margin-top:11px!important;}
  .resume-actions button{min-height:36px;font-size:10px;}
  .topbar{padding-top:7px;padding-bottom:7px;}
  .bottom-controls{bottom:6px;padding:5px 7px 4px;}
  .timeline{height:15px;}
  .timeline input{height:15px;}
  .control-row{height:34px;}
  .next-episode{bottom:57px;}
}

@media(max-width:640px){
  .resume-card{top:50%;width:calc(100% - 16px);max-height:calc(100% - 16px);padding:16px;border-radius:16px;}
  .resume-card h2{font-size:17px;}
  .resume-heading{align-items:flex-start;}
  .resume-actions{grid-template-columns:1fr!important;}
  .resume-actions button{width:100%;}
  .ad-top{top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));right:auto;max-width:calc(100% - 16px);padding-right:0;}
  .ad-top .ad-info{display:none;}
  .ad-skip{top:auto!important;right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom))!important;left:max(8px,env(safe-area-inset-left));width:auto!important;max-width:none;min-width:0;min-height:46px;font-size:11px;}
}

@media(max-width:640px) and (max-height:430px){
  .resume-card{padding:11px 13px;}
  .resume-heading{gap:9px!important;}
  .resume-symbol{display:none;}
  .resume-episode{margin-top:7px;}
  .resume-progress{margin-top:7px!important;}
  .resume-actions{grid-template-columns:1fr 1fr!important;gap:6px!important;margin-top:8px!important;}
  .resume-actions button{min-height:34px;padding:0 8px;font-size:9px;}
  .ad-top{max-width:calc(100% - 16px);}
  .ad-skip{left:auto;min-width:145px;min-height:40px;}
}

/* Ensure controls remain reachable when the embed is unusually narrow. */
@media(max-width:360px){
  .control-row{gap:0;}
  .icon-btn{width:36px!important;flex-basis:36px!important;}
  .episode-step{width:32px!important;flex-basis:32px!important;}
  .time{min-width:32px;}
  #pip{display:none!important;}
}

/* Desktop selector repair v7 — low embed height is not a mobile landscape signal. */
@media (min-width:821px) and (hover:hover) and (pointer:fine){
  .topbar{overflow:visible;}
  .stream-selectors{
    display:flex;
    flex:0 0 auto;
    width:auto;
    max-width:calc(100% - 180px);
    justify-content:flex-end;
    overflow:visible;
    padding:5px;
  }
  .stream-selectors label{
    flex:0 0 auto;
    width:auto;
    min-width:0;
  }
  .anx-select{flex:0 0 auto;max-width:none;}
  .anx-select-season{width:82px;}
  .anx-select-episode{width:min(168px,20vw);}
  .anx-select-voice{width:min(126px,15vw);}
  .anx-select-quality{width:82px;}
  .anx-select-menu{
    position:absolute;
    z-index:80;
    top:calc(100% + 10px);
    right:0;
    left:auto;
    display:none;
    overflow:auto;
  }
  .anx-select.open{z-index:81;}
  .anx-select.open .anx-select-menu{display:grid;}
}

/* Apply compact landscape layout only to actual narrow/mobile viewports. */
@media (min-width:821px) and (max-height:480px) and (orientation:landscape) and (hover:hover) and (pointer:fine){
  .topbar{display:flex;padding:18px 20px;background:linear-gradient(180deg,#05060bcc,transparent);}
  .anx-brand{display:flex;}
  .stream-selectors{display:flex;width:auto;overflow:visible;gap:5px;padding:5px;}
  .stream-selectors label{flex:0 0 auto;min-width:0;}
  .stream-selectors label:nth-child(2){flex:0 0 auto;min-width:0;}
  .anx-select-trigger{height:32px;min-height:0;font-size:9px;}
  .anx-select-menu{top:calc(100% + 10px);max-height:min(280px,65vh);}
  .bottom-controls{padding:7px 9px 6px;}
  .timeline{height:13px;}
  .timeline input{height:13px;}
  .control-row{height:35px;}
  .icon-btn{width:31px;min-height:0;flex-basis:31px;}
  .episode-step{width:31px!important;flex-basis:31px!important;}
  .center-play{width:70px;height:70px;}
  .next-episode{bottom:76px;}
}

/* Mobile selector reliability v8 */
.anx-player{contain:layout;overflow:hidden;}
.topbar{overflow:visible;}
.stream-selectors,.stream-selectors label,.anx-select{min-width:0;}
.anx-select-value{display:block;color:#eef1f8;opacity:1;line-height:1.2;}
.anx-select-trigger{overflow:hidden;}
.anx-select.open{z-index:95;}
.anx-select-menu{z-index:100;}

@media (max-width:640px){
  .topbar{display:block;overflow:visible;padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left));}
  .stream-selectors{
    display:grid;
    width:100%;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:5px;
    overflow:visible;
  }
  .stream-selectors label,
  .stream-selectors label:nth-child(2){display:block;visibility:visible;opacity:1;width:100%;min-width:0;}
  .anx-select,.anx-select-season,.anx-select-episode,.anx-select-voice,.anx-select-quality{display:block;width:100%;min-width:0;max-width:none;}
  .anx-select-trigger{display:flex;width:100%;min-width:0;height:36px;min-height:36px;padding:0 9px;font-size:9px;}
  .anx-select-value{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .anx-select-menu{
    position:fixed;
    top:var(--anx-menu-top,54px);
    right:auto;
    bottom:auto;
    left:var(--anx-menu-left,8px);
    width:var(--anx-menu-width,calc(100vw - 16px));
    max-width:calc(100vw - 16px);
    max-height:var(--anx-menu-max-height,min(46dvh,320px));
  }
  .anx-select-menu.anx-menu-up{top:auto;bottom:var(--anx-menu-bottom,64px);}
}

@media (max-height:480px) and (orientation:landscape) and (max-width:820px){
  .topbar{display:block;overflow:visible;padding:4px max(7px,env(safe-area-inset-right)) 4px max(7px,env(safe-area-inset-left));}
  .stream-selectors{
    display:grid;
    width:100%;
    grid-template-columns:minmax(68px,.72fr) minmax(118px,1.45fr) minmax(92px,1fr) minmax(68px,.72fr);
    gap:4px;
    overflow:visible;
    padding:3px;
  }
  .stream-selectors label,
  .stream-selectors label:nth-child(2){display:block;flex:none;width:auto;min-width:0;overflow:visible;}
  .anx-select,.anx-select-season,.anx-select-episode,.anx-select-voice,.anx-select-quality{width:100%;min-width:0;max-width:none;}
  .anx-select-trigger{width:100%;height:30px;min-height:30px;padding:0 7px;font-size:8px;}
  .anx-select-menu{max-height:var(--anx-menu-max-height,min(55dvh,250px));}
}

/* Native fallback remains usable when enhancement JS is blocked or cached incorrectly. */
@media (max-width:820px){
  .stream-selectors select:not(.anx-native-select){
    display:block;width:100%;height:36px;min-width:0;padding:0 28px 0 10px;
    border:1px solid #ffffff20;border-radius:9px;background:#151923;color:#eef1f8;
    font:650 9px Inter,system-ui,sans-serif;
  }
}

/* v35: automatic intro/outro skip controls */
.segment-actions{position:absolute;right:28px;bottom:112px;z-index:36;display:flex;flex-direction:column;align-items:flex-end;gap:10px;pointer-events:none}.skip-segment{pointer-events:auto;display:flex;align-items:center;gap:12px;min-height:46px;padding:0 16px 0 19px;border:1px solid rgba(255,255,255,.2);border-radius:13px;background:rgba(13,16,25,.9);color:#fff;box-shadow:0 14px 38px rgba(0,0,0,.34);backdrop-filter:blur(14px);font:700 13px/1.15 inherit;cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease}.skip-segment:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--player-accent) 70%,white);background:rgba(24,27,42,.96)}.skip-segment svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.skip-outro{background:linear-gradient(135deg,color-mix(in srgb,var(--player-accent) 68%,#171a27),rgba(17,20,31,.94))}.skip-segment[hidden]{display:none!important}@media(max-width:700px){.segment-actions{right:12px;bottom:94px;left:12px;align-items:stretch}.skip-segment{justify-content:space-between;width:100%;min-height:44px;border-radius:11px}}

/* v57: identical, responsive controls for intro and credits. */
.segment-actions{width:min(420px,calc(100% - 56px))}.skip-segment,.skip-outro{box-sizing:border-box;width:100%;min-width:260px;justify-content:space-between;background:linear-gradient(135deg,rgba(24,27,42,.96),rgba(11,14,22,.94));border-color:rgba(255,255,255,.22)}.skip-segment span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.skip-segment:focus-visible{outline:2px solid color-mix(in srgb,var(--player-accent) 78%,white);outline-offset:3px}@media(max-width:700px){.segment-actions{width:auto;max-width:none}.skip-segment,.skip-outro{min-width:0;min-height:46px;padding:0 14px;font-size:12px}}@media(max-width:380px){.segment-actions{right:8px;bottom:82px;left:8px}.skip-segment,.skip-outro{min-height:43px;padding:0 12px;font-size:11px}.skip-segment svg{width:18px;height:18px}}@media(max-height:430px) and (orientation:landscape){.segment-actions{right:10px;bottom:62px;left:auto;width:min(360px,calc(100% - 20px))}.skip-segment,.skip-outro{min-height:40px;padding:0 12px;font-size:11px}}

/* v58: readable, consistent player controls across desktop and touch layouts. */
.ad-script{border:0;background:#000}.title-line{font-size:12px;font-weight:650;line-height:1.25;color:#d5d9e4}.anx-select-option{font-size:11px}.anx-select-search{min-height:38px;font-size:11px}.icon-btn:focus-visible,.center-play:focus-visible,.anx-select-trigger:focus-visible,.player-setting-option:focus-visible{outline:2px solid color-mix(in srgb,var(--player-accent) 82%,white);outline-offset:2px}
@media (min-width:821px) and (hover:hover) and (pointer:fine){.anx-select-season{width:94px}.anx-select-episode{width:min(216px,24vw)}.anx-select-voice{width:min(150px,17vw)}.anx-select-quality{width:94px}.anx-select-trigger{height:36px;padding:0 10px 0 11px;font-size:11px}.anx-select-option{min-height:39px;padding:9px 10px}.stream-selectors{gap:6px}.control-row{min-height:42px}.icon-btn{width:36px;height:36px;flex-basis:36px}.time{font-size:11px}}
@media (max-width:820px){.anx-select-trigger{font-size:10px}.anx-select-option{font-size:11px}.title-line{font-size:11px}}
@media (max-width:380px){.anx-select-trigger{font-size:9.5px}.anx-select-option{font-size:10.5px}}
@media (prefers-reduced-motion:reduce){.anx-player *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
