/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0C0C0F;
  --bg-2:       #111117;
  --bg-3:       #16161E;
  --surface:    #1E1E28;
  --surface-2:  #252530;
  --border:     rgba(255,255,255,0.07);
  --fg:         #F0EDE8;
  --fg-2:       #A09A92;
  --fg-3:       #6B6560;
  --violet:     #8B5CF6;
  --violet-dim: rgba(139,92,246,0.15);
  --coral:      #FF6B6B;
  --coral-dim:  rgba(255,107,107,0.12);
  --teal:       #06B6D4;
  --teal-dim:   rgba(6,182,212,0.12);
  --anime-col:  #A78BFA;
  --manga-col:  #FB923C;
  --cartoon-col:#34D399;
  --film-col:   #F472B6;
  --series-col: #60A5FA;
  --radius:     12px;
  --radius-sm:  8px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.03em; line-height: 1.1; }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--fg);
  margin-bottom: 3rem;
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(12,12,15,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--violet);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: #fff;
}
.logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--fg);
}
.header-nav {
  display: flex;
  gap: 2rem;
}
.header-nav a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--fg); }

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: var(--violet);
  top: -100px; left: -200px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: var(--coral);
  bottom: 100px; right: -100px;
  opacity: 0.2;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}
.hero-shapes .shape {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 50%;
}
.shape-1 { width: 400px; height: 400px; top: 10%; right: 5%; }
.shape-2 { width: 250px; height: 250px; top: 35%; right: 20%; }
.shape-3 { width: 150px; height: 150px; top: 55%; right: 8%; }

.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 2rem;
  padding: 0.4rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.label-dot {
  width: 6px; height: 6px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.95;
  margin-bottom: 2rem;
}
.hero-headline .line-1 { color: var(--fg); }
.hero-headline .line-2 {
  background: linear-gradient(90deg, var(--violet), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-headline .line-3 { color: var(--fg); opacity: 0.4; }

.hero-lede {
  max-width: 580px;
  font-size: 1.125rem;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--fg);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-top: 0.25rem;
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

/* --- CATEGORIES --- */
.categories {
  padding: 100px 2rem;
  background: var(--bg-2);
}
.categories .section-title { text-align: center; }
.categories .section-label { text-align: center; display: block; }

.category-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
}
.cat-anime:hover { border-color: var(--anime-col); }
.cat-manga:hover { border-color: var(--manga-col); }
.cat-cartoons:hover { border-color: var(--cartoon-col); }
.cat-films:hover { border-color: var(--film-col); }
.cat-series:hover { border-color: var(--series-col); }

.cat-icon {
  width: 44px; height: 44px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.cat-icon svg { width: 22px; height: 22px; }
.cat-anime .cat-icon svg { color: var(--anime-col); }
.cat-manga .cat-icon svg { color: var(--manga-col); }
.cat-cartoons .cat-icon svg { color: var(--cartoon-col); }
.cat-films .cat-icon svg { color: var(--film-col); }
.cat-series .cat-icon svg { color: var(--series-col); }

.cat-info h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.cat-info p {
  font-size: 0.875rem;
  color: var(--fg-2);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cat-tags span {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: var(--bg-3);
  color: var(--fg-3);
}

/* --- FEATURES --- */
.features {
  padding: 100px 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.features-top { margin-bottom: 3rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s;
}
.feat-card:hover { border-color: rgba(139,92,246,0.4); }
.feat-wide { grid-column: span 2; }
.feat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--violet);
  opacity: 0.4;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.feat-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.feat-body p {
  font-size: 0.875rem;
  color: var(--fg-2);
  line-height: 1.6;
}

/* --- PLATFORMS --- */
.platforms-section {
  padding: 100px 2rem;
  background: var(--bg-2);
  text-align: center;
}
.platforms-section .section-label { display: block; }
.platforms-intro {
  max-width: 600px;
  margin: 0 auto 3rem;
}
.platforms-intro p {
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.7;
}
.platforms-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.platform-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  transition: border-color 0.2s, background 0.2s;
}
.platform-chip:hover {
  border-color: var(--violet);
  background: var(--violet-dim);
}
.plat-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.7;
}
.plat-icon svg { width: 100%; height: 100%; }

/* --- NEW RELEASES --- */
.new-releases {
  padding: 100px 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.releases-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.release-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.release-row:last-child { border-bottom: none; }
.release-row:hover { background: var(--surface-2); }
.release-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  min-width: 80px;
  text-align: center;
}
.badge-anime { background: var(--anime-col); color: #fff; }
.badge-manga { background: var(--manga-col); color: #fff; }
.badge-film { background: var(--film-col); color: #fff; }
.badge-series { background: var(--series-col); color: #fff; }
.badge-cartoon { background: var(--cartoon-col); color: #fff; }

.release-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.release-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
}
.release-meta {
  font-size: 0.8rem;
  color: var(--fg-3);
}
.release-rating {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--coral);
  min-width: 48px;
  text-align: right;
}
.releases-note {
  font-size: 0.875rem;
  color: var(--fg-3);
  text-align: center;
}

/* --- CLOSING --- */
.closing {
  padding: 120px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, var(--violet-dim), transparent);
  pointer-events: none;
}
.closing-content { position: relative; max-width: 800px; margin: 0 auto; }
.closing-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 6rem;
  color: var(--violet);
  opacity: 0.2;
  margin-bottom: 2rem;
  line-height: 1;
}
.closing-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.closing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.closing-tags span {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-2);
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-brand { max-width: 280px; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--fg-3);
  margin-top: 0.75rem;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 4rem;
  flex: 1;
  justify-content: flex-end;
}
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.25rem;
}
.footer-col a {
  font-size: 0.875rem;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--fg-3);
}

/* --- ADS --- */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}
.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.ad-container {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--fg-3);
  font-size: 0.8rem;
  padding: 1.5rem;
}
.ad-placeholder-icon { opacity: 0.4; }
.ad-setup-note {
  font-size: 0.7rem;
  color: var(--fg-3);
  opacity: 0.6;
  margin-top: 0.25rem;
}

/* sidebar ad */
.ad-sidebar {
  width: 160px;
  flex-shrink: 0;
}
.ad-sidebar .ad-container {
  min-height: 600px;
  max-height: 600px;
}
@media (max-width: 768px) {
  .ad-sidebar { display: none; }
}

/* inline ad between results */
.ad-inline {
  grid-column: 1 / -1;
  margin: 1rem 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-wide { grid-column: span 1; }
}
@media (max-width: 768px) {
  .hero-headline { font-size: clamp(3rem, 14vw, 6rem); }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; gap: 2rem; }
  .header-nav { display: none; }
  .section-title { font-size: 2.5rem; }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .release-row { gap: 0.75rem; }
  .platforms-grid { gap: 0.5rem; }
}