.btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), color var(--ease);
}

.btn span {
    font-size: 0.8em;
}

.btn--primary {
    color: var(--night);
    background: var(--orange);
    box-shadow: 0 3px 0 rgba(22, 35, 44, 0.35);
}

.btn--primary:hover {
    background: var(--yellow);
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(22, 35, 44, 0.35);
}

.btn--outline {
    border-color: var(--night);
    color: var(--night);
}

.btn--outline:hover {
    color: #fff;
    background: var(--night);
}

.btn--sm {
    padding: 9px 16px;
}

.btn--lg {
    padding: 14px 24px;
    font-size: 16px;
}

.btn--block {
    width: 100%;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--radius-sm);
    color: var(--night);
    background: #fff;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.badge--yellow { background: var(--yellow); }
.badge--orange { background: var(--orange); }
.badge--mist   { color: var(--pine); background: var(--mist); }

.thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    background: var(--tint);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.thumb .badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
}

.thumb--stack {
    overflow: visible;
    margin-top: 12px;
}

.thumb--stack img {
    position: relative;
    z-index: 1;
    border-radius: inherit;
}

.thumb--stack::before,
.thumb--stack::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    height: 20px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: transform 300ms ease;
}

.thumb--stack::before {
    top: -12px;
    margin: 0 28px;
    background: var(--yellow);
}

.thumb--stack::after {
    top: -6px;
    margin: 0 14px;
    background: var(--aqua);
}

.play-button {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 200ms ease, transform 200ms ease;
}

.play-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 53%;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid var(--orange);
    transform: translate(-50%, -50%);
}

.card-link {
    position: relative;
}

.stretched-link::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
}

.card-link:hover .heading-4 {
    color: var(--accent);
}

.card-link:hover .thumb:not(.thumb--stack) img {
    transform: scale(1.04);
}

.card-link:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.9);
}

.card-link:hover .thumb--stack::before { transform: translateY(-3px); }
.card-link:hover .thumb--stack::after  { transform: translateY(-1.5px); }

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.6);
}

.panel--link {
    display: block;
    min-width: 0;
    padding: 12px 16px;
    transition: border-color var(--ease), background-color var(--ease);
}

.panel--link:hover {
    border-color: var(--pine);
    background: #fff;
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow: hidden;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.breadcrumbs a {
    font-weight: 700;
}

.breadcrumbs a:hover {
    color: var(--pine);
}

.breadcrumbs span[aria-hidden] {
    color: var(--line);
}

.breadcrumbs span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.subscribe-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    overflow: hidden;
    margin: clamp(56px, 8vw, 96px) 0;
    padding: clamp(32px, 5vw, 56px);
    border-radius: var(--radius);
}

.subscribe-panel::before {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -20px;
    width: 420px;
    height: 160px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M10 40 Q45 20 80 40 T150 40 T220 40 T290 40 T360 40 T430 40'/%3E%3Cpath d='M10 80 Q45 60 80 80 T150 80 T220 80 T290 80 T360 80 T430 80'/%3E%3Cpath d='M10 120 Q45 100 80 120 T150 120 T220 120 T290 120 T360 120 T430 120'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
    pointer-events: none;
}

.subscribe-panel > * {
    position: relative;
}

.subscribe-panel p {
    max-width: 620px;
    margin: 12px 0 0;
}

@media (max-width: 720px) {
    .subscribe-panel {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .subscribe-panel .btn {
        width: 100%;
        white-space: normal;
    }

    .panel--link {
        padding: 10px 12px;
    }
}
