@font-face {
    font-family: "MarkProBlack";
    src: url("https://www.pglesports.com/_next/static/media/MarkProBlack.cd4427c9.OTF") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MarkProMedium";
    src: url("https://www.pglesports.com/_next/static/media/MarkProMedium.fc8a82ca.OTF") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --overlay-bg: #143243;
    --overlay-bg-2: #143243;
    --bar-bg: #2c4756;
    --logo-lane-size: 61px;
    --line: #294362;
    --text-main: #f4f8ff;
    --text-secondary: #afbdd2;
    --status-open: #16a34a;
    --status-closed: #dc2626;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow: hidden;
    background: transparent;
    font-family: "MarkProBlack", Arial, sans-serif;
}

body {
    color: var(--text-main);
}

.viewer-display,
.predictions-grid {
    width: 100%;
    height: 100%;
}

.pred-widget {
    width: 500px;
    height: 90px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--overlay-bg);
    box-shadow:
        0 8px 18px rgba(2, 8, 20, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.pred-header {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 8px;
    background: var(--overlay-bg-2);
}

.pred-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.pred-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    flex: 0 0 auto;
    height: 100%;
}

.pred-total {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.pred-total-label,
.pred-total-unit {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a4b6cf;
}

.pred-total-value {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    color: #eef5ff;
}

.pred-status {
    min-width: 86px;
    height: 100%;
    padding: 0 12px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1;
    border: 0;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    align-self: stretch;
}

.pred-status--open {
    background: var(--status-open);
}

.pred-status--closed {
    background: var(--status-closed);
}

.pred-divider {
    height: 1px;
    background: rgba(173, 200, 235, 0.2);
}

.pred-body {
    height: 61px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    background: var(--bar-bg);
}

.pred-vertical-divider {
    background: rgba(194, 214, 240, 0.22);
}

.pred-team {
    position: relative;
    padding: 5px 8px;
    background: var(--bar-bg);
}

.pred-team--a {
    background: var(--bar-bg);
    padding: 0 8px 0 0;
}

.pred-team--b {
    background: var(--bar-bg);
    padding: 0 0 0 8px;
}

.pred-team::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.pred-team-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 8px;
}

.pred-team--a .pred-team-inner {
    grid-template-columns: var(--logo-lane-size) 1fr;
    align-items: stretch;
    gap: 0;
}

.pred-team--b .pred-team-inner {
    grid-template-columns: 1fr var(--logo-lane-size);
    align-items: stretch;
    gap: 0;
}

.pred-team-logo,
.pred-team-fallback {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    border: 1px solid rgba(220, 233, 249, 0.26);
    background: rgba(10, 20, 34, 0.66);
    object-fit: contain;
}

.pred-team-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e7edf8;
    font-size: 10px;
    font-weight: 700;
}

.pred-team-text {
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.pred-team--b .pred-team-text {
    justify-content: flex-end;
    text-align: right;
    padding: 0 8px 0 0;
}

.pred-team--a .pred-team-text {
    justify-content: flex-start;
    text-align: left;
    padding: 0 0 0 8px;
}

.pred-team-votes {
    margin-top: 0;
    font-size: 36px;
    font-weight: 800;
    color: #f8fbff;
    line-height: 0.88;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
    display: inline-flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    white-space: nowrap;
}

.pred-team-amount {
    display: inline-block;
}

.pred-team-inline-percent {
    display: inline-block;
    font-family: "MarkProMedium", Arial, sans-serif;
    font-size: 0.66em;
    font-weight: 400;
    letter-spacing: -0.005em;
    line-height: 1;
    color: #c5d8f0;
    margin: 0;
    vertical-align: baseline;
    transform: scaleX(0.9);
}

.pred-team-inline-percent--a {
    text-align: right;
    transform-origin: right center;
}

.pred-team-inline-percent--b {
    text-align: left;
    transform-origin: left center;
}

/* Safety: hide any stale in-bar team labels from cached/older templates */
.pred-team-name {
    display: none !important;
}

.pred-team--a .pred-team-logo,
.pred-team--a .pred-team-fallback {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
    background: var(--logo-bg, var(--bar-bg));
}

.pred-team--b .pred-team-logo,
.pred-team--b .pred-team-fallback {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
    background: var(--logo-bg, var(--bar-bg));
}