/* --- Daily Spotlight: contained hero card with an ambient/artwork split --- */

#home-page {
    padding-top: 0;
}

.spotlight-section {
    margin: 0;
}

/* Inset rounded card rather than a full-bleed banner */
.spotlight {
    position: relative;
    overflow: hidden;
    height: clamp(400px, 35vh, 560px);
    background: var(--bg-surface-color);
    border-radius: var(--radius-xl);
    isolation: isolate;
    contain: paint;
}

.spotlight.skeleton {
    border-radius: var(--radius-xl);
    background: linear-gradient(90deg, var(--skeleton-color) 25%, var(--skeleton-shine) 50%, var(--skeleton-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Horizontal track that slides sideways automatically */
.spotlight-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.65, 0.05, 0.36, 1);
    will-change: transform;
}

.spotlight-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* --- Layers: ambient wash, masked artwork, scrim --- */

/* The game artwork, enlarged and heavily blurred, tints the whole card */
.spotlight-bg {
    position: absolute;
    inset: -15%;
    z-index: 0;
    pointer-events: none;
}

.spotlight-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(60px) saturate(1.7);
    opacity: 0.55;
}

/* The sharp copy of the artwork sits on the right and fades into the card */
.spotlight-art {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 64%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}

.spotlight-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
}

.spotlight-slide:hover .spotlight-art img {
    transform: scale(1.1);
    transition: transform 6s linear;
}

.spotlight-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8, 9, 15, 0.92) 0%, rgba(8, 9, 15, 0.55) 40%, rgba(8, 9, 15, 0) 70%),
        linear-gradient(0deg, rgba(8, 9, 15, 0.75) 0%, rgba(8, 9, 15, 0) 40%);
}

/* Left column: badge + title + meta + actions */
.spotlight-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 500px;
    padding: 0 56px;
}

.spotlight-eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    height: 28px;
    padding: 0 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-on-art) 18%, transparent);
    border: none;
    color: var(--accent-on-art);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.spotlight-headline {
    display: flex;
    align-items: center;
    min-width: 0;
}

.spotlight-info {
    min-width: 0;
}

.spotlight-title {
    font-size: clamp(2.3rem, 3.8vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 0.98;
    color: #ffffff;
    overflow-wrap: break-word;
}

.spotlight-title .spotlight-verified {
    font-size: 0.42em;
    vertical-align: middle;
    margin-left: 10px;
    color: #34d399;
}

.spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.spotlight-chip {
    height: 20px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
    border: none;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    text-transform: capitalize;
    white-space: nowrap;
}

.spotlight-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d4d6e6;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

/* Actions — pill primary, circular secondary */
.spotlight-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.spotlight-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 30px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 16px;
    color: var(--on-accent-color);
    background: var(--accent-color);
    transition: background-color 0.15s ease, transform 0.25s ease;
}

.spotlight-play:hover {
    background: var(--accent-hover-color);
    transform: scale(1.04);
}

.spotlight-play:active {
    transform: scale(0.97);
}

.spotlight-fav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    font-size: 17px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    transition: background-color 0.15s ease, transform 0.25s ease, color 0.15s ease;
}

.spotlight-fav:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.06);
}

.spotlight-fav.favorited {
    color: #ff4d6a;
}

.spotlight-report {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffd166;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    transition: background-color 0.15s ease, transform 0.25s ease, color 0.15s ease;
}

.spotlight-report:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: scale(1.06);
}

/* Side arrows — white circles, revealed on intent */
.spotlight-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--bg-color);
    font-size: 14px;
    background: #ffffff;
    border: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.25s ease, background-color 0.15s ease;
}

.spotlight:hover .spotlight-nav,
.spotlight:focus-within .spotlight-nav {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.spotlight-nav:hover {
    background: var(--accent-color);
    color: #ffffff;
}

.spotlight-nav.prev {
    left: 16px;
}

.spotlight-nav.next {
    right: 16px;
}

/* Thumbnail strip: each dot previews a slide */
.spotlight-dots {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotlight-dot {
    position: relative;
    width: 76px;
    height: 48px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--input-bg-color);
    opacity: 0.55;
    transition: opacity 0.2s ease, transform 0.25s ease, border-color 0.2s ease;
}

.spotlight-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spotlight-dot:hover {
    opacity: 0.85;
}

.spotlight-dot.active {
    opacity: 1;
    border-color: var(--accent-on-art);
    transform: scale(1.06);
}

/* Touch devices: keep arrows reachable without hover */
@media (hover: none) {
    .spotlight-nav {
        opacity: 0.9;
        transform: translateY(-50%) scale(1);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .spotlight {
        height: clamp(360px, 58vh, 460px);
    }

    .spotlight-content {
        padding: 0 24px;
        max-width: 100%;
    }

    .spotlight-art {
        width: 70%;
    }

    .spotlight-nav {
        display: none;
    }

    .spotlight-dots {
        right: auto;
        left: 20px;
        bottom: 20px;
        gap: 6px;
    }

    .spotlight-dot {
        width: 60px;
        height: 38px;
    }
}

@media (max-width: 560px) {
    .spotlight-title {
        font-size: 1.9rem;
        letter-spacing: -0.02em;
    }

    .spotlight-chip {
        font-size: 10px;
    }

    .spotlight-author {
        display: none;
    }

    .spotlight-play {
        height: 46px;
        padding: 0 24px;
        font-size: 15px;
    }

    .spotlight-fav,
    .spotlight-report {
        width: 46px;
        height: 46px;
    }

    .spotlight-dots {
        left: 16px;
        bottom: 16px;
    }

    .spotlight-dot {
        width: 46px;
        height: 30px;
    }
}
