/* ==========================================================================
   UNMEI FANSUB - MINIMAL & LETTERBOXD AESTHETIC
   Main Color: Siyaha çok yakın koyu gri (#090a0c)
   Secondary Color: Logo Magenta (#bc199a)
   ========================================================================== */

:root {
  /* Renk Paleti */
  --bg-main: #090a0c;
  --bg-surface: #101216;
  --bg-surface-hover: #15181d;
  --border-color: #1b1e24;
  --border-subtle: rgba(255, 255, 255, 0.05);

  /* Logo Rengi (Secondary) */
  --secondary: #bc199a;
  --secondary-hover: #d222ad;
  --secondary-subtle: rgba(188, 25, 154, 0.12);
  --secondary-border: rgba(188, 25, 154, 0.35);

  /* Metin Renkleri */
  --text-main: #edf0f5;
  --text-muted: #848b98;
  --text-dim: #4c525d;

  /* Durum Rozetleri */
  --badge-completed: #10b981;
  --badge-completed-bg: rgba(16, 185, 129, 0.14);
  --badge-incomplete: #eab308;
  --badge-incomplete-bg: rgba(234, 179, 8, 0.14);

  /* Yıldız Puanları */
  --star-color: #eab308;
  --star-empty: #262931;

  /* Fontlar & Boyutlar */
  --font-logo: 'Pacifico', cursive, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --transition: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Sayfa genişliği ve daha ferah sağ-sol padding */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 12, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--secondary);
  padding: 16px 0;
}

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

.brand-wrapper {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 0 16px rgba(188, 25, 154, 0.2));
}

.brand-wrapper:hover .header-logo-img {
  opacity: 0.95;
  transform: translateY(-1px) scale(1.015);
  filter: drop-shadow(0 0 22px rgba(216, 31, 174, 0.4));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  transition: var(--transition);
}

.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  color: #fff;
  font-weight: 700;
}

/* ==========================================================================
   TRENDING / POPULAR (POPÜLER ANİMELER) - ASYMMETRIC SPOTLIGHT
   ========================================================================== */
.trending-section {
  padding: 24px 0 6px 0;
  margin-bottom: 4px;
  transition: opacity 0.25s ease;
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trending-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trending-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  text-transform: uppercase;
}

.trending-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 8px;
  border-radius: 9999px;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   TRENDING / POPULAR (POPÜLER ANİMELER) - SEAMLESS BENTO MOSAIC
   ========================================================================== */
.trending-section {
  padding: 24px 0 6px 0;
  margin-bottom: 4px;
  transition: opacity 0.25s ease;
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.trending-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trending-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.trending-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.2px;
}

/* Seamless Mosaic Grid: 0 Gap, Dış Çerçeve ve İnce İç Çizgiler */
.trending-asymmetric-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  height: 235px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #090a0c;
}

/* 1. Sıradaki Büyük Spotlight Kart */
.spotlight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--bg-surface);
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  text-decoration: none;
  overflow: hidden;
}

.card-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.01);
  transition: transform 0.4s ease;
  z-index: 1;
}

.spotlight-card:hover .card-backdrop,
.side-trending-card:hover .card-backdrop {
  transform: scale(1.06);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 12, 0.3) 0%, rgba(9, 10, 12, 0.5) 45%, rgba(9, 10, 12, 0.95) 100%);
  z-index: 2;
  transition: background 0.3s ease;
}

.spotlight-card:hover .card-overlay,
.side-trending-card:hover .card-overlay {
  background: linear-gradient(180deg, rgba(9, 10, 12, 0.15) 0%, rgba(9, 10, 12, 0.35) 45%, rgba(9, 10, 12, 0.9) 100%);
}

.card-inner-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Köşeye Yapışık Tek Tip Rank Pill */
.rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(9, 10, 12, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-right-radius: 8px;
  padding: 5px 12px;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.trending-views-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(9, 10, 12, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 9999px;
}

.trending-views-pill svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* Sağ Taraf: #2, #3, #4, #5 Grid (2x2) - 0 Boşluk, Dikişsiz Mozaik */
.trending-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
}

.side-trending-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-decoration: none;
  overflow: hidden;
}

.side-trending-card:nth-child(2n) {
  border-right: none;
}

.side-trending-card:nth-child(n+3) {
  border-bottom: none;
}

.side-card-title {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.side-trending-card:hover .side-card-title {
  color: #fff;
}

@media (max-width: 960px) {
  .trending-asymmetric-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .spotlight-card {
    height: 180px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .trending-side-grid {
    grid-template-columns: 1fr 1fr;
    height: 220px;
  }
}

@media (max-width: 600px) {
  .trending-side-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .side-trending-card {
    height: 95px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .side-trending-card:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   CONTROLS BAR
   ========================================================================== */
.controls-section {
  padding: 20px 0 20px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 28px;
}

.controls-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.search-input-box {
  position: relative;
  flex: 1;
}

.search-input-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: #2e3440;
}

.search-shortcut {
  display: none;
}

.sort-select-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.sort-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #3b4252;
  color: #fff;
}

.sort-toggle-btn:active {
  transform: scale(0.97);
}

.sort-toggle-icon {
  color: var(--text-dim);
  transition: transform 0.25s ease, color 0.2s ease;
}

.sort-toggle-btn:hover .sort-toggle-icon {
  color: #fff;
}

.sort-toggle-btn.descending {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.sort-toggle-btn.descending .sort-toggle-icon {
  transform: rotate(180deg);
  color: #fff;
}

.filter-chips-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-groups {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-group {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.filter-chip {
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-chip:hover {
  color: #fff;
}

.filter-chip.active {
  background: var(--border-color);
  color: #fff;
}

.filter-chip.active.completed {
  background: var(--secondary);
  color: #fff;
}

.filter-chip.active.incomplete {
  background: #fff;
  color: var(--secondary);
}

.results-count {
  font-size: 12px;
  color: var(--text-dim);
}

/* ==========================================================================
   FRAMELESS POSTER ITEMS (KART KUTUSU YOK - CLEAN RESİM + ALTI YAZI)
   ========================================================================== */
.anime-catalog-wrapper {
  position: relative;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 60px;
}

.anime-catalog-wrapper.collapsed {
  max-height: 770px; /* Exactly 2.5 rows of anime posters */
  overflow: hidden;
}

@media (max-width: 900px) {
  .anime-catalog-wrapper.collapsed {
    max-height: 720px;
  }
}

@media (max-width: 600px) {
  .anime-catalog-wrapper.collapsed {
    max-height: 640px;
  }
}

.anime-catalog-wrapper.collapsed .grid-expand-overlay {
  display: flex;
}

.anime-catalog-wrapper.expanded {
  max-height: 30000px;
}

.anime-catalog-wrapper.expanded .grid-expand-overlay {
  display: none;
}

.grid-expand-overlay {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: linear-gradient(
    to bottom,
    rgba(9, 10, 12, 0) 0%,
    rgba(9, 10, 12, 0.5) 30%,
    rgba(9, 10, 12, 0.88) 65%,
    rgba(9, 10, 12, 1) 100%
  );
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  pointer-events: none;
  z-index: 5;
}

.grid-expand-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: rgba(17, 20, 26, 0.94);
  border: 1px solid var(--secondary-border);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(188, 25, 154, 0.25);
  backdrop-filter: blur(8px);
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.grid-expand-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.9), 0 0 30px rgba(188, 25, 154, 0.5);
}

.grid-expand-btn svg {
  transition: transform 0.25s ease;
}

.grid-expand-btn:hover svg {
  transform: translateY(2px);
}

.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 26px 18px;
  margin-bottom: 0;
}

.anime-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: transparent;
  border: none;
}

.poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #111317;
  border: 1px solid var(--border-color);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.22s ease;
}

.anime-item:hover .poster-wrapper {
  transform: translateY(-4px);
  border-color: #2f3542;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.status-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 0 0 0 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: -1px 2px 5px rgba(0, 0, 0, 0.22);
}

.status-badge.completed {
  background: var(--secondary);
  color: #ffffff;
}

.status-badge.incomplete {
  background: #ffffff;
  color: var(--secondary);
  font-weight: 800;
}

/* Direkt resmin altında clean isim */
.item-title {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #d1d5db;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.anime-item:hover .item-title {
  color: #fff;
}

/* ==========================================================================
   LETTERBOXD STYLE FULL-PAGE ANIME DETAIL VIEW
   ========================================================================== */
#view-detail {
  display: none;
  position: relative;
  padding-bottom: 80px;
}

#view-detail.active {
  display: block;
}

#view-catalog.hidden {
  display: none;
}

/* Letterboxd Full-Screen Hero Backdrop */
.letterboxd-backdrop-container {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 380px;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  margin-bottom: -110px;
}

.letterboxd-backdrop-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(9, 10, 12, 0.2) 0%, 
    rgba(9, 10, 12, 0.6) 55%, 
    var(--bg-main) 100%);
}

.detail-nav-bar {
  position: relative;
  z-index: 10;
  padding: 16px 0 20px 0;
}

.back-btn {
  background: rgba(16, 18, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.back-btn:hover {
  background: var(--bg-surface);
  color: #fff;
  border-color: #323843;
}

.detail-content-layout {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 36px;
  align-items: start;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-poster-box {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #111317;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
}

.detail-poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.status-text-completed {
  color: #10b981 !important;
  font-weight: 700;
}

.status-text-incomplete {
  color: #f97316 !important;
  font-weight: 700;
}

.detail-main-info {
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.detail-title-section h1 {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.detail-native-title {
  font-size: 14px;
  color: var(--text-muted);
}

.detail-meta-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.meta-item strong {
  color: #fff;
  font-weight: 600;
}


.detail-genres {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.genre-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
}

/* Sections */
.section-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.synopsis-text {
  font-size: 14px;
  color: #c9d1d9;
  line-height: 1.75;
  white-space: pre-line;
}

/* Redesigned Ratings Panel (Clean, Minimal, White Stars) */
.ratings-panel {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 30px;
}

.ratings-divider {
  width: 1px;
  height: 80%;
  background: var(--border-color);
}

.rating-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.rating-user-status {
  font-size: 12px;
  color: var(--secondary);
  font-weight: 700;
}

.rating-main-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rating-score-val {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.score-big {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.score-denom {
  font-size: 13px;
  color: var(--text-dim);
}

.stars-interactive {
  display: flex;
  gap: 5px;
  align-items: center;
}

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 1px;
  color: #262a33;
  font-size: 28px;
  line-height: 1;
  transition: transform 0.12s ease, color 0.12s ease;
}

.star-btn:hover {
  transform: scale(1.18);
}

.star-btn.filled {
  color: #ffffff;
}

.star-btn.hovered {
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.rating-count-label {
  font-size: 12px;
  color: var(--text-dim);
}

/* Episodes Table */
.episodes-table-wrapper {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.episodes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.episodes-table th {
  padding: 9px 12px;
  background: #0d0f12;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--border-color);
}

.episodes-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  color: #cbd5e1;
}

.ep-file-name {
  font-family: 'Consolas', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.episodes-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.gdrive-folder-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-sm);
  color: #93c5fd;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.gdrive-folder-btn:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

.gdrive-btn-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

.codec-badge {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.ep-badge-special {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 4px;
  color: #c084fc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* YouTube Embed Player (Özel Durumlar: Yeon Ae Halujeon vb.) */
.youtube-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
}

.youtube-player-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.youtube-note-box {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
}

.youtube-note-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.youtube-open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff334b;
  font-weight: 600;
  text-decoration: none;
  font-size: 12.5px;
  padding: 7px 14px;
  background: rgba(255, 51, 75, 0.1);
  border: 1px solid rgba(255, 51, 75, 0.25);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.youtube-open-link:hover {
  background: #ff334b;
  color: #ffffff;
  border-color: #ff334b;
  box-shadow: 0 0 16px rgba(255, 51, 75, 0.35);
  transform: translateY(-1px);
}

/* Arşiv Durumu Uyarı Kartı */
.archive-notice-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.archive-notice-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #f59e0b;
}

.archive-card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 2px;
}

.archive-card-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.archive-card-body {
  flex: 1;
  min-width: 0;
}

.archive-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.archive-card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fef3c7;
  letter-spacing: -0.2px;
}

.archive-card-badge {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.archive-card-desc {
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.55;
  margin: 0 0 10px 0;
}

.archive-card-missing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.missing-label {
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.missing-list {
  font-family: 'Consolas', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.episodes-note {
  font-size: 12px;
  color: var(--text-dim);
  padding: 6px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

/* Disqus */
.comments-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
}

/* Subpages */
#view-manga, #view-about {
  display: none;
  padding: 60px 0;
}

#view-manga.active, #view-about.active {
  display: block;
}

.subpage-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
}

.subpage-box h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.subpage-box p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* Footer */
.site-footer {
  padding: 56px 0 40px 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand-section {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  min-height: 140px;
  min-width: 220px;
  padding: 10px;
}

.footer-logo {
  height: 125px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 26px rgba(188, 25, 154, 0.32));
  transition: transform 0.25s ease;
  pointer-events: none;
}

.footer-brand-section:hover .footer-logo {
  transform: scale(1.04);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-dot {
  color: var(--border-color);
  font-size: 11px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: #20242c;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2d333e;
}

/* Responsive */
@media (max-width: 860px) {
  .letterboxd-backdrop-container {
    height: 220px;
    margin-bottom: -40px;
  }
  .detail-nav-bar {
    padding: 10px 0 14px 0;
  }
  .detail-content-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .detail-sidebar {
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
  }
  .detail-poster-box {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8);
  }
  .detail-main-info {
    width: 100%;
    gap: 30px;
  }
  .detail-title-section {
    text-align: center;
  }
  .detail-title-section h1 {
    font-size: 28px;
    line-height: 1.22;
    letter-spacing: -0.3px;
    word-break: break-word;
  }
  .detail-native-title {
    font-size: 13px;
    margin-top: 4px;
  }
  .detail-meta-list {
    justify-content: center;
    gap: 10px 16px;
    font-size: 12px;
    padding: 10px 0;
  }
  .detail-genres {
    justify-content: center;
    gap: 6px;
  }
  .ratings-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px;
  }
  .ratings-divider {
    width: 100%;
    height: 1px;
  }
  .rating-main-row {
    gap: 14px;
    flex-wrap: wrap;
  }
  .score-big {
    font-size: 28px;
  }
  .star-btn {
    font-size: 24px;
  }

  /* Episodes Table Responsive */
  .episodes-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }
  .episodes-table {
    min-width: 480px;
  }
  .episodes-top-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .detail-title-section h1 {
    font-size: 24px;
  }
  .synopsis-text {
    font-size: 13px;
    line-height: 1.7;
  }
  .episodes-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .gdrive-folder-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 12.5px;
  }
  .episodes-table th,
  .episodes-table td {
    padding: 8px 10px;
    font-size: 12px;
  }
  .ep-file-name {
    font-size: 11px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .archive-notice-card {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  .archive-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .archive-card-badge {
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .site-header {
    padding: 10px 0;
  }
  .header-logo-img {
    height: 36px;
    width: auto;
  }
  .main-nav {
    gap: 12px;
  }
  .nav-link {
    font-size: 13px;
    padding: 4px 6px;
  }
}

@media (max-width: 640px) {
  .controls-section {
    padding: 14px 0 16px 0;
    margin-bottom: 20px;
  }
  .search-row {
    gap: 8px;
  }
  .search-input {
    padding: 8px 12px 8px 36px;
    font-size: 12.5px;
  }
  .search-input-box svg {
    left: 11px;
    width: 15px;
    height: 15px;
  }
  .sort-toggle-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
    gap: 5px;
  }
  .filter-chips-row {
    gap: 8px;
  }
  .filter-groups {
    gap: 6px;
  }
  .filter-chip {
    padding: 3px 8px;
    font-size: 11px;
  }

  /* 2 Sütunlu Kompakt ve Şık Anime Grid */
  .anime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .anime-item .item-title {
    font-size: 12.5px;
    margin-top: 6px;
    line-height: 1.3;
  }
  .status-badge {
    font-size: 8px;
    padding: 3px 6px;
  }
  .anime-catalog-wrapper.collapsed {
    max-height: 820px;
  }
  .footer-logo {
    height: 95px;
  }
}

@media (max-width: 440px) {
  .container {
    padding: 0 12px;
  }
  .header-logo-img {
    height: 31px;
  }
  .main-nav {
    gap: 8px;
  }
  .nav-link {
    font-size: 12px;
    padding: 3px 4px;
  }
}

/* ==========================================================================
   EASTER EGG - FLAPPY UÇ & LOGO HOPPING
   ========================================================================== */

/* Logo Particle effect on click */
.easter-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  pointer-events: none;
  z-index: 9999;
  animation: particleFly 0.65s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes particleFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.2);
  }
}

/* Screen flash on 10th click */
.easter-screen-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(188, 25, 154, 0.45), transparent 70%);
  pointer-events: none;
  z-index: 10000;
  animation: flashFade 0.6s ease-out forwards;
}

@keyframes flashFade {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

/* Modal Overlay */
.easter-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.easter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.94);
}

.easter-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: var(--transition);
}

.easter-modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* Modal Container & Dual Layout */
.easter-modal-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: #0d0f13;
  border: 1px solid var(--secondary-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(188, 25, 154, 0.2);
  padding: 18px 20px;
  width: 92vw;
  max-width: 1180px;
  height: 84vh;
  max-height: 680px;
  min-height: 520px;
  box-sizing: border-box;
}

.easter-mobile-tabs {
  display: none !important;
}

/* Main Dual Layout: Left Leaderboard | Right Game */
.easter-main-layout {
  display: flex;
  gap: 18px;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
}

/* Left Sidebar: Leaderboard */
.leaderboard-sidebar {
  width: 270px;
  flex-shrink: 0;
  height: 100%;
  min-height: 0;
  background: #11141a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.leaderboard-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0;
}

.lb-refresh-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: var(--transition);
}

.lb-refresh-btn:hover {
  background: var(--secondary-subtle);
  border-color: var(--secondary);
  color: var(--secondary);
}

.spin-anim {
  animation: spin 0.4s ease;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.leaderboard-list-wrapper {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lb-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.07);
  gap: 6px;
  margin-top: 10px;
}

.lb-empty-state .lb-empty-sub {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
}

.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: var(--transition);
}

.lb-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lb-rank {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  background: transparent;
}

.lb-name {
  flex: 1;
  margin: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-main);
  font-weight: 500;
}

.lb-score {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--secondary);
  font-size: 14px;
}

/* Pure Color-Based Ranking - Zero Emojis */
/* Rank 1: Gold */
.rank-1 {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.25);
}
.rank-1 .lb-rank {
  color: #fbbf24;
  background: rgba(234, 179, 8, 0.18);
}
.rank-1 .lb-name {
  color: #fbbf24;
  font-weight: 700;
}
.rank-1 .lb-score {
  color: #fbbf24;
}

/* Rank 2: Silver */
.rank-2 {
  background: rgba(203, 213, 225, 0.06);
  border-color: rgba(203, 213, 225, 0.2);
}
.rank-2 .lb-rank {
  color: #e2e8f0;
  background: rgba(203, 213, 225, 0.14);
}
.rank-2 .lb-name {
  color: #e2e8f0;
  font-weight: 600;
}
.rank-2 .lb-score {
  color: #e2e8f0;
}

/* Rank 3: Bronze */
.rank-3 {
  background: rgba(217, 119, 6, 0.06);
  border-color: rgba(217, 119, 6, 0.2);
}
.rank-3 .lb-rank {
  color: #f59e0b;
  background: rgba(217, 119, 6, 0.14);
}
.rank-3 .lb-name {
  color: #f59e0b;
  font-weight: 600;
}
.rank-3 .lb-score {
  color: #f59e0b;
}

/* Other Ranks (4-10) */
.rank-other .lb-rank {
  color: #64748b;
  background: rgba(255, 255, 255, 0.03);
}
.rank-other .lb-name {
  color: #94a3b8;
}
.rank-other .lb-score {
  color: var(--secondary);
}

.row-highlight {
  border-color: var(--secondary) !important;
  background: rgba(188, 25, 154, 0.18) !important;
  animation: rowPulse 1.2s ease infinite alternate;
}

@keyframes rowPulse {
  from { box-shadow: 0 0 4px rgba(188, 25, 154, 0.3); }
  to { box-shadow: 0 0 12px rgba(188, 25, 154, 0.7); }
}

/* Right Column: Game Column */
.game-column {
  flex: 1;
  height: 100%;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.game-wrapper {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  touch-action: manipulation;
  background: #090a0c;
  display: flex;
}

#flappy-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.canvas-shake {
  animation: canvasShakeAnim 0.35s ease;
}

@keyframes canvasShakeAnim {
  0%, 100% { transform: translate(0, 0); }
  20%, 60% { transform: translate(-5px, 3px); }
  40%, 80% { transform: translate(5px, -3px); }
}

/* Score Submission Panel */
.score-submit-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #11141a;
  border: 1px solid var(--secondary-border);
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  animation: modalFadeIn 0.2s ease-out;
}

.submit-score-badge {
  background: var(--secondary-subtle);
  color: var(--secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
}

.submit-score-badge strong {
  font-size: 15px;
  font-weight: 800;
}

.submit-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.submit-input {
  background: #090a0c;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  flex: 1;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.submit-input:focus {
  border-color: var(--secondary);
}

.submit-btn {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.submit-btn:hover:not(:disabled) {
  background: var(--secondary-hover);
  transform: translateY(-1px);
}

.submit-btn.btn-success {
  background: #10b981;
  cursor: default;
}

/* Mobile Responsive - Fullscreen Arcade Experience */
@media (max-width: 820px) {
  .easter-modal {
    padding: 0;
  }
  .easter-modal-container {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    min-height: unset;
    border-radius: 0;
    border: none;
    padding: 10px 10px 12px 10px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .easter-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
  .easter-mobile-tabs {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: calc(100% - 42px);
    height: 34px;
    margin-bottom: 8px;
    flex-shrink: 0;
  }
  .easter-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .easter-tab-btn.active {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    box-shadow: 0 2px 10px rgba(188, 25, 154, 0.4);
  }
  .easter-main-layout {
    flex-direction: column;
    width: 100%;
    height: calc(100% - 42px);
    min-height: 0;
    flex: 1;
    gap: 0;
    overflow: hidden;
  }

  /* Tab 1: Game View */
  .easter-modal-container.show-tab-game .game-column {
    display: flex !important;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  .easter-modal-container.show-tab-game .leaderboard-sidebar {
    display: none !important;
  }

  /* Tab 2: Leaderboard View */
  .easter-modal-container.show-tab-leaderboard .game-column {
    display: none !important;
  }
  .easter-modal-container.show-tab-leaderboard .leaderboard-sidebar {
    display: flex !important;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }
  .leaderboard-sidebar {
    width: 100%;
    height: 100%;
    border-radius: 8px;
  }
  .leaderboard-list-wrapper {
    flex: 1;
    max-height: unset;
    overflow-y: auto;
  }

  .game-wrapper {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    touch-action: none;
  }
  #flappy-canvas {
    touch-action: none;
  }

  .score-submit-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 10px;
    gap: 8px;
  }
  .submit-score-badge {
    text-align: center;
    font-size: 13px;
  }
  .submit-input {
    height: 36px;
    font-size: 13px;
  }
  .submit-btn {
    height: 36px;
    font-size: 13px;
  }
}

/* ==========================================================================
   MANGA SHOWCASE & 3D BOOK
   ========================================================================== */
.manga-page-container {
  padding: 30px 0 60px 0;
}

.manga-header-section {
  margin-bottom: 36px;
}

.manga-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary-subtle);
  border: 1px solid var(--secondary-border);
  color: var(--secondary);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.manga-dot {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary);
}

.manga-page-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.manga-page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.manga-catalog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 60px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.manga-catalog-container .static-page-header {
  text-align: center;
  margin-bottom: 28px;
}

/* Manga Showcase Vitrin - Centered layout with max 3 books per row */
.manga-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 48px;
  margin-top: 12px;
  max-width: 800px;
  width: 100%;
}

.manga-item {
  width: 210px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: none;
  user-select: none;
  outline: none;
  transition: transform 0.25s ease;
}

.manga-item:hover .item-title {
  color: #fff;
}

.manga-item .item-title {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.manga-item .manga-item-meta {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* 3D Book Container in Card */
.manga-book-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px 20px 12px;
}

/* Mathematically accurate 28px-thick solid 3D Manga Volume */
.manga-book-3d {
  position: relative;
  width: 165px;
  height: 245px;
  transform-style: preserve-3d;
  /* Angled to show front cover + 28px page thickness along right and top */
  transform: rotateY(-18deg) rotateX(6deg);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  outline: 1px solid transparent;
  -webkit-font-smoothing: antialiased;
}

.manga-item:hover .manga-book-3d,
.manga-item:focus-visible .manga-book-3d {
  transform: rotateY(-6deg) rotateX(1deg) translateY(-8px) scale(1.03);
}

/* Front Cover (Z = +14px) */
.manga-book-3d .book-cover {
  position: absolute;
  inset: 0;
  border-radius: 2px 4px 4px 2px;
  overflow: hidden;
  background: #111;
  transform: translateZ(14px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  outline: 1px solid transparent;
  box-shadow:
    0 0 1px rgba(0, 0, 0, 0.4),
    inset 1px 0 2px rgba(255, 255, 255, 0.15),
    inset -1px 0 2px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.manga-book-3d .book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
}

.manga-book-3d .book-crease {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 22px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(255, 255, 255, 0.12) 15%,
    rgba(0, 0, 0, 0.2) 35%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 6;
}

.manga-book-3d .book-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.02) 30%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 7;
}

.manga-book-3d .status-badge {
  z-index: 10;
}

/* Back Cover (Z = -14px) */
.manga-book-3d .book-back {
  position: absolute;
  inset: 0;
  border-radius: 4px 2px 2px 4px;
  background: #161820;
  transform: rotateY(180deg) translateZ(14px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  outline: 1px solid transparent;
  z-index: 1;
}

/* Spine (Left side, spanning Z = -14px to +14px) */
.manga-book-3d .book-spine {
  position: absolute;
  top: 0;
  left: -14px;
  width: 28px;
  height: 100%;
  background: linear-gradient(to right, #242938 0%, #161922 100%);
  transform: rotateY(-90deg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  outline: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 4;
}

.manga-book-3d .spine-text {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  white-space: nowrap;
  transform: rotate(90deg);
  opacity: 0.85;
}

/* Right Edge - Paper Pages Block (28px Depth) */
.manga-book-3d .book-pages-right {
  position: absolute;
  top: 1px;
  right: -14px;
  width: 28px;
  height: calc(100% - 2px);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 2.5px,
      rgba(0, 0, 0, 0.035) 2.5px,
      rgba(0, 0, 0, 0.035) 4px
    ),
    linear-gradient(
      to right,
      #d0c9bc 0%,
      #e8e4d8 25%,
      #f5f0e6 70%,
      #ded8cc 96%,
      #c4beaf 100%
    );
  transform: rotateY(90deg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  outline: 1px solid transparent;
  box-shadow:
    inset 2px 0 5px rgba(0, 0, 0, 0.22),
    inset -1px 0 3px rgba(0, 0, 0, 0.15),
    0 0 1px rgba(0, 0, 0, 0.2);
  border-radius: 0 1px 1px 0;
  z-index: 4;
}

/* Top Edge - Paper Pages Block (28px Depth) */
.manga-book-3d .book-pages-top {
  position: absolute;
  top: -14px;
  left: 1px;
  width: calc(100% - 2px);
  height: 28px;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent 2.5px,
      rgba(0, 0, 0, 0.035) 2.5px,
      rgba(0, 0, 0, 0.035) 4px
    ),
    linear-gradient(
      to bottom,
      #d3cdbf 0%,
      #ece8dc 35%,
      #f6f2e8 75%,
      #dfd9cd 96%,
      #c6c0b2 100%
    );
  transform: rotateX(90deg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  outline: 1px solid transparent;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.22),
    inset 0 -1px 3px rgba(0, 0, 0, 0.15),
    0 0 1px rgba(0, 0, 0, 0.2);
  z-index: 4;
}

/* Bottom Edge - Hidden when viewed from above to prevent edge aliasing/leakage */
.manga-book-3d .book-pages-bottom {
  display: none;
}

/* Ambient 3D Shadow under book */
.manga-book-3d .book-shadow {
  position: absolute;
  bottom: -22px;
  left: 5%;
  width: 95%;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 70%);
  transform: translateZ(-14px) rotateX(90deg);
  filter: blur(10px);
  transition: all 0.4s ease;
  pointer-events: none;
}

.manga-item:hover .book-shadow {
  transform: translateZ(-14px) rotateX(90deg) translateY(6px) scale(1.1);
  filter: blur(14px);
  opacity: 0.9;
}

.manga-item-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ==========================================================================
   MINIMAL MANGA READER MODAL
   ========================================================================== */
.manga-reader-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #08090d;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

/* Minimal Top Bar */
.reader-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 54px;
  padding: 0 20px;
  background: rgba(12, 14, 20, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  z-index: 100;
}

.reader-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.reader-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.reader-back-btn:hover {
  background: var(--secondary-subtle);
  border-color: var(--secondary);
  color: #fff;
}

.reader-series-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.reader-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reader-chapter-dropdown {
  height: 32px;
  padding: 0 28px 0 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23848b98'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}

.reader-chapter-dropdown:focus {
  outline: none;
  border-color: var(--secondary);
}

.reader-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

/* 2 Reading Modes Toggle */
.reader-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.reader-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reader-mode-btn:hover {
  color: #fff;
}

.reader-mode-btn.active {
  background: var(--secondary);
  color: #fff;
}

.reader-page-indicator {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Reader Viewport (Handles both Single Page and Continuous Scroll) */
.reader-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #08090d;
}

.reader-viewport.is-scroll-mode {
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Single Page View */
.reader-single-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2000px;
  padding: 16px;
}

/* Continuous Scroll View */
.reader-scroll-view {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 80px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scroll-page-wrap {
  position: relative;
  width: 100%;
  background: #11141c;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.scroll-page-img {
  width: 100%;
  height: auto;
  display: block;
}

.scroll-page-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.reader-scroll-footer {
  display: flex;
  justify-content: center;
  padding: 32px 0 20px 0;
}

.reader-scroll-next-btn {
  padding: 12px 28px;
  background: var(--secondary);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(188, 25, 154, 0.4);
  transition: all 0.2s ease;
}

.reader-scroll-next-btn:hover:not(:disabled) {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(188, 25, 154, 0.55);
}

.reader-scroll-next-btn:disabled {
  opacity: 0.4;
  cursor: default;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.reader-stage {
  position: relative;
  height: calc(100vh - 86px);
  max-height: 940px;
  aspect-ratio: 1440 / 2048; /* Standard manga page ratio */
  perspective: 2000px;
  transform-style: preserve-3d;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.reader-page-sheet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #101218;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.reader-page-sheet.base-sheet {
  z-index: 1;
}

.reader-page-sheet.active-sheet {
  z-index: 2;
  transform-origin: left center;
}

.reader-sheet-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Realistic 3D Paper Flip Animations */
.page-curl-shadow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

@keyframes pageTurnForward {
  0% {
    transform: rotateY(0deg);
    filter: drop-shadow(-3px 0 10px rgba(0, 0, 0, 0.3));
  }
  40% {
    filter: drop-shadow(-15px 0 25px rgba(0, 0, 0, 0.6));
  }
  100% {
    transform: rotateY(-95deg);
    opacity: 0;
    filter: drop-shadow(-20px 0 30px rgba(0, 0, 0, 0.8));
  }
}

@keyframes pageTurnBackward {
  0% {
    transform: rotateY(-95deg);
    opacity: 0;
    filter: drop-shadow(-20px 0 30px rgba(0, 0, 0, 0.8));
  }
  60% {
    filter: drop-shadow(-15px 0 25px rgba(0, 0, 0, 0.6));
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
    filter: drop-shadow(-3px 0 10px rgba(0, 0, 0, 0.3));
  }
}

.reader-stage.turn-forward .active-sheet {
  animation: pageTurnForward 0.36s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.reader-stage.turn-forward .page-curl-shadow {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 25%, transparent 100%);
  opacity: 1;
}

.reader-stage.turn-backward .active-sheet {
  animation: pageTurnBackward 0.36s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.reader-stage.turn-backward .page-curl-shadow {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 25%, transparent 100%);
  opacity: 1;
}

/* Click Hitbox Zones */
.reader-click-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  cursor: pointer;
}

.reader-click-zone.zone-prev {
  left: 0;
  width: 35%;
}

.reader-click-zone.zone-next {
  right: 0;
  width: 65%;
}

/* Minimal Floating Nav Arrows */
.reader-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 18, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 20;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  opacity: 0.65;
}

.reader-nav-arrow:hover {
  opacity: 1;
  background: var(--secondary);
  border-color: var(--secondary-hover);
  box-shadow: 0 4px 16px rgba(188, 25, 154, 0.45);
  transform: translateY(-50%) scale(1.08);
}

.reader-nav-arrow.arrow-left {
  left: 20px;
}

.reader-nav-arrow.arrow-right {
  right: 20px;
}

/* ==========================================================================
   MINIMAL LIGHT NOVEL READER (Continuous Vertical Scroll)
   ========================================================================== */
.ln-reader-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #090a0f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ln-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  background: rgba(9, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  user-select: none;
}

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

.ln-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ln-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.ln-series-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.ln-top-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ln-chapter-dropdown {
  height: 32px;
  padding: 0 28px 0 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23848b98'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}

.ln-chapter-dropdown:focus {
  outline: none;
  border-color: var(--secondary);
}

.ln-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ln-font-control {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.ln-font-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ln-font-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Light Novel Viewport & Content */
.ln-reader-viewport {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #090a0f;
}

.ln-content-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 24px 100px 24px;
  width: 100%;
}

.ln-chapter-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ln-chapter-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0;
}

.ln-section-heading {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 48px 0 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ln-section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(188, 25, 154, 0.45) 0%, transparent 80%);
}

.ln-text-para {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: var(--ln-font-size, 18px);
  line-height: 1.88;
  color: #e2e8f0;
  margin: 0 0 22px 0;
  letter-spacing: 0.15px;
  word-break: break-word;
}

.ln-text-para.is-dialogue {
  color: #f8fafc;
}

.ln-illustration-wrap {
  margin: 40px 0;
  text-align: center;
}

.ln-illustration-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  margin: 0 auto;
}

.ln-reader-footer {
  display: flex;
  justify-content: center;
  padding: 48px 0 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 48px;
}

.ln-next-chapter-btn {
  padding: 12px 28px;
  background: var(--secondary);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(188, 25, 154, 0.4);
  transition: all 0.2s ease;
}

.ln-next-chapter-btn:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(188, 25, 154, 0.55);
}

/* Mobile Responsiveness for Manga & Light Novel */
@media (max-width: 768px) {
  /* Vitrin */
  .manga-grid {
    gap: 24px 16px;
  }
  .manga-item {
    width: 155px;
  }

  /* Manga Reader Top Bar */
  .reader-top-bar {
    height: 48px;
    padding: 0 8px;
    gap: 6px;
  }
  .reader-series-title {
    display: none;
  }
  .reader-back-btn {
    padding: 6px 8px;
  }
  .reader-back-btn span {
    display: none;
  }
  .reader-header-right {
    gap: 6px;
  }
  .reader-mode-toggle {
    padding: 1px;
    gap: 1px;
  }
  .reader-mode-btn {
    padding: 4px 6px;
  }
  .reader-mode-btn span {
    display: none; /* Icon only on mobile */
  }
  .reader-chapter-dropdown {
    max-width: 88px;
    font-size: 11.5px;
    height: 30px;
    padding: 0 16px 0 6px;
  }
  .reader-page-indicator {
    font-size: 11px;
    padding: 3px 6px;
    min-width: 38px;
    text-align: center;
  }
  .reader-nav-arrow {
    display: none; /* Tap left/right zone on touch screens */
  }

  /* Manga Stage: Fits 100% horizontally and vertically without clipping */
  .reader-viewport {
    padding: 0;
  }
  .reader-single-view {
    padding: 4px;
    overflow: hidden;
  }
  .reader-stage {
    width: min(calc(100vw - 12px), calc((100vh - 60px) * (1440 / 2048)));
    height: auto;
    max-width: calc(100vw - 12px);
    max-height: calc(100vh - 60px);
    aspect-ratio: 1440 / 2048;
  }
  .reader-scroll-view {
    width: 100%;
    max-width: 100%;
    padding: 8px 4px 60px 4px;
    box-sizing: border-box;
    gap: 8px;
  }
  .scroll-page-wrap {
    width: 100%;
    max-width: 100%;
  }
  .scroll-page-img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Light Novel Reader */
  .ln-top-bar {
    height: 48px;
    padding: 0 8px;
    gap: 6px;
  }
  .ln-back-btn {
    padding: 6px 8px;
  }
  .ln-back-btn span {
    display: none;
  }
  .ln-series-title {
    display: none;
  }
  .ln-chapter-dropdown {
    max-width: 145px;
    font-size: 11.5px;
    height: 30px;
    padding: 0 18px 0 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ln-top-right {
    gap: 4px;
  }
  .ln-font-control {
    padding: 1px;
    gap: 1px;
  }
  .ln-font-btn {
    padding: 3px 6px;
    font-size: 11px;
  }
  .ln-reader-viewport {
    width: 100%;
    overflow-x: hidden;
  }
  .ln-content-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 20px 14px 75px 14px;
    box-sizing: border-box;
  }
  .ln-chapter-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
  }
  .ln-chapter-title {
    font-size: 20px;
    line-height: 1.35;
  }
  .ln-section-heading {
    font-size: 16px;
    margin: 28px 0 14px 0;
    gap: 10px;
  }
  .ln-text-para {
    font-size: 15.5px;
    line-height: 1.8;
    margin-bottom: 16px;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .ln-illustration-wrap {
    margin: 22px 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .ln-illustration-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .ln-next-chapter-btn {
    width: 100%;
    max-width: 320px;
    padding: 12px 14px;
    font-size: 13px;
  }
}



