.a45-videos {
    --a45v-ink: var(--a45-text, #231f20);
    --a45v-muted: var(--a45-muted, #746b67);
    --a45v-surface: var(--a45-surface, #fff);
    --a45v-surface-2: var(--a45-surface-2, #f5f1ee);
    --a45v-border: var(--a45-border, #e4dad4);
    --a45v-accent: var(--a45-accent, #f04461);
    --a45v-highlight: var(--a45-highlight, #f2b857);
    --a45v-shadow: var(--a45-shadow, 0 18px 42px rgba(38, 25, 23, .10));
    width: min(calc(100% - 36px), 1240px);
    margin: 0 auto;
    padding: clamp(34px, 5vw, 74px) 0 70px;
    color: var(--a45v-ink);
}
.a45-videos-template-main { overflow: clip; }
.a45-videos * { box-sizing: border-box; }
.a45-videos__hero {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 6vw, 72px);
    border: 1px solid var(--a45v-border);
    border-radius: 32px;
    background:
        radial-gradient(circle at 84% 17%, rgba(255, 48, 87, .18), transparent 30%),
        radial-gradient(circle at 70% 90%, rgba(122, 57, 255, .18), transparent 36%),
        linear-gradient(135deg, var(--a45v-surface) 0%, var(--a45v-surface-2) 100%);
    box-shadow: var(--a45v-shadow);
}
.a45-videos__hero::after {
    content: "▶";
    position: absolute;
    right: -24px;
    bottom: -82px;
    color: color-mix(in srgb, var(--a45v-accent) 11%, transparent);
    font-size: clamp(12rem, 30vw, 27rem);
    font-weight: 900;
    line-height: .72;
    pointer-events: none;
}
.a45-videos__hero > * { position: relative; z-index: 1; }
.a45-videos__eyebrow,
.a45-jam-promo__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--a45v-accent);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.a45-videos__hero h1 {
    max-width: 13ch;
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 6.5vw, 6rem);
    line-height: .91;
    letter-spacing: -.052em;
}
.a45-videos__hero > p {
    max-width: 61ch;
    margin: 0;
    color: var(--a45v-muted);
    font-size: clamp(1rem, 1.7vw, 1.24rem);
    line-height: 1.65;
}
.a45-videos__hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 22px;
    color: var(--a45v-muted);
    font-size: .88rem;
    font-weight: 750;
}

/* Same Jam45 promotion used by 45Audio Charts. */
.a45-jam-promo {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(20px, 4vw, 38px);
    align-items: center;
    overflow: hidden;
    margin: 34px 0 54px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(83, 174, 255, .4);
    border-radius: 30px;
    background:
        linear-gradient(115deg, rgba(7, 14, 35, .97), rgba(28, 11, 53, .97)),
        #080d1f;
    box-shadow: 0 25px 70px rgba(19, 15, 47, .30);
    color: #fff;
}
.a45-jam-promo::after {
    content: "";
    position: absolute;
    inset: -50% -20%;
    background: linear-gradient(100deg, transparent 35%, rgba(63, 218, 255, .10) 48%, rgba(193, 72, 255, .12) 53%, transparent 65%);
    transform: rotate(-8deg);
    pointer-events: none;
}
.a45-jam-promo > * { position: relative; z-index: 1; }
.a45-jam-promo__logo-link {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(118px, 14vw, 176px);
    height: clamp(118px, 14vw, 176px);
    border-radius: 50%;
}
.a45-jam-promo__logo-link img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 24px rgba(52, 140, 255, .28));
    animation: a45-jam-breathe 2.8s ease-in-out infinite;
}
.a45-jam-promo__pulse {
    position: absolute;
    inset: 10%;
    z-index: 1;
    border: 2px solid rgba(79, 208, 255, .65);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(70, 199, 255, .38), 0 0 48px rgba(172, 68, 255, .32);
    animation: a45-jam-ring 2.8s ease-out infinite;
}
@keyframes a45-jam-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.055); }
}
@keyframes a45-jam-ring {
    0% { opacity: .9; transform: scale(.92); }
    70%, 100% { opacity: 0; transform: scale(1.25); }
}
.a45-jam-promo__copy strong {
    display: block;
    max-width: 18ch;
    margin-bottom: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 3vw, 3.25rem);
    line-height: .98;
    letter-spacing: -.035em;
}
.a45-jam-promo__copy p {
    max-width: 56ch;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.6;
}
.a45-jam-promo__button,
.a45-video-card__watch,
.a45-video-load-more,
.a45-video-modal__youtube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 17px;
    border: 0;
    border-radius: 999px;
    background: var(--a45v-accent);
    color: #fff;
    font: inherit;
    font-size: .88rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.a45-jam-promo__button:hover,
.a45-jam-promo__button:focus-visible,
.a45-video-card__watch:hover,
.a45-video-card__watch:focus-visible,
.a45-video-load-more:hover,
.a45-video-load-more:focus-visible,
.a45-video-modal__youtube:hover,
.a45-video-modal__youtube:focus-visible {
    color: #fff;
    filter: brightness(1.08);
    outline: 3px solid var(--a45v-highlight);
    outline-offset: 3px;
}

.a45-video-browser {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--a45v-border);
    border-radius: 30px;
    background: var(--a45v-surface);
    box-shadow: var(--a45v-shadow);
}
.a45-video-browser__header {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}
.a45-video-browser__header h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: .96;
    letter-spacing: -.045em;
}
.a45-video-browser__header p {
    max-width: 46ch;
    margin: 0;
    color: var(--a45v-muted);
    line-height: 1.55;
}
.a45-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.a45-video-card {
    overflow: hidden;
    border: 1px solid var(--a45v-border);
    border-radius: 22px;
    background: var(--a45v-surface-2);
    box-shadow: 0 12px 28px rgba(28, 20, 18, .08);
}
.a45-video-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}
.a45-video-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}
.a45-video-card:hover .a45-video-card__media img { transform: scale(1.025); }
.a45-video-card__rank {
    position: absolute;
    left: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    padding: 0 10px;
    border: 2px solid rgba(255,255,255,.72);
    border-radius: 14px;
    background: rgba(12, 10, 15, .86);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 950;
    backdrop-filter: blur(7px);
}
.a45-video-card__duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 7px;
    border-radius: 7px;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    font-size: .75rem;
    font-weight: 850;
}
.a45-video-card__body { padding: 18px; }
.a45-video-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--a45v-muted);
    font-size: .76rem;
    font-weight: 800;
}
.a45-video-card__movement {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--a45v-surface);
}
.a45-video-card__movement.is-new { color: #7b3f00; background: #ffe8bd; }
.a45-video-card__movement.is-up { color: #0c6837; background: #d9f7e7; }
.a45-video-card__movement.is-down { color: #9f2638; background: #ffe1e6; }
.a45-video-card h3 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 1.75vw, 1.55rem);
    line-height: 1.03;
    letter-spacing: -.025em;
}
.a45-video-card__channel {
    margin: 0 0 10px;
    color: var(--a45v-accent);
    font-weight: 850;
}
.a45-video-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    min-height: 1.4em;
    margin-bottom: 15px;
    color: var(--a45v-muted);
    font-size: .78rem;
}
.a45-video-card__watch { width: 100%; }
.a45-video-load-more {
    display: flex;
    margin: 30px auto 0;
    background: var(--a45v-ink);
    color: var(--a45v-surface);
}
.a45-video-loading,
.a45-video-error {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-height: 280px;
    padding: 40px;
    place-content: center;
    text-align: center;
    border: 1px dashed var(--a45v-border);
    border-radius: 22px;
    color: var(--a45v-muted);
}
.a45-video-loading__play {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    padding-left: 5px;
    border-radius: 50%;
    background: var(--a45v-accent);
    color: #fff;
    font-size: 1.6rem;
    animation: a45-video-pulse 1.5s ease-in-out infinite;
}
@keyframes a45-video-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--a45v-accent) 35%, transparent); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 18px transparent; }
}
.a45-video-error strong { color: var(--a45v-ink); font-size: 1.35rem; }
.a45-video-error p { max-width: 58ch; margin: 0; }
.a45-video-error a { color: var(--a45v-accent); font-weight: 850; }
.a45-videos__source-note {
    margin-top: 24px;
    padding: 20px 22px;
    border: 1px solid var(--a45v-border);
    border-radius: 18px;
    background: var(--a45v-surface-2);
    color: var(--a45v-muted);
    font-size: .86rem;
    line-height: 1.6;
}
.a45-videos__source-note strong { color: var(--a45v-ink); }
.a45-videos__source-note a { margin-left: 5px; color: var(--a45v-accent); font-weight: 850; }

.a45-video-modal[hidden] { display: none !important; }
.a45-video-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 22px;
}
.a45-video-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, .78);
    cursor: default;
}
.a45-video-modal__window {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    padding: clamp(16px, 3vw, 26px);
    border: 1px solid var(--a45v-border);
    border-radius: 24px;
    background: var(--a45v-surface);
    color: var(--a45v-ink);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .5);
}
.a45-video-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}
.a45-video-modal__header h2 {
    max-width: 24ch;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 3vw, 2.5rem);
    line-height: 1;
}
.a45-video-modal__close {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--a45v-border);
    border-radius: 50%;
    background: var(--a45v-surface-2);
    color: var(--a45v-ink);
    font-size: 1.8rem;
    cursor: pointer;
}
.a45-video-modal__close:hover,
.a45-video-modal__close:focus-visible { outline: 3px solid var(--a45v-highlight); outline-offset: 2px; }
.a45-video-modal__player {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}
.a45-video-modal__player iframe { width: 100%; height: 100%; border: 0; }
.a45-video-modal__youtube { margin-top: 16px; }
.a45-video-modal-open { overflow: hidden; }

@media (max-width: 940px) {
    .a45-jam-promo { grid-template-columns: auto 1fr; }
    .a45-jam-promo__button { grid-column: 1 / -1; justify-self: start; }
    .a45-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .a45-video-browser__header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
    .a45-videos { width: auto; margin-inline: 18px; padding-top: 28px; }
    .a45-videos__hero { padding: 26px 22px; border-radius: 24px; }
    .a45-videos__hero h1 { font-size: clamp(2.25rem, 13vw, 3.8rem); }
    .a45-jam-promo {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 24px 20px;
        border-radius: 24px;
    }
    .a45-jam-promo__logo-link { width: 130px; height: 130px; }
    .a45-jam-promo__copy strong { max-width: 15ch; }
    .a45-jam-promo__button { grid-column: auto; justify-self: center; width: 100%; }
    .a45-video-browser { padding: 20px 16px; border-radius: 24px; }
    .a45-video-grid { grid-template-columns: 1fr; }
    .a45-video-card h3 { font-size: 1.3rem; }
    .a45-video-modal { padding: 10px; }
    .a45-video-modal__window { max-height: calc(100vh - 20px); border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .a45-jam-promo__logo-link img,
    .a45-jam-promo__pulse,
    .a45-video-loading__play { animation: none !important; }
    .a45-video-card__media img { transition: none; }
}
