:root {
    --background: #f5f6f8;
    --surface: #ffffff;
    --surface-secondary: #f0f2f5;
    --text: #17191d;
    --text-muted: #646b76;
    --border: #d9dde4;
    --accent: #d71920;
    --accent-soft: #fff0f1;
    --header: #111318;
    --header-text: #ffffff;
    --focus: #1f6feb;
    --success: #18794e;
    --warning: #9a6700;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --background: #0f1115;
    --surface: #171a20;
    --surface-secondary: #20242c;
    --text: #f0f3f7;
    --text-muted: #a8b0bd;
    --border: #303640;
    --accent: #ff4d55;
    --accent-soft: #331b1f;
    --header: #090a0d;
    --header-text: #ffffff;
    --focus: #7bb1ff;
    --success: #56d18f;
    --warning: #e3b341;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--background);
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

img,
iframe,
video {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input,
select,
textarea {
    color: var(--text);
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

button,
.button,
input[type="submit"] {
    min-height: 42px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    padding: 8px 14px;
    font-weight: 700;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    filter: brightness(.96);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 20;
    transform: translateY(-150%);
    padding: 8px 12px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 6px;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    background: var(--header);
    color: var(--header-text);
    border-bottom: 3px solid var(--accent);
}

.site-header__inner,
.site-footer__inner,
.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: grid;
    line-height: 1.1;
    flex: 0 0 auto;
}

.brand__name {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand__tagline {
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.primary-nav,
.mobile-menu,
.site-footer nav,
.sidebar-nav {
    display: flex;
    gap: 4px;
}

.primary-nav {
    flex: 1 1 auto;
    justify-content: center;
}

.primary-nav a,
.mobile-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 7px 10px;
    color: rgba(255, 255, 255, .84);
    border-radius: 6px;
    font-weight: 700;
}

.primary-nav a:hover,
.mobile-menu a:hover {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.icon-button,
.theme-toggle {
    width: 42px;
    min-width: 42px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.theme-toggle {
    grid-template-columns: 1fr 1fr;
    width: 58px;
    gap: 0;
}

.theme-toggle[aria-pressed="true"] .theme-toggle__moon,
.theme-toggle[aria-pressed="false"] .theme-toggle__sun {
    color: #ffffff;
}

.theme-toggle[aria-pressed="true"] .theme-toggle__sun,
.theme-toggle[aria-pressed="false"] .theme-toggle__moon {
    color: rgba(255, 255, 255, .45);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 260px;
}

.header-search input[type="search"] {
    min-height: 38px;
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, .2);
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, .68);
}

.header-search button {
    min-height: 38px;
    padding-inline: 12px;
}

.search-toggle,
.menu-toggle {
    display: none;
}

.mobile-menu {
    width: min(1180px, calc(100% - 32px));
    margin: auto 0;
    padding: 8px;
    background: var(--header);
    border: 1px solid rgba(255, 255, 255, .12);
    flex-wrap: wrap;
}

.page-shell {
    padding: 22px 0 32px;
}

.layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
}

.layout__content,
.broadcasts,
.static-page,
.form-page,
.message-box,
.pm-page {
    min-width: 0;
}

.sidebar-block {
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
}

.sidebar-block h2 {
    margin: 0 0 9px;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sidebar-nav {
    flex-direction: column;
}

.sidebar-nav a {
    display: block;
    padding: 7px 0;
    border-top: 1px solid var(--border);
}

.sidebar-nav a:first-child {
    border-top: 0;
}

.speedbar,
#dle-speedbar {
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.empty-state {
    padding: 24px;
    background: var(--surface-secondary);
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    text-align: center;
}

.full-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 8px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.full-story h1,
.static-page h1,
.form-page h1,
.message-box h1 {
    margin: 0 0 10px;
    line-height: 1.25;
}

.full-text p:first-child,
.static-page p:first-child {
    margin-top: 0;
}

.full-story,
.static-page,
.form-page,
.message-box,
.search-page,
.profile-page,
.pm-page,
.comments-area,
.add-comment,
.poll-block {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.player {
    margin: 18px 0;
}

.player__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050507;
    border-radius: 8px;
    overflow: hidden;
}

.player__frame iframe,
.player__frame video,
.player__frame object,
.player__frame embed {
    width: 100%;
    height: 100%;
    border: 0;
}

.player__empty {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 220px;
    color: #ffffff;
    background: #111318;
}

.full-text,
.static-page,
.comment-text {
    overflow-wrap: anywhere;
}

.full-text table,
.static-page table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.full-text th,
.full-text td,
.static-page th,
.static-page td {
    border: 1px solid var(--border);
    padding: 8px;
}

blockquote {
    margin: 16px 0;
    padding: 10px 14px;
    border-left: 4px solid var(--accent);
    background: var(--surface-secondary);
}

pre,
code {
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
}

code {
    padding: 1px 4px;
}

pre {
    padding: 12px;
    overflow-x: auto;
}

.comments-area {
    margin-top: 18px;
}

.comment {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.comment:first-child {
    border-top: 0;
}

.comment__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.comment__head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.comment__author {
    color: var(--text);
    font-weight: 800;
}

.comment__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
}

.add-comment {
    margin-top: 18px;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.form-row {
    display: grid;
    gap: 6px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.check-row input {
    width: auto;
    min-height: auto;
}

.user-menu,
.pm-nav,
.not-found__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-menu a,
.pm-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-secondary);
}

.profile-summary {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.profile-summary__avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-summary__data {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 14px;
    margin: 0;
}

.profile-summary__data dt {
    color: var(--text-muted);
}

.profile-summary__data dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-text,
.pm-content {
    margin-top: 16px;
}

.navigation,
.pagi-nav,
#dle-content .navigation {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.navigation a,
.navigation span,
.pagi-nav a,
.pagi-nav span {
    min-width: 36px;
    min-height: 36px;
    display: inline-grid;
    place-items: center;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.navigation span,
.pagi-nav span {
    border-color: var(--accent);
    color: var(--accent);
}

.info,
.berrors,
.message-box,
.ui-message {
    border-left: 4px solid var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Prototype-aligned SPORTLIVE skin */
:root {
    --background: #f7f8fa;
    --surface: #ffffff;
    --surface-secondary: #f3f4f6;
    --text: #111722;
    --text-muted: #586070;
    --border: #dde1e7;
    --accent: #ef1d25;
    --accent-soft: #fff2f3;
    --header: #07131d;
}

body {
    font-size: 17px;
    font-weight: 500;
}

.site-header {
    border-bottom: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.site-header__inner {
    min-height: 92px;
}

.site-header__inner,
.site-footer__inner,
.page-shell {
    width: min(1240px, calc(100% - 48px));
}

.brand__name {
    font-size: 25px;
    line-height: 1;
}

.brand__name::after {
    content: "";
}

.brand__name {
    color: #ffffff;
}

.brand__name::first-letter {
    color: #ffffff;
}

.brand__name {
    text-shadow: none;
}

.brand__name span,
.brand em {
    color: var(--accent);
}

.brand__tagline {
    font-size: 13px;
}

.primary-nav {
    gap: 18px;
}

.primary-nav a {
    padding: 8px 0;
    font-size: 16px;
    color: #ffffff;
}

.primary-nav a:hover {
    background: transparent;
    color: var(--accent);
}

.header-actions {
    gap: 18px;
}

.search-toggle,
.theme-toggle,
.icon-button {
    border: 0;
    background: transparent;
    color: #ffffff;
    min-height: 42px;
}

.search-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    font-weight: 700;
}

.theme-toggle {
    width: 34px;
    min-width: 34px;
}

.theme-toggle__sun {
    display: none;
}

.theme-toggle__moon {
    font-size: 28px;
}

.header-search {
    display: none;
    position: absolute;
    right: max(24px, calc((100vw - 1240px) / 2));
    top: 76px;
    z-index: 12;
    width: 320px;
    padding: 10px;
    background: var(--header);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
}

.header-search.is-open {
    display: flex;
}

.mobile-menu[hidden] {
    display: none !important;
}

.page-shell {
    padding-top: 0;
}

.broadcasts {
    background: transparent;
    border: 0;
    border-radius: 0;
}

.broadcast-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 0;
    margin: 0 0 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 0;
    overflow-x: auto;
}

.broadcast-tabs .nav-link {
    min-height: 76px;
    display: grid;
    place-items: center;
    padding: 0 18px;
    border-bottom: 3px solid transparent;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.broadcast-tabs .nav-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.broadcast-tabs .is-live::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-right: 9px;
    display: inline-block;
    border-radius: 50%;
    background: var(--accent);
}

.broadcast-tabs .is-live {
    display: flex;
    justify-content: center;
}

.broadcast-panels {
    padding: 0;
}

.sport-group + .sport-group {
    margin-top: 28px;
}

.sport-group__title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 14px 20px;
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
}

.sport-group__title span {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    color: var(--text);
    font-size: 21px;
}

.tournament-group {
    border-color: var(--border);
    border-radius: 6px;
    box-shadow: none;
}

.tournament-group + .tournament-group {
    margin-top: 14px;
}

.tournament-group__title {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 17px;
}

.match-list {
    display: block;
}

.match-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 170px;
    align-items: center;
    min-height: 58px;
    padding: 0;
    border-top: 1px solid var(--border);
    color: var(--text);
}

.match-row:first-child {
    border-top: 0;
}

.match-row:hover {
    background: var(--accent-soft);
    color: var(--text);
}

.match-row__time,
.match-row__title,
.match-row__watch {
    min-height: 58px;
    display: flex;
    align-items: center;
}

.match-row__time {
    justify-content: center;
    color: var(--text);
    border-right: 1px solid var(--border);
    font-size: 18px;
}

.match-row__time--live {
    color: #ffffff;
}

.match-row__time--live::before {
    content: "LIVE";
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--accent);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
}

.match-row__time--live {
    font-size: 0;
}

.match-row__title {
    padding: 0 34px;
    border-right: 1px solid var(--border);
    font-size: 19px;
    font-weight: 800;
}

.match-row__watch {
    justify-content: center;
    width: 130px;
    min-height: 40px;
    margin: 0 auto;
    border-radius: 5px;
    background: var(--accent);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.match-row__watch::after {
    content: "▶";
    margin-left: 10px;
    font-size: 11px;
}

.layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding-top: 36px;
}

.sidebar-block {
    padding: 22px 16px;
    margin: 0;
    border-radius: 6px 6px 0 0;
    border-bottom: 0;
}

.sidebar-block + .sidebar-block {
    border-radius: 0;
}

.sidebar-block:last-child {
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 6px 6px;
}

.sidebar-block h2 {
    margin-bottom: 16px;
    color: var(--text);
    font-size: 13px;
}

.sidebar-nav {
    gap: 0;
}

.sidebar-nav a {
    padding: 8px 0;
    border-top: 0;
    color: var(--text);
    font-size: 14px;
}

.sidebar-nav a:hover {
    color: var(--accent);
}

.story-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 44px;
    gap: 8px 18px;
    padding: 28px 26px;
    border-radius: 6px;
}

.story-card + .story-card {
    margin-top: 0;
    border-top: 0;
}

.story-card__meta {
    grid-row: 1 / span 3;
    display: block;
    margin: 0;
}

.story-card__meta .meta-pill {
    display: table;
    margin-top: 9px;
    border: 0;
    border-radius: 4px;
    font-size: 13px;
}

.story-card__meta .meta-pill:first-child {
    margin-top: 0;
    background: transparent;
    color: var(--accent);
    padding: 0;
    font-weight: 900;
}

.story-card__meta .meta-pill:nth-child(2) {
    background: transparent;
    color: var(--text);
    padding: 0;
    font-size: 28px;
    font-weight: 900;
}

.story-card h2 {
    font-size: 20px;
}

.story-card__summary {
    grid-column: 2;
    font-size: 16px;
}

.story-card__arrow {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
    justify-self: end;
    color: var(--text);
    font-size: 34px;
}

.site-footer {
    margin-top: 40px;
    border-top: 0;
    background: var(--header);
    color: #ffffff;
}

.site-footer__inner {
    min-height: 152px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding: 30px 0;
    color: rgba(255, 255, 255, .9);
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #ffffff;
}

.site-footer p {
    margin: 0;
}
.related-news {
    margin-top: 24px;
}

.related-news h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.related-item {
    border-top: 1px solid var(--border);
}

.related-item:first-child {
    border-top: 0;
}

.related-item__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
}

.related-item__title {
    font-weight: 800;
    overflow-wrap: anywhere;
}

.related-item__meta {
    color: var(--text-muted);
    font-size: 14px;
    white-space: nowrap;
}