/* ========================================
Buttons (btn-custom) — light mode only

Bootstrap 6 keeps `.btn { color: var(--bs-btn-*) }` inside `@layer components`.
Unlayered `a { color: inherit }` from typography would otherwise win and make
link-button labels inherit body ink. Set real color/background/border here.
======================================== */

.btn.btn-custom {
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: 0;
    --bs-btn-font-family: var(--font-manrope);
    --bs-btn-font-size: var(--font-size-sm);
    --bs-btn-font-weight: 600;
    --bs-btn-line-height: 1;
    --bs-btn-border-width: 1px;
    --bs-btn-border-radius: var(--button-custom-radius);
    --btn-custom-color: var(--color-text);
    --btn-custom-bg: transparent;
    --btn-custom-border: transparent;
    --btn-custom-hover-color: var(--btn-custom-color);
    --btn-custom-hover-bg: var(--btn-custom-bg);
    --btn-custom-hover-border: var(--btn-custom-border);
    --btn-custom-active-color: var(--btn-custom-hover-color);
    --btn-custom-active-bg: var(--btn-custom-hover-bg);
    --btn-custom-active-border: var(--btn-custom-hover-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 40px;
    padding: 0 var(--bs-btn-padding-x);
    font-family: var(--bs-btn-font-family);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);
    color: var(--btn-custom-color);
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-color: var(--btn-custom-bg);
    border: var(--bs-btn-border-width) solid var(--btn-custom-border);
    border-radius: var(--bs-btn-border-radius);
    transition:
        color var(--button-custom-transition),
        background-color var(--button-custom-transition),
        border-color var(--button-custom-transition),
        box-shadow var(--button-custom-transition);
}

a.btn.btn-custom,
a.btn.btn-custom:visited {
    color: var(--btn-custom-color);
    text-decoration: none;
}

.btn.btn-custom:hover,
a.btn.btn-custom:hover {
    color: var(--btn-custom-hover-color);
    background-color: var(--btn-custom-hover-bg);
    border-color: var(--btn-custom-hover-border);
}

.btn.btn-custom:focus-visible,
a.btn.btn-custom:focus-visible {
    color: var(--btn-custom-hover-color);
    background-color: var(--btn-custom-hover-bg);
    border-color: var(--btn-custom-hover-border);
}

.btn.btn-custom:active,
.btn.btn-custom.active,
a.btn.btn-custom:active {
    color: var(--btn-custom-active-color);
    background-color: var(--btn-custom-active-bg);
    border-color: var(--btn-custom-active-border);
}

.btn.btn-custom:disabled,
.btn.btn-custom.disabled,
fieldset:disabled .btn.btn-custom {
    color: var(--btn-custom-color);
    background-color: var(--btn-custom-bg);
    border-color: var(--btn-custom-border);
    opacity: 0.65;
    pointer-events: none;
}

.btn.btn-custom.btn-sm {
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-size: 0.8125rem;
    height: 32px;
}

.btn.btn-custom.btn-lg {
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-font-size: var(--font-size-base);
    height: 44px;
}

.btn.btn-custom.btn-xl {
    --bs-btn-padding-x: 1.75rem;
    --bs-btn-font-size: var(--font-size-base);
    height: 48px;
}

.btn.btn-custom.btn-custom-block {
    display: flex;
    width: 100%;
}

.btn.btn-custom.btn-custom-icon {
    --bs-btn-padding-x: 0;
    width: 40px;
    padding-inline: 0;
}

.btn.btn-custom.btn-custom-icon.btn-sm {
    width: 32px;
}

.btn.btn-custom.btn-custom-icon.btn-lg {
    width: 44px;
}

.btn.btn-custom.btn-custom-icon.btn-xl {
    width: 48px;
}

.btn-custom__icon {
    display: block;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: currentColor;
}

.btn.btn-sm .btn-custom__icon {
    width: 0.875rem;
    height: 0.875rem;
}

.btn.btn-lg .btn-custom__icon,
.btn.btn-xl .btn-custom__icon {
    width: 1.125rem;
    height: 1.125rem;
}

.btn-custom__icon--arrow-right {
    margin-inline-start: 0.125rem;
}

/* -----------------------------------------
   Solid
----------------------------------------- */

.btn.btn-custom-primary {
    --btn-custom-color: #fff;
    --btn-custom-bg: var(--button-custom-primary);
    --btn-custom-border: var(--button-custom-primary);
    --btn-custom-hover-color: #fff;
    --btn-custom-hover-bg: var(--button-custom-primary-hover);
    --btn-custom-hover-border: var(--button-custom-primary-hover);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-primary-active);
    --btn-custom-active-border: var(--button-custom-primary-active);
}

/* White button for dark surfaces / media overlays */
.btn.btn-custom-light {
    --btn-custom-color: var(--button-custom-primary);
    --btn-custom-bg: var(--button-custom-white);
    --btn-custom-border: var(--button-custom-white);
    --btn-custom-hover-color: var(--button-custom-primary);
    --btn-custom-hover-bg: color-mix(in srgb, var(--button-custom-white) 86%, #000);
    --btn-custom-hover-border: color-mix(in srgb, var(--button-custom-white) 86%, #000);
    --btn-custom-active-color: var(--button-custom-primary);
    --btn-custom-active-bg: color-mix(in srgb, var(--button-custom-white) 78%, #000);
    --btn-custom-active-border: color-mix(in srgb, var(--button-custom-white) 78%, #000);
}

.btn.btn-custom-secondary {
    --btn-custom-color: #fff;
    --btn-custom-bg: var(--button-custom-secondary);
    --btn-custom-border: var(--button-custom-secondary);
    --btn-custom-hover-color: #fff;
    --btn-custom-hover-bg: var(--button-custom-secondary-hover);
    --btn-custom-hover-border: var(--button-custom-secondary-hover);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-secondary-active);
    --btn-custom-active-border: var(--button-custom-secondary-active);
}

.btn.btn-custom-brand-red {
    --btn-custom-color: #fff;
    --btn-custom-bg: var(--button-custom-brand-red);
    --btn-custom-border: var(--button-custom-brand-red);
    --btn-custom-hover-color: #fff;
    --btn-custom-hover-bg: var(--button-custom-brand-red-hover);
    --btn-custom-hover-border: var(--button-custom-brand-red-hover);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-brand-red-active);
    --btn-custom-active-border: var(--button-custom-brand-red-active);
}

.btn.btn-custom-brand-gold {
    --btn-custom-color: var(--button-custom-brand-gold-ink);
    --btn-custom-bg: var(--button-custom-brand-gold);
    --btn-custom-border: var(--button-custom-brand-gold);
    --btn-custom-hover-color: var(--button-custom-brand-gold-ink);
    --btn-custom-hover-bg: var(--button-custom-brand-gold-hover);
    --btn-custom-hover-border: var(--button-custom-brand-gold-hover);
    --btn-custom-active-color: var(--button-custom-brand-gold-ink);
    --btn-custom-active-bg: var(--button-custom-brand-gold-active);
    --btn-custom-active-border: var(--button-custom-brand-gold-active);
}

.btn.btn-custom-brand-green {
    --btn-custom-color: #fff;
    --btn-custom-bg: var(--button-custom-brand-green);
    --btn-custom-border: var(--button-custom-brand-green);
    --btn-custom-hover-color: #fff;
    --btn-custom-hover-bg: var(--button-custom-brand-green-hover);
    --btn-custom-hover-border: var(--button-custom-brand-green-hover);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-brand-green-active);
    --btn-custom-active-border: var(--button-custom-brand-green-active);
}

.btn.btn-custom-brand-blue {
    --btn-custom-color: #fff;
    --btn-custom-bg: var(--button-custom-brand-blue);
    --btn-custom-border: var(--button-custom-brand-blue);
    --btn-custom-hover-color: #fff;
    --btn-custom-hover-bg: var(--button-custom-brand-blue-hover);
    --btn-custom-hover-border: var(--button-custom-brand-blue-hover);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-brand-blue-active);
    --btn-custom-active-border: var(--button-custom-brand-blue-active);
}

/* -----------------------------------------
   Outline
----------------------------------------- */

.btn.btn-custom-outline-primary {
    --btn-custom-color: var(--button-custom-primary);
    --btn-custom-bg: transparent;
    --btn-custom-border: var(--button-custom-primary);
    --btn-custom-hover-color: #fff;
    --btn-custom-hover-bg: var(--button-custom-primary);
    --btn-custom-hover-border: var(--button-custom-primary);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-primary-active);
    --btn-custom-active-border: var(--button-custom-primary-active);
}

.btn.btn-custom-outline-secondary {
    --btn-custom-color: var(--button-custom-secondary);
    --btn-custom-bg: transparent;
    --btn-custom-border: var(--button-custom-secondary);
    --btn-custom-hover-color: #fff;
    --btn-custom-hover-bg: var(--button-custom-secondary);
    --btn-custom-hover-border: var(--button-custom-secondary);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-secondary-active);
    --btn-custom-active-border: var(--button-custom-secondary-active);
}

.btn.btn-custom-outline-brand-red {
    --btn-custom-color: var(--button-custom-brand-red);
    --btn-custom-bg: transparent;
    --btn-custom-border: var(--button-custom-brand-red);
    --btn-custom-hover-color: #fff;
    --btn-custom-hover-bg: var(--button-custom-brand-red);
    --btn-custom-hover-border: var(--button-custom-brand-red);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-brand-red-active);
    --btn-custom-active-border: var(--button-custom-brand-red-active);
}

.btn.btn-custom-outline-brand-gold {
    --btn-custom-color: var(--button-custom-brand-gold);
    --btn-custom-bg: transparent;
    --btn-custom-border: var(--button-custom-brand-gold);
    --btn-custom-hover-color: var(--button-custom-brand-gold-ink);
    --btn-custom-hover-bg: var(--button-custom-brand-gold);
    --btn-custom-hover-border: var(--button-custom-brand-gold);
    --btn-custom-active-color: var(--button-custom-brand-gold-ink);
    --btn-custom-active-bg: var(--button-custom-brand-gold-active);
    --btn-custom-active-border: var(--button-custom-brand-gold-active);
}

/* Light label for dark / brand surfaces (e.g. outline gold on brand-red) */
.btn.btn-custom.btn-custom-ink-light {
    --btn-custom-color: #fff;
}

.btn.btn-custom.btn-custom-line.btn-custom-ink-light {
    --btn-custom-color: #fff;
    --btn-custom-hover-color: #fff;
    --btn-custom-active-color: #fff;
    --btn-custom-line-rest: #fff;
    --btn-custom-line-active: var(--button-custom-brand-red);
}

.btn.btn-custom-outline-brand-green {
    --btn-custom-color: var(--button-custom-brand-green);
    --btn-custom-bg: transparent;
    --btn-custom-border: var(--button-custom-brand-green);
    --btn-custom-hover-color: #fff;
    --btn-custom-hover-bg: var(--button-custom-brand-green);
    --btn-custom-hover-border: var(--button-custom-brand-green);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-brand-green-active);
    --btn-custom-active-border: var(--button-custom-brand-green-active);
}

.btn.btn-custom-outline-brand-blue {
    --btn-custom-color: var(--button-custom-brand-blue);
    --btn-custom-bg: transparent;
    --btn-custom-border: var(--button-custom-brand-blue);
    --btn-custom-hover-color: #fff;
    --btn-custom-hover-bg: var(--button-custom-brand-blue);
    --btn-custom-hover-border: var(--button-custom-brand-blue);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-brand-blue-active);
    --btn-custom-active-border: var(--button-custom-brand-blue-active);
}

/* -----------------------------------------
   Soft
----------------------------------------- */

.btn.btn-custom-soft-primary {
    --btn-custom-color: var(--button-custom-primary);
    --btn-custom-bg: var(--button-custom-primary-soft);
    --btn-custom-border: var(--button-custom-primary-soft);
    --btn-custom-hover-color: var(--button-custom-primary);
    --btn-custom-hover-bg: var(--button-custom-primary-soft-hover);
    --btn-custom-hover-border: var(--button-custom-primary-soft-hover);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-primary);
    --btn-custom-active-border: var(--button-custom-primary);
}

.btn.btn-custom-soft-secondary {
    --btn-custom-color: var(--button-custom-secondary);
    --btn-custom-bg: var(--button-custom-secondary-soft);
    --btn-custom-border: var(--button-custom-secondary-soft);
    --btn-custom-hover-color: var(--button-custom-secondary);
    --btn-custom-hover-bg: var(--button-custom-secondary-soft-hover);
    --btn-custom-hover-border: var(--button-custom-secondary-soft-hover);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-secondary);
    --btn-custom-active-border: var(--button-custom-secondary);
}

.btn.btn-custom-soft-brand-red {
    --btn-custom-color: var(--button-custom-brand-red);
    --btn-custom-bg: var(--button-custom-brand-red-soft);
    --btn-custom-border: var(--button-custom-brand-red-soft);
    --btn-custom-hover-color: var(--button-custom-brand-red);
    --btn-custom-hover-bg: var(--button-custom-brand-red-soft-hover);
    --btn-custom-hover-border: var(--button-custom-brand-red-soft-hover);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-brand-red);
    --btn-custom-active-border: var(--button-custom-brand-red);
}

.btn.btn-custom-soft-brand-gold {
    --btn-custom-color: var(--button-custom-brand-gold-ink);
    --btn-custom-bg: var(--button-custom-brand-gold-soft);
    --btn-custom-border: var(--button-custom-brand-gold-soft);
    --btn-custom-hover-color: var(--button-custom-brand-gold-ink);
    --btn-custom-hover-bg: var(--button-custom-brand-gold-soft-hover);
    --btn-custom-hover-border: var(--button-custom-brand-gold-soft-hover);
    --btn-custom-active-color: var(--button-custom-brand-gold-ink);
    --btn-custom-active-bg: var(--button-custom-brand-gold);
    --btn-custom-active-border: var(--button-custom-brand-gold);
}

.btn.btn-custom-soft-brand-green {
    --btn-custom-color: var(--button-custom-brand-green);
    --btn-custom-bg: var(--button-custom-brand-green-soft);
    --btn-custom-border: var(--button-custom-brand-green-soft);
    --btn-custom-hover-color: var(--button-custom-brand-green);
    --btn-custom-hover-bg: var(--button-custom-brand-green-soft-hover);
    --btn-custom-hover-border: var(--button-custom-brand-green-soft-hover);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-brand-green);
    --btn-custom-active-border: var(--button-custom-brand-green);
}

.btn.btn-custom-soft-brand-blue {
    --btn-custom-color: var(--button-custom-brand-blue);
    --btn-custom-bg: var(--button-custom-brand-blue-soft);
    --btn-custom-border: var(--button-custom-brand-blue-soft);
    --btn-custom-hover-color: var(--button-custom-brand-blue);
    --btn-custom-hover-bg: var(--button-custom-brand-blue-soft-hover);
    --btn-custom-hover-border: var(--button-custom-brand-blue-soft-hover);
    --btn-custom-active-color: #fff;
    --btn-custom-active-bg: var(--button-custom-brand-blue);
    --btn-custom-active-border: var(--button-custom-brand-blue);
}

/* -----------------------------------------
   Animation line
----------------------------------------- */

.btn.btn-custom.btn-custom-line {
    --bs-btn-padding-x: 0;
    --bs-btn-border-width: 0;
    --btn-custom-line-thickness: 2px;
    --btn-custom-line-rest: var(--button-custom-primary);
    --btn-custom-line-active: var(--button-custom-brand-red);
    --btn-custom-bg: transparent;
    --btn-custom-border: transparent;
    --btn-custom-hover-bg: transparent;
    --btn-custom-hover-border: transparent;
    --btn-custom-active-bg: transparent;
    --btn-custom-active-border: transparent;
    position: relative;
    justify-content: flex-start;
    height: auto;
    min-height: 0;
    padding-inline: 0;
    padding-block: 0.35rem 0.5rem;
    border-radius: 0;
}

.btn.btn-custom.btn-custom-line::before,
.btn.btn-custom.btn-custom-line::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: var(--btn-custom-line-thickness);
    pointer-events: none;
}

/* Resting black (or variant) line */
.btn.btn-custom.btn-custom-line::before {
    background-color: var(--btn-custom-line-rest);
}

/* Active color fills left → right on hover */
.btn.btn-custom.btn-custom-line::after {
    background-color: var(--btn-custom-line-active);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--button-custom-transition);
}

.btn.btn-custom.btn-custom-line:hover::after,
.btn.btn-custom.btn-custom-line:focus-visible::after {
    transform: scaleX(1);
}

.btn.btn-custom-line-primary {
    --btn-custom-color: var(--button-custom-primary);
    --btn-custom-hover-color: var(--button-custom-brand-red);
    --btn-custom-active-color: var(--button-custom-brand-red);
    --btn-custom-line-rest: var(--button-custom-primary);
    --btn-custom-line-active: var(--button-custom-brand-red);
}

.btn.btn-custom-line-secondary {
    --btn-custom-color: var(--button-custom-secondary);
    --btn-custom-hover-color: var(--button-custom-secondary-hover);
    --btn-custom-active-color: var(--button-custom-secondary-active);
    --btn-custom-line-rest: var(--button-custom-secondary);
    --btn-custom-line-active: var(--button-custom-secondary-hover);
}

.btn.btn-custom-line-brand-red {
    --btn-custom-color: var(--button-custom-brand-red);
    --btn-custom-hover-color: var(--button-custom-brand-red-hover);
    --btn-custom-active-color: var(--button-custom-brand-red-active);
    --btn-custom-line-rest: var(--button-custom-brand-red);
    --btn-custom-line-active: var(--button-custom-brand-red-hover);
}

.btn.btn-custom-line-brand-gold {
    --btn-custom-color: var(--button-custom-brand-gold);
    --btn-custom-hover-color: var(--button-custom-brand-gold-hover);
    --btn-custom-active-color: var(--button-custom-brand-gold-active);
    --btn-custom-line-rest: var(--button-custom-brand-gold);
    --btn-custom-line-active: var(--button-custom-brand-gold-hover);
}

.btn.btn-custom-line-brand-green {
    --btn-custom-color: var(--button-custom-brand-green);
    --btn-custom-hover-color: var(--button-custom-brand-green-hover);
    --btn-custom-active-color: var(--button-custom-brand-green-active);
    --btn-custom-line-rest: var(--button-custom-brand-green);
    --btn-custom-line-active: var(--button-custom-brand-green-hover);
}

.btn.btn-custom-line-brand-blue {
    --btn-custom-color: var(--button-custom-brand-blue);
    --btn-custom-hover-color: var(--button-custom-brand-blue-hover);
    --btn-custom-active-color: var(--button-custom-brand-blue-active);
    --btn-custom-line-rest: var(--button-custom-brand-blue);
    --btn-custom-line-active: var(--button-custom-brand-blue-hover);
}

@media (prefers-reduced-motion: reduce) {
    .btn.btn-custom.btn-custom-line::after {
        transition: none;
    }
}

/* Circular media play control. Contexts only set --play-button-size. */
.play-button {
    --play-button-size: 6.5rem;
    display: grid;
    place-items: center;
    width: var(--play-button-size);
    height: var(--play-button-size);
    padding: 0;
    color: #fff;
    background-color: rgb(255 255 255 / 0.62);
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: scale(1);
    transform-origin: center;
    cursor: pointer;
    transition:
        color var(--transition-base),
        background-color var(--transition-base),
        backdrop-filter var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

.play-button__icon {
    display: block;
    width: 34.615%;
    height: 34.615%;
}

.play-button:focus {
    outline: none;
}

.play-button:focus-visible {
    color: #111;
    background-color: #fff;
    outline: 2px solid #fff;
    outline-offset: 4px;
    box-shadow: 0 0 0 0.5rem rgb(255 255 255 / 42%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: scale(1.08);
}

@media (hover: hover) and (pointer: fine) {
    .play-button:hover {
        color: #111;
        background-color: #fff;
        box-shadow: 0 0 0 0.5rem rgb(255 255 255 / 42%);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .play-button {
        transition: none;
    }
}
