:root{
  --bg: #0f1115;
  --card: #141619;
  --muted: #9aa3b2;
  --accent: #ff6b6b;
  --glass: rgba(255,255,255,0.04);
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  background: linear-gradient(180deg, var(--bg), #070709);
  color: #e6eef6;
  -webkit-font-smoothing: antialiased;
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

/* Header */
.site-header{
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  position: sticky;
  top: 0;
  z-index: 60;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.logo{
  display: flex;
  align-items: center;
  gap: .6rem;
}

.logo .ruby{
  color: var(--accent);
  font-weight: 700;
  font-size: 1.4rem;
}

.title{
  font-size: 1.15rem;
  font-weight: 700;
}

.tag{
  color: var(--muted);
  font-size: .72rem;
}

/* Navigation */
.main-nav{
  display: flex;
  gap: .85rem;
  align-items: center;
}

.main-nav a{
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
}

.btn{
  background: var(--accent);
  border: none;
  padding: .55rem .85rem;
  border-radius: 10px;
  color: #111;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn.small{
  padding: .35rem .6rem;
  font-size: .85rem;
}

.btn.outline{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
}

.nav-toggle{
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.3rem;
}

/* Hero Section */
.hero{
  padding: 2.25rem 0;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  align-items: center;
}

.hero-card h1{
  margin: 0;
  font-size: 2rem;
}

.hero-card p{
  color: var(--muted);
}

.hero-actions{
  margin-top: 1rem;
  display: flex;
  gap: .6rem;
}

/* Hero Image */
.image-card .cover{
  width: 100%;
  height: 260px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.eye-svg{
  width: 85%;
  height: 85%;
}

/* Manga Cards */
.cards h2{
  margin-top: 0;
}

.grid-3{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 1rem;
}

.card{
  background: var(--card);
  padding: .8rem;
  border-radius: 12px;
}

.card img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.card h3{
  margin: .6rem 0 .3rem;
}

.card p{
  color: var(--muted);
  font-size: .9rem;
}

.card-actions{
  display: flex;
  gap: .5rem;
  margin-top: .6rem;
}

/* Anime Carousel */
.carousel{
  position: relative;
  background: var(--card);
  padding: .6rem;
  border-radius: 12px;
  overflow: hidden;
}

.slide{
  display: none;
  align-items: center;
  gap: 1rem;
}

.slide.active{
  display: flex;
}

.slide img{
  width: 60%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.slide-meta{
  padding: 0 1rem;
}

.carousel-controls{
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: .4rem;
}

.carousel-controls button{
  background: rgba(255,255,255,0.03);
  border: none;
  color: var(--muted);
  padding: .5rem;
  border-radius: 8px;
  cursor: pointer;
}

/* About */
.about{
  padding: 2rem 0;
}

/* Footer */
.site-footer{
  border-top: 1px solid rgba(255,255,255,0.03);
  padding: 1.2rem 0;
  margin-top: 2rem;
  color: var(--muted);
}

.footer-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.footer-nav a{
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  margin-top: .3rem;
}

/* Responsive */
@media (max-width:900px){
  .hero-grid{
    grid-template-columns: 1fr;
  }

  .main-nav{
    display: none;
  }

  .nav-toggle{
    display: block;
  }

  .image-card .cover{
    height: 200px;
  }

  .slide img{
    display: none;
  }
}

/* Light Theme */
.light {
  --bg: #f9fafb;
  --card: #ffffff;
  --muted: #555b66;
  --accent: #b01010;
  color: #0b1220;
}
