:root {
    --ink: #1f2933;
    --muted: #667085;
    --line: #e6e1d8;
    --paper: #fbf7ef;
    --white: #ffffff;
    --teal: #2f6f5e;
    --coral: #b84a3b;
    --gold: #a8752a;
    --shadow: 0 18px 48px rgba(55, 45, 35, .13);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Inter, system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
        /* cursor: none; */

}
/* Cursor YOMIKAZE */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;

    width: 10px;
    height: 10px;

    background: #ff1744;
    border-radius: 50%;

    pointer-events: none;
    z-index: 999999;

    transform: translate(-50%, -50%);
    transition:
        width 0.3s cubic-bezier(.22, 1, .36, 1),
        height 0.3s cubic-bezier(.22, 1, .36, 1),
        background 0.3s ease,
        border 0.3s ease,
        opacity 0.2s ease;
}

/* Khi rê vào button / link / ảnh */
.custom-cursor.active {
    width: 30px;
    height: 30px;

    background: rgba(218, 70, 70, 0.22);
    border: 1px solid rgba(255, 90, 90, 0.35);

    box-shadow:
        0 0 20px rgba(234, 124, 104, 0.15),
        0 0 40px rgba(234, 124, 104, 0.08);
}

/* Chữ VIEW ở giữa */
.custom-cursor.active::after {
    /* content: "VIEW"; */

    position: absolute;
    inset: 0;

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

    color: #fff;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* Khi nhấn chuột */
.custom-cursor.click {
    width: 7px;
    height: 7px;
}

/* Trên điện thoại không cần custom cursor */
@media (hover: none), (pointer: coarse) {
    html,
    body {
        cursor: auto;
    }

    .custom-cursor {
        display: none;
    }
}

html[lang="vi"] body,
html[lang="vi"] input,
html[lang="vi"] select,
html[lang="vi"] textarea,
html[lang="vi"] button {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
video { display: block; max-width: 100%; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 5vw, 72px);
    background: rgba(251, 247, 239, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.brand { display: flex; flex-direction: column; line-height:1; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }


.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--teal);
    border-radius: 8px;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 700;
}

.site-nav a {
    position: relative;
    display: inline-block;

    color: #4b5563;
    text-decoration: none;

    padding: 6px 0;
}

/* Gạch đỏ */
.site-nav a::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--coral);

    transition: width .25s ease;
}

/* Hover */
.site-nav a:hover {
    color: var(--coral);
}

.site-nav a:hover::after {
    width: 100%;
}
.admin-link { color: var(--teal); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 8px; }

.hero { position: relative; min-height: 720px; overflow: hidden; background: #05060b; display: flex; align-items: center; justify-content: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(0.85); }
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 30%, rgba(8, 9, 16, .35), rgba(5, 6, 11, .92) 68%),
        linear-gradient(180deg, rgba(5,6,11,.75) 0%, rgba(5,6,11,.55) 40%, rgba(5,6,11,.96) 100%);
}
/*.media-one { background-image: url("../../assets/img/1.avif"); }*/
.media-two { background-image: url("../../assets/img/810640.jpg"); }
.media-three { background-image: url("../../assets/img/3.avif"); }
.eyebrow, .section-kicker { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: 0; font-size: 13px; }

.hero-content {
    transform: translateY(-60px);
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
    padding: 130px clamp(20px, 6vw, 60px) 70px;
    text-align: center;
    color: #fff;
}
.hero-eyebrow {
    margin: 0 0 18px;
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .35em;
    font-size: 13px;
}
.hero-watermark {
    margin: 0;
    font-size: clamp(40px, 7.5vw, 92px);
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1;
    color: rgba(248, 246, 240, 0.25);
    text-shadow: 0 0 40px rgba(255, 255, 255, .05);
}
.hero-headline {
    margin: 6px 0 22px;
    font-size: clamp(46px, 9vw, 108px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: .02em;
    color: #fff;#e8001c
}
.hero-headline span { color: #e8001c; }
.hero-sub {
    max-width: 560px;
    margin: 0 auto 34px;
    font-size: clamp(15px, 1.6vw, 18px);
    color: rgba(226, 232, 240, .78);
}
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-actions .primary { padding: 0 30px; }
.hero-actions .secondary {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .28);
}

.hero-scroll {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.hero-scroll span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .35em;
    color: rgba(255, 255, 255, .5);
}
.scroll-line {
    position: relative;
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
}
.scroll-line i {
    position: absolute;
    top: -60%;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg, transparent, var(--coral) 45%, transparent);
    animation: scroll-line-flow 2.1s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes scroll-line-flow {
    0% { top: -60%; }
    60% { top: 100%; }
    100% { top: 100%; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}
.primary {background: #e8001c;
    color: #fff;
    padding: 0.85rem 2.2rem;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    transition: transform 0.2s, box-shadow 0.2s; }
.secondary { color: var(--ink); background: #e2e8f0; }
.danger { color: #fff; background: #b91c1c; }
.text-link { color: var(--teal); font-weight: 800; }

.intro-band, .stories, .post-detail, .admin-shell, .genre-section {
    max-width: 1560px;
    margin: 0 auto;
    padding: 72px clamp(20px, 4vw, 40px);
}
.intro-band { display: grid; grid-template-columns: 1fr 1.15fr; gap: 42px; align-items: end; border-bottom: 1px solid var(--line); }
.intro-band h2, .section-heading h2, .detail-header h1 { margin: 8px 0 0; font-size: clamp(32px, 5vw, 56px); line-height: 1.04; }
.intro-band p { font-size: 20px; color: var(--muted); }
.section-heading { margin-bottom: 24px; }
.genre-marquee {
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid var(--line);
    background: #fffdf8;
}
.marquee-track {
    width: max-content;
    display: flex;
    gap: 14px;
    padding: 16px 0;
    animation: genre-marquee 34s linear infinite;
}
.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 18px;
    color: #27372f;
    background: #f3eadc;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}
.marquee-track i { color: var(--coral); }
@keyframes genre-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.site-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1560px;
    margin: 0 auto;
    padding: 64px clamp(20px, 4vw, 40px);
    background: #0b0c12;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-stat {
    min-height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, .08);
}
.site-stat:first-child { border-left: 0; }
.site-stat strong {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    color: #f8fafc;
    font-size: clamp(42px, 5.6vw, 76px);
    line-height: .92;
    font-weight: 900;
}
.site-stat em {
    color: #ff1744;
    font-style: normal;
}
.site-stat small {
    color: #7f8795;
    font-size: 14px;
    letter-spacing: 0;
}
.genre-section {
    border-bottom: 1px solid var(--line);
}
.genre-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.genre-card {
    min-height: 168px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 22px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(55, 45, 35, .05);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.genre-card:hover .genre-icon {
    background: #c85b4b;
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(184, 74, 59, .32);
}
.genre-card.active {
    border-color: var(--coral);
    background: #fff8f2;
}
.genre-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #9f4724;
    border-radius: 8px;
}
.genre-card strong { font-size: 20px; }
.genre-card small { color: var(--muted); font-size: 14px; line-height: 1.55; }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.post-card {
    position: relative;
    overflow: hidden;
    background: #0b0c12;
    border-radius: 12px;
    box-shadow: 0 14px 38px rgba(55, 45, 35, .16);
    transition: transform .3s ease, box-shadow .3s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(55, 45, 35, .22); }
.post-image { position: relative; display: block; aspect-ratio: 16 / 10; background: #0b0c12; overflow: hidden; }
.post-image img, .post-image video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-image img, .post-card:hover .post-image video { transform: scale(1.06); }
/* Overlay: key info (genre / title / author) sits inside the image, bottom-left corner, like kamerakoulu.com */
.post-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 22px 22px;
    background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 55%, rgba(0,0,0,.92) 100%);
    color: #fff;
    pointer-events: none;
}
.post-overlay time {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    color: #f1f5f9;
    font-size: 12px;
    backdrop-filter: blur(4px);
}
.post-overlay-body { display: grid; gap: 8px; max-width: 92%; }
.post-overlay .genre-badge {
    width: fit-content;
    margin: 0;
    padding: 5px 12px;
    background: rgba(184, 74, 59, .85);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: 12px;
}
.post-card h3 { margin: 0; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.18; font-weight: 900; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.post-card h3 a { color: #fff; }
.post-overlay .author-line { margin: 0; font-weight: 700; color: #e5e7eb !important; font-size: 13px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.genre-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin: 10px 0 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfeff;
    color: var(--teal);
    border: 1px solid #bae6fd;
    font-size: 13px;
    font-weight: 800;
}

.detail-header { max-width: 900px; margin-bottom: 32px; }
.detail-author { color: var(--teal); font-weight: 800; margin: 0 0 6px; }
.detail-content { max-width: 860px; font-size: 20px; color: #75829b; background: #fffdf8; border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 5vw, 52px); line-height: 1.95; }
.story-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin: 20px 0 18px;
    background: rgba(255, 253, 248, .86);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(55, 45, 35, .08);
    overflow: hidden;
}
.story-stat {
    min-width: 0;
    min-height: 96px;
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 16px 18px;
    border-left: 1px solid var(--line);
}
.story-stat:first-child { border-left: 0; }
.story-stat strong {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    max-width: 100%;
    color: var(--ink);
    font-size: clamp(22px, 2.25vw, 34px);
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
}
.story-stat strong span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.story-stat em {
    color: var(--coral);
    font-style: normal;
}
.story-stat small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.gallery { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery-item { padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; cursor: zoom-in; background: #dbe4ee; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;

    gap: 28px;

    align-items: center;

    padding: 28px 28px 28px 70px;

    background:
        radial-gradient(
            circle at 30% 45%,
            rgba(30, 41, 70, .18),
            transparent 45%
        ),
        rgba(2, 6, 23, .96);
}

.lightbox[hidden] {
    display: none;
}

.lightbox > img {
    grid-column: 1;

    justify-self: center;
    align-self: center;

    width: auto;
    max-width: calc(100% - 100px);
    max-height: 88vh;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, .55);

    user-select: none;
}

.lightbox button { width: 44px; height: 44px; border: 0; border-radius: 8px; cursor: pointer; }
.lightbox-close {
    position: fixed;

    top: 18px;
    right: 22px;

    z-index: 20;

    width: 48px !important;
    height: 48px !important;

    display: grid;
    place-items: center;

    background: #fff;
    color: #020617;

    border-radius: 10px !important;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .35);
}
.lightbox-close:hover {
    background: #f1f5f9;
}
.lightbox-nav {
    position: fixed;

    top: 50%;

    z-index: 15;

    width: 48px !important;
    height: 48px !important;

    display: grid;
    place-items: center;

    color: #fff;

    background: rgba(255, 255, 255, .12);

    border: 1px solid rgba(255, 255, 255, .28) !important;

    border-radius: 10px !important;

    backdrop-filter: blur(8px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .3);

    transform: translateY(-50%);

    transition:
        background .2s ease,
        transform .2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, .22);

    transform:
        translateY(-50%)
        scale(1.06);
}


.lightbox-prev {
    left: 18px;
}
.lightbox-next {
    right: 485px;
}
.lightbox-count {
    position: fixed;

    top: 22px;

    left: 10%;

    z-index: 20;

    color: #fff;

    font-size: 30px;

    line-height: 1;

    font-weight: 800;

    transform: translateX(-50%);

    text-shadow:
        0 3px 12px rgba(0, 0, 0, .45);
}

.lightbox-thumbs {
    grid-column: 2;

    justify-self: stretch;
    align-self: center;

    width: 100%;

    height: min(86vh, 820px);

    max-height: 86vh;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-content: start;

    gap: 14px;

    padding: 16px;

    background:
        rgba(10, 15, 30, .82);

    border:
        1px solid rgba(255, 255, 255, .12);

    border-radius: 14px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, .4);

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, .3)
        transparent;
}

.lightbox-thumbs::-webkit-scrollbar {
    width: 7px;
}

.lightbox-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.lightbox-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .28);
    border-radius: 20px;
}

.lightbox-thumbs::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .45);
}

.lightbox-thumbs button {
    position: static;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 10;

    padding: 0;

    overflow: hidden;

    border:
        2px solid transparent;

    border-radius: 9px;

    background: #111827;

    opacity: .68;

    cursor: pointer;

    transition:
        opacity .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.lightbox-thumbs button:hover {
    opacity: .95;

    transform: scale(1.015);
}

.lightbox-thumbs button.active {
    border-color: var(--coral);

    opacity: 1;

    box-shadow:
        0 0 0 3px rgba(184, 74, 59, .22);
}
.lightbox-thumbs img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    object-position: center;

    background: #080b14;

    border-radius: 6px;

    box-shadow: none;
}
@media (max-width: 1200px) {

    .lightbox {
        grid-template-columns:
            minmax(0, 1fr)
            360px;

        gap: 20px;

        padding-left: 60px;
        padding-right: 20px;
    }

    .lightbox-next {
        right: 382px;
    }

    .lightbox-thumbs {
        gap: 10px;
        padding: 12px;
    }

    .lightbox > img {
        max-width: calc(100% - 70px);
        max-height: 84vh;
    }
}
@media (max-width: 900px) {

    .lightbox {
        grid-template-columns: 1fr;

        grid-template-rows:
            minmax(0, 1fr)
            auto;

        gap: 16px;

        padding:
            70px
            16px
            16px;
    }

    .lightbox > img {
        grid-column: 1;

        width: auto;

        max-width: 100%;

        max-height: 65vh;
    }


    /* Album trans down */

    .lightbox-thumbs {
        grid-column: 1;

        width: 100%;

        height: 110px;

        max-height: 110px;

        display: grid;

        grid-template-columns: none;

        grid-auto-flow: column;

        grid-auto-columns: 110px;

        gap: 10px;

        padding: 10px;

        overflow-x: auto;
        overflow-y: hidden;
    }

    .lightbox-thumbs button {
        width: 110px;

        height: 80px;

        aspect-ratio: auto;
    }


    /* Prev */

    .lightbox-prev {
        left: 12px;
    }


    /* Next */

    .lightbox-next {
        right: 12px;
    }


    /* Counter */

    .lightbox-count {
        top: 22px;

        font-size: 24px;
    }
}
@media (max-width: 620px) {

    .lightbox {
        padding:
            66px
            10px
            10px;
    }

    .lightbox > img {
        max-width: 100%;
        max-height: 62vh;

        border-radius: 8px;
    }

    .lightbox-nav {
        width: 42px !important;
        height: 42px !important;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;

        width: 42px !important;
        height: 42px !important;
    }

    .lightbox-count {
        top: 22px;

        font-size: 22px;
    }

    .lightbox-thumbs {
        height: 92px;
        max-height: 92px;

        grid-auto-columns: 88px;

        padding: 8px;

        gap: 8px;
    }

    .lightbox-thumbs button {
        width: 88px;
        height: 70px;
    }
}


.empty-state { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px; }

.site-footer {
    padding: 56px clamp(20px, 5vw, 72px) 28px;
    color: #f9fafb;
    background: #27372f;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-brand strong { font-size: 24px; letter-spacing: .02em; }
.footer-tagline {
    display: block;
    margin-top: 4px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}
.footer-brand p { margin: 14px 0 18px; max-width: 320px; color: #94a3b8; line-height: 1.7; }
.footer-col h3 {
    margin: 0 0 16px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #c7cbd6; font-size: 14.5px; }
.footer-col a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #334155; border-radius: 8px; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #94a3b8;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #c7cbd6; font-size: 13.5px; }
.footer-legal a:hover { color: var(--gold); }
.footer-copyright-notice {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: #6b7280;
    font-size: 12.5px;
    line-height: 1.8;
}
.footer-copyright-notice i { margin-right: 6px; color: var(--gold); }

@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .footer-top { grid-template-columns: 1fr; }
}

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #27372f; }
.auth-card, .admin-panel {
    width: min(100%, 440px);
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.field { display: grid; gap: 7px; margin-bottom: 16px; font-weight: 800; }
.field input, .field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 13px;
    font: inherit;
}
.field textarea { min-height: 260px; resize: vertical; }
.field select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 13px;
    font: inherit;
    background: #fff;
}
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; background: #fee2e2; color: #991b1b; }
.success { background: #dcfce7; color: #166534; }

.admin-topbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.thumb { width: 78px; height: 56px; object-fit: cover; border-radius: 8px; background: #e2e8f0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dropzone { border: 2px dashed #94a3b8; border-radius: 8px; padding: 22px; text-align: center; background: #f8fafc; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 14px; }
.preview-grid img, .preview-grid video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: #0f172a; }
.existing-image { position: relative; }
.existing-image video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: #0f172a; }
.existing-image label { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-weight: 700; color: #991b1b; }
.author-band {
    max-width: 1160px;
    margin: 0 auto 72px;
    padding: 42px clamp(20px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fffdf8;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.author-band h2 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.1; }
.author-form { margin-bottom: 24px; }
.story-profile, .reader-page {
    max-width: 1260px;
    margin: 0 auto;
    padding: 56px clamp(20px, 4vw, 40px) 72px;
}
.story-hero {
    display: grid;
    grid-template-columns: minmax(440px, 620px) 1fr;   /* trái rộng hẳn ra, phải co lại */
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    margin-top: 28px;
}
.story-media {
    grid-column: 1;
    display: grid;
    gap: 14px;
}

.story-cover {
    width: 100%;
    height: 640px;   /* trước là 520px */
    padding: 0;
    border: 0;
    overflow: hidden;
    display: block;
    background: #0b0d14;
    border-radius: 10px;
}

.story-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.story-cover.media-video {
    width: 100%;
    /*max-height: 520px;*/
    max-height: auto;
    background: #020617;
}
.story-meta {
    grid-column: 2;
    grid-row: 1 / span 2;
}
.story-meta h1 { margin: 8px 0 10px; font-size: clamp(34px, 5.1vw, 62px); line-height: 1.04; }
.story-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 0 4px;
    padding: 0 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--coral), #c56950);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(184, 74, 59, .22);
}
.story-summary { margin: 22px 0; max-width: none; }
.story-album { display: none; }
.cover-album {
    width: 100%;
    padding: 14px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.cover-album-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.cover-album-top span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
}
.cover-album-stage {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #0b0d14;
    border-radius: 8px;
}
.cover-album-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    padding: 0;
    border: 0;
    background: #0b0d14;
    cursor: zoom-in;
}
.cover-album-item.active { display: block; }
.cover-album-item img,
.cover-album-item.media-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.album-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 8px;
    color: #fff;
    background: rgba(15, 23, 42, .58);
    transform: translateY(-50%);
    cursor: pointer;
}
.album-prev { left: 10px; }
.album-next { right: 10px; }
.cover-album-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.cover-album-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #111827;
    cursor: pointer;
    opacity: .72;
}
.cover-album-thumb.active {
    border-color: var(--coral);
    opacity: 1;
}
.cover-album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.cover-album-thumb span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #fff;
}
.story-album .section-heading {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 520px);
    gap: 28px;
    align-items: end;
}
.story-album .section-heading p { margin: 0; }
.album-feature {
    margin-bottom: 18px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.album-feature button,
.album-thumb {
    width: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.album-feature img {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    background: #f3eadc;
}
.album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
..album-thumb {
    width: 100%;
    height: 420px;
    padding: 0;
    border: 0;
    overflow: hidden;
    display: block;
    cursor: pointer;
    background: #080a12;
    border-radius: 8px;
}

.album-thumb img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: contain;
    object-position: center;

    transition: transform .3s ease;
}

.album-thumb:hover img {
    transform: scale(1.03);
}
.album-thumb.media-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.album-thumb:hover img { transform: scale(1.04); }
.episode-list { margin-top: 56px; }
.episode-row {
    display: grid;
    grid-template-columns: 92px 1fr 210px 22px;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.episode-row:last-child { border-bottom: 1px solid var(--line); }
.episode-row span { color: var(--gold); font-weight: 800; }
.episode-row strong { font-size: 20px; }
.episode-row time { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.manga-reader {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    gap: 0;
    background: #111827;
}
.manga-reader img { width: 100%; margin: 0 auto; }
.manga-reader video { width: 100%; margin: 0 auto; background: #020617; }
.reader-text { margin: 0 auto; }

.gallery-item.media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.client-body {
    --ink: #edf2ff;
    --muted: #a7b0c5;
    --line: rgba(178, 143, 90, .26);
    --paper: #080a12;
    --white: #111827;
    --teal: #8be9d0;
    --coral: #9f274c;
    --gold: #d7a84f;
    --shadow: 0 22px 70px rgba(0, 0, 0, .42);
    background:
        radial-gradient(circle at 18% 8%, rgba(159, 39, 76, .24), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(139, 233, 208, .12), transparent 28%),
        linear-gradient(180deg, #05060b 0%, #101018 46%, #07080e 100%);
}
.client-body .site-header {
    background: rgba(6, 8, 15, .88);
    border-bottom-color: rgba(215, 168, 79, .22);
}
.client-body .brand-mark {
    background: linear-gradient(135deg, #9f274c, #d7a84f);
    box-shadow: 0 0 24px rgba(215, 168, 79, .28);
}
.client-body .site-nav { color: #d6d9e5; }
.client-body .site-nav a:hover,
.client-body .text-link,
.client-body .detail-author { color: #8be9d0; }
.client-body .hero { background: #05060b; }

/*.client-body .media-one { background-image: url("../../assets/img/1.avif"); }*/
.client-body .media-two { background-image: url("../../assets/img/810640.jpg"); }
.client-body .media-three { background-image: url("../../assets/img/3.avif"); }
.client-body .genre-marquee,
.client-body .story-stats,
.client-body .genre-card,
.client-body .post-card,
.client-body .detail-content,
.client-body .story-cover,
.client-body .cover-album,
.client-body .album-feature,
.client-body .album-thumb,
.client-body .author-band {
    background: rgba(17, 24, 39, .78);
    border-color: rgba(215, 168, 79, .22);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}
.client-body .story-stat { border-left-color: rgba(215, 168, 79, .18); }
.client-body .story-stat strong { color: #f8fafc; }
.client-body .story-stat em,
.client-body .site-stat em { color: #ff1744; }
.client-body .site-stats {
    max-width: none;
    background: #0b0c12;
    border-top: 1px solid rgba(255, 255, 255, .05);
    border-bottom-color: rgba(255, 255, 255, .08);
}
.client-body .marquee-track span,
.client-body .genre-card.active,
.client-body .genre-badge {
    background: rgba(159, 39, 76, .2);
    color: #f2d48b;
    border-color: rgba(215, 168, 79, .3);
}
.client-body .post-image,
.client-body .story-cover img,
.client-body .album-feature img {
    background: #060913;
}
.client-body .site-footer { background: #05060b; border-top: 1px solid rgba(215, 168, 79, .22); }
.client-body .secondary { color: #edf2ff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(215, 168, 79, .22); }

@media (max-width: 900px) {
    .nav-toggle { display: grid; place-items: center; }
    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .intro-band { grid-template-columns: 1fr; }
    .genre-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-stat:nth-child(odd) { border-left: 0; }
    .site-stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .08); }
    .story-hero { grid-template-columns: 1fr; }
    .story-meta { grid-column: auto; grid-row: auto; }
    .story-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story-stat:nth-child(odd) { border-left: 0; }
    .story-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .story-media { grid-column: auto; }
    .cover-album { grid-column: auto; }
    .story-album .section-heading { grid-template-columns: 1fr; }
    .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .album-thumb { min-height: 220px; max-height: 320px; }
    .episode-row { grid-template-columns: 76px 1fr 18px; }
    .episode-row time { grid-column: 2 / 3; }
    .post-grid, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-image { aspect-ratio: 4 / 3; }
    .lightbox {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 18px;
        padding: 72px 18px 18px;
    }
    .lightbox > img { max-height: 66vh; }
    .lightbox-next { right: 18px; }
    .lightbox-thumbs {
        grid-column: 1;
        max-height: none;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 86px;
        padding: 12px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .lightbox-thumbs button { width: 86px; }
}

@media (max-width: 620px) {
    .hero { min-height: 560px; }
    .hero-content { padding-top: 96px; padding-bottom: 60px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .post-grid, .gallery { grid-template-columns: 1fr; }
    .post-image { aspect-ratio: 16 / 11; }
    .post-overlay { padding: 14px 16px 18px; }
    .genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-stats { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; }
    .site-stat { min-height: 112px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
    .site-stat:first-child { border-top: 0; }
    .story-cover { height: 440px; }
    .story-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story-stat { min-height: 94px; padding: 16px; }
    .story-stat:nth-child(odd) { border-left: 0; }
    .story-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .cover-album-stage { height: 160px; }
    .lightbox { padding: 70px 16px 18px; }
    .lightbox-prev { left: 16px; }
    .lightbox-next { right: 16px; }
    .lightbox-count { top: 24px; right: 76px; }
    .lightbox-thumbs {
        width: auto;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 68px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .lightbox-thumbs button { width: 68px; height: 54px; }
    .album-grid { grid-template-columns: 1fr; gap: 12px; }
    .album-thumb { min-height: 260px; max-height: 420px; }
    .admin-topbar { align-items: stretch; flex-direction: column; }
    .admin-table { display: block; overflow-x: auto; }
}

.section-label{
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold);
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.section-sub {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.see-all {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.no-copyright i{
    color: var(--gold);
}

.logo-ja {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #f8f6f0;
}
.logo-en {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-cta {
    background: #e8001c;
    color: #fff !important;
    padding: 0.5rem 1.2rem !important;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav-cta:hover{
    background: #c00001a;
}


