/* Operator reward nudge (shared by watch + microdrama) — always top layer */
.operator-nudge {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1000001;
    margin: 0 auto;
    max-width: 720px;
    border: 1px solid rgba(232, 162, 58, 0.35);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(32, 24, 14, 0.96), rgba(18, 16, 12, 0.98));
    color: #f4efe6;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}
.operator-nudge[hidden] { display: none !important; }
.operator-nudge.is-visible { display: block; }
.operator-nudge__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
}
.operator-nudge__title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #f6d59a;
}
.operator-nudge__body {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(244, 239, 230, 0.82);
    max-width: 46rem;
}
.operator-nudge__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.operator-nudge__btn {
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #e8a23a;
    color: #1a140c;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    pointer-events: auto;
}
.operator-nudge__btn--ghost {
    background: transparent;
    color: #f4efe6;
    border: 1px solid rgba(244, 239, 230, 0.28);
}
.operator-nudge[data-variant="eligible"] {
    border-color: rgba(40, 199, 111, 0.4);
}
.operator-nudge[data-variant="eligible"] .operator-nudge__title {
    color: #7ddea8;
}
.operator-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(244, 239, 230, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    position: relative;
    z-index: 50;
}
a.operator-chip:hover,
a.operator-chip:focus-visible {
    color: #fff;
    border-color: rgba(232, 162, 58, 0.55);
    background: rgba(232, 162, 58, 0.1);
    text-decoration: none;
    outline: none;
}
.operator-chip__more {
    margin-inline-start: 2px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #e8a23a;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.operator-chip[hidden] { display: none !important; }
.operator-chip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a2a2a2;
}
.operator-chip.is-active {
    border-color: rgba(40, 199, 111, 0.45);
    color: #b8f0d0;
}
.operator-chip.is-active .operator-chip__dot {
    background: #28c76f;
    box-shadow: 0 0 0 3px rgba(40, 199, 111, 0.2);
}
.operator-chip.is-inactive .operator-chip__dot {
    background: #ff9f43;
}
.md-play-page .operator-chip {
    position: fixed;
    top: 56px;
    inset-inline-start: 12px;
    z-index: 1000000;
    margin: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}
/* Hide cookie card while operator banner is visible (same bottom slot) */
body:has(.operator-nudge.is-visible:not([hidden])) .cookies-card {
    visibility: hidden !important;
    pointer-events: none !important;
}
/* Plyr seekbar LTR for microdrama */
.md-play__video + .plyr,
.md-watch__frame .plyr,
.md-play__slide .plyr,
.md-watch__video {
    direction: ltr;
    unicode-bidi: isolate;
}
.md-play__slide .plyr__controls,
.md-watch__frame .plyr__controls {
    direction: ltr;
}
@media (max-width: 767px) {
    .operator-nudge__inner { padding: 12px; }
    .operator-nudge__actions { width: 100%; }
    .operator-nudge__btn { flex: 1 1 auto; justify-content: center; }
}
