.public-live {
    background: #e8edf3;
    padding-bottom: 48px;
}

.public-live__topbar {
    background: #111827;
    color: #fff;
    border-bottom: 3px solid var(--achocup-yellow);
}

.public-live__topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 52px;
}

.public-live__back {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.public-live__back:hover {
    color: #fff;
}

.public-live__topbar-title {
    font-family: "Bebas Neue", Arial, sans-serif;
    letter-spacing: 0.08em;
    font-size: 1.35rem;
}

.public-live__live-badge {
    justify-self: end;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.public-live__live-badge.is-active {
    background: #dc2626;
    color: #fff;
    animation: public-live-pulse 1.8s ease-in-out infinite;
}

@keyframes public-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

.public-live__stream-wrap {
    padding-top: 20px;
}

.public-live__stream {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(11, 27, 50, 0.15);
}

.public-live__stream iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.public-live__stream-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
}

.public-live__stream-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: #fff;
}

.public-live__stream-link--youtube {
    background: #ff0000;
}

.public-live__stream-link--twitch {
    background: #9146ff;
}

.public-live__stream-link:hover {
    filter: brightness(1.08);
}

.public-live__meta {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 16px;
    padding: 20px 16px 8px;
}

.public-live__meta-col--center {
    text-align: center;
}

.public-live__meta-col--right {
    text-align: right;
}

.public-live__meta-line {
    margin: 0 0 4px;
    color: #52606d;
    font-size: 0.92rem;
}

.public-live__meta-line--strong {
    color: var(--achocup-navy);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.public-live__meta-label {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #829ab1;
}

.public-live__meta-value {
    margin: 0;
    color: var(--achocup-navy);
    font-weight: 600;
}

.public-live__scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin: 8px 0 24px;
    padding: 24px 20px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 50%, rgba(11, 27, 50, 0.04), transparent 35%),
        radial-gradient(circle at 80% 50%, rgba(245, 196, 0, 0.08), transparent 30%),
        #fff;
    border: 1px solid #d9e2ec;
    box-shadow: 0 10px 28px rgba(11, 27, 50, 0.08);
}

.public-live__team {
    display: flex;
    align-items: center;
    gap: 14px;
}

.public-live__team--away {
    flex-direction: row-reverse;
    text-align: right;
}

.public-live__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.public-live__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--achocup-navy);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.public-live__team-name {
    margin: 0;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: 0.04em;
    color: var(--achocup-navy);
    line-height: 1;
}

.public-live__center {
    text-align: center;
    min-width: 140px;
}

.public-live__score {
    margin: 0;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    line-height: 0.95;
    color: var(--achocup-navy);
}

.public-live__status {
    display: inline-block;
    margin-top: 8px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.public-live__clock {
    margin: 10px 0 0;
    color: #52606d;
    font-weight: 700;
    font-size: 0.95rem;
}

.public-live__clock span + span {
    margin-left: 8px;
    color: var(--achocup-navy);
}

.public-live__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 18px;
    align-items: start;
}

.public-live-roster {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(11, 27, 50, 0.05);
}

.public-live-roster__head {
    padding: 12px 16px;
    background: #f0f4f8;
    border-bottom: 1px solid #d9e2ec;
}

.public-live-roster__head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--achocup-navy);
}

.public-live-roster__subhead {
    margin: 0;
    padding: 10px 16px 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #627d98;
}

.public-live-roster__table-wrap {
    overflow-x: auto;
}

.public-live-roster__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.public-live-roster__table th,
.public-live-roster__table td {
    padding: 8px 10px;
    border-bottom: 1px solid #edf2f7;
    text-align: center;
}

.public-live-roster__table th:nth-child(3),
.public-live-roster__table td:nth-child(3) {
    text-align: left;
}

.public-live-roster__table th {
    background: #f7fafc;
    color: #627d98;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.public-live-roster__table td:nth-child(3) {
    color: #2563eb;
    font-weight: 600;
}

.public-live-roster__empty {
    text-align: center;
    color: #829ab1;
}

.public-live__timeline-wrap {
    position: sticky;
    top: 16px;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(11, 27, 50, 0.05);
}

.public-live__timeline-head {
    padding: 12px 16px;
    background: #f0f4f8;
    border-bottom: 1px solid #d9e2ec;
}

.public-live__timeline-head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--achocup-navy);
}

.public-live__timeline {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.public-live-event {
    display: grid;
    grid-template-columns: 72px 52px 28px 48px 42px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
}

.public-live-event__time {
    font-size: 0.78rem;
    font-weight: 700;
    color: #52606d;
    line-height: 1.2;
}

.public-live-event__team img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.public-live-event__team span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #edf2f7;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--achocup-navy);
}

.public-live-event__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #edf2f7;
    overflow: hidden;
    flex-shrink: 0;
}

.public-live-event__icon-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-live-event.is-goal .public-live-event__icon:not(:has(.public-live-event__icon-img)) {
    background: radial-gradient(circle at 30% 30%, #fff 0 20%, transparent 21%), #111827;
}

.public-live-event.is-foul .public-live-event__icon:not(:has(.public-live-event__icon-img)) {
    background: #f59e0b;
}

.public-live-event.is-save .public-live-event__icon:not(:has(.public-live-event__icon-img)) {
    background: #2563eb;
}

.public-live-event.is-timeout .public-live-event__icon:not(:has(.public-live-event__icon-img)) {
    background: #64748b;
}

.public-live-event__score {
    font-size: 0.78rem;
    font-weight: 700;
    color: #52606d;
    background: #edf2f7;
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
    text-align: center;
}

.public-live-event__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--achocup-yellow);
    color: var(--achocup-navy);
    font-weight: 800;
}

.public-live-event__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.public-live-event__copy strong {
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: var(--achocup-navy);
}

.public-live-event__copy span {
    font-size: 0.82rem;
    color: #52606d;
    line-height: 1.35;
}

.public-live__empty {
    margin: 0;
    padding: 24px 16px;
    color: #829ab1;
    text-align: center;
}

@media (max-width: 980px) {
    .public-live__layout {
        grid-template-columns: 1fr;
    }

    .public-live__timeline-wrap {
        position: static;
    }

    .public-live__timeline {
        max-height: none;
    }

    .public-live__meta {
        grid-template-columns: 1fr;
    }

    .public-live__meta-col--center,
    .public-live__meta-col--right {
        text-align: left;
    }

    .public-live__scoreboard {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .public-live__team,
    .public-live__team--away {
        flex-direction: column;
        text-align: center;
    }

    .public-live-event {
        grid-template-columns: 64px 44px 24px 42px 36px minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .public-live__topbar-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .public-live__back,
    .public-live__live-badge {
        justify-self: center;
    }
}
