@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #e300ff;
    --primary-hover: #f14cff;
    --secondary-color: #f14cff;
    --accent-color: #e300ff;
    --neon-glow: 0 0 22px rgba(227, 0, 255, 0.35);
    --neon-glow-strong: 0 0 28px rgba(227, 0, 255, 0.5);
    --text-color: #f4ecfa;
    --text-primary: #f4ecfa;
    --text-secondary: #a898b8;
    --folio-line: rgba(255, 255, 255, 0.16);
    --folio-panel: #151224;
}

html,
body {
    background-color: #090711;
    color: var(--text-color);
}

body {
    font-family: Manrope, "Segoe UI", sans-serif;
    background-image:
        radial-gradient(ellipse 46% 38% at -6% -12%, rgba(227, 0, 255, 0.2), transparent 58%),
        radial-gradient(ellipse 34% 30% at 108% 6%, rgba(124, 58, 237, 0.16), transparent 56%),
        radial-gradient(ellipse 28% 22% at 12% 108%, rgba(34, 211, 238, 0.07), transparent 62%),
        linear-gradient(#090711, #090711);
    background-attachment: scroll, scroll, scroll, scroll;
}

.top-navbar {
    background: #090711;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.top-logo-text {
    background: none;
    -webkit-text-fill-color: #f4ecfa;
    color: #f4ecfa;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.top-logo-img {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.top-search-input {
    border: 1px solid rgba(227, 0, 255, 0.33);
    border-radius: 18px;
    background: rgba(18, 12, 30, 0.6);
    color: #f4ecfa;
    font-family: inherit;
}

.top-search-input:focus {
    border-color: #e300ff;
    background: #1c1730;
    box-shadow: 0 0 0 3px rgba(227, 0, 255, 0.16);
}

.top-random-anime-btn {
    filter: none;
    border-radius: 18px;
}

.search-dropdown {
    background: #14121c;
    border: 1px solid var(--folio-line);
    border-radius: 16px;
}

.sidebar {
    background: #0c0a12;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.sidebar-link {
    border-radius: 14px;
    border: 1px solid transparent;
    color: #a898b8;
    font-weight: 600;
}

.sidebar-link:hover {
    background: rgba(227, 0, 255, 0.08);
    color: #f4ecfa;
}

.sidebar-link.active {
    background: rgba(227, 0, 255, 0.14);
    color: #f4ecfa;
    border-color: rgba(227, 0, 255, 0.45);
    box-shadow: none;
}

.btn-top-login,
.btn-top-logout {
    border-radius: 999px;
    font-family: inherit;
    box-shadow: none;
}

.btn-top-login {
    background: #e300ff;
    color: #ffffff;
    border: 1px solid #e300ff;
}

.btn-top-logout {
    background: transparent;
    color: #f4ecfa;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-top-login[hidden],
.btn-top-logout[hidden] {
    display: none !important;
}

.folio {
    max-width: 1080px;
    margin: 0 auto 2.5rem;
    padding: 1.25rem 0.25rem 0;
}

.folio-mast h1 {
    margin: 0.35rem 0 0.8rem;
    font-size: clamp(3.2rem, 8vw, 6.4rem);
    line-height: 0.9;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.folio-counts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 0.9rem;
}

.folio-counts div {
    padding: 0.95rem 1.05rem 0.9rem;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(10, 8, 18, 0.8);
}

.folio-counts span {
    display: block;
    margin-bottom: 0.3rem;
    color: #a898b8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.folio-counts b {
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.pc-release {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 1.25rem;
    align-items: center;
    margin-top: 0;
    padding: 1.15rem;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(21, 18, 36, 0.92);
}

.pc-release h2 {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.pc-release-clock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.pc-release-clock div {
    padding: 0.75rem 0.4rem 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #120e1c;
    text-align: center;
}

.pc-release-clock b {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    color: #f4ecfa;
}

.pc-release-clock span {
    display: block;
    margin-top: 0.35rem;
    color: #a898b8;
    font-size: 0.78rem;
    font-weight: 600;
}

.pc-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 112px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: #e300ff;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 0 28px rgba(227, 0, 255, 0.35);
}

.pc-download-label {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pc-download-when {
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.92;
}

.pc-download.is-disabled,
.pc-download.is-disabled:hover {
    background: #3a3842;
    color: #8d8794;
    border: 1px solid #4e4b57;
    box-shadow: none;
    cursor: pointer;
}

.pc-wait {
    position: fixed;
    inset: 0;
    z-index: 2147483645;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.pc-wait[hidden] {
    display: none;
}

.pc-wait__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 7, 17, 0.72);
}

.pc-wait__card {
    position: relative;
    width: min(440px, 100%);
    padding: 1.35rem 1.25rem 1.25rem;
    border-radius: 18px;
    background: #151224;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #f4ecfa;
}

.pc-wait__card h2 {
    margin: 0 2rem 0.7rem 0;
    font-size: 1.2rem;
}

.pc-wait__card p {
    margin: 0;
    color: #d8cbe6;
    font-size: 1rem;
    line-height: 1.5;
}

.pc-wait__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #f4ecfa;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.pc-release-note {
    margin: 0.75rem 0 0;
    color: #a898b8;
    font-size: 0.92rem;
    line-height: 1.45;
}

.folio-lead {
    max-width: 40rem;
    margin: 0 0 1.15rem;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #d8cbe6;
}

.folio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.folio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.15rem;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #f4ecfa;
    text-decoration: none;
    font-weight: 700;
    background: rgba(10, 8, 18, 0.8);
}

.folio-btn:hover {
    border-color: rgba(227, 0, 255, 0.7);
    background: rgba(227, 0, 255, 0.12);
}

.folio-btn--solid {
    background: #f4efe6;
    color: #121018;
    border-color: #f4efe6;
}

.folio-btn--solid:hover {
    background: #ffffff;
}

.folio-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.8rem 0 0;
}

.folio-facts div {
    padding: 1rem 1.05rem 0.95rem;
    border-radius: 18px;
    border: 1px solid var(--folio-line);
    background: rgba(18, 16, 26, 0.86);
}

.folio-facts dt {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a89fb4;
}

.folio-facts dd {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.folio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.folio-card {
    min-height: 100%;
    padding: 1.15rem 1.1rem 1.2rem;
    border-radius: 18px;
    background: #12101a;
    border: 1px solid var(--folio-line);
}

.folio-card h2,
.folio-social h2,
.folio-library h2 {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.folio-card p,
.folio-library p {
    margin: 0;
    color: #c9c1b6;
    line-height: 1.5;
    font-size: 0.95rem;
}

.folio-social {
    margin-top: 0.75rem;
    padding: 1.1rem 1.1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid var(--folio-line);
    background: rgba(18, 16, 26, 0.72);
}

.folio-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.folio-social-row button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--folio-line);
    background: #0c0a12;
    color: #f4efe6;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.folio-social-row button:hover {
    border-color: rgba(255, 255, 255, 0.36);
}

.folio-social-row img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.folio-library {
    max-width: 1080px;
    margin: 0 auto 1.25rem;
    padding: 0.2rem 0.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.folio-library a {
    flex-shrink: 0;
    color: #f4efe6;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.home-page .section-title {
    border-bottom: none;
    padding-bottom: 0;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.home-page .section-badge {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #efe8dc;
    box-shadow: none;
}

.home-page .home-section {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-title {
    font-family: Manrope, "Segoe UI", sans-serif;
    letter-spacing: -0.04em;
    text-align: left;
    font-weight: 800;
}

.catalog-filter-bar {
    background: #151224;
    border: 1px solid rgba(227, 0, 255, 0.28);
    border-radius: 18px;
    box-shadow: none;
}

.home-social-panel__card {
    background: #14121c;
    border: 1px solid var(--folio-line);
    border-radius: 18px;
    color: #f4efe6;
}

@media (max-width: 860px) {
    .folio-facts,
    .folio-grid,
    .folio-counts,
    .pc-release {
        grid-template-columns: 1fr;
    }

    .pc-download {
        width: 100%;
        min-height: 72px;
    }

    .folio-library {
        flex-direction: column;
        align-items: flex-start;
    }

    .folio {
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 900px) {
    .sidebar {
        background: rgba(10, 8, 18, 0.94) !important;
        border-top: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    }

    .sidebar-link.active {
        color: #f14cff;
        background: transparent;
        border-color: transparent;
        box-shadow: inset 0 -2px 0 #e300ff;
    }
}
