.goal-feed-layout {
    position: relative;
    --goal-feed-actions-width: 110px;
}
.goal-feed-navigation:not([hidden]) {
    position: absolute;
    z-index: 1;
    inset: 12px 1px auto auto;
    width: var(--goal-feed-actions-width);
    display: grid;
    justify-items: center;
    gap: 8px;
}
.goal-feed-page .goal-feed-navigation button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background: var(--color-surface-raised);
}
.goal-feed-navigation button:not(:disabled):is(:hover, :focus-visible) {
    border-color: var(--color-brand);
    color: var(--color-brand);
}
.goal-feed-navigation svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.goal-feed-navigation button:disabled {
    opacity: .4;
    cursor: default;
}
.goal-feed {
    height: min(76dvh, 820px);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
}
html[data-goal-feed-ordering] .goal-feed {
    visibility: hidden;
}
.goal-feed-item {
    box-sizing: border-box;
    height: 100%;
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(180px, 1fr) minmax(0, 2.5fr) var(--goal-feed-actions-width);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--color-panel);
}
.goal-feed-player {
    grid-area: 1 / 2;
    position: relative;
    overflow: hidden;
    background: var(--color-page);
}
.goal-feed-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(24px) brightness(.55);
    transform: scale(1.12);
    pointer-events: none;
}
.goal-feed-item video {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    object-fit: contain;
}
.goal-feed-caption {
    padding: 15px;
}
.goal-feed-caption h2 {
    font-size: 16px;
    margin: 0;
}
:where(.goal-feed-page) button {
    padding: 7px 10px;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    background: var(--color-page);
    color: var(--color-text);
    cursor: pointer;
}
:where(.goal-feed-page) button[aria-pressed="true"] {
    color: var(--color-brand);
}

.goal-feed-item video {
    min-width: 0;
    min-height: 0;
}

.goal-feed-page {
    max-width: none;
    margin-block: 24px;
}
.goal-feed-page > h1 {
    margin: 0 auto 12px;
    font-size: clamp(24px, 5vw, 34px);
}
.goal-feed {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-panel);
    scrollbar-width: none;
}
.goal-feed::-webkit-scrollbar {
    display: none;
}
.goal-feed-caption {
    grid-area: 1 / 1;
    align-self: end;
    overflow-wrap: anywhere;
}
.goal-feed-tags { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 10px; }
.goal-feed-tags :is(span, a) {
    font-size: 12px;
    color: var(--color-text-caption);
}
.goal-feed-tags a:is(:hover, :focus-visible, [aria-current="true"]) {
    color: var(--color-brand);
}
.goal-feed-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.goal-feed-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-text-caption);
}
.goal-feed-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.goal-feed-date svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}
.goal-feed-channel-links {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
.goal-feed-caption .goal-feed-channel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    color: var(--color-text-caption);
    font-size: 12px;
}
.goal-feed-channel svg { flex: none; width: 16px; height: 16px; }
.goal-feed-channel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-feed-caption .goal-feed-channel:is(:hover, :focus-visible) {
    border-color: var(--color-border-hover);
    color: var(--color-text);
}
.goal-feed-meta p {
    flex: none;
    margin: 0;
    color: var(--color-text-caption);
    font-size: 12px;
}
.goal-feed-actions {
    grid-area: 1 / 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: end;
    padding: 12px;
    gap: 4px;
}
.goal-feed-views {
    padding: 7px 4px;
    display: grid;
    justify-items: center;
    gap: 4px;
    color: var(--color-text-caption);
    font-size: 12px;
}
.goal-feed-views.is-viewed .goal-feed-icon {
    color: var(--color-brand);
}
@media (min-width: 651px) {
    .goal-feed-layout:has(.goal-feed-navigation:not([hidden])) .goal-feed-actions {
        padding-top: 120px;
        overflow-y: auto;
    }
}
.goal-feed-page .goal-feed-actions button:has(.goal-feed-icon) {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding-inline: 4px;
    border: 0;
    background: transparent;
}
.goal-feed-icon {
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    border-radius: 50%;
    background: var(--color-surface-hover);
    font-size: 24px;
}
.goal-feed-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
[data-goal-like][aria-pressed="true"] .goal-feed-icon svg { fill: currentColor; }
@media (hover: hover) {
    .goal-feed-actions button:not(:disabled):hover .goal-feed-icon {
        background: color-mix(in srgb, var(--color-surface-hover) 96%, var(--color-text));
    }
}
[data-goal-sound][aria-pressed="false"] [data-sound-enabled],
[data-goal-sound][aria-pressed="true"] [data-sound-muted] {
    display: none;
}
@media (max-width: 650px), (pointer: coarse) {
    .goal-feed-share-label { display: none; }
}
@media (max-width: 650px) {
    .goal-feed-page { margin-block-start: 14px; }
    .goal-feed-layout { display: block; }
    .goal-feed-navigation:not([hidden]) { display: none; }
    .goal-feed-item { grid-template: minmax(0, 1fr) auto auto / minmax(0, 1fr); }
    .goal-feed-player, .goal-feed-caption { grid-area: auto; }
    .goal-feed-actions { grid-area: auto; display: flex; flex-wrap: wrap; padding: 0 12px 12px; }
}
:where(.goal-feed-page) button {
    min-height: 36px;
    font: inherit;
    font-size: 12px;
}
:where(.goal-feed-page) button[aria-pressed="true"] {
    border-color: var(--color-brand);
    background: var(--color-success-alpha-18);
}
:where(.goal-feed-page) button:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}
.goal-share-dialog {
    inset: 0;
    margin: auto;
    padding: 20px;
}
.goal-share-dialog .notification-dialog-heading {
    margin-inline: 0;
}
.goal-share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}
.goal-share-copy {
    display: flex;
    gap: 8px;
}
.goal-share-copy button,
.goal-share-copy input {
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-page);
    color: var(--color-text);
    font: inherit;
}
.goal-share-options a:hover,
.goal-share-copy button:hover {
    color: var(--color-brand);
}
.goal-share-copy input {
    flex: 1;
    min-width: 0;
}
.goal-share-copy button {
    cursor: pointer;
}
.goal-share-options a {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: var(--color-text);
    font-size: 12px;
    text-decoration: none;
}
.goal-share-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-border);
}
.goal-share-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.goal-share-copy {
    padding: 5px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-page);
}
.goal-share-copy input {
    border: 0;
    background: transparent;
}
.goal-feed-stage {
    position: relative;
    min-width: 0;
}
.goal-feed-fullscreen-open, .goal-feed-play { display: none; }
@media (max-width: 650px), (pointer: coarse) {
    .goal-feed-player video:not([controls]) + .goal-feed-play {
        position: absolute;
        display: grid;
        place-items: center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 56px;
        height: 56px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgb(255 255 255 / .45);
        color: #161820;
    }
    .goal-feed-play[data-playing]:not(:focus-visible) {
        pointer-events: none;
        animation: goal-feed-hide-play .2s 1.2s forwards;
    }
    @keyframes goal-feed-hide-play {
        to { opacity: 0; }
    }
    @media (prefers-reduced-motion: reduce) {
        .goal-feed-play[data-playing]:not(:focus-visible) { animation-duration: 0s; }
    }
    .goal-feed-play svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
    .goal-feed-play:not([data-playing]) [data-pause-icon],
    .goal-feed-play[data-playing] [data-play-icon] { display: none; }
    .goal-feed-fullscreen-open {
        display: grid;
        position: absolute;
        top: 8px;
        right: 8px;
        place-items: center;
    }
    .goal-feed-fullscreen-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
}
html.goal-feed-fullscreen { overflow: hidden; }
.goal-feed-stage[data-fullscreen] {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: #000;
}
.goal-feed-stage[data-fullscreen] .goal-feed {
    height: 100%;
    overscroll-behavior: contain;
    touch-action: pan-y;
}
.goal-feed-stage[data-fullscreen] .goal-feed-item { display: block; position: relative; }
.goal-feed-stage[data-fullscreen] .goal-feed-player { height: 100%; }
.goal-feed-stage[data-fullscreen] :is(.goal-feed-caption, .goal-feed-navigation:not([hidden]), .goal-feed-fullscreen-open) { display: none; }
.goal-feed-stage[data-fullscreen] .goal-feed-item .goal-feed-actions {
    position: absolute;
    inset: auto calc(10px + env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) auto;
    padding: 0;
}
.goal-feed-stage[data-fullscreen] .goal-feed-actions {
    display: grid;
    justify-items: center;
    gap: 0;
    color: white;
}
.goal-feed-page .goal-feed-stage[data-fullscreen] .goal-feed-actions button:has(.goal-feed-icon) {
    padding-block: 2px;
}
html.goal-feed-fullscreen .goal-comments:not([hidden]) {
    position: fixed;
    z-index: 1001;
    inset: auto 0 0;
    height: 70dvh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 16px 16px 0 0;
}
.goal-feed-stage[data-fullscreen] .goal-feed-views {
    display: none;
}
.goal-feed-stage[data-fullscreen] .goal-feed-icon {
    background: rgb(0 0 0 / .38);
}
.goal-feed-stage[data-fullscreen] :is([data-goal-like], [data-goal-comments]) > span {
    grid-area: 1 / 1;
}
.goal-feed-stage[data-fullscreen] :is([data-goal-like], [data-goal-comments]) svg {
    width: 17px;
    height: 17px;
    transform: translateY(-6px);
}
.goal-feed-stage[data-fullscreen] :is([data-goal-like-count], [data-goal-comment-count]) {
    align-self: end;
    z-index: 1;
    margin-bottom: 4px;
    font-size: 10px;
    line-height: 1;
}
.goal-feed-fullscreen-info, .goal-feed-fullscreen-match { display: none; }
.goal-feed-stage :is(.goal-feed-fullscreen-close, .goal-feed-fullscreen-info) {
    position: absolute;
    z-index: 2;
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: calc(10px + env(safe-area-inset-right, 0px));
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 24px;
}
@media (max-width: 650px), (pointer: coarse) {
    .goal-feed-stage[data-fullscreen] .goal-feed-fullscreen-match {
        position: absolute;
        z-index: 2;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        left: calc(12px + env(safe-area-inset-left, 0px));
        max-width: calc(100% - 76px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
        margin: 0;
        padding: 8px 12px;
        border-radius: 8px;
        background: rgb(0 0 0 / .7);
        color: white;
        font-size: 14px;
        font-weight: 600;
        overflow-wrap: anywhere;
        pointer-events: none;
    }
}
@media (orientation: portrait) and (max-width: 650px), (orientation: portrait) and (pointer: coarse) {
    .goal-feed-stage[data-fullscreen] .goal-feed-fullscreen-match:not(:empty) { display: block; }
}
@media (orientation: landscape) and (max-width: 650px), (orientation: landscape) and (pointer: coarse) {
    .goal-feed-stage[data-fullscreen] .goal-feed-fullscreen-info {
        display: grid;
        place-items: center;
        right: calc(60px + env(safe-area-inset-right, 0px));
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: white;
    }
    .goal-feed-stage[data-fullscreen] .goal-feed-fullscreen-info[aria-expanded="true"] + .goal-feed-fullscreen-match:not(:empty) {
        display: block;
    }
}
@media (min-width: 651px) {
.goal-feed-layout:has(.goal-comments:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 34%);
    gap: 16px;
}
.goal-feed-layout:has(.goal-comments:not([hidden])) .goal-feed-item {
    grid-template-columns: minmax(0, 1fr) var(--goal-feed-actions-width);
}
.goal-feed-layout:has(.goal-comments:not([hidden])) .goal-feed-caption {
    display: none;
}
.goal-feed-layout:has(.goal-comments:not([hidden])) .goal-feed-player {
    grid-column: 1;
}
.goal-feed-layout:has(.goal-comments:not([hidden])) .goal-feed-actions {
    grid-column: 2;
}
}
.goal-comments:not([hidden]) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
    height: min(76dvh, 820px);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-panel);
}
.goal-comments .notification-dialog-heading {
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}
.goal-comments h2 {
    font-size: 16px;
}
.goal-comments [data-goal-panel-count] {
    margin-left: 5px;
    color: var(--color-text-caption);
    font-weight: normal;
}
.goal-comments ul {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    padding: 0 16px;
    margin: 0;
}
.goal-comments li {
    padding: 12px 0;
    overflow-wrap: anywhere;
}
.goal-comments li + li,
.goal-comments form {
    border-top: 1px solid var(--color-border);
}
.goal-comments li p {
    margin: 5px 0 0;
    white-space: pre-wrap;
}
.goal-comments form {
    flex: none;
    padding: 12px;
}
.goal-comments-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 15px;
    align-items: end;
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-page);
}
.goal-comments-composer:focus-within { border-color: var(--color-border-hover); }
.goal-comments textarea {
    box-sizing: border-box;
    field-sizing: content;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 32px;
    padding: 8px;
    resize: none;
    max-height: 120px;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font: inherit;
}
.goal-comments form button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-color: var(--color-brand);
    background: var(--color-brand);
    color: var(--color-page);
}
.goal-comments form button:not(:disabled):hover {
    opacity: .85;
}
.goal-comments form button:disabled {
    opacity: .5;
    cursor: default;
}
.goal-comments form svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
}
.goal-comments [data-goal-error] {
    margin: 8px 16px;
    color: var(--color-error);
}
.goal-comments [data-goal-error]:empty {
    display: none;
}
@media (max-width: 650px) {
    .goal-comments:not([hidden]) {
        position: fixed;
        z-index: 50;
        inset: auto 0 0;
        height: 70dvh;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        border-radius: 16px 16px 0 0;
    }
    .goal-comments .notification-dialog-heading { flex: none; }
    .goal-comments form {
        order: -1;
        border-top: 0;
        border-bottom: 1px solid var(--color-border);
    }
    .goal-comments .notification-dialog-heading { order: -2; }
    .goal-comments [data-goal-error] { order: -1; }
    .goal-comments:not([hidden])::before {
        content: '';
        order: -3;
        flex: 0 0 4px;
        width: 40px;
        margin: 8px auto 0;
        border-radius: 2px;
        background: var(--color-border-hover);
    }
}

.goal-feed-player video::-webkit-media-controls-mute-button {
    display: none;
}
.goal-feed-player video::-webkit-media-controls-volume-slider {
    display: none;
}
/* Каталог обзоров с выделенным матчем и компактными карточками. */
.goal-feed-tabs { display:inline-flex; margin:0 0 12px }
.goal-browse-filters { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 0 24px; padding:16px; border:1px solid var(--color-border); border-radius:12px; background:var(--color-panel) }
.goal-browse-filters label { font-size:12px; color:var(--color-text-caption) }
.goal-browse-filters :is(select,input[type="search"]) { max-width:100%; min-width:0; padding:10px 12px; border:1px solid var(--color-border); border-radius:8px; background:var(--color-page); color:var(--color-text); font:inherit; font-size:13px }
.goal-browse-filters input[type="search"] { flex:1 1 180px }
.goal-browse-clubs { display:flex; gap:14px; overflow-x:auto; overscroll-behavior-x:contain; margin:0 0 18px; padding:4px 0 12px }
.goal-browse-clubs a { flex:0 0 76px; display:grid; justify-items:center; align-content:start; gap:7px; text-align:center; font-size:11px; color:var(--color-text-caption); text-decoration:none; overflow-wrap:anywhere }
.goal-browse-clubs img { box-sizing:border-box; object-fit:contain; border-radius:50%; padding:8px; background:var(--color-panel); border:1px solid var(--color-border) }
.goal-browse-clubs a:is(:hover,[aria-current]) { color:var(--color-brand) }
.goal-browse-clubs a:is(:hover,[aria-current]) img { border-color:var(--color-brand) }
.goal-browse-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px }
.goal-browse-card { min-width:0; background:var(--color-panel); border:1px solid var(--color-border); border-radius:12px; overflow:hidden }
.goal-browse-cover { display:block; position:relative; background:var(--color-page); color:var(--color-text) }
.goal-browse-cover img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover }
.goal-browse-play { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:42px; height:42px; padding-left:3px; box-sizing:border-box; border-radius:50%; background:rgb(0 0 0 / 65%); color:white; font-size:15px }
.goal-browse-score { position:absolute; bottom:10px; right:10px; padding:4px 9px; border-radius:5px; background:rgb(0 0 0 / 80%); color:white; font-size:12px }
.goal-browse-cover:is(:hover,:focus-visible) .goal-browse-play { background:var(--color-brand); color:var(--color-page) }
.goal-browse-card-info { padding:16px }
.goal-browse-card-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:var(--color-text-caption); font-size:11px }
.goal-browse-card-meta span { color:var(--color-brand) }
.goal-browse-card h2 { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin:12px 0 0; font-size:14px; line-height:1.5; overflow-wrap:anywhere }
.goal-browse-card h2 img { object-fit:contain; flex-shrink:0 }
.goal-browse-result { color:var(--color-brand); padding:2px 7px; background:color-mix(in srgb,var(--color-brand) 8%,transparent); border-radius:5px; white-space:nowrap }
.goal-browse-card p { color:var(--color-text-caption); margin:10px 0 16px; font-size:12px }
.goal-browse-clips,.goal-browse-pages { display:flex; flex-wrap:wrap; align-items:center; gap:8px }
.goal-browse-clips a { display:inline-flex; border:1px solid var(--color-border); border-radius:6px; background:var(--color-page); color:var(--color-text); text-decoration:none }
.goal-browse-clips a:is(:hover,:focus-visible) { border-color:var(--color-brand); color:var(--color-brand) }
.goal-browse-clips span { padding:5px 9px; font-size:12px }
.goal-browse-pages { justify-content:center; margin:24px 0 }
.goal-browse-featured { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); background:linear-gradient(120deg,var(--color-panel),var(--color-page)) }
.goal-browse-featured .goal-browse-cover img { height:100%; min-height:270px }
.goal-browse-featured .goal-browse-card-info { display:flex; flex-direction:column; justify-content:center; padding:32px }
.goal-browse-featured h2 { font-size:24px; gap:10px; margin-top:18px }
.goal-browse-featured h2 img { width:36px; height:36px }
.goal-browse-featured .goal-browse-clips { margin-top:8px }
@media(min-width:1400px) { .goal-browse-grid { grid-template-columns:repeat(4,minmax(0,1fr)) } }
@media(max-width:900px) { .goal-browse-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px } .goal-browse-featured .goal-browse-card-info { padding:20px } .goal-browse-featured h2 { font-size:19px } }
@media(max-width:600px) { .goal-browse-grid { grid-template-columns:minmax(0,1fr) } .goal-browse-featured { display:block } .goal-browse-featured .goal-browse-cover img { height:auto; min-height:0 } .goal-browse-featured .goal-browse-card-info { padding:16px } .goal-browse-featured h2 { font-size:16px } .goal-browse-featured h2 img { width:24px; height:24px } .goal-browse-filters { padding:12px; gap:8px } .goal-browse-filters input[type="search"] { flex-basis:100% } }