/* Shared reader surface, not a second movie identity system. */
.bo-reader {
    --bo-ink: #142033;
    --bo-muted: #58677b;
    --bo-line: #dce3eb;
    --bo-card: #fff;
    --bo-soft: #f2f6fa;
    --bo-accent: #006581;
    --bo-red: #d91429;
    max-width: 1240px;
    width: calc(100% - 40px);
    margin: 26px auto 48px;
    color: var(--bo-ink);
    font-family: Outfit, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5
}

.bo-reader * {
    box-sizing: border-box
}

.bo-reader [hidden] {
    display: none !important
}

.bo-reader a {
    color: var(--bo-accent);
    text-decoration: none
}

.bo-reader a:hover {
    text-decoration: underline
}
.bo-reader p a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 360px) {
    .bo-reader .bo-filters { grid-template-columns: minmax(0, 1fr); }
    .bo-reader .bo-filters label { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 8px; }
    .bo-reader .bo-filters label:first-child { grid-column: auto; }
    .bo-reader .bo-filters button { width: 100%; }
}

.bo-reader :is(button, input, select) {
    font: inherit
}

.bo-reader :is(a, button, input, select, summary):focus-visible {
    outline: 3px solid #1687a4;
    outline-offset: 3px
}

.bo-reader button {
    cursor: pointer
}

.bo-reader h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.2;
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -.025em
}

.bo-reader h3 {
    font-size: 18px;
    margin: 0 0 8px
}

.bo-reader p {
    margin: 8px 0;
    color: var(--bo-muted)
}

.bo-reader .bo-eyebrow {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--bo-accent);
    margin-bottom: 10px
}

.bo-reader .bo-caption {
    font-size: 13px;
    color: var(--bo-muted)
}

.bo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px
}

.bo-head h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    margin: 0;
    font-weight: 750;
    letter-spacing: -.045em
}

.bo-head p {
    font-size: 15px
}

.bo-head-links,
.bo-quicklinks {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap
}

.bo-quicklinks {
    margin: 14px 0
}

.bo-quicklinks a {
    font-size: 14px;
    padding: 7px 12px;
    border: 1px solid var(--bo-line);
    border-radius: 20px;
    background: var(--bo-card);
    white-space: nowrap
}

.bo-card {
    background: var(--bo-card);
    border: 1px solid var(--bo-line);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 22px;
    min-width: 0;
    box-shadow: 0 3px 12px #10253704
}

.bo-answer {
    background: #0d2235;
    color: #fff;
    padding: 24px 28px;
    border: 1px solid #264355;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 20px
}

.bo-answer .bo-eyebrow {
    color: #80d8eb
}

.bo-answer h2 {
    font-size: clamp(32px, 4.2vw, 52px);
    letter-spacing: -.04em;
    line-height: 1.08;
    margin: 4px 0 10px;
    font-variant-numeric: tabular-nums
}

.bo-answer p,
.bo-answer .bo-caption {
    color: #bfcedb
}

.bo-answer .bo-status {
    background: #213d51;
    border-color: #37566a;
    color: #e6f5fa
}

.bo-answer-secondary {
    border-left: 1px solid #345065;
    padding-left: 26px;
    align-self: center
}

.bo-answer-secondary strong {
    display: block;
    font-size: 30px;
    font-weight: 650;
    line-height: 1.2
}

.bo-answer-secondary span {
    font-size: 14px;
    color: #bfcedb
}

.bo-status {
    display: inline-block;
    border: 1px solid var(--bo-line);
    border-radius: 30px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bo-muted);
    background: var(--bo-soft)
}

.bo-note {
    border-left: 3px solid #12809a;
    padding: 10px 14px;
    background: var(--bo-soft);
    font-size: 13px;
    border-radius: 0 8px 8px 0;
    margin: 12px 0 20px
}

.bo-note p {
    margin: 0
}

.bo-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--bo-line);
    border-radius: 14px;
    overflow: hidden;
    margin: 16px 0;
    background: var(--bo-card)
}

.bo-kpi {
    padding: 16px;
    border-right: 1px solid var(--bo-line);
    min-width: 0
}

.bo-kpi:last-child {
    border: 0
}

.bo-kpi span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--bo-muted);
    font-weight: 650
}

.bo-kpi strong {
    display: block;
    font-size: clamp(21px, 2.3vw, 30px);
    letter-spacing: -.025em;
    line-height: 1.25;
    margin: 7px 0;
    color: var(--bo-ink);
    font-variant-numeric: tabular-nums
}

.bo-kpi small {
    font-size: 12px;
    color: var(--bo-muted);
    display: block
}

.bo-filters {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
    background: var(--bo-soft);
    padding: 14px;
    border: 1px solid var(--bo-line);
    border-radius: 14px;
    margin: 16px 0
}

.bo-reader label {
    display: grid;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bo-muted)
}

.bo-reader :is(select, input[type=date], input[type=search]) {
    border: 1px solid var(--bo-line);
    border-radius: 9px;
    min-height: 44px;
    padding: 8px 11px;
    background: var(--bo-card);
    color: var(--bo-ink);
    min-width: 0;
    max-width: 100%;
    font-size: 15px
}

.bo-reader input[type=date] {
    width: 150px
}

.bo-button {
    min-height: 44px;
    border: 1px solid var(--bo-red);
    background: var(--bo-red);
    color: #fff;
    border-radius: 9px;
    padding: 8px 17px;
    font-weight: 600
}

.bo-reader a.bo-button {
    color: #fff
}

.bo-filters label:first-child {
    min-width: 160px
}

.bo-section-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 16px
}

.bo-section-head p {
    font-size: 14px
}

.bo-section-head input[type=search] {
    width: 220px
}

.bo-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start
}

.bo-two-col>.bo-card {
    margin-bottom: 0
}

.bo-sidebar {
    min-width: 0
}

.bo-sidebar .pm-content-ad {
    margin-top: 0
}

.bo-reader [id] { scroll-margin-top: 130px; }
#boRankings { min-width: 520px; }
.bo-table-scroll:has(#boRankings) { max-height: 640px; }
.bo-table-scroll {
    max-width: 100%;
    overflow: auto;
    overscroll-behavior-x: contain;
    border: 1px solid var(--bo-line);
    border-radius: 12px
}

.bo-reader table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bo-card);
    font-size: 14px;
    text-align: right
}

.bo-reader caption {
    text-align: left;
    padding: 12px;
    font-size: 12px;
    color: var(--bo-muted)
}

.bo-reader th,
.bo-reader td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--bo-line);
    vertical-align: middle;
    font-variant-numeric: tabular-nums
}

.bo-reader thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--bo-soft);
    white-space: nowrap
}

.bo-reader td:first-child,
.bo-reader th:first-child {
    text-align: left
}

.bo-reader tbody tr:last-child>* {
    border-bottom: 0
}

.bo-reader tbody tr:hover {
    background: var(--bo-soft)
}

.bo-reader th button {
    border: 0;
    background: none;
    color: inherit;
    padding: 6px 0;
    font: inherit;
    text-align: inherit;
    white-space: nowrap;
    min-height: 34px
}

.bo-film-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px
}

.bo-film-cell img {
    width: 42px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bo-soft);
    flex: none
}

.bo-film-cell strong {
    font-size: 16px;
    display: block;
    max-width: 280px;
    line-height: 1.3
}

.bo-film-cell small {
    display: block;
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px
}

.bo-rank {
    color: var(--bo-muted);
    font-size: 12px;
    width: 18px;
    flex: none
}

.bo-gross {
    font-weight: 700;
    color: var(--bo-ink);
    white-space: nowrap
}

.bo-empty {
    padding: 26px;
    text-align: center;
    color: var(--bo-muted)
}

.bo-list-count {
    font-size: 13px;
    color: var(--bo-muted)
}

.bo-chart-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 8px 0 16px
}

.bo-chart-tools output {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    font-variant-numeric: tabular-nums
}

.bo-chart-canvas {
    height: 245px;
    position: relative;
    width: 100%
}

.bo-chart-canvas svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    touch-action: pan-y
}

.bo-chart-canvas text {
    font-family: inherit;
    font-size: 11px;
    fill: var(--bo-muted)
}

.bo-chart-canvas .bo-grid-line {
    stroke: var(--bo-line);
    stroke-width: 1
}

.bo-chart-canvas .bo-chart-bar {
    fill: #1685a0
}

.bo-chart-canvas .bo-chart-hit {
    fill: transparent;
    cursor: crosshair
}

.bo-chart-canvas .bo-chart-hit:focus,
.bo-chart-canvas .bo-chart-hit:hover {
    fill: #ec25301c;
    outline: none
}

.bo-chart-canvas .bo-chart-gap {
    stroke: var(--bo-muted);
    stroke-dasharray: 3 3
}

.bo-details {
    margin-top: 18px;
    border-top: 1px solid var(--bo-line);
    padding-top: 12px
}

.bo-details summary {
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    font-size: 14px
}

.bo-details summary:after {
    content: '+';
    font-size: 22px
}

.bo-details[open] summary:after {
    content: '−'
}

.bo-details summary span {
    font-size: 12px;
    font-weight: 400;
    color: var(--bo-muted);
    margin-left: auto
}

.bo-details .bo-table-scroll {
    max-height: 440px
}

.bo-milestones {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px
}

.bo-milestone {
    border: 1px solid var(--bo-line);
    padding: 16px;
    border-radius: 12px
}

.bo-milestone span,
.bo-milestone small {
    display: block;
    color: var(--bo-muted);
    font-size: 12px
}

.bo-milestone strong {
    display: block;
    font-size: 24px;
    letter-spacing: -.03em;
    margin: 8px 0
}

.bo-segments-tools {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap
}

.bo-segments-table {
    max-height: 420px;
    overflow: auto;
    margin-top: 15px
}

.bo-segments-table th:first-child {
    min-width: 140px
}

.bo-segments-table thead th {
    position: sticky;
    top: 0;
    z-index: 1
}

.bo-related {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px
}

.bo-related a {
    border: 1px solid var(--bo-line);
    border-radius: 12px;
    padding: 14px;
    color: var(--bo-ink)
}

.bo-related img {
    width: 46px;
    height: 66px;
    object-fit: cover;
    border-radius: 6px;
    float: left;
    margin: 0 12px 12px 0
}

.bo-related strong {
    display: block;
    line-height: 1.3;
    font-size: 15px
}

.bo-related span {
    display: block;
    font-size: 14px;
    margin-top: 6px;
    color: var(--bo-accent)
}

.bo-related small {
    display: block;
    clear: both;
    color: var(--bo-muted);
    font-size: 12px
}

.bo-reader .pm-content-ad {
    border-radius: 10px;
    overflow: visible;
    min-height: 122px
}

.bo-reader .pm-content-ad--rectangle {
    min-height: 282px
}

.bo-reader .pm-content-ad.pm-ad-filled {
    min-height: 122px
}

.bo-reader .pm-content-ad--rectangle.pm-ad-filled {
    min-height: 282px
}

/* Existing private rating flow remains intact, with a compact public invitation. */
.bo-reader .pm-bom-audience-rating {
    background: var(--bo-card);
    border: 1px solid var(--bo-line);
    border-radius: 14px;
    padding: 18px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center
}

.bo-reader .pm-bom-audience-rating-summary {
    display: flex;
    flex: 1 1 260px;
    gap: 15px;
    align-items: center
}

.bo-reader .pm-bom-audience-rating-copy>span,
.bo-reader .pm-bom-rating-kicker,
.bo-reader .pm-bom-rating-invite,
.bo-reader .pm-bom-engagement-note,
.bo-reader .pm-bom-audience-score-label {
    display: none
}

.bo-reader #pmAudienceRatingTitle {
    font-size: 16px;
    margin: 0
}

.bo-reader #pmBomAudienceVotes {
    font-size: 12px
}

.bo-reader .pm-bom-engagement-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.bo-reader :is(.pm-bom-rate-button, .pm-bom-inline-share, .pm-bom-rating-save, .pm-bom-rating-cancel, .pm-bom-score-option) {
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    color: var(--bo-ink);
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.bo-reader .pm-bom-rating-panel {
    flex: 1 0 100%;
    padding-top: 15px;
    border-top: 1px solid var(--bo-line)
}

.bo-reader .pm-bom-rating-panel-heading,
.bo-reader .pm-bom-rating-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.bo-reader .pm-bom-rating-panel-heading span {
    display: block;
    font-size: 13px;
    color: var(--bo-muted)
}

.bo-reader .pm-bom-score-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    margin: 15px 0
}

.bo-reader .pm-bom-score-option {
    justify-content: center;
    padding: 6px
}

.bo-reader .pm-bom-score-option.is-selected,
.bo-reader .pm-bom-rating-save {
    background: var(--bo-red);
    color: #fff
}

.bo-reader button:disabled {
    opacity: .5;
    cursor: not-allowed
}

.bo-reader .pm-bom-rating-status {
    font-size: 13px
}

.dark-theme .bo-reader {
    --bo-ink: #edf3fa;
    --bo-muted: #b0bfd0;
    --bo-line: #304155;
    --bo-card: #121f30;
    --bo-soft: #192b40;
    --bo-accent: #7ed8ed;
    --bo-red: #e92037
}

.dark-theme .bo-answer {
    background: #0b1a2b
}

.dark-theme .bo-reader .bo-chart-bar {
    fill: #68c7df
}

@media(min-width:1000px) {
    .bo-sidebar .pm-content-ad {
        position: sticky;
        top: 130px
    }

    .bo-leader-table th:first-child {
        width: 36%
    }
}

@media(max-width:900px) {
    .bo-two-col {
        grid-template-columns: minmax(0, 1fr)
    }

    .bo-related {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .bo-sidebar {
        display: grid;
        grid-template-columns: 1fr
    }

    .bo-sidebar .pm-content-ad {
        max-width: 100%
    }
}

@media(max-width:600px) {
    .bo-reader {
        width: calc(100% - 24px);
        margin-top: 16px;
        font-size: 15px
    }

    .bo-card {
        padding: 17px;
        border-radius: 14px;
        margin-bottom: 16px
    }

    .bo-head {
        display: block;
        margin-bottom: 14px
    }

    .bo-head-links {
        margin-top: 12px
    }

    .bo-answer {
        padding: 18px;
        gap: 16px;
        grid-template-columns: 1fr;
        margin-bottom: 14px;
        border-radius: 14px
    }

    .bo-answer h2 {
        font-size: 38px
    }

    .bo-answer-secondary {
        border-left: 0;
        border-top: 1px solid #345065;
        padding: 12px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap
    }

    .bo-answer-secondary strong {
        font-size: 25px
    }

    .bo-answer-secondary p {
        flex: 1 0 100%;
        margin: 0;
        font-size: 12px
    }

    .bo-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 12px 0
    }

    .bo-kpi {
        padding: 12px
    }

    .bo-kpi:nth-child(2) {
        border-right: 0
    }

    .bo-kpi:nth-child(-n+2) {
        border-bottom: 1px solid var(--bo-line)
    }

    .bo-kpi strong {
        font-size: 24px
    }

    .bo-kpi span {
        font-size: 10px
    }

    .bo-filters {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        padding: 12px
    }

    .bo-filters label:first-child {
        min-width: 0
    }

    .bo-reader input[type=date] {
        width: 100%;
        font-size: 16px
    }

    .bo-filters button {
        align-self: end
    }

    .bo-chart-tools {
        align-items: start
    }

    .bo-chart-tools output {
        font-size: 12px;
        max-width: 48%
    }

    .bo-chart-tools select {
        max-width: 160px;
        font-size: 14px
    }

    .bo-chart-canvas {
        height: 220px
    }

    .bo-reader th,
    .bo-reader td {
        padding: 12px 10px;
        font-size: 13px
    }

    .bo-leader-table .bo-optional {
        display: none
    }

    .bo-film-cell {
        min-width: 150px;
        gap: 8px
    }

    .bo-film-cell img {
        width: 34px;
        height: 48px
    }

    .bo-film-cell strong {
        font-size: 14px;
        max-width: 170px
    }

    .bo-rank {
        display: none
    }

    .bo-milestones {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .bo-milestone {
        padding: 12px
    }

    .bo-milestone strong {
        font-size: 23px
    }

    .bo-related {
        gap: 9px
    }

    .bo-related a {
        padding: 11px
    }

    .bo-related img {
        width: 36px;
        height: 52px;
        margin-right: 8px
    }

    .bo-section-head input[type=search] {
        width: 100%
    }

    .bo-section-head>label {
        width: 100%
    }

    .bo-reader .pm-content-ad,
    .bo-reader .pm-content-ad.pm-ad-filled {
        min-height: 282px
    }

    .bo-reader .pm-bom-audience-rating-summary {
        display: block
    }

    .bo-reader .pm-bom-score-grid {
        grid-template-columns: repeat(5, 1fr)
    }

    .bo-quicklinks {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 3px 0 9px
    }

    .bo-reader .bo-note {
        font-size: 12px
    }
}

@media(prefers-reduced-motion:no-preference) {
    .bo-reader :is(button, a) {
        transition: background-color .15s, border-color .15s
    }
}
