:root {
    --blue: #104ccc;
    --blue-dark: #073ba9;
    --sky: #469fdd;
    --text: #24313e;
    --muted: #8b949e;
    --line: #ededed;
    --width: 1200px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: #f2f2f2;
    color: var(--text);
    font: 14px/1.6 Arial, 'Microsoft YaHei', sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible {
    outline: 2px solid #ffb52e;
    outline-offset: 3px;
}
.t4-wrap { width: var(--width); max-width: calc(100% - 32px); margin: 0 auto; }
.t4-skip { position: absolute; top: -80px; left: 12px; padding: 10px; background: #fff; z-index: 10; }
.t4-skip:focus { top: 8px; }
.t4-header { background: var(--blue); color: #fff; }
.t4-header-inner { display: flex; min-height: 65px; align-items: center; gap: 30px; }
.t4-brand { display: flex; min-width: 0; align-items: center; gap: 7px; font-size: 28px; font-weight: 700; }
.t4-brand span:last-child { max-width: 290px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t4-nav { display: flex; align-self: stretch; flex-wrap: wrap; }
.t4-nav a { display: flex; padding: 0 15px; align-items: center; font-size: 14px; }
.t4-nav a:hover { background: rgb(255 255 255 / 12%); }
.t4-nav a.active { font-weight: 700; box-shadow: inset 0 -3px #fff; }
.t4-menu-button { display: none; }
.t4-subnav { background: #fff; }
.t4-subnav-inner { display: flex; min-height: 50px; align-items: center; flex-wrap: wrap; gap: 10px 25px; padding-top: 9px; padding-bottom: 9px; font-size: 12px; }
.t4-subnav a:hover { color: var(--blue); }
.t4-layout { display: grid; margin-top: 20px; margin-bottom: 35px; grid-template-columns: minmax(0, 840px) minmax(0, 336px); align-items: start; gap: 24px; }
.t4-main, .t4-sidebar { min-width: 0; }
.t4-card { margin-bottom: 20px; overflow: hidden; border-radius: 10px; background: #fff; }
.t4-heading { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 19px; line-height: 27px; }
.t4-heading span { display: inline-block; padding: 4px 22px 4px 10px; border-radius: 5px 0 24px 0; background: var(--sky); color: #fff; font-weight: 400; }
.t4-filters { display: flex; padding: 12px 16px; flex-wrap: wrap; gap: 8px; background: #edf3ff; }
.t4-filter { min-height: 32px; padding: 4px 12px; border: 0; border-radius: 4px; background: transparent; color: #4f6381; cursor: pointer; }
.t4-filter.active { background: var(--blue); color: #fff; }
.t4-date { margin: 0; padding: 19px 23px; border-bottom: 1px solid var(--line); color: var(--blue); font-size: 14px; font-weight: 400; }
.t4-date::before { display: inline-block; width: 7px; height: 17px; margin-right: 10px; transform: skew(-22deg); background: var(--blue); content: ''; vertical-align: -3px; }
.t4-row { display: grid; min-height: 66px; padding: 0 12px; grid-template-columns: 27px 66px 95px minmax(0, 1fr) 115px; align-items: center; border-bottom: 1px solid var(--line); gap: 6px; }
.t4-row:hover { background: #fbfcff; }
.t4-sport-icon { font-size: 17px; }
.t4-time, .t4-league { color: #81909e; font-size: 12px; }
.t4-league { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t4-teams { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) 29px 44px 29px minmax(0, 1fr); align-items: center; gap: 7px; }
.t4-team-name { min-width: 0; overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.t4-home { text-align: right; }
.t4-team-logo { display: block; width: 29px; height: 29px; object-fit: contain; }
.t4-vs { color: #65717d; font-size: 12px; font-weight: 700; text-align: center; }
.t4-watch { display: inline-flex; width: 106px; min-height: 32px; padding: 4px 6px; justify-self: end; align-items: center; justify-content: center; gap: 6px; border-radius: 5px; background: #b8b8b8; color: #fff; font-size: 12px; white-space: nowrap; }
.t4-watch.is-live { background: var(--blue); }
.t4-watch.is-finished { background: #939ca8; }
a.t4-watch:hover { filter: brightness(.94); }
.t4-watch-icon { font-size: 13px; }
.t4-empty { margin: 0; padding: 40px 15px; color: var(--muted); text-align: center; }
.t4-note { padding: 0 15px; color: var(--muted); font-size: 12px; text-align: center; }
.t4-recommend-title { margin: 0; padding: 10px 15px; background: var(--blue); color: #fff; font-size: 15px; }
.t4-recommend-track { display: flex; padding: 10px; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; }
.t4-recommend-item { display: flex; width: 245px; min-height: 150px; flex: 0 0 245px; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid var(--blue); border-radius: 11px; scroll-snap-align: start; }
.t4-recommend-meta { display: flex; padding: 8px 10px; justify-content: space-between; gap: 10px; background: #f8f9fb; font-size: 12px; font-weight: 700; }
.t4-recommend-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t4-recommend-teams { display: grid; padding: 9px; grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); align-items: center; gap: 7px; text-align: center; }
.t4-recommend-teams img { display: block; width: 31px; height: 31px; margin: 4px auto; object-fit: contain; }
.t4-recommend-name { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.t4-recommend-status { padding: 6px; background: #fff8e9; color: #af7800; font-size: 12px; text-align: center; }
.t4-side-heading { margin: 0; border-bottom: 1px solid #5988f0; font-size: 17px; font-weight: 400; }
.t4-side-heading span { display: inline-block; padding: 9px 16px; background: var(--blue); color: #fff; }
.t4-side-list { margin: 0; padding: 15px 12px; list-style: none; }
.t4-side-list li { margin-bottom: 17px; }
.t4-side-list li:last-child { margin-bottom: 0; }
.t4-side-link { display: grid; grid-template-columns: 98px minmax(0, 1fr); align-items: start; gap: 10px; }
.t4-side-link img { display: block; width: 98px; height: 64px; object-fit: cover; }
.t4-side-link span { display: -webkit-box; overflow: hidden; color: #7e8995; font-size: 12px; line-height: 1.8; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.t4-side-link:hover span { color: var(--blue); }
.t4-breadcrumb { padding: 16px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.t4-scoreboard { padding: 27px 20px; background: linear-gradient(135deg, #348bb9, #49a0c7); color: #fff; text-align: center; }
.t4-match-title { margin: 0 0 15px; font-size: 21px; line-height: 1.6; }
.t4-match-meta { margin: 0 0 20px; font-size: 13px; }
.t4-score-teams { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr); align-items: center; gap: 20px; }
.t4-score-team img { display: block; width: 70px; height: 70px; margin: 0 auto 12px; object-fit: contain; }
.t4-score-team p { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.t4-score-state { font-size: 17px; }
.t4-signals { display: flex; padding: 22px 15px; flex-wrap: wrap; gap: 12px; background: #107fb0; }
.t4-signals a { display: inline-flex; min-height: 40px; padding: 8px 18px; align-items: center; justify-content: center; border: 2px solid var(--blue); border-radius: 16px; background: #fff; color: var(--blue); font-size: 13px; font-weight: 700; }
.t4-signals p { margin: 0; color: #fff; }
.t4-info { padding: 20px; line-height: 1.9; }
.t4-info h2 { margin: 0 0 16px; padding-left: 9px; border-left: 4px solid var(--sky); font-size: 18px; }
.t4-info p { margin: 12px 0; overflow-wrap: anywhere; }
.t4-footer { margin-top: 55px; padding: 25px 15px; background: #333; color: #aaa; text-align: center; }
.t4-footer-inner { padding-top: 17px; border-top: 1px solid #505050; }
.t4-footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 20px; font-size: 12px; }
.t4-footer-info, .t4-footer p { margin: 13px 0; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
    .t4-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
    .t4-row { grid-template-columns: 22px 48px 65px minmax(0, 1fr) 86px; gap: 4px; }
    .t4-teams { grid-template-columns: minmax(0, 1fr) 24px 27px 24px minmax(0, 1fr); gap: 4px; }
    .t4-team-logo { width: 24px; height: 24px; }
    .t4-watch { width: 82px; }
    .t4-nav a { padding: 0 10px; font-size: 13px; }
    .t4-brand { font-size: 24px; }
}
@media (max-width: 800px) {
    .t4-layout { grid-template-columns: minmax(0, 1fr); }
    .t4-header-inner { flex-wrap: wrap; gap: 0; }
    .t4-brand { min-height: 65px; flex: 1; }
    .t4-menu-button { display: inline-flex; padding: 7px 10px; border: 1px solid #a7c1ff; border-radius: 5px; background: transparent; color: #fff; }
    .t4-nav { width: 100%; padding-bottom: 8px; flex-wrap: wrap; }
    .t4-nav a { min-height: 36px; }
    .t4-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .t4-sidebar .t4-card { margin: 0; }
}
@media (max-width: 600px) {
    .t4-wrap { max-width: 100%; }
    .t4-header-inner { padding: 0 12px; }
    .t4-brand { font-size: 25px; }
    .t4-brand span:last-child { max-width: 240px; }
    .t4-subnav-inner { padding: 10px 12px; flex-wrap: nowrap; overflow-x: auto; gap: 20px; }
    .t4-subnav a { flex-shrink: 0; }
    .t4-layout { margin-top: 14px; gap: 18px; }
    .t4-card { border-radius: 9px; }
    .t4-heading { padding: 0 0 14px; font-size: 20px; }
    .t4-heading span { padding: 8px 24px 8px 10px; }
    .t4-date { padding: 22px 28px; }
    .t4-row { position: relative; min-height: 91px; padding: 29px 10px 10px; grid-template-columns: minmax(0, 1fr) 67px; column-gap: 7px; }
    .t4-sport-icon { display: none; }
    .t4-time { position: absolute; top: 9px; left: 0; color: #17212b; font-size: 12px; }
    .t4-league { position: absolute; top: 9px; left: 57px; max-width: calc(100% - 80px); font-size: 12px; }
    .t4-teams { grid-template-columns: minmax(0, 1fr) 30px 29px 30px minmax(0, 1fr); gap: 5px; }
    .t4-team-name { font-size: 13px; }
    .t4-team-logo { width: 30px; height: 30px; }
    .t4-vs { font-size: 14px; }
    .t4-watch { width: 64px; min-height: 28px; padding: 3px; font-size: 12px; }
    .t4-watch-icon { display: none; }
    .t4-recommend-item { width: 177px; flex-basis: 177px; }
    .t4-recommend-meta { padding: 8px 6px; font-size: 11px; }
    .t4-sidebar { display: block; }
    .t4-sidebar .t4-card { margin-bottom: 20px; }
    .t4-side-link { grid-template-columns: 107px minmax(0, 1fr); }
    .t4-side-link img { width: 107px; height: 70px; }
    .t4-side-link span { font-size: 13px; }
    .t4-breadcrumb { padding: 12px; }
    .t4-scoreboard { padding: 22px 12px; }
    .t4-match-title { font-size: 18px; }
    .t4-score-teams { grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr); gap: 9px; }
    .t4-score-team img { width: 54px; height: 54px; }
    .t4-score-team p { font-size: 13px; }
    .t4-score-state { font-size: 14px; }
    .t4-signals { padding: 15px 12px; gap: 8px; }
    .t4-signals a { padding: 7px 11px; font-size: 12px; }
    .t4-info { padding: 18px 13px; font-size: 13px; }
    .t4-footer { margin-top: 35px; padding-right: 12px; padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
}
