* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050507;
  --bg-soft: #0a0a0f;
  --card: #0d0d13;
  --line: rgba(255,255,255,.09);
  --text: #f5f3ff;
  --muted: #92909e;
  --purple: #9a4dff;
  --purple-2: #6d36ff;
  --cyan: #66d9ff;
  --shadow: 0 25px 80px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; }

body {
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(117,47,255,.10), transparent 30%),
    radial-gradient(circle at 90% 55%, rgba(81,43,255,.08), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

body.light {
  --bg: #f4f2fa;
  --bg-soft: #fff;
  --card: #fff;
  --line: rgba(20,15,40,.12);
  --text: #17131f;
  --muted: #696370;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.cursor-glow {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(146, 70, 255, .10);
  filter: blur(70px);
  transform: translate(-50%, -50%);
  z-index: 0;
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  height: 76px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5,5,7,.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.brand b { color: var(--purple); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: var(--purple);
  border: 1px solid rgba(154,77,255,.45);
  border-radius: 11px;
  box-shadow: 0 0 25px rgba(154,77,255,.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--muted);
  font-size: .86rem;
  transition: .25s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -27px;
  height: 2px;
  background: var(--purple);
  box-shadow: 0 0 15px var(--purple);
}

.nav-actions { display: flex; gap: 8px; }

.icon-btn,
.menu-toggle {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: var(--text);
  width: 39px;
  height: 39px;
  border-radius: 12px;
}

.menu-toggle { display: none; }

.hero {
  min-height: 100vh;
  padding: 140px 7% 90px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,4,7,.98) 0%, rgba(4,4,7,.75) 45%, rgba(4,4,7,.25) 100%),
    url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=2000&q=90") center/cover;
  filter: saturate(.8);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 45%, rgba(135,58,255,.30), transparent 30%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1050px);
  margin-right: auto;
}

.eyebrow,
.section-kicker {
  color: #b69cff;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 800;
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(182,156,255,.25);
  border-radius: 99px;
  background: rgba(100,55,180,.08);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  line-height: .9;
  letter-spacing: -.065em;
  max-width: 900px;
}

.hero h1 span,
.section-heading h2 span,
.about-copy h2 span,
.cta h2 span {
  color: var(--purple);
  text-shadow: 0 0 30px rgba(154,77,255,.35);
}

.hero p {
  max-width: 590px;
  margin-top: 26px;
  color: #aaa7b5;
  font-size: 1.08rem;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 800;
  font-size: .88rem;
  transition: .25s ease;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #a24dff, #6533e9);
  box-shadow: 0 15px 35px rgba(105,45,235,.25);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

.hero-stats {
  display: flex;
  gap: 45px;
  margin-top: 55px;
}

.hero-stats div { display: grid; gap: 2px; }
.hero-stats strong { font-size: 1.35rem; }
.hero-stats small { color: var(--muted); }

.scroll-cue {
  position: absolute;
  right: 6%;
  bottom: 45px;
  color: #73717b;
  font-size: .66rem;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}

.scroll-cue span { color: var(--purple); margin-top: 8px; }

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  padding: 17px 0;
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 45px;
  animation: ticker 22s linear infinite;
  color: #686571;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.section {
  position: relative;
  z-index: 2;
  padding: 100px 6%;
  max-width: 1500px;
  margin: auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}

.section-heading h2,
.about-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.055em;
  margin-top: 10px;
}

.text-btn {
  border: 0;
  background: none;
  color: #b98cff;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-card {
  position: relative;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  transition: .3s ease;
}

.category-card:hover,
.category-card.active {
  transform: translateY(-5px);
  border-color: rgba(154,77,255,.65);
  box-shadow: 0 18px 45px rgba(0,0,0,.3);
}

.category-card span {
  position: absolute;
  left: 15px;
  bottom: 13px;
  z-index: 2;
  font-weight: 800;
  font-size: .8rem;
  text-shadow: 0 2px 15px #000;
}

.category-art {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(.65);
  transition: .5s ease;
}

.category-card:hover .category-art { transform: scale(1.08); filter: saturate(1); }

.art-all { background-image: linear-gradient(135deg, #7d32d9, #09090c 60%, #1c68c9); }
.art-naruto { background-image: url("https://images.unsplash.com/photo-1578632767115-351597cf2477?auto=format&fit=crop&w=700&q=80"); }
.art-onepiece { background-image: url("https://images.unsplash.com/photo-1534809027769-b00d750a6bac?auto=format&fit=crop&w=700&q=80"); }
.art-jujutsu { background-image: url("https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=700&q=80"); }
.art-demon { background-image: url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=700&q=80"); }
.art-aot { background-image: url("https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=700&q=80"); }

.gallery-tools { display: flex; gap: 10px; }

.search-box {
  width: 240px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.search-box span { color: var(--purple); font-size: 1.4rem; }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: .75rem;
}

.filter-btn.active,
.filter-btn:hover {
  color: white;
  border-color: var(--purple);
  background: rgba(154,77,255,.13);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
}

.edit-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.edit-card.tall { grid-row: span 2; }
.edit-card.wide { grid-column: span 2; }

.edit-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.72) contrast(1.08);
  transition: .65s ease;
}

.edit-card:hover img {
  transform: scale(1.07);
  filter: saturate(1) contrast(1.04);
}

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 35%, rgba(0,0,0,.82));
}

.card-top,
.card-bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  z-index: 2;
}

.card-top {
  top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-top > span {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  font-size: .62rem;
  letter-spacing: .11em;
}

.like-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: white;
  font-size: 1.2rem;
  backdrop-filter: blur(8px);
  transition: .2s;
}

.like-btn.liked {
  color: #ff5ca8;
  border-color: #ff5ca8;
  transform: scale(1.08);
}

.card-bottom { bottom: 15px; }
.card-bottom h3 { font-size: 1.05rem; }
.card-bottom p { color: #b3b0b9; font-size: .72rem; margin-top: 2px; }

.edit-card.hidden { display: none; }

.empty-state {
  display: none;
  padding: 50px;
  text-align: center;
  color: var(--muted);
}

.empty-state.show { display: block; }

.about-section {
  display: grid;
  grid-template-columns: 1fr .8fr;
  align-items: center;
  gap: 70px;
  min-height: 650px;
}

.about-copy > p {
  max-width: 600px;
  color: var(--muted);
  margin-top: 25px;
  font-size: 1.02rem;
}

.about-points {
  margin-top: 35px;
  display: grid;
  gap: 13px;
}

.about-points div {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.about-points b { color: var(--purple); font-size: .75rem; }
.about-points span { color: #c7c4ce; font-size: .88rem; }

.about-orb {
  width: min(430px, 75vw);
  aspect-ratio: 1;
  margin: auto;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(154,77,255,.25), transparent 48%),
    repeating-radial-gradient(circle, transparent 0 58px, rgba(154,77,255,.08) 60px 61px);
  border: 1px solid rgba(154,77,255,.18);
  box-shadow: 0 0 100px rgba(118,48,255,.12);
}

.orb-ring {
  position: absolute;
  inset: 13%;
  border: 1px dashed rgba(172,130,255,.45);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.orb-ring::after,
.orb-ring::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--purple);
}

.orb-ring::before { top: 10%; left: 15%; }
.orb-ring::after { bottom: 12%; right: 13%; }

@keyframes spin { to { transform: rotate(360deg); } }

.orb-core {
  text-align: center;
  font-family: Orbitron, sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.orb-core span { color: var(--purple); }

.cta {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 6%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(125,52,255,.18), transparent 35%),
    var(--bg-soft);
}

.cta h2 {
  max-width: 850px;
  margin: 12px auto 0;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.cta p { color: var(--muted); margin: 18px 0 30px; }

footer {
  padding: 30px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: #686571;
  font-size: .76rem;
}

.footer-brand { color: var(--text); font-weight: 800; display: flex; gap: 10px; align-items: center; }
.footer-brand .brand-mark { width: 29px; height: 29px; border-radius: 8px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .navbar { padding: 0 5%; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 20px 5%;
    background: rgba(5,5,7,.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav-links.open { display: flex; }
  .nav-links a.active::after { display: none; }
  .menu-toggle { display: block; margin-left: auto; margin-right: 8px; }
  .nav-actions { display: none; }

  .hero { padding-left: 6%; padding-right: 6%; }
  .scroll-cue { display: none; }

  .section { padding: 75px 5%; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .edit-card.tall { grid-row: span 2; }
  .edit-card.wide { grid-column: span 2; }
  .about-section { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand { font-size: .72rem; }
  .brand-mark { width: 30px; height: 30px; }

  .hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .hero-stats { gap: 22px; }
  .hero-buttons .btn { width: 100%; }

  .section-heading { align-items: flex-start; flex-direction: column; }
  .gallery-tools, .search-box { width: 100%; }

  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card { height: 125px; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .edit-card.tall,
  .edit-card.wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  footer { flex-direction: column; text-align: center; }
}
/* ========================================
   LIGHTBOX
======================================== */

.anime-lightbox {
    position: fixed;
    inset: 0;

    z-index: 100000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        rgba(5, 5, 8, 0.94);

    backdrop-filter: blur(18px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}

.anime-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 900px;
    width: 90%;

    text-align: center;

    transform: scale(.9);

    transition:
        transform .35s ease;
}

.anime-lightbox.active
.lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;

    object-fit: contain;

    border-radius: 16px;

    border: 1px solid
        rgba(180, 80, 255, .6);

    box-shadow:
        0 0 50px
        rgba(170, 70, 255, .3);
}

.lightbox-info {
    margin-top: 18px;
}

.lightbox-title {
    margin: 0;

    color: white;

    font-size: 22px;
}

.lightbox-category {
    color: #b985ff;

    margin: 6px 0 15px;

    text-transform: uppercase;

    letter-spacing: 2px;

    font-size: 12px;
}

.lightbox-download {
    display: inline-block;

    padding: 11px 20px;

    border-radius: 10px;

    text-decoration: none;

    color: white;

    background:
        linear-gradient(
            135deg,
            #7b2cff,
            #bd55ff
        );

    box-shadow:
        0 0 20px
        rgba(160, 70, 255, .3);

    transition: .25s;
}

.lightbox-download:hover {
    transform: translateY(-3px);

    box-shadow:
        0 0 30px
        rgba(160, 70, 255, .5);
}


/* Lightbox controls */

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;

    border: none;

    background:
        rgba(20, 20, 25, .8);

    color: white;

    cursor: pointer;

    border: 1px solid
        rgba(170, 80, 255, .5);

    transition: .25s;
}

.lightbox-close {
    top: 25px;
    right: 30px;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    font-size: 28px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;

    transform: translateY(-50%);

    width: 50px;
    height: 50px;

    border-radius: 50%;

    font-size: 35px;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background:
        rgba(150, 60, 255, .3);

    box-shadow:
        0 0 20px
        rgba(170, 70, 255, .4);
}


/* ========================================
   DOWNLOAD BUTTON
======================================== */

.download-btn {
    border: 1px solid
        rgba(180, 90, 255, .5);

    background:
        rgba(100, 40, 180, .15);

    color: #d8b4ff;

    padding: 9px 14px;

    border-radius: 8px;

    cursor: pointer;

    transition: .25s;
}

.download-btn:hover {
    background:
        rgba(150, 60, 255, .3);

    color: white;

    transform: translateY(-2px);

    box-shadow:
        0 0 18px
        rgba(160, 70, 255, .3);
}


/* ========================================
   LIKE COUNTER
======================================== */

.like-count {
    display: inline-block;

    margin-left: 5px;

    color: #aaa;

    font-size: 13px;

    min-width: 20px;
}

.like-btn.liked {
    color: #ff5b9d;

    transform: scale(1.15);

    text-shadow:
        0 0 12px
        rgba(255, 70, 140, .7);
}


/* ========================================
   BACK TO TOP
======================================== */

.back-to-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    border: 1px solid
        rgba(180, 80, 255, .6);

    background:
        rgba(15, 15, 20, .9);

    color: #d69cff;

    font-size: 22px;

    cursor: pointer;

    z-index: 5000;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(20px);

    transition:
        .3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0);
}

.back-to-top:hover {
    background:
        rgba(140, 50, 220, .3);

    color: white;

    box-shadow:
        0 0 25px
        rgba(160, 70, 255, .4);

    transform:
        translateY(-4px);
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .anime-lightbox {
        padding: 15px;
    }

    .lightbox-content {
        width: 96%;
    }

    .lightbox-image {
        max-height: 60vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;

        font-size: 28px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;

        width: 44px;
        height: 44px;
    }

    .download-btn {
        padding: 8px 11px;

        font-size: 12px;
    }

}


/* Touch feedback */

.touch-active {
    transform: scale(.97) !important;
}