.epc-watch-library,
.epc-recent-videos {
    --epc-video-cream: #f6efe8;
    --epc-video-brown: #5b3a1a;
    --epc-video-text: #2e2a27;
    --epc-video-orange: #e76f2e;
    --epc-video-border: #ddcbb9;
    color: var(--epc-video-text);
    font-family: Inter, system-ui, sans-serif;
}

.epc-watch-library [hidden],
.epc-recent-videos [hidden] {
    display: none !important;
}

.epc-watch-feature {
    background: var(--epc-video-cream);
    padding: clamp(1rem, 4vw, 2.25rem);
    border: 1px solid var(--epc-video-border);
    border-radius: 1.25rem;
}

.epc-watch-feature h2,
.epc-watch-archive h2,
.epc-video-dialog h2 {
    color: var(--epc-video-brown);
    font-family: Amaranth, Inter, system-ui, sans-serif;
    line-height: 1.18;
}

.epc-watch-feature h2 {
    margin: .5rem 0 1rem;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.epc-video-label {
    display: inline-block;
    margin: 0 0 .85rem;
    padding: .32rem .7rem;
    border-radius: 4rem;
    background: #e9d8c7;
    color: var(--epc-video-brown);
    font-weight: 700;
    font-size: .875rem;
}

.epc-video-label.is-live {
    background: #a9311b;
    color: #fff;
}

.epc-video-player {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: .75rem;
    background: #1c1713;
}

.epc-watch-feature > p:last-child {
    margin: 1rem 0 0;
}

.epc-video-link {
    color: var(--epc-video-brown);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.epc-watch-archive {
    margin-top: clamp(2.5rem, 7vw, 5rem);
}

.epc-watch-archive h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
}

.epc-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(17rem, 29%)), 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.epc-video-grid:empty {
    display: none;
}

.epc-video-card {
    min-width: 0;
    border: 1px solid var(--epc-video-border);
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
}

.epc-video-card a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.epc-video-card a:focus-visible {
    outline: 3px solid var(--epc-video-brown);
    outline-offset: -3px;
}

.epc-video-thumbnail {
    display: grid;
    position: relative;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    background: #35271d;
}

.epc-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.epc-video-play,
.epc-video-duration {
    position: absolute;
    color: #fff;
    background: #2e2a27e8;
}

.epc-video-play {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #ffffffb3;
    border-radius: 50%;
}

.epc-video-play::before {
    content: '';
    margin-left: .15rem;
    border-top: .38rem solid transparent;
    border-bottom: .38rem solid transparent;
    border-left: .6rem solid #fff;
}

.epc-video-card a:hover .epc-video-play,
.epc-video-card a:focus-visible .epc-video-play {
    background: var(--epc-video-brown);
    border-color: var(--epc-video-orange);
}

.epc-video-duration {
    right: .6rem;
    bottom: .6rem;
    padding: .15rem .35rem;
    border-radius: .3rem;
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
}

.epc-video-card-copy {
    padding: 1rem 1.1rem 1.2rem;
}

.epc-video-card-copy h3 {
    margin: 0;
    color: var(--epc-video-brown);
    font: 700 1rem/1.4 Inter, system-ui, sans-serif;
    overflow-wrap: anywhere;
}

.epc-video-card-copy time {
    display: block;
    margin-top: .45rem;
    color: #62554c;
    font-size: .85rem;
}

.epc-watch-archive-actions {
    margin: 1.5rem 0 0;
    text-align: center;
}

.epc-watch-archive-actions:has(button[hidden]):has(p:empty),
.epc-video-feedback:empty {
    display: none;
}

.epc-video-feedback {
    margin: .75rem 0 0;
}

.epc-video-button {
    min-height: 44px;
    padding: .65rem 1.2rem;
    border: 1px solid var(--epc-video-brown);
    border-radius: .5rem;
    background: var(--epc-video-brown);
    color: #fff;
    font: 700 .94rem/1.3 Inter, system-ui, sans-serif;
    cursor: pointer;
}

.epc-video-button:disabled {
    opacity: .7;
    cursor: wait;
}

.epc-video-link:focus-visible,
.epc-video-button:focus-visible,
.epc-watch-all summary:focus-visible {
    outline: 3px solid var(--epc-video-brown);
    outline-offset: 3px;
}

.epc-watch-all {
    margin-top: 1.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--epc-video-border);
    border-radius: .75rem;
    background: var(--epc-video-cream);
}

.epc-watch-all summary {
    min-height: 2rem;
    color: var(--epc-video-brown);
    font-weight: 700;
    cursor: pointer;
}

.epc-watch-all[open] summary {
    margin-bottom: .75rem;
}

.epc-watch-all p {
    margin: .8rem 0 0;
}

.epc-video-recent-player {
    max-width: 48rem;
}

.epc-video-dialog {
    width: min(92vw, 62rem);
    max-height: 90vh;
    padding: clamp(.75rem, 3vw, 1.5rem);
    border: 1px solid var(--epc-video-border);
    border-radius: 1rem;
    background: var(--epc-video-cream);
}

.epc-video-dialog::backdrop {
    background: #22170ed9;
}

.epc-video-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    margin-bottom: .85rem;
}

.epc-video-dialog-header h2 {
    margin: 0;
    font-size: clamp(1.1rem, 4vw, 1.6rem);
}
