/**
 *                          ___                   _       _         _
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *
 *
 * 	Author: MD OMAR FARUK
 * 	Author URI: www.faruk.bd
 * 	Author Contact: https://faruk.bd/#contact
 * 	Author Email: info@faruk.bd | farukmr@gmail.com
 * 	Copyright © 2026
 *                          ___                   _       _         _
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *
 *  The AIO player. Built to feel like the one everybody already knows.
 */

.aiop {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    --aiop-red: #f00;
}
.aiop video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}
.aiop.is-touched { cursor: default; }
.aiop.is-idle { cursor: none; }
.aiop.no-menu video { pointer-events: none; }

/* ------------------------------------------------------------- the skin */

.aiop-ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1;
    transition: opacity .2s;
}
.aiop.is-idle .aiop-ui { opacity: 0; }
.aiop.is-idle .aiop-ui * { pointer-events: none; }

.aiop-shade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.aiop-tap {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

/* the big play button before anything has started */
.aiop-start {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    opacity: .92;
    transition: opacity .15s;
}
.aiop-start:hover { opacity: 1; }
.aiop-start svg { width: 100%; height: 100%; }
.aiop-start.has-logo { width: 120px; height: 120px; max-width: 34%; max-height: 34%; }
.aiop-start.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .55)); }
.aiop-start-go { position: absolute; right: -6px; bottom: -6px; width: 36px; height: 36px; border-radius: 50%; background: var(--aiop-red); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.aiop-start-go svg { width: 22px; height: 22px; fill: #fff; }
.aiop-btn.on { position: relative; }
.aiop-btn.on::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 16px; height: 3px; margin-left: -8px; border-radius: 2px; background: var(--aiop-red); }
.aiop.is-playing .aiop-start,
.aiop.is-started .aiop-start { display: none; }

/* a quick flash of the icon when play or pause is pressed */
.aiop-flash {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 62px;
    height: 62px;
    margin: -31px 0 0 -31px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(.7);
}
.aiop-flash svg { width: 30px; height: 30px; fill: #fff; }
.aiop-flash.go { animation: aiop-flash .5s ease-out; }
@keyframes aiop-flash {
    0%   { opacity: .9; transform: scale(.7); }
    100% { opacity: 0;  transform: scale(1.35); }
}

/* ----------------------------------------------------------- the scrub */

.aiop-bar {
    position: relative;
    z-index: 2;
    padding: 0 12px 6px;
}

.aiop-scrub {
    position: relative;
    height: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    touch-action: none;
}
.aiop-scrub .line {
    position: relative;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, .28);
    transition: height .12s;
}
.aiop-scrub:hover .line,
.aiop-scrub.dragging .line { height: 5px; }

.aiop-scrub .buffered,
.aiop-scrub .played,
.aiop-scrub .hovered {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
}
.aiop-scrub .buffered { background: rgba(255, 255, 255, .45); }
.aiop-scrub .hovered  { background: rgba(255, 255, 255, .55); }
.aiop-scrub .played   { background: var(--aiop-red); }

.aiop-scrub .knob {
    position: absolute;
    top: 50%;
    width: 13px;
    height: 13px;
    margin: -6.5px 0 0 -6.5px;
    border-radius: 50%;
    background: var(--aiop-red);
    transform: scale(0);
    transition: transform .12s;
}
.aiop-scrub:hover .knob,
.aiop-scrub.dragging .knob { transform: scale(1); }

.aiop-scrub .tip {
    position: absolute;
    bottom: 22px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .85);
    color: #fff;
    font-size: 12px;
    padding: 3px 7px;
    border-radius: 3px;
    white-space: nowrap;
    display: none;
}
.aiop-scrub:hover .tip { display: block; }

/* ---------------------------------------------------------- the buttons */

.aiop-row {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 44px;
}
.aiop-row .spacer { flex: 1; }

.aiop-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    opacity: .94;
    border-radius: 4px;
}
.aiop-btn:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.aiop-btn svg { width: 24px; height: 24px; fill: #fff; }
.aiop-btn.wide { width: auto; padding: 0 10px; font-size: 13px; font-weight: 600; }

.aiop-time {
    color: #fff;
    font-size: 12.5px;
    padding: 0 8px;
    font-variant-numeric: tabular-nums;
    user-select: none;
}
.aiop-time .sep { opacity: .7; margin: 0 2px; }

/* volume, which opens on hover the way people expect */
.aiop-vol { display: flex; align-items: center; }
.aiop-vol .slider {
    width: 0;
    overflow: hidden;
    transition: width .15s;
    display: flex;
    align-items: center;
}
.aiop-vol:hover .slider,
.aiop-vol.open .slider { width: 70px; }
.aiop-vol input {
    width: 62px;
    margin: 0 6px;
    accent-color: #fff;
    cursor: pointer;
}

/* ------------------------------------------------------------ the menu */

.aiop-menu {
    position: absolute;
    right: 12px;
    bottom: 56px;
    min-width: 190px;
    background: rgba(28, 28, 28, .96);
    border-radius: 10px;
    padding: 6px 0;
    display: none;
    z-index: 5;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}
.aiop-menu.open { display: block; }
.aiop-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 0;
    background: none;
    color: #eee;
    font-size: 13.5px;
    text-align: left;
    padding: 9px 14px;
    cursor: pointer;
}
.aiop-menu button:hover { background: rgba(255, 255, 255, .1); }
.aiop-menu button .val { color: #aaa; font-size: 12.5px; }
.aiop-menu button.on { color: #fff; font-weight: 600; }
.aiop-menu button.on::after { content: "\2713"; color: #fff; }
.aiop-menu .head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    margin-bottom: 4px;
    cursor: pointer;
}

/* --------------------------------------------------------- the watermark */

.aiop-mark {
    position: absolute;
    z-index: 3;
    max-width: 16%;
    max-height: 14%;
    opacity: .8;
    pointer-events: none;
}
.aiop-mark.top-right    { top: 12px;    right: 12px; }
.aiop-mark.top-left     { top: 12px;    left: 12px; }
.aiop-mark.bottom-right { bottom: 58px; right: 12px; }
.aiop-mark.bottom-left  { bottom: 58px; left: 12px; }
.aiop-mark a { pointer-events: auto; }
.aiop-mark img { width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------ the spinner */

.aiop-wait {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: aiop-spin .8s linear infinite;
}
.aiop.is-waiting .aiop-wait { display: block; }
@keyframes aiop-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------- cinema and the mini */

body.aiop-cinema .watch { grid-template-columns: 1fr !important; }
body.aiop-cinema .player { max-height: 84vh; }

.aiop.is-mini {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 340px;
    height: 191px;
    z-index: 60;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.aiop.is-mini .aiop-mini-close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 7;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.aiop-mini-close { display: none; }
.aiop.is-mini .aiop-mini-close { display: grid; }
.aiop-hole { display: none; }
.aiop-hole.on { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0d0d0d; }

@media (max-width: 640px) {
    .aiop.is-mini { width: 210px; height: 118px; right: 10px; bottom: 10px; }
    .aiop-btn { width: 36px; height: 36px; }
    .aiop-btn svg { width: 21px; height: 21px; }
    .aiop-time { font-size: 11.5px; padding: 0 4px; }
}


/* round 11: the gestures - the 2x pill while the picture is held, and the words in the flash */
.aiop-speedpill {
    position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
    display: none; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px;
    background: rgba(0, 0, 0, .72); color: #fff; font: 600 13px/1 system-ui, sans-serif; pointer-events: none; z-index: 5;
}
.aiop-speedpill svg { width: 16px; height: 16px; fill: #fff; }
.aiop.is-speeding .aiop-speedpill { display: inline-flex; }
.aiop.is-speeding .aiop-speedpill svg { animation: aiop-ff .6s linear infinite; }
@keyframes aiop-ff { 0% { opacity: .35; } 50% { opacity: 1; } 100% { opacity: .35; } }
.aiop-flash.txt { width: auto; min-width: 62px; height: 40px; margin: -20px 0 0 0; transform: translateX(-50%) scale(.85); border-radius: 20px; padding: 0 16px; color: #fff; font: 600 15px/40px system-ui, sans-serif; white-space: nowrap; }
.aiop-flash.txt.go { animation: aiop-flash-txt .7s ease-out; }
@keyframes aiop-flash-txt {
    0%   { opacity: .95; transform: translateX(-50%) scale(.85); }
    100% { opacity: 0;   transform: translateX(-50%) scale(1.1); }
}

/* ---------------------------------------------- the pill a swipe writes in */

.aiop-gpill {
    position: absolute; left: 50%; top: 18%; transform: translateX(-50%);
    padding: 8px 16px; border-radius: 20px; background: rgba(0, 0, 0, .62); color: #fff;
    font: 600 15px/20px system-ui, sans-serif; white-space: nowrap; display: none; align-items: center; gap: 8px;
    pointer-events: none; z-index: 5;
}
.aiop-gpill.on { display: inline-flex; }
.aiop-gpill svg { width: 18px; height: 18px; fill: #fff; }
.aiop-gpill b { font-weight: 700; opacity: .85; }
/* ------------------------------------- the watermark, sized and placed */

.aiop-mark { width: 12%; max-width: 60%; max-height: none; opacity: .85; }
.aiop-mark.center { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.aiop-mark.custom { transform: translate(-50%, -50%); }
.aiop.is-mini .aiop-mark { display: none; }

/* ------------------------------------------- round 13: ad breaks and cards */

/* the "i" button, top right; the watermark steps down out of its way */
.aiop-cards-btn {
    position: absolute; top: 12px; right: 12px; z-index: 5; width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s, background .2s;
}
.aiop-cards-btn svg { width: 22px; height: 22px; fill: #fff; }
.aiop:hover .aiop-cards-btn, .aiop:not(.is-playing) .aiop-cards-btn, .aiop-cards-btn.pulse { opacity: 1; }
.aiop-cards-btn.pulse { background: #fff; }
.aiop-cards-btn.pulse svg { fill: #000; }
.aiop.has-cards .aiop-mark.top-right { top: 56px; }

/* the teaser that slides in at the card's moment */
.aiop-card-teaser {
    position: absolute; top: 12px; right: 56px; z-index: 5; max-width: min(62%, 340px);
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 4px;
    background: rgba(0, 0, 0, .86); color: #fff; cursor: pointer;
    opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.aiop-card-teaser.on { opacity: 1; transform: none; pointer-events: auto; }
.aiop-card-teaser .i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font: 700 13px/1 Georgia, "Times New Roman", serif; flex: none; }
.aiop-card-teaser .w { min-width: 0; }
.aiop-card-teaser b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aiop-card-teaser small { display: block; font-size: 11.5px; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the list of every card, over the right of the picture */
.aiop-cards-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 340px); z-index: 7;
    background: rgba(0, 0, 0, .92); color: #fff; transform: translateX(100%); transition: transform .25s;
    display: flex; flex-direction: column;
}
.aiop-cards-panel.on { transform: none; }
.aiop-cards-panel .head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .12); flex: none; }
.aiop-cards-panel .x { border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.aiop-cards-panel .list { overflow: auto; padding: 8px; }
.aiop-card { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; color: #fff; text-decoration: none; }
.aiop-card:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.aiop-card img, .aiop-card .ph { width: 96px; height: 54px; border-radius: 6px; object-fit: cover; flex: none; background: #333; display: block; }
.aiop-card.is-round img { width: 54px; border-radius: 50%; }
.aiop-card .t { min-width: 0; }
.aiop-card b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aiop-card small { display: block; font-size: 12px; color: #bbb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aiop-card em { display: block; font-size: 11px; color: #888; font-style: normal; margin-top: 2px; }

@media (max-width: 480px) { .aiop-card-teaser { max-width: 70%; } .aiop-cards-panel { width: 100%; } }

/* ======================================================== 1.3.0 (round 14) */

/* the player measures itself, so its menu and hints fit a small screen */
.aiop { container-type: inline-size; container-name: aiop; }

/* --- the settings menu: never taller than the picture, rows that say what they are --- */
.aiop-menu { max-height: calc(100% - 64px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.aiop-menu button { gap: 10px; }
.aiop-menu button .lbl { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aiop-menu button .lbl small { color: #aaa; font-weight: 400; }
.aiop-menu button .val { flex: none; }
.aiop-menu button.on::after { content: none; }
.aiop-menu button.go .val::after { content: "\203A"; margin-left: 6px; color: #888; font-size: 15px; }
.aiop-menu button.pick { justify-content: flex-start; }
.aiop-menu button.pick .tick { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); box-sizing: border-box; }
.aiop-menu button.pick.on .tick { border-color: var(--aiop-red); background: radial-gradient(circle, var(--aiop-red) 0 45%, transparent 50%); }
.aiop-menu button.switch .sw { flex: none; position: relative; width: 30px; height: 16px; border-radius: 99px; background: rgba(255, 255, 255, .3); transition: background .15s; }
.aiop-menu button.switch .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.aiop-menu button.switch.on .sw { background: var(--aiop-red); }
.aiop-menu button.switch.on .sw::after { transform: translateX(14px); }
.aiop-menu button.switch.on { font-weight: 400; }
.aiop-menu .qb { display: inline-block; vertical-align: 2px; margin-left: 5px; padding: 0 4px; border-radius: 3px; font: 700 9.5px/14px system-ui, sans-serif; letter-spacing: .02em; background: #cc0000; color: #fff; }
.aiop-menu .qb-sd { background: #555; }
.aiop-menu .qb-4k, .aiop-menu .qb-8k { background: #6d28d9; }
@container aiop (max-width: 560px) {
    .aiop-menu { right: 6px; bottom: 48px; min-width: 0; width: min(230px, calc(100% - 12px)); max-height: calc(100% - 58px); padding: 3px 0; border-radius: 9px; }
    .aiop-menu button { padding: 6px 11px; font-size: 12.5px; }
    .aiop-menu button .val { font-size: 11.5px; }
    .aiop-menu .head { padding: 6px 11px; font-size: 12.5px; }
    .aiop-row { height: 38px; }
    .aiop-btn { width: 34px; height: 34px; }
    .aiop-btn svg { width: 21px; height: 21px; }
}
@container aiop (max-width: 380px) {
    .aiop-menu { width: min(240px, calc(100% - 12px)); bottom: 42px; max-height: calc(100% - 50px); }
    .aiop-menu button { padding: 5px 10px; font-size: 12px; }
    .aiop-time { font-size: 11.5px; padding: 0 4px; }
}

/* --- the picture of the moment above the seek bar --- */
.aiop-scrub .tip { bottom: 20px; padding: 0; background: none; border-radius: 0; display: none; text-align: center; }
.aiop-scrub .tip .pic { display: none; margin: 0 auto 6px; border: 2px solid #fff; border-radius: 8px; overflow: hidden; background-color: #000; background-repeat: no-repeat;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
.aiop-scrub .tip .pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.aiop-scrub .tip .at { display: inline-block; background: rgba(0, 0, 0, .85); color: #fff; font-size: 12px; padding: 3px 7px; border-radius: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aiop-scrub.has-pic .tip .pic { display: block; }
.aiop-scrub.has-pic .tip .at { background: none; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); font-weight: 600; font-size: 13px; }
.aiop-scrub:hover .tip, .aiop-scrub.dragging .tip { display: block; }

/* --- what a key just did --- */
.aiop-osd { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); z-index: 6; display: none; align-items: center; gap: 10px;
    padding: 9px 16px; border-radius: 22px; background: rgba(0, 0, 0, .72); color: #fff; font: 600 15px/1 system-ui, sans-serif; pointer-events: none; }
.aiop-osd.on { display: inline-flex; }
.aiop-osd svg { width: 24px; height: 24px; fill: #fff; flex: none; }
.aiop-osd b { min-width: 46px; font-variant-numeric: tabular-nums; }
.aiop-osd .meter { display: block; width: 90px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.aiop-osd .meter i { display: block; height: 100%; background: #fff; }
.aiop-osd.go { animation: aiop-osd .25s ease-out; }
@keyframes aiop-osd { from { opacity: .4; transform: translateX(-50%) scale(.92); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.aiop-skiphint { position: absolute; top: 0; bottom: 0; width: 34%; z-index: 5; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    color: #fff; font: 600 14px/1 system-ui, sans-serif; pointer-events: none; }
.aiop-skiphint.left { left: 0; border-radius: 0 50% 50% 0 / 0 50% 50% 0; background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02)); }
.aiop-skiphint.right { right: 0; border-radius: 50% 0 0 50% / 50% 0 0 50%; background: linear-gradient(270deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02)); }
.aiop-skiphint.on { display: flex; }
.aiop-skiphint .arrows { font-size: 13px; letter-spacing: -2px; opacity: .95; }
.aiop-skiphint b { text-shadow: 0 1px 5px rgba(0, 0, 0, .6); }
.aiop-skiphint.go { animation: aiop-skip .35s ease-out; }
@keyframes aiop-skip { from { opacity: .3; } to { opacity: 1; } }

/* --- another site's video inside our player --- */
.aiop-remote { position: absolute; inset: 0; overflow: hidden; background: #000; }
.aiop-yt-frame { position: absolute; }
.aiop-yt-frame iframe, .aiop-yt-frame > div { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
/* YouTube never sees the pointer: our controls answer everything */
.aiop.is-youtube .aiop-remote, .aiop.is-youtube .aiop-remote iframe { pointer-events: none; }
.aiop-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 1; pointer-events: none; }
.aiop-poster.gone { display: none; }
.aiop-remote-error { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px;
    background: #0f0f0f; color: #eee; text-align: center; font: 15px/1.5 system-ui, sans-serif; }
.aiop-remote-error svg { width: 46px; height: 46px; fill: #888; }
.aiop-sound { position: absolute; left: 12px; top: 12px; z-index: 6; display: none; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 0; border-radius: 20px;
    background: rgba(0, 0, 0, .75); color: #fff; font: 600 13px/1 system-ui, sans-serif; cursor: pointer; }
.aiop-sound svg { width: 20px; height: 20px; fill: #fff; }
.aiop.needs-sound .aiop-sound { display: inline-flex; }
/* any other site: our poster and play button first, then that site's own player, which is used as it is */
.aiop.is-frame .aiop-bar, .aiop.is-frame .aiop-shade { display: none; }
.aiop.is-frame-live .aiop-ui, .aiop.is-frame-live .aiop-tap { display: none; }
.aiop.is-frame-live .aiop-remote iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* ===================================================================== 1.4.0 */

/* the logo goes with the controls: when they fade out, so does it */
.aiop-mark { opacity: var(--aiop-mark-o, .85); transition: opacity .25s ease; }
.aiop.is-idle .aiop-mark.with-ui { opacity: 0; pointer-events: none; }
.aiop.is-idle .aiop-mark.with-ui a { pointer-events: none; }

/* a phone turned on its side fills the window when the browser will not give the screen */
.aiop.is-fauxfull { position: fixed !important; inset: 0 !important; z-index: 2147483000; width: 100vw !important; height: 100vh !important;
                    height: 100dvh !important; max-width: none !important; max-height: none !important; margin: 0 !important; border-radius: 0 !important; aspect-ratio: auto !important; background: #000; }
.aiop.is-fauxfull video, .aiop.is-fauxfull .aiop-remote { width: 100%; height: 100%; object-fit: contain; }
html.aiop-fauxfull, html.aiop-fauxfull body { overflow: hidden !important; }

/* "Carried on from 12:34 - Start again" */
.aiop-resumed { position: absolute; left: 12px; bottom: 64px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px;
                border-radius: 8px; background: rgba(15, 15, 15, .88); color: #fff; font-size: 13px; opacity: 0; transform: translateY(6px);
                transition: opacity .3s ease, transform .3s ease; pointer-events: none; max-width: calc(100% - 24px); }
.aiop-resumed.on { opacity: 1; transform: none; pointer-events: auto; }
.aiop-resumed b { font-variant-numeric: tabular-nums; }
.aiop-resumed button { border: 0; border-radius: 6px; padding: 5px 10px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.aiop-resumed button:hover { background: rgba(255, 255, 255, .28); }

/* --- 1.5.0: sizes kept for members, in the quality menu and as a prompt --- */
.aiop-menu button.is-locked .lbl { opacity: .8; }
.aiop-menu .lockpill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px 2px 6px; border-radius: 10px; background: #ffcc00; color: #111; }
.aiop-menu .lockpill svg { width: 12px; height: 12px; fill: #111; }
.aiop-lock { position: absolute; inset: 0; z-index: 30; display: none; place-items: center; background: rgba(0, 0, 0, .78); color: #fff; padding: 16px; text-align: center; }
.aiop-lock.on { display: grid; }
.aiop-lock-in { max-width: 420px; }
.aiop-lock-in > svg { width: 44px; height: 44px; fill: #ffcc00; }
.aiop-lock-in b { display: block; margin: 10px 0 16px; font-size: 17px; line-height: 1.4; font-weight: 600; }
.aiop-lock-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.aiop-lock-row .go { display: inline-block; padding: 9px 20px; border-radius: 20px; background: var(--aiop-red, #ff0000); color: #fff; font-weight: 600; text-decoration: none; }
.aiop-lock-row .no { padding: 9px 18px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; font: inherit; cursor: pointer; }
/* started silent by itself: the offer of sound sits above everything but an advertisement */
.aiop.is-auto.needs-sound .aiop-sound { display: inline-flex; }

/* ------------------------------------------------------------------ 1.7.0 */
/* the audio track of a YouTube video: chosen in YouTube's own menu, shown whole for the moment */
.aiop.is-yt-pick .aiop-yt-frame iframe { pointer-events: auto !important; }
.aiop.is-yt-pick .aiop-ui, .aiop.is-yt-pick .aiop-mark, .aiop.is-yt-pick .aiop-poster { display: none !important; }
/* (a pill at the top left: YouTube keeps its own sound, captions and settings buttons at the top right, and they must stay reachable) */
.aiop-ytpick {
    display: none; position: absolute; left: 0; top: 0; max-width: 62%; z-index: 40; padding: 10px 14px; gap: 12px; align-items: center;
    border-radius: 0 0 12px 0; background: rgba(0, 0, 0, .82); color: #fff; font-size: 13px; line-height: 1.35; pointer-events: auto;
}
.aiop.is-yt-pick .aiop-ytpick { display: flex; }
.aiop-ytpick .done { flex: none; padding: 7px 18px; border: 0; border-radius: 18px; background: #fff; color: #111; font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; }
.aiop-menu .note { padding: 8px 14px 6px; font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .7); }
.aiop-menu button.is-lang small { margin-left: 6px; font-size: 11px; color: rgba(255, 255, 255, .6); }
.aiop-menu button.is-lang .tick { visibility: hidden; }
.aiop-audiohint {
    position: absolute; left: 12px; bottom: 60px; z-index: 35; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 8px;
    background: rgba(28, 28, 28, .92); color: #fff; font-size: 13px; transform: translateY(12px); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: auto;
}
.aiop-audiohint.on { opacity: 1; transform: none; }
.aiop-audiohint b { font-weight: 600; }
.aiop-audiohint button { padding: 6px 12px; border: 0; border-radius: 14px; background: #fff; color: #111; font: 600 12px/1 inherit; font-family: inherit; cursor: pointer; }

/* in the Shorts feed: no bar of buttons, no big play button; a small gear in the corner opens the menu */
.aiop.is-shorts .aiop-bar, .aiop.is-shorts .aiop-start, .aiop.is-shorts .aiop-sound, .aiop.is-shorts .aiop-mini-close, .aiop.is-shorts .aiop-skiphint, .aiop.is-shorts .aiop-cards-btn { display: none !important; }
.aiop.is-shorts { width: 100%; height: 100%; background: #000; }
.aiop.is-shorts video { object-fit: cover; }
.aiop.is-shorts .aiop-mini-gear {
    position: absolute; top: 64px; right: 12px; z-index: 12; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff;
    display: grid; place-items: center; opacity: .55; transition: opacity .2s; pointer-events: auto !important; cursor: pointer;
}
.aiop.is-shorts:hover .aiop-mini-gear, .aiop.is-shorts .aiop-mini-gear:hover, .aiop.is-shorts:not(.is-playing) .aiop-mini-gear { opacity: 1; }
.aiop.is-shorts .aiop-mini-gear svg { width: 22px; height: 22px; fill: #fff; }
.aiop.is-shorts .aiop-menu { bottom: 70px; right: 12px; max-height: 60%; }
.aiop.is-shorts .aiop-shade { display: none; }
.aiop.is-shorts .aiop-ytpick { top: 0; }
