/* ==========================================================================
   Home hero slider — "3D poster & ambient light" (slider A)
   Sits under the transparent header (pulls up over .atv-hdr-spacer).
   Per-slide glow colours: --hero-c1 / --hero-c2 as "r, g, b" (set by JS from the poster).

   Layout: the slide content and the navigator share one centred box
   (--hero-max wide, --hero-pad inside), so everything is pinned to its two
   edges: text column on the right, poster on the left, arrows centred under
   the poster. Above --hero-max nothing moves; below it only the gap between
   the text and the poster shrinks, until the tablet / phone layouts take over.
   ========================================================================== */

@font-face {
    font-family: "AtvKalameh";
    src: url("../../fonts/kalameh/Kalameh_Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.atv-hero {
    --hero-c1: 217, 98, 43;
    --hero-c2: 165, 42, 23;
    --hero-page: #16181f;
    --hero-page-rgb: 22, 24, 31;
    --hero-h: 660px;
    --hero-max: 1320px;
    --hero-pad: clamp(16px, 4vw, 60px);
    --hero-info-w: 700px;
    --hero-title: 45px;
    --hero-poster-w: 290px;
    --hero-poster-h: 406px;
    --hero-poster-pad: 30px;
    /* Distance of the poster's centre from the hero's left edge (follows the centred box). */
    --hero-poster-x: calc(50% - min(50% - var(--hero-pad), var(--hero-max) / 2 - var(--hero-pad)) + var(--hero-poster-pad) + var(--hero-poster-w) / 2);
    --hero-fade-h: 240px;
    position: relative;
    height: var(--hero-h);
    margin: -94px 0 40px;
    overflow: hidden;
    isolation: isolate;
    background: #0b0809;
    color: #ffffff;
    direction: rtl;
    font-family: "IRANYekanX", "Vazirmatn", system-ui, sans-serif;
}
#animetvApp.day .atv-hero {
    --hero-page: #f4f6fb;
    --hero-page-rgb: 244, 246, 251;
}

.atv-hero__stage {
    position: absolute;
    inset: 0;
}
.atv-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}
.atv-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Ambient light from the poster's colours; the main glow sits behind the poster. */
.atv-hero__ambient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 620px at var(--hero-poster-x) 58%, rgba(var(--hero-c1), 0.34), transparent 65%),
        radial-gradient(760px 520px at 82% 8%, rgba(232, 176, 74, 0.1), transparent 70%),
        radial-gradient(820px 600px at 6% 100%, rgba(var(--hero-c2), 0.36), transparent 70%),
        #0b0809;
}
.atv-hero__texture {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 62%;
    overflow: hidden;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 55%);
    mask-image: linear-gradient(to left, transparent 0%, #000 55%);
}
.atv-hero__texture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: saturate(1.2) brightness(0.7) blur(15px);
    transform: scale(1.04);
}
.atv-hero__slide.is-active .atv-hero__texture img {
    animation: atvHeroKenBurns 18s ease-in-out infinite alternate;
}
@keyframes atvHeroKenBurns {
    from { transform: scale(1.04); }
    to { transform: scale(1.14) translateX(-24px); }
}

/* Bottom fade: the slide dissolves into the page colour on an eased curve,
   under the slide content, so there is no visible edge where the page starts. */
.atv-hero__slide::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: var(--hero-fade-h);
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgb(var(--hero-page-rgb)) 0%,
        rgba(var(--hero-page-rgb), 0.98) 9%,
        rgba(var(--hero-page-rgb), 0.93) 18%,
        rgba(var(--hero-page-rgb), 0.84) 27%,
        rgba(var(--hero-page-rgb), 0.71) 36%,
        rgba(var(--hero-page-rgb), 0.56) 45%,
        rgba(var(--hero-page-rgb), 0.41) 54%,
        rgba(var(--hero-page-rgb), 0.27) 63%,
        rgba(var(--hero-page-rgb), 0.15) 72%,
        rgba(var(--hero-page-rgb), 0.07) 81%,
        rgba(var(--hero-page-rgb), 0.02) 90%,
        rgba(var(--hero-page-rgb), 0) 100%
    );
}

/* Floating embers, tinted with the active slide's colour */
.atv-hero__embers {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.atv-hero__embers span {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgb(var(--hero-c1));
    box-shadow: 0 0 8px 2px rgba(var(--hero-c1), 0.75);
    filter: brightness(1.7);
    opacity: 0;
    animation: atvHeroRise 7s linear infinite;
}
.atv-hero__embers span.is-sm {
    width: 3px;
    height: 3px;
}
@keyframes atvHeroRise {
    0% { transform: translate(0, 0); opacity: 0; }
    12% { opacity: 0.9; }
    100% { transform: translate(34px, -560px); opacity: 0; }
}

/* Vignette and top fade for the header. Masked out towards the bottom so it
   never darkens the page-coloured edge left by the bottom fade. */
.atv-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.55)),
        linear-gradient(180deg, rgba(8, 9, 12, 0.6) 0%, rgba(8, 9, 12, 0) 22%);
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 var(--hero-fade-h));
    mask-image: linear-gradient(to top, transparent 0, #000 var(--hero-fade-h));
}

/* ---------- Slide content ---------- */
.atv-hero__in {
    position: relative;
    z-index: 3;
    max-width: var(--hero-max);
    height: 100%;
    margin: 0 auto;
    padding: 104px var(--hero-pad) 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    box-sizing: border-box;
}
/* Same height as the poster with the content pinned to its bottom: the buttons
   stay in one place on every slide, a longer title only grows upwards. */
.atv-hero__info {
    flex: 0 1 var(--hero-info-w);
    min-width: 0;
    min-height: var(--hero-poster-h);
    padding-bottom: 46px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 14px;
    box-sizing: border-box;
}
.atv-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.atv-hero__pill {
    height: 30px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #e6e8ed;
    font-size: 12.5px;
    font-weight: 600;
}
.atv-hero__pill.is-rate {
    color: #f5b942;
}
.atv-hero__live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3fc380;
    box-shadow: 0 0 10px rgba(63, 195, 128, 0.9);
}
.atv-hero .atv-hero__title {
    margin: 0;
    max-width: 100%;
    font-family: "AtvKalameh", "kalame", "IRANYekanX", sans-serif;
    font-size: var(--hero-title);
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 44px rgba(var(--hero-c1), 0.35), 0 8px 30px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.atv-hero__title.is-latin {
    align-self: stretch;
    text-align: right;
}
.atv-hero__genres {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
}
/* Three lines, always reserved, so a short synopsis doesn't move the buttons. */
.atv-hero .atv-hero__desc {
    margin: 0;
    max-width: 100%;
    min-height: 6em;
    font-size: 14.5px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.66);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.atv-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.atv-hero a.atv-hero__cta {
    height: 52px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffc964, #f0ab22);
    color: #1c1503;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 34px -12px rgba(245, 185, 66, 0.75);
    transition: transform 0.2s, box-shadow 0.2s;
}
.atv-hero a.atv-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(245, 185, 66, 0.85);
    color: #1c1503;
}
.atv-hero__cta i {
    font-size: 13px;
}
.atv-hero a.atv-hero__ghost {
    height: 52px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}
.atv-hero a.atv-hero__ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* 3D poster (no reflection), pinned to the left edge of the box */
.atv-hero__poster {
    position: relative;
    display: block;
    flex-shrink: 0;
    padding: 0 var(--hero-poster-pad);
    perspective: 1400px;
}
.atv-hero__poster-glow {
    position: absolute;
    inset: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--hero-c1), 0.55), rgba(var(--hero-c1), 0) 65%);
    filter: blur(20px);
}
.atv-hero__poster img {
    position: relative;
    display: block;
    width: var(--hero-poster-w);
    height: var(--hero-poster-h);
    object-fit: cover;
    border-radius: 20px;
    transform: rotateY(-14deg) rotateX(3deg);
    box-shadow: 0 44px 80px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 70px -12px rgba(var(--hero-c1), 0.6);
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.atv-hero__poster:hover img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.03);
}

/* Entrance of the active slide */
.atv-hero__slide.is-active .atv-hero__badges,
.atv-hero__slide.is-active .atv-hero__title,
.atv-hero__slide.is-active .atv-hero__genres,
.atv-hero__slide.is-active .atv-hero__desc,
.atv-hero__slide.is-active .atv-hero__actions {
    animation: atvHeroUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.atv-hero__slide.is-active .atv-hero__title { animation-delay: 0.06s; }
.atv-hero__slide.is-active .atv-hero__genres { animation-delay: 0.12s; }
.atv-hero__slide.is-active .atv-hero__desc { animation-delay: 0.18s; }
.atv-hero__slide.is-active .atv-hero__actions { animation-delay: 0.24s; }
.atv-hero__slide.is-active .atv-hero__poster {
    animation: atvHeroPoster 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes atvHeroUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
@keyframes atvHeroPoster {
    from { opacity: 0; transform: translateX(-30px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

/* ---------- Navigator ---------- */
.atv-hero__nav {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 30px;
    z-index: 4;
}
.atv-hero__nav-in {
    max-width: var(--hero-max);
    margin: 0 auto;
    padding: 0 var(--hero-pad);
    display: flex;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
}
.atv-hero__count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}
.atv-hero__count strong {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
}
.atv-hero__bars {
    width: 320px;
    min-width: 0;
    display: flex;
    gap: 6px;
}
.atv-hero .atv-hero__bar {
    flex: 1;
    height: 14px;
    margin: 0;
    padding: 5px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.atv-hero__bar::before {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    top: 5px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18);
}
.atv-hero__fill {
    position: absolute;
    right: 0;
    top: 5px;
    height: 3px;
    width: 0;
    border-radius: 3px;
    background: #f5b942;
    box-shadow: 0 0 10px rgba(245, 185, 66, 0.9);
}
.atv-hero__bar.is-done .atv-hero__fill {
    width: 100%;
    box-shadow: none;
    opacity: 0.55;
}
.atv-hero__bar.is-active .atv-hero__fill {
    animation: atvHeroFill 7s linear forwards;
}
.atv-hero.is-paused .atv-hero__bar.is-active .atv-hero__fill {
    animation-play-state: paused;
}
@keyframes atvHeroFill {
    from { width: 0; }
    to { width: 100%; }
}
.atv-hero .atv-hero__next-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 6px 6px 6px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font: inherit;
    text-align: right;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
.atv-hero .atv-hero__next-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(245, 185, 66, 0.35);
}
.atv-hero__next-card img {
    width: 38px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
}
.atv-hero__next-text {
    display: flex;
    flex-direction: column;
    line-height: 1.45;
    max-width: 200px;
}
.atv-hero__next-text small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}
.atv-hero__next-text strong {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    font-family: 'AtvKalameh';
}
/* Exactly as wide as the poster column, so the arrows sit centred under the cover. */
.atv-hero__arrows {
    flex-shrink: 0;
    width: calc(var(--hero-poster-w) + var(--hero-poster-pad) * 2);
    margin-right: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.atv-hero .atv-hero__arrow {
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}
.atv-hero .atv-hero__arrow:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 20px rgba(var(--hero-c1), 0.45);
}
.atv-hero a:focus-visible,
.atv-hero button:focus-visible {
    outline: 2px solid #f5b942;
    outline-offset: 3px;
}

/* Day theme: the hero fades into a light page, so the navigator (which sits on
   that faded strip) switches to dark ink. */
#animetvApp.day .atv-hero__count {
    color: rgba(15, 23, 42, 0.55);
}
#animetvApp.day .atv-hero__count strong {
    color: #0f172a;
}
#animetvApp.day .atv-hero__bar::before {
    background: rgba(15, 23, 42, 0.16);
}
#animetvApp.day .atv-hero .atv-hero__next-card {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
    color: #0f172a;
}
#animetvApp.day .atv-hero .atv-hero__next-card:hover {
    background: #ffffff;
}
#animetvApp.day .atv-hero__next-text small {
    color: rgba(15, 23, 42, 0.55);
}
#animetvApp.day .atv-hero .atv-hero__arrow {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.75);
    color: #0f172a;
}
#animetvApp.day .atv-hero .atv-hero__arrow:hover {
    background: #ffffff;
}

/* Day theme, whole hero: a light "daylight" version instead of the dark cinema one, so the transparent header
   (dark ink in day mode) stays readable and the bottom fade melts into the light page without a muddy band.
   The poster's own colours still tint the backdrop (--hero-c1 / --hero-c2 from JS). */
#animetvApp.day .atv-hero {
    background: #eef1f7;
    color: #0f172a;
}
#animetvApp.day .atv-hero__ambient {
    background:
        radial-gradient(900px 620px at var(--hero-poster-x) 58%, rgba(var(--hero-c1), 0.3), transparent 65%),
        radial-gradient(760px 520px at 82% 8%, rgba(245, 185, 66, 0.16), transparent 70%),
        radial-gradient(820px 600px at 6% 100%, rgba(var(--hero-c2), 0.24), transparent 70%),
        linear-gradient(180deg, #f8f9fd, #eef1f7);
}
#animetvApp.day .atv-hero__texture {
    opacity: 0.3;
}
#animetvApp.day .atv-hero__texture img {
    filter: saturate(1.35) brightness(1.12) blur(22px);
}
#animetvApp.day .atv-hero__shade {
    background:
        radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(238, 241, 247, 0.55)),
        linear-gradient(180deg, rgba(248, 249, 253, 0.85) 0%, rgba(248, 249, 253, 0) 24%);
}
#animetvApp.day .atv-hero__embers span {
    opacity: 0.55;
}
#animetvApp.day .atv-hero__pill {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
    color: #334155;
    box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
#animetvApp.day .atv-hero__pill.is-rate {
    color: #b7791f;
}
#animetvApp.day .atv-hero .atv-hero__title {
    color: #0f172a;
    text-shadow: 0 0 48px rgba(var(--hero-c1), 0.28), 0 10px 30px rgba(var(--hero-c1), 0.18);
}
#animetvApp.day .atv-hero__genres {
    color: rgba(15, 23, 42, 0.72);
}
#animetvApp.day .atv-hero .atv-hero__desc {
    color: rgba(15, 23, 42, 0.68);
}
#animetvApp.day .atv-hero a.atv-hero__cta {
    box-shadow: 0 16px 32px -14px rgba(240, 171, 34, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
#animetvApp.day .atv-hero a.atv-hero__ghost {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.75);
    color: #0f172a;
    box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.4);
}
#animetvApp.day .atv-hero a.atv-hero__ghost:hover {
    background: #ffffff;
    color: #0f172a;
}
#animetvApp.day .atv-hero__poster-glow {
    background: radial-gradient(circle, rgba(var(--hero-c1), 0.32), rgba(var(--hero-c1), 0) 65%);
}
#animetvApp.day .atv-hero__poster img {
    box-shadow: 0 40px 70px -30px rgba(15, 23, 42, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 70px -10px rgba(var(--hero-c1), 0.55);
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 1100px) {
    .atv-hero {
        --hero-title: 34px;
        --hero-poster-w: 240px;
        --hero-poster-h: 336px;
        --hero-poster-pad: 20px;
    }
    .atv-hero__in {
        gap: 36px;
    }
    .atv-hero__info {
        padding-bottom: 20px;
    }
    .atv-hero__next-card {
        display: none !important;
    }
}
@media (max-width: 820px) {
    .atv-hero {
        --hero-h: 640px;
        --hero-title: 28px;
        --hero-poster-w: 170px;
        --hero-poster-h: 238px;
        --hero-poster-pad: 0px;
        --hero-poster-x: 50%;
        --hero-fade-h: 170px;
        margin-top: -68px;
        margin-bottom: 28px;
    }
    .atv-hero__ambient {
        background:
            radial-gradient(520px 420px at 50% 26%, rgba(var(--hero-c1), 0.36), transparent 65%),
            radial-gradient(620px 480px at 0% 100%, rgba(var(--hero-c2), 0.3), transparent 70%),
            #0b0809;
    }
    .atv-hero__texture {
        width: 100%;
        opacity: 0.18;
        -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
        mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
    }
    .atv-hero__in {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 18px;
        padding: 80px 18px 70px;
        text-align: center;
    }
    .atv-hero__poster {
        order: -1;
    }
    .atv-hero__poster-glow {
        inset: -40px;
    }
    .atv-hero__poster img {
        border-radius: 16px;
        transform: rotateY(-10deg);
    }
    .atv-hero__info {
        flex: none;
        width: 100%;
        min-height: 0;
        padding-bottom: 0;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
    }
    .atv-hero__badges {
        justify-content: center;
    }
    .atv-hero__pill {
        height: 26px;
        font-size: 11.5px;
    }
    .atv-hero__title.is-latin {
        text-align: center;
    }
    .atv-hero__genres {
        font-size: 12.5px;
    }
    .atv-hero .atv-hero__desc {
        display: none;
    }
    .atv-hero__actions {
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }
    .atv-hero a.atv-hero__cta {
        flex: 1;
        justify-content: center;
        height: 48px;
    }
    .atv-hero a.atv-hero__ghost {
        height: 48px;
    }
    .atv-hero__nav {
        bottom: 22px;
    }
    .atv-hero__nav-in {
        justify-content: center;
    }
    .atv-hero__count,
    .atv-hero__arrows {
        display: none;
    }
    .atv-hero__bars {
        width: auto;
        gap: 6px;
    }
    .atv-hero .atv-hero__bar {
        flex: 0 0 10px;
    }
    .atv-hero .atv-hero__bar.is-active {
        flex-basis: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atv-hero__embers span,
    .atv-hero__slide.is-active .atv-hero__texture img,
    .atv-hero__slide.is-active .atv-hero__badges,
    .atv-hero__slide.is-active .atv-hero__title,
    .atv-hero__slide.is-active .atv-hero__genres,
    .atv-hero__slide.is-active .atv-hero__desc,
    .atv-hero__slide.is-active .atv-hero__actions,
    .atv-hero__slide.is-active .atv-hero__poster {
        animation: none;
    }
    .atv-hero__slide {
        transition: none;
    }
}

/* Day theme on phones: same light backdrop with the phone glow positions. */
@media (max-width: 820px) {
    #animetvApp.day .atv-hero__ambient {
        background:
            radial-gradient(520px 420px at 50% 26%, rgba(var(--hero-c1), 0.3), transparent 65%),
            radial-gradient(620px 480px at 0% 100%, rgba(var(--hero-c2), 0.22), transparent 70%),
            linear-gradient(180deg, #f8f9fd, #eef1f7);
    }
}
