:root {
    --red: #e10600;
    --gold: #ffb700;
    --bg-overlay: rgba(0, 0, 0, 0.75);
    --bg-panel: rgba(0, 0, 0, 0.7);
    --bg-nav: rgba(10, 10, 10, 0.85);
    --text-main: #f1f1f1;
    --text-muted: #cfcfcf;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto Slab", sans-serif;
    background: url("images/bg.jpg") center / cover fixed;
    color: var(--text-main);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: -1;
}

.navbar-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 12, 14, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 79px;
    flex-shrink: 0;
}

.site-title {
    font-family: "Orbitron", sans-serif;
    font-size: 1.2rem;
    color: white;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-menu a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search {
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    font-size: 0.9rem;
    min-width: 160px;
}

.signin {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ddd;
    cursor: pointer;
}

.signin:hover {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

.page-home main {
    max-width: 1100px;
    margin: 36px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-home .grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 18px;
    background: var(--bg-panel);
    border-radius: 18px;
}

.page-home .card {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    border: 0.95px solid white;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.page-home .card:hover {
    transform: translateY(-6px);
}

.page-home .card {
    transition: transform 0.35s ease;
}

.page-home .card::before {
    transition: background 0.35s ease;
}

.page-home .card:hover {
    transform: translateY(-8px) scale(1.02);
}

.page-home .card:hover::before {
    background: rgba(0, 0, 0, 0.55);
}

.page-home .card span {
    transition: letter-spacing 0.3s ease, transform 0.3s ease;
}

.page-home .card:hover span {
    letter-spacing: 2px;
}

.page-home .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.page-home .card span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Orbitron";
    font-size: 1.3rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
}

.page-home #head1 {
    margin: 44px 0 10px;
    font-family: "Orbitron";
    color: var(--red);
    text-align: center;
}

.page-home .center-img {
    width: 240px;
    margin: 14px auto;
}

.page-home #para1 {
    max-width: 720px;
    text-align: center;
    color: var(--text-muted);
}

.page-home #head2 {
    color: var(--red);
    margin: 40px 0 20px;
}

.page-home .info-section {
    width: 100%;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    background: var(--bg-panel);
    padding: 32px;
    border-radius: 16px;
}

.page-home .highlight {
    color: var(--gold);
}

.page-home .jp {
    color: var(--text-muted);
}

.page-home .info-image img {
    max-width: 240px;
    display: block;
    margin: auto;
    border-radius: 10px;
}

.page-episodes main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-episodes .page-title {
    font-family: "Orbitron";
    color: var(--red);
    text-align: center;
    margin-bottom: 40px;
}

.page-episodes .content-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 20px;
    margin-bottom: 30px;
    background: var(--bg-panel);
    border-radius: 16px;
    align-items: start;
}

.page-episodes .content-card img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.page-episodes .content-text h3 {
    margin-top: 0;
    color: var(--gold);
}

.page-episodes .content-text ul {
    list-style: none;
    padding-left: 0;
    columns: 2;
    column-gap: 24px;
}

.page-episodes .content-text li {
    padding: 4px 0;
    color: var(--text-main);
    font-size: 0.95rem;
}

.page-characters .characters {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-characters .char-head {
    text-align: left;
    font-size: 2.4rem;
    color: #ffb700;
    margin-bottom: 30px;
    position: relative;
    padding-left: 16px;
}

.page-characters .char-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 80%;
    background: #ff4d4d;
    border-radius: 2px;
}

.page-characters .saga-name {
    font-size: 1.6rem;
    color: #ffb700;
    margin: 40px 0 20px;
    position: relative;
    padding-left: 14px;
}

.page-characters .saga-name::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 75%;
    background: #ff4d4d;
    border-radius: 2px;
}

.page-characters .char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

.page-characters .char-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-characters .char-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.page-characters .char-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.page-characters .char-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.page-characters .char-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    min-height: 48px;
    padding: 8px 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.88);
    color: #ffffff;

    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 1);
}

.page-characters .char-card:hover span {
    background: rgba(0, 0, 0, 0.95);
}

.page-characters .villains .char-card span {
    background: rgba(120, 0, 0, 0.9);
}

.page-characters .villains .char-card:hover span {
    background: rgba(150, 0, 0, 0.95);
}

.page-storyarcs main {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-storyarcs .page-title {
    font-size: 2.6rem;
    text-align: center;
    color: #ffb700;
    margin-bottom: 20px;
    position: relative;
}

.page-storyarcs .page-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #ff4d4d;
    margin: 14px auto 0;
    border-radius: 2px;
}

.page-storyarcs #para2 {
    max-width: 780px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #eaeaea;
}

.page-storyarcs .arc-card {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    padding: 26px 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-storyarcs .arc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.page-storyarcs .arc-saga {
    font-size: 1.6rem;
    color: #ffb700;
    margin-bottom: 18px;
    position: relative;
    padding-left: 14px;
}

.page-storyarcs .arc-saga::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 80%;
    background: #ff4d4d;
    border-radius: 2px;
}

.page-storyarcs .arc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-storyarcs .arc-list li {
    padding: 10px 0;
    font-size: 1.05rem;
    color: #eaeaea;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.page-storyarcs .arc-list li:last-child {
    border-bottom: none;
}

.page-storyarcs .arc-list li:hover {
    color: #ffb700;
    padding-left: 6px;
}

.page-about main {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-about .about-hero {
    text-align: center;
    margin-bottom: 50px;
}

.page-about .about-title {
    font-size: 2.8rem;
    color: #ffb700;
    margin-bottom: 10px;
    position: relative;
}

.page-about .about-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    background: #ff4d4d;
    margin: 14px auto 0;
    border-radius: 2px;
}

.page-about .about-sub {
    font-size: 1.1rem;
    color: #eaeaea;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-about .about-block {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    padding: 30px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.page-about .about-head {
    font-size: 1.6rem;
    color: #ffb700;
    margin-bottom: 12px;
}

.page-about .about-block p {
    color: #eaeaea;
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-about .about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    max-width: 1000px;
    margin: 60px auto;
}

.page-about .about-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 14px;
    padding: 26px 22px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-about .about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.page-about .about-card h3 {
    color: #ffb700;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.page-about .about-card p {
    color: #eaeaea;
    font-size: 0.95rem;
    line-height: 1.6;
}

.page-about .about-warning {
    max-width: 900px;
    margin: 70px auto;
    padding: 26px 28px;
    background: rgba(120, 0, 0, 0.25);
    border-left: 5px solid #ff4d4d;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-about .about-warning h3 {
    color: #ffb700;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.page-about .about-warning p {
    color: #eaeaea;
    font-size: 0.95rem;
    line-height: 1.6;
}

.page-anime main {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-anime .page-title {
    font-size: 2.6rem;
    text-align: center;
    color: #ffb700;
    margin-bottom: 20px;
    position: relative;
}

.page-anime .page-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    background: #ff4d4d;
    margin: 14px auto 0;
    border-radius: 2px;
}

.page-anime .page-intro {
    max-width: 780px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #eaeaea;
}

.page-anime .info-box {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.page-anime .info-box div {
    color: #eaeaea;
    font-size: 0.95rem;
}

.page-anime .content-section {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.page-anime .content-section h2 {
    color: #ffb700;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.page-anime .content-section p {
    color: #eaeaea;
    line-height: 1.7;
    font-size: 1.05rem;
}

.page-anime .link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-anime .link-list li {
    margin-bottom: 10px;
}

.page-anime .link-list a {
    color: #ffb700;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
}

.page-anime .link-list a:hover {
    text-decoration: underline;
    color: #ff4d4d;
}

.page-manga main {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-manga .page-title {
    font-size: 2.6rem;
    text-align: center;
    color: #ffb700;
    margin-bottom: 20px;
    position: relative;
}

.page-manga .page-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    background: #ff4d4d;
    margin: 14px auto 0;
    border-radius: 2px;
}

.page-manga .page-intro {
    max-width: 780px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #eaeaea;
}

.page-manga .info-box {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.page-manga .info-box div {
    color: #eaeaea;
    font-size: 0.95rem;
}

.page-manga .content-section {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.page-manga .content-section h2 {
    color: #ffb700;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.page-manga .content-section p {
    color: #eaeaea;
    line-height: 1.7;
    font-size: 1.05rem;
}

.page-manga .link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-manga .link-list li {
    margin-bottom: 10px;
}

.page-manga .link-list a {
    color: #ffb700;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
}

.page-manga .link-list a:hover {
    text-decoration: underline;
    color: #ff4d4d;
}

.page-movies main {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-movies .page-title {
    font-size: 2.6rem;
    text-align: center;
    color: #ffb700;
    margin-bottom: 20px;
    position: relative;
}

.page-movies .page-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    background: #ff4d4d;
    margin: 14px auto 0;
    border-radius: 2px;
}

.page-movies .page-intro {
    max-width: 780px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #eaeaea;
}

.page-movies .movie-card {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-movies .movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.page-movies .movie-card h2 {
    color: #ffb700;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.page-movies .movie-card p {
    color: #eaeaea;
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-vigilantes main {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-vigilantes .page-title {
    font-size: 2.6rem;
    text-align: center;
    color: #ffb700;
    margin-bottom: 20px;
    position: relative;
}

.page-vigilantes .page-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    background: #ff4d4d;
    margin: 14px auto 0;
    border-radius: 2px;
}

.page-vigilantes .page-intro {
    max-width: 780px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #eaeaea;
}

.page-vigilantes .info-box {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.page-vigilantes .info-box div {
    color: #eaeaea;
    font-size: 0.95rem;
}

.page-vigilantes .content-section {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.page-vigilantes .content-section h2 {
    color: #ffb700;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.page-vigilantes .content-section p {
    color: #eaeaea;
    line-height: 1.7;
    font-size: 1.05rem;
}

.page-vigilantes .link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-vigilantes .link-list li {
    margin-bottom: 10px;
}

.page-vigilantes .link-list a {
    color: #ffb700;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
}

.page-vigilantes .link-list a:hover {
    text-decoration: underline;
    color: #ff4d4d;
}

.footer {
    margin-top: 80px;
    text-align: center;
    padding: 14px 0;
    background: var(--bg-nav);
    color: #ddd;
    font-weight: 600;
    letter-spacing: 1px;
}

@media (max-width: 900px) {

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        background: rgba(10, 12, 14, 0.97);
        backdrop-filter: blur(8px);

        flex-direction: column;
        gap: 16px;
        padding: 20px 0;

        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-right {
        flex-direction: column;
        gap: 12px;
    }

    .search {
        width: 90%;
    }
}

@media (min-width: 901px) {
    .nav-menu {
        position: static;
        display: flex;
    }

    .nav-toggle {
        display: none;
    }
}

@media (max-width:900px) {
    .page-home .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-home .info-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width:600px) {
    .page-home .grid {
        grid-template-columns: 1fr;
    }

    .site-title {
        display: none;
    }
}

@media (max-width: 900px) {
    .page-episodes .content-card {
        grid-template-columns: 1fr;
    }

    .page-episodes .content-text ul {
        columns: 1;
    }
}

@media (max-width: 600px) {
    .site-title {
        display: none;
    }
}

@media (max-width: 700px) {
    .page-characters .characters {
        padding: 25px 16px;
    }

    .page-characters .char-head {
        font-size: 2rem;
    }

    .page-characters .char-card img {
        height: 160px;
    }
}

@media (max-width: 700px) {
    .page-characters .char-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .page-characters .char-card img {
        height: 180px;
    }

    .page-characters .char-head {
        font-size: 2rem;
    }

    .page-characters .saga-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 700px) {
    .page-storyarcs .page-title {
        font-size: 2.1rem;
    }

    .page-storyarcs #para2 {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .page-storyarcs .arc-card {
        padding: 22px 20px;
    }

    .page-storyarcs .arc-saga {
        font-size: 1.4rem;
    }

    .page-storyarcs .arc-list li {
        font-size: 1rem;
    }
}

@media (max-width: 700px) {
    .page-about .about-title {
        font-size: 2.2rem;
    }

    .page-about .about-block {
        padding: 22px;
    }

    .page-about .about-grid {
        gap: 16px;
    }

    .page-about .about-warning {
        padding: 22px;
    }
}

@media (max-width: 700px) {
    .page-anime .page-title {
        font-size: 2.1rem;
    }

    .page-anime .page-intro {
        font-size: 1rem;
    }

    .page-anime .content-section {
        padding: 22px;
    }
}

@media (max-width: 700px) {
    .page-manga .page-title {
        font-size: 2.1rem;
    }

    .page-manga .page-intro {
        font-size: 1rem;
    }

    .page-manga .content-section {
        padding: 22px;
    }
}

@media (max-width: 700px) {
    .page-movies .page-title {
        font-size: 2.1rem;
    }

    .page-movies .page-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .page-movies .movie-card {
        padding: 22px;
    }

    .page-movies .movie-card h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 700px) {
    .page-vigilantes .page-title {
        font-size: 2.1rem;
    }

    .page-vigilantes .page-intro {
        font-size: 1rem;
    }

    .page-vigilantes .content-section {
        padding: 22px;
    }
}