.knc18-stream-section1-qc,
.knc18-stream-section2-qc,
.knc18-stream-match-list-qc {
    width: 100%;
    max-width: 100%;
    min-width: 0
}

.knc18-stream-match-list-qc {
    grid-column: 1 / -1
}

.knc18-stream-qc-pc,
.knc18-stream-section1-qc-pc,
.knc18-stream-section2-qc-pc,
.knc18-stream-match-list-qc-pc {
    display: none
}

.knc18-stream-qc-mobile,
.knc18-stream-section1-qc-mobile,
.knc18-stream-section2-qc-mobile,
.knc18-stream-match-list-qc-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 10px 0
}

.knc18-stream-match-list-qc-mobile {
    margin: 0;
}

.knc18-stream-qc-item {
    min-width: 0;
    line-height: 0
}

.knc18-stream-qc-item ins {
    display: block;
    max-width: 100%
}

@media (min-width: 768px) {

    .knc18-stream-qc-pc,
    .knc18-stream-section1-qc-pc,
    .knc18-stream-section2-qc-pc,
    .knc18-stream-match-list-qc-pc {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 10px 0
    }

    .knc18-stream-match-list-qc-pc {
        margin: 0;
    }

    .knc18-stream-qc-mobile,
    .knc18-stream-section1-qc-mobile,
    .knc18-stream-section2-qc-mobile,
    .knc18-stream-match-list-qc-mobile {
        display: none
    }
}

.knc18-stream-onepage {
    display: grid;
    gap: 16px;
    background: var(--knc18-stream-bg, #061a2d);
    color: #fff;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: clip
}

.knc18-stream-onepage *,
.knc18-stream-onepage *::before,
.knc18-stream-onepage *::after {
    box-sizing: border-box
}

.knc18-stream-section1,
.knc18-stream-section1-inner,
.knc18-stream-section2,
.knc18-stream-section2-inner,
.knc18-stream-s1,
.knc18-stream-s2,
.knc18-stream-s2-content,
.knc18-stream-section3 {
    max-width: 100%;
    min-width: 0
}

.knc18-stream-section3 {
    overflow-x: clip
}

.knc18-stream-tabs {
    margin-bottom: 20px;
}

.knc18-stream-tabs,
.knc18-stream-s3-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap
}

.knc18-stream-s3-filters-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0
}

.knc18-stream-s2-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0
}

.knc18-stream-s3-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0
}

.knc18-stream-s3-competition-filter {
    flex: 0 0 auto;
    margin-left: auto;
    max-width: min(280px, 42vw)
}

.knc18-stream-s3-competition-select {
    width: 100%;
    min-width: 180px;
    max-width: 280px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--knc18-stream-panel-bg, #0a1a2e) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231ecb5a' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid var(--knc18-stream-panel-border, #1a3a55);
    border-radius: 999px;
    color: #dff6ff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0;
    padding: 8px 38px 8px 16px;
    transition: border-color .15s, box-shadow .15s
}

.knc18-stream-s3-competition-select:hover,
.knc18-stream-s3-competition-select:focus {
    border-color: #1ecb5a;
    box-shadow: 0 0 0 1px rgba(30, 203, 90, .25);
    outline: none
}

.knc18-stream-s2-filters {
    margin-bottom: 14px;
    justify-content: center;
    align-items: center;
}

.knc18-stream-s3-tabs {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.knc18-stream-tabs button,
.knc18-stream-s3-tabs button {
    border: 1px solid #0ea5e9;
    background: #08243c;
    color: #dff6ff;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 0;
    cursor: pointer
}

.knc18-stream-s3-tabs button {
    min-height: 40px;
    border: 1px solid #2477ff;
    border-radius: 14px;
    background: linear-gradient(180deg, #252f72 0%, #1a2c65 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    color: #13f0ff;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(10, 220, 255, .28);
    transition: border-color .15s, box-shadow .15s, opacity .15s;
}

.knc18-stream-s3-tabs button img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: 0 0 30px;
}

.knc18-stream-s3-tabs button[data-s3-mode="worldcup"] {
    color: #f8d234;
    text-shadow: 0 0 12px rgba(248, 210, 52, .3);
}

.knc18-stream-s3-tabs button[data-s3-mode="worldcup"] span {
    background: linear-gradient(90deg, #b38c16 0%, #ffd84d 20%, #fff3a0 40%, #ffd84d 60%, #b38c16 100%);
    background-size: 200% 100%;
    background-position: 0% center;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* -webkit-text-stroke: 1px #85650c; */
    animation: goldShine 5s linear infinite, glowPulse 2.5s ease-in-out infinite;
}

.knc18-stream-s3-tabs button span {
    font-size: 18px;
    line-height: 1;
}

.knc18-stream-s3-tabs button:hover,
.knc18-stream-s3-tabs button.is-active {
    border-color: #28a2ff;
    box-shadow: 0 0 0 1px rgba(40, 162, 255, .3) inset;
}

/* --- S2 / S3 filter bar --- */
.knc18-stream-s2-filters button,
.knc18-stream-s3-filters button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--knc18-stream-panel-bg, #0a1a2e);
    border: 1px solid var(--knc18-stream-panel-border, #1a3a55);
    color: var(--knc18-text-light-color, #8ecfff);
    padding: 6px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
    line-height: 23px;
    margin: 0;
}

.knc18-stream-s3-filters button {
    font-size: 14px;
}

.knc18-stream-s2-filters button .knc18-s2f-icon,
.knc18-stream-s3-filters button img {
    display: inline-flex;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    align-items: center;
    justify-content: center;
    opacity: .75
}
.knc18-stream-s2-filters button .knc18-s2f-icon svg,
.knc18-stream-s3-filters button img {
    width: 15px;
    height: 15px
}
.knc18-stream-s2-filters button.is-active,
.knc18-stream-s3-filters button.is-active {
    background: #0b2a14;
    border-color: #1ecb5a;
    color: #fff
}
.knc18-stream-s2-filters button.is-active .knc18-s2f-icon,
.knc18-stream-s3-filters button.is-active img {
    opacity: 1
}
.knc18-stream-s2-filters button[data-s2-tab="dien-bien"].is-active,
.knc18-stream-s2-filters button[data-s2-tab="dien-bien"] {
    color: #f87171
}
.knc18-stream-s2-filters button[data-s2-tab="dien-bien"].is-active {
    background: #2d0a0a;
    border-color: #f87171
}
.knc18-stream-s3-filters button[data-s3-filter="live"].is-active,
.knc18-stream-s3-filters button[data-s3-filter="live"] {
    color: #f87171
}
.knc18-stream-s3-filters button[data-s3-filter="live"].is-active {
    background: #2d0a0a;
    border-color: #f87171
}
.knc18-s3f-count {
    display: inline-block;
    min-width: 16px;
    font-size: 12px;
    font-weight: 700;
    color: #7dd3fc;
    line-height: 1
}
.knc18-stream-s3-filters button.is-active .knc18-s3f-count {
    color: #86efac
}
.knc18-stream-s3-filters button[data-s3-filter="live"] .knc18-s3f-count,
.knc18-stream-s3-filters button[data-s3-filter="live"].is-active .knc18-s3f-count {
    color: #fca5a5
}
/* --- end S3 Filter bar --- */

.knc18-stream-tabs button.is-active,
.knc18-stream-s3-tabs button.is-active {
    background: #0b7e3b;
    border-color: #15c25f;
    color: #fff
}

.knc18-stream-s3-tabs button.is-active {
    background: linear-gradient(180deg, #252f72 0%, #1a2c65 100%);
}

/* --- Section 1: match stream tabs --- */
.knc18-stream-tabs--s1 {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0 0 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(77, 159, 255, .45);
    box-shadow: 0 1px 0 rgba(40, 162, 255, .25);
    background: black;
    border-radius: 0;
    flex-wrap: nowrap;
    overflow: visible;
    position: relative;
    z-index: 10
}

.knc18-stream-tabs--s1 button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 1 0;
    min-height: 52px;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease
}

.knc18-stream-tabs--s1 button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: transparent;
    box-shadow: none;
    transition: background .2s ease, box-shadow .2s ease
}

.knc18-stream-tabs--s1 button.is-active {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 78, 160, .35) 45%, rgba(42, 110, 220, .85) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: none
}

.knc18-stream-tabs--s1 button.is-active::after {
    background: #4d9fff;
    box-shadow: 0 0 10px rgba(77, 159, 255, .8)
}

.knc18-stream-tabs--s1 button:hover:not(.is-active) {
    background: rgba(255, 255, 255, .04);
    color: #fff
}

.knc18-stream-tabs--s1 button.knc18-stream-share-popover-close {
    position: absolute;
    top: 5px;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s;
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 50%;
    box-shadow: none;
    outline: none;
}

.knc18-stream-tabs--s1 button.knc18-stream-share-popover-close:hover {
    color: red;
    background-color: transparent;
}

.knc18-stream-tabs--s1 button.knc18-stream-share-copy-btn {
    line-height: 23px;
    min-height: unset;
    background: #2694d0;
    height: auto;
    font-size: 14px;
    font-weight: 600;
    padding: 0 7px;
}

.knc18-stream-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    flex: 0 0 20px;
    color: #fff
}

.knc18-stream-tab-icon svg {
    display: block;
    width: 20px;
    height: 20px
}

.knc18-stream-main {
    display: none;
    background: var(--knc18-stream-panel-bg, #0a1a2e);
    border: 1px solid var(--knc18-stream-panel-border, #1a3a55);
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
    min-width: 0
}

.knc18-stream-main.is-active {
    display: block
}

.knc18-stream-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--knc18-stream-panel-bg, #0a1a2e);
    border: 1px solid var(--knc18-stream-panel-border, #1a3a55);
}

.knc18-stream-view-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1
}

.knc18-stream-view-header .knc18-stream-live-badge--view {
    font-size: 14px;
    font-weight: 600;
    color: #f6d108;
}

.knc18-stream-title-sep {
    color: #5a7a94;
    flex-shrink: 0
}

.knc18-stream-title-text {
    color: var(--knc18-text-light-color, #8ecfff);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.knc18-stream-view-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
    text-align: right
}

.knc18-stream-league {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 500
}

.knc18-stream-league__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    object-fit: contain
}

.knc18-stream-league__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.knc18-stream-datetime {
    color: #f8d234;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap
}

.knc18-stream-view-body .knc18-stream-panel {
    display: none
}

.knc18-stream-view-body .knc18-stream-panel.is-active {
    display: block
}

.knc18-stream-player,
.knc18-stream-shape {
    background: #000;
    min-height: 550px
}

.knc18-stream-player video,
.knc18-stream-shape iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 550px;
    border: 0;
    background: #000
}

.knc18-stream-player--placeholder {
    position: relative;
    overflow: hidden
}

.knc18-stream-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    padding: 48px 20px 56px;
    background-color: #0a1628;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover
}

.knc18-stream-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 32, .45);
    pointer-events: none
}

.knc18-stream-placeholder__card {
    position: relative;
    z-index: 1;
    width: min(100%, 450px);
    margin: 0 auto;
    padding: 32px 24px 22px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
    text-align: center
}

.knc18-stream-placeholder__badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    padding: 6px 18px;
    background: linear-gradient(180deg, #1ccf42, #07711c);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 0 0 12px 12px;
    white-space: nowrap;
    z-index: 2;
}

.knc18-stream-placeholder__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding-top: 6px
}

.knc18-stream-placeholder__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    margin: 0;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.45
}

.knc18-stream-placeholder__label {
    flex-shrink: 0;
    color: #333;
    font-weight: 400
}

.knc18-stream-placeholder__value {
    color: #111;
    font-weight: 700
}

.knc18-stream-placeholder__value--match {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.knc18-stream-placeholder__value--league {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
    justify-content: center;
    max-width: 100%
}

.knc18-stream-placeholder__league-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.knc18-stream-placeholder__league-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    object-fit: contain
}

.knc18-stream-view-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    background: var(--knc18-stream-panel-bg, #0a1a2e);
    border: 1px solid var(--knc18-stream-panel-border, #1a3a55);
    overflow: visible;
    position: relative;
    z-index: 4
}

.knc18-stream-main:has(.knc18-stream-bet-wrap.is-open) {
    overflow: visible;
    z-index: 25
}

.knc18-stream-bet-wrap {
    position: relative;
    flex-shrink: 0;
    overflow: visible
}

.knc18-stream-bet-wrap.is-open {
    z-index: 30
}

.knc18-stream-bet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 120px;
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    background: #f5d20a;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    margin: 0;
    line-height: 1.2
}

.knc18-stream-bet-btn:hover {
    background: #ffe033;
    color: #111
}

.knc18-stream-bookmakers-panel {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    max-width: min(280px, calc(100vw - 32px));
    padding: 6px;
    border: 1px solid #30435b;
    border-radius: 8px;
    background: #0f1622;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    z-index: 40;
    pointer-events: auto
}

.knc18-stream-bet-wrap.is-open .knc18-stream-bookmakers-panel {
    display: grid;
    max-width: unset;
    min-width: unset;
    width: 100%;
    gap: 4px
}

.knc18-stream-bookmaker-panel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #172233;
    color: #d8ecff;
    font-size: 12px;
    text-align: left;
    line-height: 1.2;
    text-decoration: none
}

.knc18-stream-bookmaker-panel-item:hover {
    background: #1f2f46;
    color: #fff
}

.knc18-stream-bookmaker-panel-item img {
    width: 72px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto
}

.knc18-stream-bookmaker-panel-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.knc18-stream-bookmaker-panel-item--static {
    cursor: default
}

.knc18-stream-blv-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
    justify-content: flex-start
}

.knc18-stream-blv-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--knc18-text-light-color, #8ecfff);
    cursor: pointer;
    margin: 0;
    padding: 0
}

.knc18-stream-blv-nav svg {
    display: block;
    width: 18px;
    height: 18px
}

.knc18-stream-blv-nav:hover {
    color: #fff
}

.knc18-stream-blv-scroll {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 0 1 auto;
    justify-content: flex-start;
    max-width: 100%
}

.knc18-stream-blv-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--knc18-text-light-color, #8ecfff);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0
}

.knc18-stream-blv-list {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    max-width: min(420px, 100%)
}

.knc18-stream-blv-list::-webkit-scrollbar {
    display: none
}

.knc18-stream-blv-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 6px 12px 6px 6px;
    border: 1px solid #2a4a6a;
    border-radius: 999px;
    background: #122a42;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin: 0;
    line-height: 23px;
}

.knc18-stream-blv-item img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0
}

.knc18-stream-blv-item.is-active,
.knc18-stream-blv-item:hover {
    border-color: #4d9fff;
    background: #1a3a5c
}

.knc18-stream-blv-empty {
    color: #7a9bb5;
    font-size: 13px
}

.knc18-stream-panel {
    display: none
}

.knc18-stream-panel.is-active {
    display: block
}

/* --- Section 1: share popover --- */
.knc18-stream-share-wrap {
    position: relative;
    flex: 1 1 0;
    display: flex;
    min-width: 0
}

.knc18-stream-share-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 1 auto;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s ease, color .2s ease
}

.knc18-stream-share-trigger:hover {
    background: rgba(255, 255, 255, .04);
    color: #fff
}

.knc18-stream-share-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 120;
    width: min(300px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 14px 14px 12px;
    background: var(--knc18-stream-panel-bg, #0a1a2e);
    border: 1px solid var(--knc18-stream-panel-border, #1a3a55);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55), 0 0 0 1px rgba(77, 159, 255, .08);
    color: #fff
}

.knc18-stream-share-popover[hidden]:not(.is-open) {
    display: none !important
}

.knc18-stream-share-popover.is-open {
    display: block
}

.knc18-stream-share-popover-head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 14px;
    min-height: 24px
}

.knc18-stream-share-popover-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center
}

.knc18-stream-share-popover-close {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    opacity: .85;
    transition: opacity .15s ease, background .15s ease
}

.knc18-stream-share-popover-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, .08)
}

.knc18-stream-share-popover-close svg {
    width: 16px;
    height: 16px;
    display: block
}

.knc18-stream-share-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px
}

.knc18-stream-share-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease
}

.knc18-stream-share-social svg {
    width: 20px;
    height: 20px;
    display: block
}

.knc18-stream-share-social:hover {
    transform: translateY(-1px);
    filter: brightness(1.08)
}

.knc18-stream-share-social--fb {
    background: #1877f2
}

.knc18-stream-share-social--x {
    background: #000
}

.knc18-stream-share-social--tg {
    background: #2aabee
}

.knc18-stream-share-social--threads {
    background: #101010
}

.knc18-stream-share-copy {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%
}

.knc18-stream-share-url {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #1a3a55;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    background: #050d18;
    color: #9ad8ff;
    font-size: 12px;
    line-height: 36px;
    outline: none
}

.knc18-stream-share-copy-btn {
    flex: 0 0 auto;
    height: 36px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: #f5e100;
    color: #0a1428;
    font-size: 13px;
    font-weight: 700;
    line-height: 36px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, color .15s ease
}

.knc18-stream-share-copy-btn:hover {
    background: #fff44d
}

.knc18-stream-share-copy-btn.is-copied {
    background: #4ade80;
    color: #052e16
}

.knc18-stream-s2-content pre,
.knc18-stream-panel pre {
    white-space: pre-wrap;
    background: #041524;
    border: 1px solid #0a3a5c;
    border-radius: 6px;
    padding: 10px;
    color: #9ad8ff;
    max-height: 380px;
    overflow: auto
}

/* --- Section 2: match lineup --- */
.knc18-s2-lineup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0
}

.knc18-s2-lineup__empty {
    margin: 0
}

.knc18-s2-lineup__pitch-wrap {
    border: 1px solid #0a3a5c;
    border-radius: 8px;
    background: #041524;
    overflow: hidden
}

.knc18-s2-lineup__pitch-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .2)
}

.knc18-s2-lineup__pitch-head-side {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0
}

.knc18-s2-lineup__pitch-head-side.is-home {
    justify-content: flex-end
}

.knc18-s2-lineup__pitch-head-side.is-away {
    justify-content: flex-start
}

.knc18-s2-lineup__team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 28px
}

.knc18-s2-lineup__team-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    max-width: min(140px, 28vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.knc18-s2-lineup__team-name.is-home {
    text-align: right
}

.knc18-s2-lineup__team-name.is-away {
    text-align: left
}

.knc18-s2-lineup__formation {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f5c400;
    color: #0a1428;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2
}

.knc18-s2-lineup__pitch-vs {
    justify-self: center;
    flex: 0 0 auto;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--knc18-text-light-color, #8ecfff);
    text-align: center;
    white-space: nowrap
}

.knc18-s2-lineup__pitch {
    position: relative;
    min-height: 600px;
    background-color: #0d2a1c;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover
}

.knc18-s2-lineup__pitch-player {
    position: absolute;
    z-index: 2;
    width: 72px;
    transform: translate(-50%, -50%);
    text-align: center
}

.knc18-s2-lineup__pitch-card {
    position: relative;
    width: 52px;
    margin: 0 auto
}

.knc18-s2-lineup__pitch-photo {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, .25);
    background: #1a3350
}

.knc18-s2-lineup__pitch-photo.is-placeholder {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    background: #1a3350
}

.knc18-s2-lineup__pitch-number {
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    min-width: 22px;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-align: center
}

.knc18-s2-lineup__pitch-player.is-home .knc18-s2-lineup__pitch-number {
    background: #2563eb
}

.knc18-s2-lineup__pitch-player.is-away .knc18-s2-lineup__pitch-number {
    background: #16a34a
}

.knc18-s2-lineup__pitch-name {
    margin: 8px 0 0;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    word-break: break-word
}

.knc18-s2-lineup__sub {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1
}

.knc18-s2-lineup__sub.is-in {
    color: #4ade80
}

.knc18-s2-lineup__sub.is-out {
    color: #f87171
}

.knc18-s2-lineup__bench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px
}

.knc18-s2-lineup__bench-col {
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    background: var(--knc18-stream-panel-bg, #0a1a2e);
    border: 1px solid var(--knc18-stream-panel-border, #1a3a55);
}

.knc18-s2-lineup__coach {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.knc18-s2-lineup__coach-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 40px;
    background: #1a3350
}

.knc18-s2-lineup__coach-photo.is-placeholder {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a3350
}

.knc18-s2-lineup__coach-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0
}

.knc18-s2-lineup__coach-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase
}

.knc18-s2-lineup__coach-role {
    font-size: 11px;
    color: var(--knc18-text-light-color, #8ecfff);
}

.knc18-s2-lineup__bench-title {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--knc18-text-light-color, #8ecfff);
    text-transform: uppercase
}

.knc18-s2-lineup__bench-empty {
    margin: 0;
    font-size: 12px;
    color: var(--knc18-text-light-color, #8ecfff);
}

.knc18-s2-lineup__bench-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px
}

.knc18-s2-lineup__bench-row {
    display: grid;
    grid-template-columns: 22px 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .04)
}

.knc18-s2-lineup__bench-no {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-align: center
}

.knc18-s2-lineup__bench-photo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #1a3350
}

.knc18-s2-lineup__bench-photo.is-placeholder {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1a3350
}

.knc18-s2-lineup__bench-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0
}

.knc18-s2-lineup__bench-name {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.knc18-s2-lineup__bench-pos {
    font-size: 10px;
    font-weight: 700;
    color: var(--knc18-text-light-color, #8ecfff);
}

@media (max-width:768px) {
    .knc18-s2-lineup__pitch {
        min-height: 360px
    }

    .knc18-s2-lineup__pitch-player {
        width: 58px
    }

    .knc18-s2-lineup__pitch-card,
    .knc18-s2-lineup__pitch-photo,
    .knc18-s2-lineup__pitch-photo.is-placeholder {
        width: 42px;
        height: 42px
    }

    .knc18-s2-lineup__pitch-name {
        font-size: 9px
    }

    .knc18-s2-lineup__bench {
        grid-template-columns: 1fr
    }

    .knc18-s2-lineup__bench-grid {
        grid-template-columns: 1fr
    }
}

.knc18-stream-s2-grid {
    display: grid;
    grid-template-columns: 35% minmax(0, 1fr);
    gap: 12px;
    align-items: stretch
}

@media (max-width: 1024px) {
    .knc18-stream-s2-grid {
        grid-template-columns: 1fr
    }

    .knc18-s2-overview-wrap,
    .knc18-s2-incidents-wrap {
        width: 100%
    }
}

.knc18-stream-s2-grid h4 {
    margin: 0 0 8px;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--knc18-text-light-color, #8ecfff);
}

.knc18-s2-overview-wrap {
    min-width: 0
}

.knc18-s2-overview {
    background: var(--knc18-stream-panel-bg, #0a1a2e);
    border: 1px solid var(--knc18-stream-panel-border, #1a3a55);
    border-radius: 8px;
    padding: 12px 10px 14px;
    height: 100%;
    color: #fff
}

.knc18-s2-overview__title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    text-transform: uppercase
}

.knc18-s2-overview__teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12)
}

.knc18-s2-overview__logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 24px
}

.knc18-s2-overview__team-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.knc18-s2-overview__team-name.is-home {
    text-align: right
}

.knc18-s2-overview__team-name.is-away {
    text-align: left
}

.knc18-s2-overview__vs {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    flex: 0 0 auto
}

.knc18-s2-overview__periods {
    display: flex;
    gap: 8px;
    margin-bottom: 14px
}

.knc18-s2-overview__period {
    flex: 1;
    border: 1px solid #00e5ff;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer
}

.knc18-s2-overview__period.is-active {
    color: #ffff00
}

.knc18-s2-overview__panel {
    display: none
}

.knc18-s2-overview__panel.is-active {
    display: block
}

.knc18-s2-overview__possession {
    margin-bottom: 14px
}

.knc18-s2-overview__possession-label {
    text-align: center;
    font-size: 13px;
    margin-bottom: 8px;
    color: #fff
}

.knc18-s2-overview__possession-bar {
    display: flex;
    height: 22px;
    border-radius: 999px;
    overflow: hidden;
    background: #042033
}

.knc18-s2-overview__possession-bar span {
    display: flex;
    align-items: center;
    min-width: 34px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap
}

.knc18-s2-overview__possession-bar .is-home {
    justify-content: flex-start;
    background: #00e5ff;
    color: #011627
}

.knc18-s2-overview__possession-bar .is-away {
    justify-content: flex-end;
    margin-left: auto;
    background: #ffff00;
    color: #011627
}

.knc18-s2-overview__shots {
    margin-bottom: 12px
}

.knc18-s2-overview__shots-total,
.knc18-s2-overview__shots-off,
.knc18-s2-overview__shots-on {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px
}

.knc18-s2-overview__shots-total {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700
}

.knc18-s2-overview__shots-total .is-label,
.knc18-s2-overview__shots-off .is-label,
.knc18-s2-overview__shots-on .is-label {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: #fff
}

.knc18-s2-overview__shots-total .is-home,
.knc18-s2-overview__shots-off .is-home,
.knc18-s2-overview__shots-on .is-home {
    justify-self: start;
    color: #00e5ff
}

.knc18-s2-overview__shots-total .is-away,
.knc18-s2-overview__shots-off .is-away,
.knc18-s2-overview__shots-on .is-away {
    justify-self: end;
    color: #ffff00
}

.knc18-s2-overview__shots-box {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(0, 229, 255, .06) 0%, rgba(0, 229, 255, .06) 50%, rgba(255, 255, 0, .06) 50%, rgba(255, 255, 0, .06) 100%)
}

.knc18-s2-overview__shots-off {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.knc18-s2-overview__shots-off .is-home,
.knc18-s2-overview__shots-off .is-away {
    min-width: 28px;
    padding: 4px 6px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 700
}

.knc18-s2-overview__shots-off .is-home {
    background: rgba(0, 229, 255, .18);
    color: #00e5ff
}

.knc18-s2-overview__shots-off .is-away {
    background: rgba(255, 255, 0, .18);
    color: #ffff00
}

.knc18-s2-overview__shots-on {
    padding: 12px 10px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    margin: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .02)
}

.knc18-s2-overview__shots-on .is-home,
.knc18-s2-overview__shots-on .is-away {
    min-width: 28px;
    padding: 4px 6px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 700
}

.knc18-s2-overview__shots-on .is-home {
    background: rgba(0, 229, 255, .22);
    color: #00e5ff
}

.knc18-s2-overview__shots-on .is-away {
    background: rgba(255, 255, 0, .22);
    color: #ffff00
}

.knc18-s2-overview__rows {
    display: grid;
    gap: 0;
    height: 500px;
    overflow-y: scroll;
}

.knc18-s2-overview__row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px
}

.knc18-s2-overview__row:last-child {
    border-bottom: 0
}

.knc18-s2-overview__row .is-home {
    color: #00e5ff;
    font-weight: 700;
    text-align: left
}

.knc18-s2-overview__row .is-away {
    color: #ffff00;
    font-weight: 700;
    text-align: right
}

.knc18-s2-overview__row .is-label {
    text-align: center;
    color: #fff;
    line-height: 1.25
}

.knc18-s2-overview__empty {
    margin-top: 8px
}

.knc18-s2-incidents-wrap {
    min-width: 0
}

.knc18-s2-incidents {
    background: var(--knc18-stream-panel-bg, #0a1a2e);
    border: 1px solid var(--knc18-stream-panel-border, #1a3a55);
    border-radius: 8px;
    padding: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding-top: 12px;
    min-height: 100%
}

.knc18-s2-incidents__title {
    margin: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.knc18-s2-incidents__header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 14px 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.knc18-s2-incidents__team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 0
}

.knc18-s2-incidents__team.is-home {
    justify-content: flex-end
}

.knc18-s2-incidents__team.is-away {
    justify-content: flex-start
}

.knc18-s2-incidents__logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 24px
}

.knc18-s2-incidents__team-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.knc18-s2-incidents__badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto
}

.knc18-s2-incidents__badge {
    border: 1px solid #00f2ff;
    border-radius: 999px;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 700;
    color: #ffcc00;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 242, 255, .45)
}

.knc18-s2-incidents__phase-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 8px 10px 4px
}

.knc18-s2-incidents__phase-rail::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: rgba(0, 229, 255, .35);
    z-index: 0
}

.knc18-s2-incidents__phase-rail .knc18-s2-incidents__marker {
    position: relative;
    z-index: 1;
    margin: 6px 0
}

.knc18-s2-incidents__phase-rail .knc18-s2-incidents__marker span {
    border-color: #00f2ff;
    color: #ffcc00;
    box-shadow: 0 0 10px rgba(0, 242, 255, .35)
}

.knc18-s2-incidents__phase-rail .knc18-s2-incidents__marker.is-current span {
    border-color: #2db10b;
    box-shadow: 0 0 10px rgba(45, 177, 11, .35)
}

.knc18-s2-incidents__timeline {
    max-height: 785px;
    overflow-y: auto
}

.knc18-s2-incidents__timeline-track {
    position: relative;
    padding: 4px 10px 12px
}

.knc18-s2-incidents__timeline-track::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: rgba(0, 229, 255, .35);
    z-index: 0
}

.knc18-s2-incidents__marker {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin: 10px 0
}

.knc18-s2-incidents__marker span {
    border: 1px solid #2db10b;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #ffff00;
    background: #011627
}

.knc18-s2-incidents__timeline .knc18-s2-incidents__marker.is-phase span {
    border-color: #00f2ff;
    color: #ffcc00;
    box-shadow: 0 0 10px rgba(0, 242, 255, .35)
}

.knc18-s2-incidents__timeline .knc18-s2-incidents__marker.is-phase.is-current span {
    border-color: #2db10b;
    box-shadow: 0 0 10px rgba(45, 177, 11, .35)
}

.knc18-s2-incidents__event {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.knc18-s2-incidents__event.is-home .knc18-s2-incidents__event-body {
    grid-column: 1;
    justify-self: end
}

.knc18-s2-incidents__event.is-home .knc18-s2-incidents__minute {
    grid-column: 2;
    justify-self: center
}

.knc18-s2-incidents__event.is-away .knc18-s2-incidents__minute {
    grid-column: 2;
    justify-self: center
}

.knc18-s2-incidents__event.is-away .knc18-s2-incidents__event-body {
    grid-column: 3;
    justify-self: start
}

.knc18-s2-incidents__event-body {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0
}

.knc18-s2-incidents__event.is-home .knc18-s2-incidents__event-body {
    flex-direction: row-reverse
}

.knc18-s2-incidents__text {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #fff
}

.knc18-s2-incidents__event.is-home .knc18-s2-incidents__text {
    text-align: right
}

.knc18-s2-incidents__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center
}

.knc18-s2-incidents__minute {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background: rgb(4 53 104);
    padding: 2px 5px;
    border-radius: 20px;
}

.knc18-s2-incidents__legend {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    padding: 12px;
    margin: 0;
    background: #00406b;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    scrollbar-width: thin
}

.knc18-s2-incidents__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto
}

.knc18-s2-incidents__legend-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.knc18-s2-incidents__legend-label {
    font-size: 12px;
    color: #fff;
    white-space: nowrap
}

.knc18-s2-incidents__empty {
    margin: 8px 0 14px
}

.knc18-stream-history {
    display: grid;
    gap: 8px
}

.knc18-stream-h-row {
    display: flex;
    justify-content: space-between;
    background: #07233c;
    border: 1px solid #114367;
    padding: 8px;
    border-radius: 6px
}

.knc18-stream-table {
    width: 100%;
    border-collapse: collapse;
    background: #07233c;
    border: 1px solid #114367
}

.knc18-stream-table th,
.knc18-stream-table td {
    padding: 8px;
    border-bottom: 1px solid #114367;
    text-align: left
}

.knc18-stream-s3-panel {
    display: none
}

.knc18-stream-s3-panel.is-active {
    display: block
}

.knc18-stream-s3-panel {
    position: relative;
    margin-top: 20px;
    max-width: 100%;
    min-width: 0;
    overflow: visible
}

.knc18-stream-s3-panel.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 16, 28, .58);
    z-index: 4;
    border-radius: 8px
}

.knc18-stream-s3-panel.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid #2f4f6f;
    border-top-color: #19d16f;
    border-radius: 50%;
    animation: knc18Spin .8s linear infinite;
    z-index: 5
}

@keyframes knc18Spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes goldShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(255, 215, 102, .35)) drop-shadow(0 0 6px rgba(255, 215, 102, .2));
    }
    50% {
        filter: drop-shadow(0 0 4px rgba(255, 227, 143, .75)) drop-shadow(0 0 11px rgba(255, 227, 143, .45));
    }
}

.knc18-stream-match-list {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0
}

@media (min-width: 992px) {
    .knc18-stream-match-list {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

.knc18-stream-match-list.no-match {
    grid-template-columns: 1fr;
}

.knc18-stream-match-list.no-match .knc18-stream-empty {
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    background: #0b1f32;
    border: 1px solid #1a3a55;
    margin-top: 10px;
}

.knc18-stream-match-item {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: #232324 url('../../images/bg-match.webp') no-repeat bottom;
    background-size: cover;
    border: 1px solid #114367;
    border-radius: 11px;
    display: block;
    height: auto;
    color: #fff;
    padding: 8px 14px 12px 14px;
    cursor: pointer;
    margin: 0;
    overflow: visible;
    text-align: left;
    z-index: 1;
    isolation: isolate
}

.knc18-stream-match-item:hover, .knc18-stream-match-item.is-active, .knc18-stream-match-item.is-hot.is-active  {
   border-color: #17bd3a;
}

.knc18-stream-match-item.is-hot,
.knc18-stream-match-item.is-hot:hover
{
   border-color: red;
}

.knc18-stream-match-item:has(.knc18-stream-blv.is-open) {
    z-index: 40
}

.knc18-stream-match-item>* {
    position: relative;
    z-index: 1
}

.knc18-stream-match-item>*+* {
    margin-top: 8px
}

.knc18-stream-match-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 12px;
    color: #a9c7de
}

.knc18-stream-match-league {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600
}

.knc18-stream-match-league__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    object-fit: contain
}

.knc18-stream-match-league__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.knc18-stream-match-time {
    flex: 0 0 auto;
    white-space: nowrap
}

.knc18-stream-match-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 64px;
    width: 100%;
    min-width: 0
}

.knc18-stream-team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0
}

.knc18-stream-team img {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    object-fit: contain
}

.knc18-stream-team span {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.knc18-stream-team--home {
    justify-content: flex-end
}

.knc18-stream-team--home span {
    text-align: right;
}

.knc18-stream-team--away {
    justify-content: start
}

.knc18-stream-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    max-width: 100%;
    color: #fff;
    background: linear-gradient(180deg, #1e5df1, #0033a9);
    border-radius: 20px;
    padding: 6px 10px
}

.knc18-stream-score strong {
    font-size: 26px;
    line-height: 1
}

.knc18-stream-score span {
    font-size: 22px;
    line-height: 1
}

.knc18-stream-match-item .knc18-stream-live-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #1ccf42, #07711c);
    color: #fff;
    padding: 2px 14px;
    border-radius: 0 0 12px 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 23px;
}

.knc18-stream-match-item .knc18-stream-live-badge.is-upcoming {
    background: linear-gradient(180deg, #cf751c, #af2f0e);
}

.knc18-stream-match-bottom {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px;
    border-top: 1px solid #2b3040;
    padding-top: 8px;
    z-index: 2;
    width: 100%;
    min-width: 0;
    overflow: visible
}

.knc18-stream-match-item:has(.knc18-stream-blv.is-open) .knc18-stream-match-bottom {
    z-index: 10
}

.knc18-stream-match-meta {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
    color: #d6f2ff;
    align-items: center
}

.knc18-stream-meta-chip {
    background: rgba(23, 31, 45, .9);
    border: 1px solid #344055;
    border-radius: 999px;
    padding: 2px 8px;
    line-height: 1.2;
    white-space: nowrap
}

.knc18-stream-pill {
    background: #0a5e2e;
    color: #ccfbe6;
    border: 1px solid #1ea460;
    padding: 3px 9px;
    border-radius: 999px
}

.knc18-stream-blv {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #4a566f;
    background: rgba(16, 22, 33, .92);
    padding: 2px 12px;
    border-radius: 999px;
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 23px;
    cursor: pointer;
    overflow: visible
}

.knc18-stream-blv.is-open {
    z-index: 20
}

.knc18-stream-blv svg {
    width: 18px;
    height: 18px;
}
.knc18-stream-blv-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    vertical-align: middle;
}

.knc18-stream-commentators {
    display: none;
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    background: #0f1622;
    border: 1px solid #30435b;
    border-radius: 8px;
    min-width: 160px;
    max-width: min(240px, calc(100% - 16px));
    padding: 6px;
    z-index: 30;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    pointer-events: auto
}

.knc18-stream-blv.is-open .knc18-stream-commentators {
    display: grid;
    gap: 4px
}

.knc18-stream-commentator-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #172233;
    color: #d8ecff;
    font-size: 12px;
    text-align: left;
    line-height: 1.2
}

.knc18-stream-commentator-item img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 20px
}

.knc18-stream-match-odds {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: end;
    gap: 4px 6px;
    min-width: 0;
    max-width: 100%
}

.knc18-stream-market {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    min-width: 0
}

.knc18-stream-market span {
    background: #0a2438;
    border: 1px solid #174e75;
    border-radius: 4px;
    padding: 3px 4px;
    font-size: 11px;
    color: #bfe1ff;
    text-align: center;
    line-height: 1.1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.knc18-stream-bookmaker {
    grid-row: 1 / span 2;
    grid-column: 2;
    border-radius: 8px;
    padding: 0;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    font-style: italic;
    color: #e8fff4;
    letter-spacing: .5px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
    white-space: nowrap
}

.knc18-stream-bookmaker a {
    display: block;
    line-height: 0
}

.knc18-stream-bookmaker img {
    display: block;
    width: 86px;
    max-width: 100%;
    height: auto
}

.knc18-stream-match-item.is-upcoming .knc18-stream-match-main {
    min-height: 58px
}

.knc18-stream-match-item.is-upcoming .knc18-stream-team img {
    width: 30px;
    height: 30px
}

.knc18-stream-match-item.is-upcoming .knc18-stream-match-bottom {
    grid-template-columns: minmax(0, 1fr) auto auto
}

.knc18-stream-match-item.is-live .knc18-stream-match-bottom {
    grid-template-columns: minmax(0, 1fr) auto auto
}

/* Tablet 2-column: compact card to avoid horizontal overflow */
@media (min-width: 992px) and (max-width: 1200px) {
    .knc18-stream-match-item {
        padding: 8px 10px 10px
    }

    .knc18-stream-match-bottom {
        grid-template-columns: 1fr;
        gap: 8px
    }

    .knc18-stream-blv {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        justify-self: center
    }

    .knc18-stream-match-odds {
        justify-self: stretch;
        width: 100%
    }

    .knc18-stream-bookmaker img {
        width: 72px
    }

    .knc18-stream-team span {
        font-size: 12px
    }

    .knc18-stream-score strong {
        font-size: 22px
    }

    .knc18-stream-score {
        padding: 5px 10px
    }
}

.knc18-stream-loadmore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 14px 16px;
    line-height: 23px;
    background: #0b1f32;
    border: 1px solid #1a3a55;
    border-radius: 8px;
    color: #a8cde8;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s
}
.knc18-stream-loadmore:hover {
    background: #0f2d47;
    border-color: #2a6496;
    color: #e0f4ff
}
.knc18-stream-loadmore img {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
}
.knc18-stream-loadmore:hover img {
    opacity: 1
}

.knc18-stream-empty {
    padding: 12px;
    border: 1px dashed #1f5a82;
    text-align: center;
    border-radius: 6px
}

/* Tablet / mobile: match cards & stream view (list is 1 col below 992px) */
@media (max-width: 991px) {
    .knc18-stream-match-item {
        padding: 8px 10px 10px
    }

    .knc18-stream-match-main {
        gap: 4px;
        min-height: 56px
    }

    .knc18-stream-match-bottom,
    .knc18-stream-match-item.is-live .knc18-stream-match-bottom,
    .knc18-stream-match-item.is-upcoming .knc18-stream-match-bottom {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        grid-template-columns: unset
    }

    .knc18-stream-match-meta {
        justify-content: center
    }

    .knc18-stream-blv,
    .knc18-stream-match-item.is-live .knc18-stream-blv,
    .knc18-stream-match-item.is-upcoming .knc18-stream-blv {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        align-self: center;
        max-width: 100%;
        font-size: 12px;
        line-height: 1.3;
        padding: 2px 10px
    }

    .knc18-stream-match-odds {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        grid-template-rows: auto;
        align-items: center;
        gap: 4px 6px;
        width: 100%;
        max-width: 100%
    }

    .knc18-stream-market--asia {
        grid-column: 1;
        grid-row: 1
    }

    .knc18-stream-market--ou {
        grid-column: 2;
        grid-row: 1
    }

    .knc18-stream-market {
        min-width: 0
    }

    .knc18-stream-bookmaker {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        padding: 0
    }

    .knc18-stream-view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px
    }

    .knc18-stream-view-title {
        width: 100%
    }

    .knc18-stream-view-meta {
        width: 100%;
        max-width: 100%;
        text-align: left;
        flex-wrap: wrap;
        justify-content: flex-start
    }

    .knc18-stream-league {
        max-width: 100%
    }

    .knc18-stream-view-footer {
        flex-direction: column;
        align-items: stretch
    }

    .knc18-stream-blv-bar {
        justify-content: center;
        width: 100%
    }

    .knc18-stream-blv-scroll {
        flex: 1 1 auto;
        width: 100%;
        justify-content: flex-start
    }

    .knc18-stream-blv-list {
        max-width: 100%
    }

    .knc18-stream-commentators {
        max-width: min(240px, calc(100% - 16px))
    }

    .knc18-stream-s2-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 6px
    }

    .knc18-stream-s2-filters button {
        flex: 0 0 auto
    }
}

@media (max-width:768px) {
    .knc18-stream-s3-filters-row {
        flex-wrap: wrap;
        align-items: stretch
    }

    .knc18-stream-s3-competition-filter {
        width: 100%;
        max-width: none;
        margin-left: 0
    }

    .knc18-stream-s3-competition-select {
        max-width: none
    }

    .knc18-stream-s2-filters,
    .knc18-stream-s3-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: rgba(77, 159, 255, .5) transparent;
        padding-bottom: 6px;
        margin-right: -10px;
        margin-left: -10px;
        padding-left: 10px;
        padding-right: 10px
    }

    .knc18-stream-s2-filters::-webkit-scrollbar,
    .knc18-stream-s3-filters::-webkit-scrollbar {
        height: 4px
    }

    .knc18-stream-s2-filters::-webkit-scrollbar-thumb,
    .knc18-stream-s3-filters::-webkit-scrollbar-thumb {
        background: rgba(77, 159, 255, .45);
        border-radius: 4px
    }

    .knc18-stream-s2-filters::-webkit-scrollbar-track,
    .knc18-stream-s3-filters::-webkit-scrollbar-track {
        background: transparent
    }

    .knc18-stream-s2-filters button,
    .knc18-stream-s3-filters button {
        flex: 0 0 auto;
        scroll-snap-align: start
    }

    .knc18-stream-s3-tabs {
        display: flex;
        gap: 10px;
        width: 100%;
        flex-wrap: nowrap
    }

    .knc18-stream-s3-tabs button {
        flex: 1 1 0;
        min-width: 0;
        min-height: 58px;
        border-radius: 10px;
        gap: 8px
    }

    .knc18-stream-s3-tabs button img {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .knc18-stream-s3-tabs button span {
        font-size: 16px;
    }

    .knc18-stream-meta-chip {
        font-size: 11px;
        padding: 2px 6px
    }

    .knc18-stream-bookmaker {
        font-size: 20px
    }

    .knc18-stream-bookmaker img {
        width: 64px
    }

    .knc18-stream-team img {
        width: 26px;
        height: 26px
    }

    .knc18-stream-team span {
        font-size: 12px
    }

    .knc18-stream-score {
        padding: 5px 8px;
        gap: 4px
    }

    .knc18-stream-score strong {
        font-size: 20px
    }

    .knc18-stream-score span {
        font-size: 16px
    }

    .knc18-stream-match-item .knc18-stream-live-badge {
        font-size: 12px;
        line-height: 20px;
        padding: 2px 10px
    }

    .knc18-stream-player,
    .knc18-stream-shape,
    .knc18-stream-player video,
    .knc18-stream-shape iframe,
    .knc18-stream-placeholder {
        min-height: 330px
    }

    .knc18-stream-placeholder {
        align-items: stretch;
        padding: 40px 0 48px
    }

    .knc18-stream-placeholder__card {
        width: auto;
        min-width: 280px;
        max-width: 100%;
        margin: 0 auto;
        padding: 24px 16px 18px;
        max-height: max-content;
        border-radius: 0
    }

    .knc18-stream-placeholder__row {
        font-size: 14px
    }

    .knc18-stream-tabs--s1 button,
    .knc18-stream-share-trigger {
        min-height: 46px;
        padding: 10px 8px;
        font-size: 13px;
        gap: 6px
    }

    .knc18-stream-tabs--s1.is-share-open {
        overflow: visible;
        z-index: 60
    }

    .knc18-stream-share-wrap {
        position: static
    }

    .knc18-stream-share-popover {
        position: absolute;
        top: 100%;
        bottom: auto;
        left: auto;
        right: 8px;
        margin-top: 8px;
        transform: none;
        width: min(300px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        z-index: 200
    }

    .knc18-stream-tabs--s1.is-share-open + .knc18-stream-main {
        position: relative;
        z-index: 1
    }

    .knc18-stream-tab-icon,
    .knc18-stream-tab-icon svg {
        width: 18px;
        height: 18px
    }
}

.knc18-s2-vs {
    width: 100%;
    min-width: 0
}

.knc18-s2-vs__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch
}

.knc18-s2-vs__col {
    background: var(--knc18-stream-panel-bg, #0a1a2e);
    border: 1px solid var(--knc18-stream-panel-border, #1a3a55);
    border-radius: 10px;
    padding: 12px 10px 14px;
    min-width: 0;
    color: #fff
}

.knc18-s2-vs__col--h2h {
    border-color: #1d6fa8;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, .18), 0 0 18px rgba(14, 116, 178, .22)
}

.knc18-s2-vs__team-head {
    text-align: center;
    margin-bottom: 10px
}

.knc18-s2-vs__team-name {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    text-transform: none
}

.knc18-s2-vs__badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(234, 179, 8, .18);
    border: 1px solid rgba(234, 179, 8, .45);
    color: #fde047;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4
}

.knc18-s2-vs__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px
}

.knc18-s2-vs__summary--h2h {
    margin-bottom: 8px
}

.knc18-s2-vs__stat {
    display: block;
    padding: 6px 4px;
    border-radius: 6px;
    background: rgba(7, 35, 60, .85);
    border: 1px solid #114367;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    letter-spacing: .02em
}

.knc18-s2-vs__stat--win {
    color: #4ade80
}

.knc18-s2-vs__stat--draw {
    color: #facc15
}

.knc18-s2-vs__stat--loss {
    color: #f87171
}

.knc18-s2-vs__h2h-title {
    margin: 0 0 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff
}

.knc18-s2-vs__h2h-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-bottom: 10px
}

.knc18-s2-vs__h2h-team {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.knc18-s2-vs__h2h-team:first-child {
    text-align: right
}

.knc18-s2-vs__h2h-team:last-child {
    text-align: left
}

.knc18-s2-vs__h2h-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, .12);
    border: 1px solid rgba(56, 189, 248, .35);
    color: var(--knc18-text-light-color, #8ecfff);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap
}

.knc18-s2-vs__progress {
    display: flex;
    width: 100%;
    height: 6px;
    margin-bottom: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08)
}

.knc18-s2-vs__progress-seg {
    position: relative;
    height: 100%;
    min-width: 0
}

.knc18-s2-vs__progress-seg em {
    position: absolute;
    top: -16px;
    right: 0;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    line-height: 1
}

.knc18-s2-vs__progress-seg--win {
    background: #22c55e
}

.knc18-s2-vs__progress-seg--win em {
    color: #4ade80
}

.knc18-s2-vs__progress-seg--draw {
    background: #eab308
}

.knc18-s2-vs__progress-seg--draw em {
    color: #facc15
}

.knc18-s2-vs__progress-seg--loss {
    background: #ef4444
}

.knc18-s2-vs__progress-seg--loss em {
    color: #f87171
}

.knc18-s2-vs__table {
    border: 1px solid #114367;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(7, 35, 60, .55)
}

.knc18-s2-vs__table.knc18-s2-vs__table--h2h {
    max-height: 300px;
    overflow-y: scroll;
}

.knc18-s2-vs__table-head,
.knc18-s2-vs__row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 26px 26px 18px;
    gap: 6px;
    align-items: center;
    padding: 8px 8px
}

.knc18-s2-vs__table--h2h .knc18-s2-vs__table-head,
.knc18-s2-vs__table--h2h .knc18-s2-vs__row--h2h {
    grid-template-columns: 72px minmax(0, 1fr) 26px 26px
}

.knc18-s2-vs__table-head {
    background: rgba(88, 28, 135, .45);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding-top: 7px;
    padding-bottom: 7px
}

.knc18-s2-vs__table-league {
    grid-column: 1 / 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0
}

.knc18-s2-vs__table-league-logo,
.knc18-s2-vs__table-league-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    object-fit: contain;
    color: #fff
}

.knc18-s2-vs__table-league-name {
    font-size: 10px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.knc18-s2-vs__table-score-label {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-align: center
}

.knc18-s2-vs__row {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: 11px
}

.knc18-s2-vs__row:last-child {
    border-bottom: 0
}

.knc18-s2-vs__date {
    color: #fff;
    font-size: 10px;
    line-height: 1.2
}

.knc18-s2-vs__teams {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0
}

.knc18-s2-vs__team {
    display: block;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25
}

.knc18-s2-vs__team.is-focus {
    color: var(--knc18-text-light-color, #8ecfff);
    font-weight: 600
}

.knc18-s2-vs__team.is-opponent {
    color: #fff;
    font-weight: 500
}

.knc18-s2-vs__scores {
    grid-column: 3 / 5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px
}

.knc18-s2-vs__score-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    color: #e2e8f0;
    font-weight: 600;
    line-height: 1.2
}

.knc18-s2-vs__result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px
}

.knc18-s2-vs__result--win {
    color: #4ade80
}

.knc18-s2-vs__result--draw {
    color: #facc15
}

.knc18-s2-vs__result--loss {
    color: #f87171
}

.knc18-s2-vs .knc18-stream-empty {
    margin-top: 8px
}

@media (max-width: 1200px) {
    .knc18-s2-vs__grid {
        grid-template-columns: 1fr
    }
}

@media (max-width: 640px) {
    .knc18-s2-vs__table-head,
    .knc18-s2-vs__row {
        grid-template-columns: 64px minmax(0, 1fr) 22px 22px 16px;
        gap: 4px;
        padding: 7px 6px
    }

    .knc18-s2-vs__table--h2h .knc18-s2-vs__table-head,
    .knc18-s2-vs__table--h2h .knc18-s2-vs__row--h2h {
        grid-template-columns: 64px minmax(0, 1fr) 22px 22px
    }

    .knc18-s2-vs__stat {
        font-size: 9px;
        padding: 5px 2px
    }
}

.knc18-s2-rank {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.knc18-s2-rank__group {
    overflow: hidden;
    max-width: 100%;
    min-width: 0
}

.knc18-s2-rank__head,
.knc18-s2-rank__row {
    display: grid;
    grid-template-columns: 44px minmax(140px, 1fr) 30px 34px 24px 24px 24px 52px 34px 88px;
    align-items: center;
    column-gap: 6px
}

.knc18-s2-rank__head {
    padding: 8px;
    color: #8ea8bc;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    background: black;
    border-bottom: 1px solid #123651
}

.knc18-s2-rank__head .knc18-s2-rank__group-name {
    grid-column: 1 / 3;
    color: #fff;
    font-size: 13px;
    font-weight: 600
}

.knc18-s2-rank__row {
    position: relative;
    min-height: 34px;
    padding: 5px 8px;
    border-bottom: 1px solid #0f2d45
}

.knc18-s2-rank__row:last-child {
    border-bottom: 0
}

.knc18-s2-rank__row.is-highlight {
    background: rgba(34, 197, 94, .06)
}

.knc18-s2-rank__marker {
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #22c55e;
    transform: translateY(-50%)
}

.knc18-s2-rank__rank-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px
}

.knc18-s2-rank__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 3px;
    background: #123651;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1
}

.knc18-s2-rank__row.has-promotion .knc18-s2-rank__rank {
    background: var(--knc18-rank-accent, #2db9c8)
}

.knc18-s2-rank__trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    flex-shrink: 0
}

.knc18-s2-rank__trend--same {
    color: #6b8296
}

.knc18-s2-rank__trend--up {
    color: #22c55e
}

.knc18-s2-rank__trend--down {
    color: #ef4444
}

.knc18-s2-rank__team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0
}

.knc18-s2-rank__team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0
}

.knc18-s2-rank__team-name {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.knc18-s2-rank__col {
    text-align: center;
    color: #dbe7f1;
    font-size: 12px;
    line-height: 1.2
}

.knc18-s2-rank__col--points {
    color: #f5c518;
    font-weight: 700
}

.knc18-s2-rank__col--goals {
    font-size: 11px
}

.knc18-s2-rank__col--form {
    display: flex;
    justify-content: center
}

.knc18-s2-rank__form {
    display: inline-flex;
    align-items: center;
    gap: 3px
}

.knc18-s2-rank__form--empty {
    color: #5f7385;
    font-size: 11px
}

.knc18-s2-rank__form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 8px;
    font-weight: 700;
    line-height: 1
}

.knc18-s2-rank__form-badge--win {
    background: rgba(34, 197, 94, .18);
    color: #4ade80
}

.knc18-s2-rank__form-badge--draw {
    background: rgba(96, 165, 250, .18);
    color: #93c5fd
}

.knc18-s2-rank__form-badge--loss {
    background: rgba(248, 113, 113, .18);
    color: #f87171
}

.knc18-s2-rank__legends {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    background: #0f0f0f;
    padding: 8px;
    justify-content: center;
}

.knc18-s2-rank__legend {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.knc18-s2-rank__legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0
}

.knc18-s2-rank__legend-label {
    color: #8ea8bc;
    font-size: 11px;
    line-height: 1.3
}

.knc18-s2-rank .knc18-stream-empty {
    margin-top: 8px
}

.knc18-s2-rank__table-wrap {
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    background: var(--knc18-stream-panel-bg, #0a1a2e);
    border: 1px solid var(--knc18-stream-panel-border, #1a3a55);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(77, 159, 255, .45) transparent
}

.knc18-s2-rank__table-wrap::-webkit-scrollbar {
    height: 4px
}

.knc18-s2-rank__table-wrap::-webkit-scrollbar-thumb {
    background: rgba(77, 159, 255, .45);
    border-radius: 4px
}

@media (max-width: 900px) {
    .knc18-s2-rank__head,
    .knc18-s2-rank__row {
        min-width: 640px
    }
}

@media (max-width: 640px) {
    .knc18-s2-rank__head,
    .knc18-s2-rank__row {
        grid-template-columns: 40px minmax(120px, 1fr) 28px 30px 22px 22px 22px 48px 30px 80px;
        column-gap: 4px;
        min-width: 580px
    }

    .knc18-s2-rank__head {
        font-size: 10px
    }

    .knc18-s2-rank__head .knc18-s2-rank__group-name {
        font-size: 12px
    }

    .knc18-s2-rank__team-name,
    .knc18-s2-rank__col {
        font-size: 11px
    }
}

/* --- Stream layouts: extra-small & touch refinements --- */
@media (max-width: 768px) {
    .knc18-s2-overview__periods {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 4px
    }

    .knc18-s2-overview__period {
        flex: 0 0 auto
    }

    .knc18-s2-overview__teams {
        gap: 8px;
        padding: 12px 0
    }

    .knc18-s2-overview__team-name {
        font-size: 11px
    }

    .knc18-s2-incidents__header {
        gap: 8px;
        padding: 12px 8px
    }

    .knc18-s2-incidents__team-name {
        font-size: 11px
    }

    .knc18-s2-incidents__badge {
        padding: 4px 10px;
        font-size: 11px
    }

    .knc18-s2-vs__table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch
    }

    .knc18-s2-vs__table-head,
    .knc18-s2-vs__row {
        min-width: 280px
    }
}

@media (max-width: 480px) {
    .knc18-stream-onepage {
        padding: 8px;
        gap: 12px;
        border-radius: 8px
    }

    .knc18-stream-tabs--s1:not(.is-share-open) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none
    }

    .knc18-stream-tabs--s1.is-share-open {
        overflow: visible
    }

    .knc18-stream-tabs--s1::-webkit-scrollbar {
        display: none
    }

    .knc18-stream-tabs--s1 button,
    .knc18-stream-share-wrap {
        flex: 1 0 33%;
        min-width: 96px
    }

    .knc18-stream-tabs--s1 button,
    .knc18-stream-share-trigger {
        min-height: 44px;
        padding: 8px 6px;
        font-size: 12px;
        gap: 4px
    }

    .knc18-stream-title-text {
        font-size: 12px
    }

    .knc18-stream-datetime {
        font-size: 11px
    }

    .knc18-stream-bet-btn {
        min-width: 0;
        width: 100%;
        padding: 10px 14px
    }

    .knc18-stream-s3-tabs button span {
        font-size: 13px
    }

    .knc18-s2-lineup__pitch-head {
        column-gap: 6px;
        padding: 8px
    }

    .knc18-s2-lineup__team-name {
        max-width: min(100px, 24vw)
    }

    .knc18-s2-rank__head,
    .knc18-s2-rank__row {
        min-width: 520px
    }
}