/* assets/styles/front/17-banners-current.css */

.current-banner-section {
    width: min(100%, 98.75rem);
    margin: 0 auto;
    padding:
        2.25rem
        1.125rem
        4.5rem;
}

.current-banner {
    position: relative;
    display: grid;
    min-width: 0;
    border: 1px solid rgb(244 201 93 / 34%);
    overflow: hidden;
    clip-path: polygon(
        0.9rem 0,
        100% 0,
        100% calc(100% - 0.9rem),
        calc(100% - 0.9rem) 100%,
        0 100%,
        0 0.9rem
    );
    background:
        radial-gradient(
            circle at 88% 8%,
            rgb(242 59 210 / 9%),
            transparent 18rem
        ),
        var(--codex-panel);
    box-shadow:
        0 1.5rem 4rem
        rgb(0 0 0 / 28%);
}

.current-banner::before {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--codex-gold),
        rgb(244 201 93 / 18%) 62%,
        transparent
    );
    content: "";
    pointer-events: none;
}

.current-banner__visual {
    position: relative;
    min-width: 0;
    aspect-ratio: 16 / 9;
    background-color: var(--codex-ink-soft);
    background-image:
        linear-gradient(
            180deg,
            rgb(8 5 20 / 4%) 0%,
            rgb(8 5 20 / 12%) 55%,
            var(--codex-panel) 100%
        ),
        var(--current-banner-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.current-banner__visual::after {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 70% 28%,
            rgb(244 201 93 / 8%),
            transparent 42%
        );
    content: "";
    pointer-events: none;
}

.current-banner__content {
    position: relative;
    display: flex;
    min-width: 0;
    padding:
        1.35rem
        1.25rem
        1.5rem;
    flex-direction: column;
    align-items: flex-start;
}

.current-banner__live {
    display: flex;
    width: 100%;
    min-height: 2rem;
    margin: 0 0 1.25rem;
    padding: 0.45rem 0.7rem;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(
        100deg,
        #d9a631,
        #ffe281 58%,
        #e1aa35
    );
    color: #151019;
    font-family: var(--codex-font-body);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.current-banner__live-dot {
    width: 0.45rem;
    height: 0.45rem;
    flex: 0 0 auto;
    border: 1px solid rgb(21 16 25 / 52%);
    border-radius: 50%;
    background: #151019;
    box-shadow:
        0 0 0 0.18rem
        rgb(21 16 25 / 10%);
}

.current-banner__category {
    margin: 0 0 0.75rem;
    color: var(--codex-magenta);
    font-family: var(--codex-font-display);
    font-size: 0.72rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.current-banner__title {
    display: grid;
    max-width: 12ch;
    margin: 0;
    color: var(--codex-paper);
    font-family: var(--codex-font-display);
    font-size: clamp(
        2.8rem,
        13vw,
        4.6rem
    );
    font-style: italic;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.83;
    text-shadow:
        0 0.25rem 1.5rem
        rgb(8 5 20 / 75%);
    text-transform: uppercase;
    text-wrap: balance;
}

.current-banner__title-main,
.current-banner__title-subtitle {
    display: block;
}

.current-banner__title-subtitle {
    margin-top: 0.25rem;
}

.current-banner__countdown {
    display: flex;
    width: 100%;
    margin: 1.35rem 0 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    color: var(--codex-muted);
    font-size: 0.76rem;
}

.current-banner__countdown-icon {
    display: grid;
    width: 1.7rem;
    height: 1.7rem;
    flex: 0 0 auto;
    border: 1px solid rgb(66 245 230 / 34%);
    border-radius: 50%;
    color: var(--codex-cyan);
    font-size: 1rem;
    line-height: 1;
    place-items: center;
}

.current-banner__countdown-prefix {
    margin-right: 0.1rem;
    color: var(--codex-muted);
    white-space: nowrap;
}

.current-banner__countdown-units {
    display: inline-flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
}

.current-banner__countdown-unit {
    display: inline-flex;
    align-items: baseline;
    gap: 0.14rem;
    white-space: nowrap;
}

.current-banner__countdown-unit strong {
    color: var(--codex-cyan);
    font-size: 0.88rem;
    font-weight: 700;
}

.current-banner__countdown-unit small {
    color: var(--codex-paper);
    font-size: 0.64rem;
    font-weight: 500;
}

.current-banner__kind {
    display: flex;
    width: 100%;
    margin-top: 1.35rem;
    padding:
        0.85rem
        0;
    border-top: 1px solid var(--codex-line);
    border-bottom: 1px solid var(--codex-line);
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.current-banner__kind > span {
    color: var(--codex-muted);
    font-size: 0.68rem;
    line-height: 1.3;
}

.current-banner__kind-value {
    display: inline-flex;
    min-height: 1.7rem;
    padding:
        0.35rem
        0.6rem;
    align-items: center;
    color: var(--codex-paper);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.current-banner__kind-value--new {
    border: 1px solid rgb(242 59 210 / 38%);
    background: rgb(242 59 210 / 13%);
    color: var(--codex-magenta);
}

.current-banner__kind-value--rerun {
    border: 1px solid rgb(66 245 230 / 34%);
    background: rgb(66 245 230 / 9%);
    color: var(--codex-cyan);
}

.current-banner__cta {
    position: relative;
    display: inline-flex;
    width: min(100%, 18.75rem);
    min-height: 3.4rem;
    margin-top: 1.35rem;
    padding:
        0
        1.5rem;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    clip-path: polygon(
        0.9rem 0,
        calc(100% - 0.9rem) 0,
        100% 50%,
        calc(100% - 0.9rem) 100%,
        0.9rem 100%,
        0 50%
    );
    background: linear-gradient(
        110deg,
        #d49a2d,
        #ffe281 52%,
        #d99b29
    );
    box-shadow:
        0 0 1.75rem
        rgb(244 201 93 / 28%);
    color: #151019;
    font-family: var(--codex-font-display);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.current-banner__cta::before {
    position: absolute;
    top: -80%;
    left: -30%;
    width: 25%;
    height: 250%;
    background: rgb(255 255 255 / 46%);
    content: "";
    pointer-events: none;
    transform: rotate(24deg);
    transition: transform 550ms ease;
}

.current-banner__cta:hover {
    color: #151019;
}

.current-banner__cta:hover::before {
    transform:
        translateX(430%)
        rotate(24deg);
}

.current-banner__cta:focus-visible {
    outline: 2px solid var(--codex-paper);
    outline-offset: 4px;
    color: #151019;
}

.current-banner__cta > span {
    position: relative;
    z-index: 1;
}

.current-banner__cta-arrow {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1;
}

@media (min-width: 48rem) {
    .current-banner-section {
        padding:
            3rem
            4vw
            5.5rem;
    }

    .current-banner__content {
        padding:
            2rem
            2.25rem
            2.25rem;
    }

    .current-banner__title {
        font-size: 5rem;
    }

    .current-banner__countdown {
        font-size: 0.84rem;
    }

    .current-banner__countdown-unit strong {
        font-size: 0.96rem;
    }

    .current-banner__countdown-unit small {
        font-size: 0.7rem;
    }
}

@media (min-width: 64rem) {
    .current-banner {
        grid-template-columns:
            minmax(0, 1.28fr)
            minmax(22rem, 0.72fr);
        align-items: stretch;
    }

    .current-banner__visual {
        min-height: 31rem;
        aspect-ratio: auto;
        background-image:
            linear-gradient(
                90deg,
                transparent 54%,
                rgb(23 16 47 / 32%) 73%,
                var(--codex-panel) 100%
            ),
            var(--current-banner-image);
        background-position: center;
    }

    .current-banner__content {
        justify-content: center;
        padding:
            2.25rem
            2rem
            2.4rem;
    }

    .current-banner__title {
        font-size: clamp(
            4rem,
            5vw,
            5.5rem
        );
    }
}

@media (min-width: 90rem) {
    .current-banner-section {
        padding-top: 3.5rem;
    }

    .current-banner__visual {
        min-height: 33rem;
    }

    .current-banner__content {
        padding-inline: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .current-banner__cta::before {
        transition: none;
    }
}