/*
 * Homepage cinematic shell.
 *
 * This intentionally owns the homepage layout instead of trying to make the
 * legacy dashboard surfaces look like a hero. Shared player/catalog styles
 * remain in style.css; these rules are scoped to .home-route.
 */

.home-route {
    --home-gutter: clamp(1.25rem, 4.4vw, 4.5rem);
    --home-content-max: 1800px;
    --home-accent: #ff4d5a;
    --home-muted: rgba(255, 255, 255, .68);
    overflow-x: hidden;
}

.home-route .main-content {
    min-height: 0;
    padding-top: calc(var(--navbar-height) + 14px);
    padding-bottom: 0;
    overflow: clip;
}

/* Header: transparent overlay, with the hero carrying the visual weight. */
.home-route .navbar {
    height: 78px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-route .navbar-container {
    width: min(100%, var(--home-content-max));
    max-width: none;
    padding-inline: var(--home-gutter);
    gap: clamp(1rem, 2.5vw, 3rem);
}

.home-route .navbar-left {
    gap: .7rem;
}

.home-route .sidebar-toggle {
    width: 2.7rem;
    height: 2.7rem;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, .16);
    color: rgba(255, 255, 255, .84);
}

.home-route .sidebar-toggle:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    transform: none;
}

.home-route .navbar-brand {
    width: clamp(7.5rem, 10vw, 9.5rem);
    height: 3.5rem;
}

.home-route .lanime-brand-logo {
    width: 100%;
    max-height: 3.2rem;
}

.home-route .quick-nav {
    height: auto;
    gap: clamp(.2rem, .8vw, .8rem);
    padding: 0;
    border: 0;
    background: transparent;
}

.home-route .navbar .quick-nav-link {
    position: relative;
    min-height: 2.5rem;
    padding: 0 .75rem;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    font-size: .84rem;
    font-weight: 650;
}

.home-route .navbar .quick-nav-link::after {
    position: absolute;
    right: .85rem;
    bottom: .1rem;
    left: .85rem;
    height: 2px;
    border-radius: 999px;
    background: var(--home-accent);
    content: "";
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity 180ms ease, transform 180ms ease;
}

.home-route .navbar .quick-nav-link:hover,
.home-route .navbar .quick-nav-link.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    box-shadow: none;
    transform: none;
}

.home-route .navbar .quick-nav-link.active::after,
.home-route .navbar .quick-nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.home-route .search-container {
    display: none;
}

.home-route .mobile-search-toggle {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(0, 0, 0, .16);
    color: rgba(255, 255, 255, .9);
}

.home-route .mobile-search-toggle:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.home-route .navbar .btn-signin {
    min-height: 2.5rem;
    padding-inline: 1rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(0, 0, 0, .16);
    font-size: .84rem;
}

/* Full-bleed hero. It deliberately escapes the page container. */
.home-route .home-page-shell {
    position: relative;
    margin-top: calc(-1 * (var(--navbar-height) + 14px));
}

.home-route .spotlight-section {
    width: 100vw;
    height: clamp(640px, 86svh, 900px);
    margin: 0 calc(50% - 50vw) clamp(2.5rem, 6vw, 5rem);
    position: relative;
}

.home-route .spotlight-carousel {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    background: #030405;
    overflow: hidden;
}

.home-route .spotlight-slide {
    height: 100%;
    transition: opacity .75s ease, visibility .75s ease;
}

.home-route .spotlight-backdrop img {
    object-position: 68% center;
    transform: scale(1.035);
    transition: transform 12s cubic-bezier(.2, .7, .2, 1);
}

.home-route .spotlight-slide.active .spotlight-backdrop img {
    transform: scale(1);
}

.home-route .spotlight-gradient {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .97) 0%, rgba(0, 0, 0, .87) 24%, rgba(0, 0, 0, .44) 52%, rgba(0, 0, 0, .06) 80%, rgba(0, 0, 0, .16) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, transparent 22%, transparent 55%, rgba(0, 0, 0, .9) 100%);
}

.home-route .spotlight-carousel::after {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    height: 30%;
    background: linear-gradient(180deg, transparent, #050608 92%);
    content: "";
    pointer-events: none;
}

.home-route .spotlight-content {
    z-index: 3;
    width: min(100%, var(--home-content-max));
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--home-gutter) clamp(4.5rem, 11vh, 7.5rem);
    align-items: flex-end;
}

.home-route .spotlight-info {
    width: min(100%, 52rem);
    max-width: min(62vw, 52rem);
}

.home-route .spotlight-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
    margin-bottom: 1.15rem;
    color: rgba(255, 255, 255, .7);
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-route .spotlight-meta-top > * + *::before {
    margin-right: .65rem;
    color: rgba(255, 255, 255, .34);
    content: "•";
}

.home-route .spotlight-meta-top .spotlight-status {
    color: #fff;
}

.home-route .spotlight-meta-top .spotlight-rating {
    color: #ffd25b;
}

.home-route .spotlight-title-lockup {
    margin: 0 0 1.25rem;
    padding: 0;
}

.home-route .spotlight-title-kicker {
    margin-bottom: .7rem;
    color: rgba(255, 255, 255, .57);
    font-size: .66rem;
    letter-spacing: .22em;
}

.home-route .spotlight-title {
    max-width: 100%;
    font-size: clamp(4.5rem, 6vw, 6.25rem);
    line-height: .9;
    letter-spacing: -.07em;
    text-wrap: balance;
}

.home-route .spotlight-title-ghost {
    top: -.2em;
    right: 8%;
    color: rgba(255, 255, 255, .045);
    font-size: clamp(8rem, 16vw, 15rem);
}

.home-route .spotlight-title-mark {
    bottom: -.35rem;
    width: 7rem;
    height: .25rem;
}

.home-route .spotlight-title-accent {
    color: #ff6672;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: .92em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.06em;
}

.home-route .spotlight-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 1rem;
}

.home-route .spotlight-genre {
    color: rgba(255, 255, 255, .86);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease;
}

.home-route .spotlight-genre + .spotlight-genre::before {
    margin: 0 .65rem;
    color: rgba(255, 255, 255, .36);
    content: "—";
}

.home-route .spotlight-genre:hover {
    color: var(--home-accent);
}

.home-route .spotlight-description {
    max-width: 42rem;
    margin-bottom: 1.8rem;
    color: rgba(255, 255, 255, .74);
    font-size: clamp(.94rem, 1.15vw, 1.08rem);
    line-height: 1.55;
    text-wrap: pretty;
}

.home-route .spotlight-actions {
    gap: .8rem;
}

.home-route .spotlight-actions .btn {
    min-height: 3.35rem;
    padding-inline: 1.5rem;
    border-radius: 999px;
    font-size: .92rem;
}

.home-route .spotlight-actions .btn-primary {
    background: #fff;
    border-color: #fff;
    color: #090a0c;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
}

.home-route .spotlight-actions .btn-primary:hover {
    background: #f4f4f1;
    border-color: #f4f4f1;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .42);
    transform: translateY(-2px);
}

.home-route .spotlight-actions .btn-secondary {
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(0, 0, 0, .18);
    color: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
}

.home-route .spotlight-nav {
    right: var(--home-gutter);
    bottom: clamp(3.5rem, 8vh, 6rem);
    z-index: 5;
}

.home-route .spotlight-nav-btn {
    width: 2.8rem;
    height: 2.8rem;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(0, 0, 0, .28);
}

/* Lower homepage: editorial spacing, quiet surfaces, and no dashboard panels. */
.home-route .home-page-shell > .home-layout,
.home-route .home-page-shell > .cw-section,
.home-route .home-page-shell > .combined-manga-section,
.home-route .home-page-shell > .flash-message {
    width: min(100%, var(--home-content-max));
    margin-inline: auto;
    padding-inline: var(--home-gutter);
}

.home-route .home-page-shell > .home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem);
    gap: clamp(2rem, 4vw, 5rem);
    margin-bottom: clamp(3rem, 7vw, 7rem);
}

.home-route .share-banner {
    min-height: 4.8rem;
    margin-bottom: 2.8rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-route .content-tabs {
    display: flex;
    gap: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: transparent;
}

.home-route .tab-btn {
    position: relative;
    min-height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, .5);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.home-route .tab-btn.active,
.home-route .tab-btn:hover {
    background: transparent;
    color: #fff;
}

.home-route .tab-btn.active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--home-accent);
    content: "";
}

.home-route .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: clamp(1rem, 1.8vw, 1.6rem);
}

.home-route .anime-card {
    border: 0;
    border-radius: 1rem;
    background: transparent;
    box-shadow: none;
}

.home-route .anime-card:hover {
    box-shadow: none;
    transform: translateY(-5px);
}

.home-route .anime-card-poster,
.home-route .anime-card-poster img {
    border-radius: 1rem;
}

.home-route .anime-card-info {
    padding-inline: .15rem;
}

.home-route .home-sidebar .sidebar-section {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-route .sidebar-anime-card {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
    background: transparent;
}

.home-route .sidebar-anime-card:hover {
    background: rgba(255, 255, 255, .035);
}

.home-route .combined-manga-section {
    width: min(100%, var(--home-content-max));
    margin: 0 auto;
    padding-bottom: 4rem;
}

.home-route .combined-manga-section .manga-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(.8rem, 1.5vw, 1.4rem);
}

.home-route .combined-manga-card img {
    border-radius: 1rem;
}

.home-route .skeleton-spotlight {
    height: clamp(640px, 86svh, 900px);
    margin-bottom: 0;
    border-radius: 0;
}

@media (max-width: 1100px) {
    .home-route .quick-nav {
        gap: 0;
    }

    .home-route .navbar .quick-nav-link {
        padding-inline: .55rem;
    }

    .home-route .spotlight-info {
        max-width: 68vw;
    }

    .home-route .spotlight-title {
        font-size: clamp(4rem, 7vw, 5.4rem);
    }
}

@media (max-width: 900px) {
    .home-route .home-page-shell > .home-layout {
        display: block;
    }

    .home-route .home-sidebar {
        margin-top: 3rem;
    }

    .home-route .combined-manga-section .manga-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-route .navbar {
        height: 68px;
    }

    .home-route .quick-nav {
        display: none;
    }

    .home-route .navbar-container {
        gap: .6rem;
    }

    .home-route .navbar-brand {
        width: 7.8rem;
    }

    .home-route .btn-signin {
        padding-inline: .7rem;
    }

    .home-route .btn-signin svg {
        display: none;
    }

    .home-route .spotlight-section {
        height: min(88svh, 760px);
        min-height: 650px;
        margin-bottom: 2.5rem;
    }

    .home-route .spotlight-content {
        padding: 0 var(--home-gutter) 4.8rem;
    }

    .home-route .spotlight-info {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .home-route .spotlight-title {
        max-width: 100%;
        font-size: clamp(3rem, 12vw, 4.25rem);
        line-height: .92;
    }

    .home-route .spotlight-title-ghost {
        display: none;
    }

    .home-route .spotlight-description {
        display: -webkit-box;
        max-width: 34rem;
        margin-bottom: 1.35rem;
        font-size: .9rem;
        overflow: hidden;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .home-route .spotlight-genres {
        margin-bottom: .8rem;
    }

    .home-route .spotlight-meta-top {
        margin-bottom: .85rem;
        font-size: .65rem;
    }

    .home-route .spotlight-title-kicker {
        font-size: .56rem;
    }

    .home-route .spotlight-actions .btn {
        min-height: 3rem;
        padding-inline: 1.15rem;
    }

    .home-route .spotlight-nav {
        bottom: 1.35rem;
    }

    .home-route .spotlight-nav-btn {
        display: none;
    }

    .home-route .home-page-shell > .home-layout,
    .home-route .home-page-shell > .cw-section,
    .home-route .home-page-shell > .combined-manga-section,
    .home-route .home-page-shell > .flash-message {
        padding-inline: var(--home-gutter);
    }
}

@media (max-width: 480px) {
    .home-route .spotlight-section {
        min-height: 680px;
    }

    .home-route .spotlight-content {
        padding-bottom: 4.6rem;
    }

    .home-route .spotlight-title {
        font-size: clamp(2.65rem, 13vw, 3.65rem);
    }

    .home-route .spotlight-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
        width: 100%;
    }

    .home-route .spotlight-actions .btn {
        min-width: 0;
        padding-inline: .8rem;
        font-size: .82rem;
    }

    .home-route .combined-manga-section .manga-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-route .spotlight-backdrop img,
    .home-route .spotlight-slide.active .spotlight-title-primary,
    .home-route .spotlight-slide.active .spotlight-title-accent {
        animation: none;
        transform: none;
        transition: none;
    }
}
