/* =====================================================
   OVO — 1v1 Match View
   ===================================================== */

.ovo-page {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    position: relative;
    margin-top: 2%;
    gap: 10px;
}

/* ══════════════════════════════
   HERO
   ══════════════════════════════ */
.ovo-hero {
    width: clamp(20rem, 92%, 800px);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(150deg, #0c1f10 0%, #0d1b28 55%, #091422 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 20px 28px 24px;
    font-family: Montserrat;
    animation: ovoFadeUp .4s ease both;
}

@keyframes ovoFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ovo-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 110%, rgba(34, 197, 94, 0.06) 0%, transparent 60%);
}

.ovo-win-glow {
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 160, 23, 0.08) 0%, transparent 65%);
}

.ovo-win-glow.on {
    display: block;
}

/* Top bar */
.ovo-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.ovo-first-to {
    font-size: 11px;
    color: rgba(255, 255, 255, .28);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: Montserrat;
}

/* Elapsed time */
.ovo-elapsed {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, .3);
    font-family: Montserrat;
}

.ovo-elapsed svg {
    opacity: .5;
    flex-shrink: 0;
}

/* LIVE badge */
#ovo-live-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--main-green, #22c55e);
    font-family: Montserrat;
}

#ovo-live-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--main-green, #22c55e);
    animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(.7);
    }
}

#ovo-live-status.status-connecting {
    color: orange;
}

#ovo-live-status.status-connecting svg {
    width: 20px;
    height: 20px;
}

#ovo-live-status.status-offline {
    color: #888;
}

#ovo-live-status.status-error {
    color: var(--crimson-red, #ef4444);
}

/* Score row */
.ovo-score-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.ovo-team-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.ovo-t1 {
    align-items: flex-end;
    text-align: right;
}

.ovo-t2 {
    align-items: flex-start;
    text-align: left;
}

.ovo-team-name {
    font-size: clamp(17px, 2.6vw, 26px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    transition: color .3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.ovo-team-name.winner {
    color: gold;
}

.ovo-crown {
    height: 18px;
    position: absolute;
    top: -18px;
    filter: drop-shadow(0 2px 5px rgba(255, 215, 0, .4));
    animation: crownFloat 2s ease-in-out infinite;
}

.ovo-crown.c1 {
    right: 0;
}

.ovo-crown.c2 {
    left: 0;
}

@keyframes crownFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-4px) rotate(-4deg);
    }
}

.ovo-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 0 8px;
}

.ovo-score {
    font-size: clamp(42px, 7vw, 58px);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ovo-score.bump {
    animation: scoreBump .35s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes scoreBump {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.12)
    }

    100% {
        transform: scale(1)
    }
}

.ovo-sep {
    opacity: .18;
    font-weight: 300;
    font-size: .65em;
}

.ovo-match-status {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
    margin:auto;
    margin-top:10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-family: Montserrat;
}

.st-on {
    background: rgba(234, 179, 8, .12);
    color: #f59e0b;
    border: .5px solid rgba(234, 179, 8, .3);
}

.st-win {
    background: rgba(34, 197, 94, .15);
    color: #22c55e;
    border: .5px solid rgba(34, 197, 94, .35);
}

/* ── Round timeline (read-only) ── */
.ovo-timeline-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    position: relative;
    z-index: 1;
}

.ovo-tl-empty {
    font-size: 12px;
    color: rgba(255, 255, 255, .2);
    font-family: Montserrat;
    padding: 4px 0;
}

/* SVG flow line */
.ovo-flow-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

/* B-style rows */
.ovo-tl-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    padding: 8px 12px;
}

.ovo-tl-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ovo-tl-row-name {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, .35);
    width: 100px;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Montserrat;
}

.ovo-tl-divider {
    height: 1px;
    background: rgba(255, 255, 255, .05);
    margin: 5px 0;
}

.ovo-tl-row-cells {
    display: flex;
    gap: 4px;
    flex: 1;
    flex-wrap: nowrap;
}

.ovo-tl-cell {
    width: 30px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-family: Montserrat;
    flex-shrink: 0;
}

.ovo-tl-cell.W {
    background: rgba(34, 197, 94, .16);
    color: #22c55e;
    border: .5px solid rgba(34, 197, 94, .38);
}

.ovo-tl-cell.L {
    background: rgba(220, 38, 38, .14);
    color: #ef4444;
    border: .5px solid rgba(220, 38, 38, .33);
}

.ovo-tl-cell.p {
    background: rgba(255, 255, 255, .03);
    border: .5px dashed rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .12);
    font-size: 14px;
}

.ovo-tl-row-score {
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 20px;
    text-align: right;
    font-family: Montserrat;
}

.btns-wrapper{
    margin:16px 0 6px 0 !important;
}

/* ══════════════════════════════
   PLAYER CARDS
   ══════════════════════════════ */
.ovo-players-row {
    width: clamp(20rem, 92%, 860px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    animation: ovoFadeUp .4s ease .05s both;
}

.ovo-team-card {
    background: var(--translucid-dark);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    padding: 14px 16px;
    font-family: Montserrat;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ovo-team-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ovo-team-card-name {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .55);
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ovo-team-score-badge {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, .2);
    line-height: 1;
    transition: color .3s;
    flex-shrink: 0;
}

.ovo-team-score-badge.badge-lead {
    color: rgba(255, 255, 255, .65);
}

.ovo-team-score-badge.badge-win {
    color: gold;
}

.ovo-player-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ovo-player-card {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ovo-player-card .pfp {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ovo-player-card .pfp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ovo-player-card a {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .12s;
}

.ovo-player-card a:hover {
    color: var(--main-green, #22c55e);
}

.ovo-player-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
}

/* ── Guest stamp ── */
.guest-stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 14px;
    width: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 3px;
}

.guest-stamp::after {
    content: "G";
    font-weight: 600;
    color: #8a8fa8;
    font-size: 9px;
    line-height: 1;
}

/* ══════════════════════════════
   HOST EDIT PANEL — timeline style
   ══════════════════════════════ */
.ovo-edit-panel {
    width: clamp(20rem, 92%, 820px);
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    padding: 16px 18px 18px;
    font-family: Montserrat;
    animation: ovoFadeUp .4s ease .1s both;
}

.ovo-ep-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ovo-ep-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .5);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ovo-ep-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(59, 130, 246, .12);
    color: #60a5fa;
    border: .5px solid rgba(59, 130, 246, .25);
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Team colour legend */
.ovo-team-legend {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
}

.ovo-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48%;
}

.ovo-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ovo-legend-dot.d1 {
    background: #22c55e;
}

.ovo-legend-dot.d2 {
    background: #ef4444;
}

/* Rounds track */
.ovo-rounds-track {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 14px 16px;
    min-height: 86px;
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    align-items: center;
}

/* Round pill */
.ovo-round-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: var(--custom-pointer, pointer);
    user-select: none;
    -webkit-user-select: none;
}

.ovo-round-pill-num {
    font-size: 9px;
    color: rgba(255, 255, 255, .2);
    letter-spacing: .04em;
}

.ovo-round-pill-btn {
    width: 52px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .2);
    transition: all .15s;
}

.ovo-round-pill:hover .ovo-round-pill-btn {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .5);
}

/* t1 wins round */
.ovo-round-pill.t1 .ovo-round-pill-btn {
    background: rgba(34, 197, 94, .18);
    border-color: rgba(34, 197, 94, .5);
    color: #22c55e;
    font-size: 13px;
}

/* t2 wins round */
.ovo-round-pill.t2 .ovo-round-pill-btn {
    background: rgba(220, 38, 38, .16);
    border-color: rgba(220, 38, 38, .45);
    color: #ef4444;
    font-size: 13px;
}

.ovo-pill-label {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52px;
    text-align: center;
    color: rgba(255, 255, 255, .2);
}

.ovo-round-pill.t1 .ovo-pill-label {
    color: rgba(34, 197, 94, .65);
}

.ovo-round-pill.t2 .ovo-pill-label {
    color: rgba(220, 38, 38, .65);
}

/* Add pill */
.ovo-add-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: var(--custom-pointer, pointer);
    opacity: .45;
    transition: opacity .15s;
}

.ovo-add-pill:hover {
    opacity: 1;
}

.ovo-add-pill-btn {
    width: 52px;
    height: 48px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, .18);
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, .3);
    cursor: inherit;
    transition: all .15s;
}

.ovo-add-pill:hover .ovo-add-pill-btn {
    border-color: rgba(255, 255, 255, .35);
    color: rgba(255, 255, 255, .6);
}

/* Score preview */
.ovo-score-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 8px;
}

.ovo-preview-scores {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.ovo-preview-s1 {
    font-size: 20px;
    color: #22c55e;
}

.ovo-preview-s2 {
    font-size: 20px;
    color: #ef4444;
}

.ovo-preview-sep {
    color: rgba(255, 255, 255, .2);
    font-size: 16px;
}

.ovo-preview-hint {
    font-size: 10px;
    color: rgba(255, 255, 255, .2);
    text-align: right;
    line-height: 1.5;
}

/* Actions */
.ovo-ep-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: .5px solid rgba(255, 255, 255, .06);
    gap: 8px;
}

.ovo-ep-right {
    display: flex;
    gap: 7px;
}

.ovo-btn-clr {
    background: none;
    border: .5px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, .35);
    cursor: var(--custom-pointer, pointer);
    font-family: Montserrat;
    transition: all .12s;
}

.ovo-btn-clr:hover {
    border-color: rgba(255, 255, 255, .28);
    color: rgba(255, 255, 255, .8);
}

.ovo-btn-restore {
    background: none;
    border: .5px solid rgba(234, 179, 8, .3);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11px;
    color: rgba(234, 179, 8, .7);
    cursor: var(--custom-pointer, pointer);
    font-family: Montserrat;
    transition: all .12s;
}

.ovo-btn-restore:hover {
    border-color: rgba(234, 179, 8, .6);
    color: #f59e0b;
}

.ovo-btn-save {
    background: linear-gradient(135deg, rgba(34, 197, 94, .9), rgba(22, 135, 163, .85));
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 12px;
    font-weight: 600;
    cursor: var(--custom-pointer, pointer);
    font-family: Montserrat;
    transition: transform .12s, box-shadow .12s;
}

.ovo-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, .28);
}

.ovo-btn-save:active {
    transform: scale(.97);
}

/* Winner banner */
.ovo-win-banner {
    display: none;
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(212, 160, 23, .1);
    border: 1px solid rgba(212, 160, 23, .28);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: gold;
    font-family: Montserrat;
    animation: ovoPop .35s cubic-bezier(.34, 1.56, .64, 1) both;
}

.ovo-win-banner.on {
    display: block;
}

@keyframes ovoPop {
    from {
        opacity: 0;
        transform: scale(.9) translateY(6px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ══════════════════════════════
   PASSWORD BOX
   ══════════════════════════════ */
.password-box {
    padding: 28px;
    background-color: var(--translucid-dark);
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--cloudy-white);
    border: 1px solid var(--translucid-light);
    font-family: Montserrat;
    border-radius: 12px;
    animation: ovoFadeUp .3s ease both;
}

.password-box h2 {
    font-weight: 400;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.password-box h2 svg {
    height: auto;
    width: 20px;
    padding-top: 3px;
}

.password-box input {
    border-radius: 8px;
    outline: 1.5px solid #35373b;
    padding: 12px 18px;
    background-color: var(--translucid-dark);
    border: none;
    color: var(--cloudy-white);
    transition: outline 125ms ease, box-shadow 125ms ease;
    font-size: 16px;
    width: clamp(200px, 80vw, 400px);
    font-family: Montserrat;
    box-sizing: border-box;
}

.password-box input:hover {
    outline: 1.5px solid var(--main-green);
}

.password-box input:focus {
    outline: 2px solid var(--main-green-hover);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .1);
}

.enter-password-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.enter-password-wrapper span {
    color: var(--crimson-red);
    font-size: 14px;
}

.password-box button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: linear-gradient(45deg, rgba(34, 197, 94, 1) 30%, rgba(22, 135, 163, 1) 100%);
    color: var(--cloudy-white);
    font-family: Montserrat;
    font-weight: 600;
    border: none;
    padding: 10px 22px;
    width: fit-content;
    border-radius: 32px;
    font-size: 15px;
    cursor: var(--custom-pointer, pointer);
    transition: transform 150ms ease, box-shadow 150ms ease;
    margin-top: 6px;
}

.password-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(23, 201, 23, .25);
}

.password-box button:active {
    transform: scale(.97);
}

/* ══════════════════════════════
   MISC
   ══════════════════════════════ */
.thumbnail {
    overflow: hidden;
    height: 120px;
    min-width: 120px;
    border-radius: 8px;
    position: relative;
}

.url-copied {
    background-color: var(--main-green) !important;
    border: 1px solid var(--main-green-hover) !important;
}

.please-notes {
    font-weight: 600;
    padding: 12px 16px;
    font-family: Montserrat;
    max-width: 800px;
    margin: 0 20px 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.please-notes svg {
    height: auto;
    width: 40px;
    flex-shrink: 0;
}

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */
@media (max-width: 560px) {
    .ovo-hero {
        padding: 16px 14px 18px;
    }

    .ovo-score-row {
        gap: 6px;
    }

    .ovo-team-name {
        font-size: 14px;
        max-width: 110px;
    }

    .ovo-score {
        font-size: 38px;
        gap: 8px;
    }

    .ovo-players-row {
        grid-template-columns: 1fr;
    }

    .ovo-round-pill-btn,
    .ovo-add-pill-btn {
        width: 44px;
        height: 42px;
    }

    .password-box {
        padding: 18px;
    }

    .password-box input {
        width: 100%;
    }
}