.fys-wrap {
    --fys-green: #287a43;
    --fys-green-dark: #1d6033;
    --fys-text: #1f2933;
    --fys-muted: #667085;
    --fys-border: #e5e7eb;
    --fys-bg: #ffffff;
    --fys-card: #ffffff;
    max-width: 1180px;
    margin: 0 auto;
    color: var(--fys-text);
    font-family: inherit;
}

.fys-heading {
    margin: 0 0 16px;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.2;
    font-weight: 700;
}

.fys-archive-heading {
    margin-top: 34px;
}

.fys-main-card {
    background: var(--fys-card);
    border-radius: 12px;
    overflow: hidden;
}

.fys-player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.fys-player {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.fys-live-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #cc0000;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .03em;
    line-height: 1;
    border-radius: 5px;
    padding: 8px 10px;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.fys-main-title {
    margin: 15px 2px 3px;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.35;
    font-weight: 700;
}

.fys-main-date {
    margin: 0 2px;
    color: var(--fys-muted);
    font-size: .94rem;
}

.fys-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 18px;
}

.fys-thumb {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
    min-width: 0;
}

.fys-thumb-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 9px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 14px rgba(0,0,0,.10);
}

.fys-thumb-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease, opacity .2s ease;
}

.fys-thumb:hover .fys-thumb-image img,
.fys-thumb:focus-visible .fys-thumb-image img {
    transform: scale(1.025);
    opacity: .9;
}

.fys-thumb:focus-visible {
    outline: 3px solid var(--fys-green);
    outline-offset: 5px;
    border-radius: 10px;
}

.fys-thumb.is-active .fys-thumb-image {
    box-shadow: 0 0 0 3px var(--fys-green), 0 4px 14px rgba(0,0,0,.12);
}

.fys-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 32px;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    background: rgba(204, 0, 0, .92);
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.fys-play::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 9px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #fff;
}

.fys-duration {
    position: absolute;
    right: 7px;
    bottom: 7px;
    background: rgba(0,0,0,.78);
    color: #fff;
    border-radius: 4px;
    padding: 3px 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.fys-thumb-title {
    display: block;
    margin-top: 9px;
    font-weight: 650;
    font-size: .98rem;
    line-height: 1.35;
}

.fys-thumb-date {
    display: block;
    margin-top: 4px;
    color: var(--fys-muted);
    font-size: .86rem;
}

.fys-admin-warning,
.fys-public-message {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #d97706;
    background: #fff;
    border-radius: 6px;
}

@media (max-width: 820px) {
    .fys-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .fys-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .fys-heading {
        margin-bottom: 12px;
    }

    .fys-archive-heading {
        margin-top: 28px;
    }

    .fys-player-wrap,
    .fys-thumb-image {
        border-radius: 8px;
    }
}

@media (prefers-color-scheme: dark) {
    .fys-wrap {
        --fys-text: #f4f4f5;
        --fys-muted: #a1a1aa;
        --fys-card: transparent;
    }
}
