@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/roboto/roboto-cyrillic-400-normal.woff2") format("woff2");
    unicode-range: U+0400-04FF;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/roboto/roboto-cyrillic-500-normal.woff2") format("woff2");
    unicode-range: U+0400-04FF;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/roboto/roboto-cyrillic-700-normal.woff2") format("woff2");
    unicode-range: U+0400-04FF;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-800-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/roboto/roboto-cyrillic-800-normal.woff2") format("woff2");
    unicode-range: U+0400-04FF;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-900-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/roboto/roboto-cyrillic-900-normal.woff2") format("woff2");
    unicode-range: U+0400-04FF;
}

:root {
    --bg: #111820;
    --panel: #18232c;
    --panel-strong: #21313b;
    --line: #334857;
    --text: #f3f8f8;
    --muted: #9fb4bd;
    --accent: #18b6a7;
    --accent-2: #f0b84a;
    --field: #101923;
    --field-text: #ffffff;
    --shadow: rgba(0, 0, 0, 0.26);
}

:root[data-theme="light"] {
    --bg: #f4f8fb;
    --panel: #ffffff;
    --panel-strong: #e8f4f2;
    --line: #c9d9df;
    --text: #142127;
    --muted: #5b717b;
    --accent: #087f75;
    --accent-2: #b77712;
    --field: #ffffff;
    --field-text: #142127;
    --shadow: rgba(32, 42, 54, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    min-height: 64px;
    padding: 0 22px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.site-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.site-nav a {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text);
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--accent);
}

.site-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.site-icon-link,
.site-icon-button,
.site-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.site-icon-link:hover,
.site-icon-button:hover,
.site-theme-toggle:hover {
    border-color: var(--accent);
}

.site-theme-toggle {
    gap: 9px;
    min-width: 96px;
}

.site-theme-label {
    min-width: 48px;
    text-align: left;
}

.site-theme-track {
    position: relative;
    width: 42px;
    height: 22px;
    flex: 0 0 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--field);
}

.site-theme-thumb {
    position: absolute;
    top: 2px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform 0.18s ease, background-color 0.18s ease;
}

:root[data-theme="dark"] .site-theme-thumb {
    transform: translateX(18px);
    background: var(--accent);
}

:root[data-theme="light"] .site-theme-thumb {
    transform: translateX(0);
    background: var(--accent-2);
}

.site-main {
    min-height: calc(100vh - 64px);
}

.page-shell {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 26px 28px 44px;
}

.home .page-shell,
.page-id-0 .page-shell {
    display: grid;
    place-items: center;
}

.ssm-auth-card {
    width: 100%;
    max-width: 420px;
    margin: 8vh auto 0;
    padding: 34px 54px;
    background: var(--panel);
    border: 1px solid rgba(0, 0, 0, 0.16);
    box-shadow: 0 12px 24px var(--shadow);
}

.ssm-auth-logo {
    margin-bottom: 26px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
}

.ssm-auth-card h2 {
    margin: 34px 0 14px;
    font-size: 18px;
}

.ssm-auth-card form,
.ssm-profile-form,
.wpcf7-form {
    display: grid;
    gap: 14px;
}

.ssm-auth-card p {
    margin: 0;
}

.ssm-auth-card .login-username,
.ssm-auth-card .login-password {
    display: grid;
    gap: 8px;
}

.ssm-auth-card label,
.ssm-profile-card label,
.wpcf7-form label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.ssm-auth-card input[type="text"],
.ssm-auth-card input[type="password"],
.ssm-auth-card input[type="email"],
.ssm-profile-card input,
.ssm-profile-card select,
.wpcf7-form input,
.wpcf7-form textarea,
.ssm-filter select {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--field);
    color: var(--field-text);
    outline: none;
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

.ssm-auth-card input:focus,
.ssm-profile-card input:focus,
.ssm-profile-card select:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.ssm-filter select:focus {
    border-color: var(--accent);
}

.login-remember {
    display: none;
}

.ssm-button,
.ssm-auth-card input[type="submit"],
.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.ssm-auth-card input[type="submit"] {
    width: 100%;
    background: transparent;
}

.ssm-auth-card input[type="submit"]:hover,
.ssm-button:hover,
.wpcf7-submit:hover {
    background: var(--accent);
    color: #ffffff;
}

.ssm-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.ssm-page-head h1,
.ssm-profile-card h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 500;
}

.ssm-profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.ssm-profile-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.ssm-profile-logout:hover {
    border-color: var(--accent);
}

.ssm-timezone-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--panel-strong);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.ssm-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.ssm-tabs a {
    min-width: 84px;
    padding: 12px 18px;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font-weight: 800;
}

.ssm-tabs a.active {
    background: var(--accent);
    color: #ffffff;
}

.ssm-filter {
    display: flex;
    justify-content: flex-end;
    margin: -60px 0 28px;
}

.ssm-filter label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
}

.ssm-filter select {
    width: 170px;
}

.ssm-stream-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ssm-stream-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: var(--panel);
}

.ssm-stream-table th,
.ssm-stream-table td {
    padding: 18px 16px;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.ssm-stream-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.ssm-stream-table td:nth-child(3),
.ssm-stream-table td:nth-child(4) {
    text-align: center;
}

.ssm-stream-table strong {
    display: block;
    font-weight: 800;
}

.ssm-stream-table span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.ssm-watch-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 36px;
    border-radius: 6px;
    background: #6b747e;
    color: #ffffff;
    font-weight: 800;
}

.ssm-watch-button.is-live {
    background: var(--accent-2);
}

.ssm-profile-card,
.ssm-empty,
.ssm-manager-contact {
    width: 100%;
    max-width: 1180px;
    margin: 44px auto;
    padding: 30px;
    background: var(--panel);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 18px var(--shadow);
}

.ssm-profile-card h2 {
    margin: 28px 0 14px;
    font-size: 20px;
}

.ssm-plan-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ssm-plan-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.ssm-viewer {
    width: 100%;
    max-width: 1280px;
    margin: 24px auto;
}

.ssm-media-viewer {
    background: #000000;
    border: 1px solid var(--line);
}

.ssm-media-video {
    min-height: 360px;
    background: #000000;
}

.ssm-stream-cover {
    width: 100%;
    max-height: 72vh;
    object-fit: cover;
}

.wpcf7 form .wpcf7-response-output {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text);
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px 14px;
    }

    .site-nav {
        grid-column: 1 / -1;
        order: 2;
        flex-wrap: wrap;
    }

    .site-actions {
        grid-column: 1 / -1;
        order: 3;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
    }

    .site-icon-link,
    .site-icon-button,
    .site-theme-toggle {
        min-width: 40px;
        padding: 0 9px;
    }

    .page-shell {
        padding: 22px 14px 36px;
    }

    .ssm-page-head {
        display: grid;
        gap: 12px;
    }

    .ssm-page-head h1,
    .ssm-profile-card h1 {
        font-size: 28px;
    }

    .ssm-profile-head {
        align-items: center;
    }

    .ssm-filter {
        justify-content: flex-start;
        margin: 0 0 18px;
    }

    .ssm-tabs {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .ssm-auth-card {
        margin-top: 8vh;
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
        padding: 32px 24px;
    }

    .ssm-profile-card,
    .ssm-empty,
    .ssm-manager-contact {
        margin: 22px auto;
        padding: 20px;
    }

    .ssm-plan-list li {
        display: grid;
    }
}

@media (max-width: 640px) {
    .ssm-stream-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 10px;
        background: transparent;
    }

    .ssm-stream-table thead {
        display: none;
    }

    .ssm-stream-table tr {
        display: grid;
        gap: 8px;
        padding: 14px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 6px;
    }

    .ssm-stream-table td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 0;
        border: 0;
        text-align: left;
    }

    .ssm-stream-table td:nth-child(3),
    .ssm-stream-table td:nth-child(4) {
        text-align: left;
    }

    .ssm-stream-table td::before {
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .ssm-stream-table td:nth-child(1)::before {
        content: "Sport";
    }

    .ssm-stream-table td:nth-child(2)::before {
        content: "Event";
    }

    .ssm-stream-table td:nth-child(3)::before {
        content: "Start";
    }

    .ssm-stream-table td:nth-child(4)::before {
        content: "Watch";
    }
}
