:root {
    --h-panel: rgba(10, 24, 42, .82);
    --h-panel-soft: rgba(14, 32, 54, .62);
    --h-line: rgba(84, 111, 156, .32);
    --h-cyan: #5df5ff;
    --h-blue: #8fb5ff;
    --h-muted: #8fa9cf;
    --h-text: #e2f0ff;
    --h-gold: #ffd24a;
    --h-radius: 1.25rem;
    --h-shadow: 0 30px 60px -45px rgba(4, 12, 24, .95);
}

html {
    scroll-behavior: smooth
}

.h-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto
}

.h-wrap img {
    display: block;
    max-width: 100%
}

/* keeps the shell header identical to details.ftl and the legal pages */
.logo-img {
    height: 50px;
    width: auto;
    aspect-ratio: auto;
}

/* --------------------------------------------------------------------------
   hero: copy on the left, vertical spotlight on the right
   -------------------------------------------------------------------------- */

.h-hero {
    display: grid;
    grid-template-columns:1.1fr .9fr;
    gap: 2.5rem;
    align-items: center;
    padding: .5rem 0 2.2rem
}

.h-heroText {
    display: grid;
    align-content: center;
    min-width: 0
}

.h-kicker {
    margin: 0 0 .9rem;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--h-cyan)
}

.h-kicker:before {
    content: "";
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, var(--h-cyan), transparent)
}

.h-title {
    margin: 0;
    font-size: clamp(2.1rem, 4.4vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -.02em;
    color: #fff
}

.h-title em {
    font-style: normal;
    color: var(--h-cyan);
    text-shadow: 0 0 26px rgba(93, 245, 255, .45)
}

.h-lead {
    margin: 1.15rem 0 1.6rem;
    max-width: 34rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #c3d9f5
}

.h-quickSearch {
    display: grid;
    grid-template-columns:1fr auto;
    gap: .5rem;
    padding: .4rem;
    max-width: 33rem;
    background: var(--h-panel);
    border: 1px solid var(--h-line);
    border-radius: 999px;
    box-shadow: var(--h-shadow)
}

.h-quickSearch input {
    padding: .7rem 1.1rem;
    border-radius: 999px;
    background: transparent;
    color: var(--h-text);
    font-size: .98rem
}

.h-quickSearch input::placeholder {
    color: #6f8cb5
}

.h-quickSearch button {
    padding: .7rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--h-gold), #ffb547);
    color: #16233d;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease
}

.h-quickSearch button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -14px rgba(255, 210, 74, .8)
}

.h-heroMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--h-line);
    font-size: .85rem;
    color: var(--h-muted)
}

.h-heroMeta strong {
    display: block;
    font-size: 1.35rem;
    color: var(--h-text);
    letter-spacing: -.01em
}

/* spotlight: one tall poster + two mini posters */

.h-spotlight {
    display: grid;
    grid-template-columns:1.05fr .95fr;
    gap: .8rem
}

.h-spotCard {
    position: relative;
    display: block;
    min-height: 340px;
    border-radius: var(--h-radius);
    overflow: hidden;
    border: 1px solid rgba(93, 245, 255, .22);
    background: #0a1626;
    box-shadow: 0 40px 70px -50px rgba(0, 0, 0, .9);
    transition: transform .25s ease, border-color .25s ease
}

.h-spotCard:hover {
    transform: translateY(-4px);
    border-color: rgba(93, 245, 255, .55)
}

.h-spotCard img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover
}

.h-spotCard:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 16, 30, 0) 26%, rgba(6, 16, 30, .55) 62%, rgba(6, 16, 30, .95) 100%)
}

.h-spotTag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: .32rem .75rem;
    border-radius: 999px;
    background: rgba(8, 20, 36, .75);
    border: 1px solid rgba(93, 245, 255, .4);
    color: var(--h-cyan);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase
}

.h-spotInfo {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 2;
    display: grid;
    gap: .3rem
}

.h-spotInfo em {
    font-style: normal;
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--h-blue)
}

.h-spotInfo strong {
    font-size: 1.35rem;
    line-height: 1.2;
    color: #fff
}

.h-spotPlay {
    margin-top: .4rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--h-gold)
}

.h-spotPlay svg {
    width: 14px;
    height: 14px
}

.h-spotSide {
    display: grid;
    grid-template-rows:1fr 1fr;
    gap: .8rem
}

.h-spotMini {
    position: relative;
    display: block;
    border-radius: var(--h-radius);
    overflow: hidden;
    border: 1px solid var(--h-line);
    background: #0a1626;
    transition: border-color .25s ease, transform .25s ease
}

.h-spotMini:hover {
    border-color: rgba(93, 245, 255, .5);
    transform: translateY(-2px)
}

.h-spotMini img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover
}

.h-spotMini span {
    position: absolute;
    left: .8rem;
    right: .8rem;
    bottom: .7rem;
    z-index: 2;
    font-size: .88rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .85)
}

.h-spotMini:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 16, 30, .9))
}

/* --------------------------------------------------------------------------
   category strip
   -------------------------------------------------------------------------- */

.h-cats {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    padding: .2rem 0 .6rem;
    scrollbar-width: none;
    -ms-overflow-style: none
}

.h-cats::-webkit-scrollbar {
    display: none;
    height: 0
}

.h-catPill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    flex: 0 0 auto;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: var(--h-panel-soft);
    border: 1px solid var(--h-line);
    font-size: .9rem;
    color: #b9d1f2;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease
}

.h-catPill em {
    font-style: normal;
    font-size: .72rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: rgba(93, 245, 255, .12);
    color: var(--h-cyan)
}

.h-catPill:hover, .h-catPill.is-active {
    border-color: rgba(93, 245, 255, .5);
    color: #fff;
    background: rgba(93, 245, 255, .1)
}

/* --------------------------------------------------------------------------
   ad slot
   -------------------------------------------------------------------------- */

.h-ad {
    margin: 2rem auto;
    max-width: 100%;
    text-align: center
}

.h-adLabel {
    display: block;
    margin-bottom: .5rem;
    font-size: .62rem;
    letter-spacing: .3em;
    color: #5a7699
}

.h-adBody {
    display: flex;
    justify-content: center
}

/* --------------------------------------------------------------------------
   shared section head
   -------------------------------------------------------------------------- */

.h-section {
    margin-top: 1.5rem
}

.h-sectionHead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.4rem
}

.h-eyebrow {
    margin: 0 0 .35rem;
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--h-cyan)
}

.h-sectionHead h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 1.95rem);
    letter-spacing: -.01em;
    color: #fff
}

.h-more {
    flex: 0 0 auto;
    font-size: .85rem;
    color: var(--h-blue);
    border-bottom: 1px solid rgba(143, 181, 255, .4);
    padding-bottom: .15rem;
    transition: color .2s ease, border-color .2s ease
}

.h-more:hover {
    color: var(--h-cyan);
    border-color: var(--h-cyan)
}

/* --------------------------------------------------------------------------
   bento grid: 1 large (2x2) + 2 wide (2x1) + singles, tiles 3 rows exactly
   -------------------------------------------------------------------------- */

.h-bento {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    grid-auto-rows: 160px;
    grid-auto-flow: dense;
    gap: .8rem
}

.h-cell {
    position: relative;
    display: block;
    grid-column: span 1;
    grid-row: span 1;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--h-line);
    background: #0a1626;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease
}

.h-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease
}

.h-cellLg {
    grid-column: span 2;
    grid-row: span 2
}

.h-cellWide {
    grid-column: span 2;
    grid-row: span 1
}

.h-cell:hover {
    transform: translateY(-3px);
    border-color: rgba(93, 245, 255, .5);
    box-shadow: 0 26px 46px -34px rgba(0, 0, 0, .9)
}

.h-cell:hover img {
    transform: scale(1.05)
}

.h-cellVeil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 16, 30, 0) 45%, rgba(6, 16, 30, .92));
    pointer-events: none
}

.h-cellBody {
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .75rem;
    display: grid;
    gap: .2rem
}

.h-cellBody em {
    font-style: normal;
    font-size: .64rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--h-cyan)
}

.h-cellBody strong {
    font-size: .92rem;
    line-height: 1.25;
    color: #fff
}

.h-cellLg .h-cellBody strong {
    font-size: 1.25rem
}

/* --------------------------------------------------------------------------
   new arrivals chart strip
   -------------------------------------------------------------------------- */

.h-chart {
    display: flex;
    gap: .8rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type:x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(93, 245, 255, .35) transparent
}

.h-chartItem {
    flex: 0 0 auto;
    width: 268px;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns:auto 62px 1fr;
    align-items: center;
    gap: .8rem;
    padding: .7rem .9rem;
    border-radius: 1rem;
    background: var(--h-panel-soft);
    border: 1px solid var(--h-line);
    transition: border-color .2s ease, background-color .2s ease
}

.h-chartItem:hover {
    border-color: rgba(93, 245, 255, .5);
    background: rgba(93, 245, 255, .07)
}

.h-rank {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: rgba(93, 245, 255, .35)
}

.h-chartThumb {
    display: block;
    width: 62px;
    height: 62px;
    border-radius: .7rem;
    overflow: hidden;
    background: #0a1626
}

.h-chartThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.h-chartBody {
    display: grid;
    gap: .2rem;
    min-width: 0
}

.h-chartBody strong {
    font-size: .95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.h-chartBody em {
    font-style: normal;
    font-size: .72rem;
    color: var(--h-muted)
}

/* --------------------------------------------------------------------------
   play next: two-column editorial pairs
   -------------------------------------------------------------------------- */

.h-pairs {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: .9rem
}

.h-pair {
    display: grid;
    grid-template-columns:132px 1fr;
    gap: 1rem;
    padding: .8rem;
    border-radius: 1.1rem;
    background: var(--h-panel);
    border: 1px solid var(--h-line);
    transition: border-color .22s ease, transform .22s ease
}

.h-pair:hover {
    border-color: rgba(93, 245, 255, .45);
    transform: translateY(-2px)
}

.h-pairThumb {
    display: block;
    border-radius: .8rem;
    overflow: hidden;
    background: #0a1626;
    aspect-ratio: 1/1
}

.h-pairThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.h-pairBody {
    display: grid;
    align-content: center;
    gap: .3rem;
    min-width: 0
}

.h-pairBody em {
    font-style: normal;
    font-size: .66rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--h-cyan)
}

.h-pairBody strong {
    font-size: 1.02rem;
    color: #fff
}

.h-pairDesc {
    font-size: .82rem;
    line-height: 1.5;
    color: var(--h-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.h-pairLink {
    margin-top: .2rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--h-blue)
}

/* --------------------------------------------------------------------------
   category shelf
   -------------------------------------------------------------------------- */

.h-shelfRow {
    display: flex;
    gap: .8rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type:x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(93, 245, 255, .35) transparent
}

.h-shelfCard {
    position: relative;
    flex: 0 0 auto;
    width: 168px;
    scroll-snap-align: start;
    border-radius: .9rem;
    overflow: hidden;
    border: 1px solid var(--h-line);
    background: #0a1626;
    transition: border-color .22s ease, transform .22s ease
}

.h-shelfCard img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover
}

.h-shelfCard span {
    display: block;
    padding: .55rem .7rem;
    font-size: .82rem;
    color: #cfe3ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.h-shelfCard:hover {
    border-color: rgba(93, 245, 255, .5);
    transform: translateY(-2px)
}

/* --------------------------------------------------------------------------
   long read (content from the advert config, rendered as a 2-column article)
   -------------------------------------------------------------------------- */

.h-read {
    padding: 1.8rem 2rem;
    border-radius: var(--h-radius);
    background: var(--h-panel);
    border: 1px solid var(--h-line);
    box-shadow: var(--h-shadow)
}

.h-readHead {
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--h-line)
}

.h-readHead h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff
}

.h-readBody {
    column-count: 2;
    column-gap: 2.6rem;
    color: #c3d9f5;
    font-size: .95rem;
    line-height: 1.72
}

.h-readBody > * {
    break-inside: avoid
}

.h-readBody h2, .h-readBody h3 {
    margin: 0 0 .5rem;
    font-size: 1.02rem;
    color: var(--h-blue);
    letter-spacing: .01em
}

.h-readBody p {
    margin: 0 0 .9rem
}

.h-readBody a {
    color: var(--h-cyan);
    border-bottom: 1px solid rgba(93, 245, 255, .35)
}

/* --------------------------------------------------------------------------
   closing band
   -------------------------------------------------------------------------- */

.h-closing {
    margin-top: 3rem;
    display: grid;
    grid-template-columns:1fr auto;
    align-items: center;
    gap: 1.6rem;
    padding: 2rem 2.2rem;
    border-radius: var(--h-radius);
    border: 1px solid rgba(255, 210, 74, .28);
    background: radial-gradient(circle at 12% 20%, rgba(255, 210, 74, .14), transparent 58%), var(--h-panel)
}

.h-closing h2 {
    margin: 0 0 .5rem;
    font-size: 1.4rem;
    color: #fff
}

.h-closing p {
    margin: 0;
    max-width: 46rem;
    font-size: .92rem;
    line-height: 1.6;
    color: #b7cdea
}

.h-closingActions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem
}

.h-btn, .h-btnGhost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .7rem 1.3rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease
}

.h-btn {
    background: linear-gradient(135deg, var(--h-gold), #ffb547);
    color: #16233d
}

.h-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -16px rgba(255, 210, 74, .8)
}

.h-btnGhost {
    border: 1px solid var(--h-line);
    color: #cfe3ff
}

.h-btnGhost:hover {
    border-color: rgba(93, 245, 255, .5);
    color: var(--h-cyan)
}

.h-copy {
    margin: .2rem 0 0;
    font-size: .78rem;
    color: #6d87ab
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .h-hero {
        grid-template-columns:1fr;
        gap: 1.8rem
    }

    .h-spotCard {
        min-height: 260px
    }

    .h-spotCard img {
        min-height: 260px
    }

    .h-bento {
        grid-template-columns:repeat(3, minmax(0, 1fr));
        grid-auto-rows: 124px
    }

    .h-readBody {
        column-count: 1
    }
}

@media (max-width: 900px) {
    .h-pairs {
        grid-template-columns:1fr
    }

    .h-closing {
        grid-template-columns:1fr
    }

    .h-sectionHead {
        align-items: flex-start;
        flex-direction: column;
        gap: .7rem
    }
}

@media (max-width: 640px) {
    .h-hero {
        padding-top: 0
    }

    .h-bento {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        grid-auto-rows: 116px
    }

    .h-cellLg, .h-cellWide {
        grid-column: span 2
    }

    .h-cellLg {
        grid-row: span 2
    }

    .h-pair {
        grid-template-columns:96px 1fr
    }

    .h-chartItem {
        width: 240px
    }

    .h-read {
        padding: 1.3rem 1.15rem
    }

    .h-closing {
        padding: 1.5rem 1.3rem
    }

    .h-quickSearch {
        grid-template-columns:1fr
    }
}

@media (prefers-reduced-motion: reduce) {
    .h-cell, .h-cell img, .h-pair, .h-shelfCard, .h-spotCard, .h-spotMini {
        transition: none
    }

    html {
        scroll-behavior: auto
    }
}
