@font-face {
	font-family: 'Heebo';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../fonts/heebo-300.ttf') format('truetype');
  }
  
  @font-face {
	font-family: 'Heebo';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/heebo-400.ttf') format('truetype');
  }
  
  @font-face {
	font-family: 'Heebo';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/heebo-500.ttf') format('truetype');
  }
  
  @font-face {
	font-family: 'Heebo';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/heebo-600.ttf') format('truetype');
  }
  
  @font-face {
	font-family: 'Heebo';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/heebo-700.ttf') format('truetype');
  }
  
  @font-face {
	font-family: 'Heebo';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('../fonts/heebo-800.ttf') format('truetype');
  }
  
  @font-face {
	font-family: 'Heebo';
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url('../fonts/heebo-900.ttf') format('truetype');
  }
  
  @font-face {
	font-family: 'Rubik';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/rubik-400.ttf') format('truetype');
  }
  
  @font-face {
	font-family: 'Rubik';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/rubik-500.ttf') format('truetype');
  }
  
  @font-face {
	font-family: 'Rubik';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/rubik-600.ttf') format('truetype');
  }
  
  @font-face {
	font-family: 'Rubik';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/rubik-700.ttf') format('truetype');
  }
  
  :root {
	  --radius-sm: 4px;
	  --radius-md: 8px;
	  --radius-lg: 16px;
	  --transition: 200ms ease-out;
	  --header-blur: 10px;
  }
  
  *, *::before, *::after {
	  box-sizing: border-box;
	  margin: 0;
	  padding: 0;
  }
  
  html {
	  scroll-behavior: smooth;
	  scrollbar-width: auto;
  }
  
  body {
	  font-family: 'Heebo', sans-serif;
	  background: var(--bg-primary);
	  color: var(--text-primary);
	  line-height: 1.6;
	  min-height: 100vh;
	  direction: rtl;
  }
  
  a {
	  color: var(--accent-secondary);
	  text-decoration: none;
	  transition: var(--transition);
  }
  
  a:hover {
	  color: var(--accent-primary);
  }
  
  ::selection {
	  background: var(--accent-primary);
	  color: white;
  }
  
  * {
	  scrollbar-width: thin;
	  scrollbar-color: var(--accent-primary) var(--bg-secondary);
  }
  
  input[type="datetime-local"], input[type="date"] {
	  direction: ltr;
  }
  
  .container {
	  max-width: 1200px;
	  margin: 0 auto;
	  padding: 0 24px;
  }
  
  .btn {
	  display: inline-flex;
	  align-items: center;
	  justify-content: center;
	  gap: 8px;
	  padding: 12px 24px;
	  border: none;
	  border-radius: var(--radius-sm);
	  font-family: inherit;
	  font-size: 14px;
	  font-weight: 600;
	  cursor: pointer;
	  transition: var(--transition);
	  text-decoration: none;
  }
  
  .btn-primary {
	  background: var(--accent-gradient);
	  color: white;
	  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
  }
  
  .btn-primary:hover {
	  transform: translateY(-2px);
	  box-shadow: 0 6px 20px rgba(157, 78, 221, 0.4);
	  color: white;
  }
  
  .btn-secondary {
	  background: transparent;
	  color: var(--accent-secondary);
	  border: 1px solid var(--accent-secondary);
  }
  
  .btn-secondary:hover {
	  background: rgba(0, 217, 255, 0.1);
	  color: var(--accent-primary);
  }
  
  .btn-danger {
	  background: var(--error);
	  color: white;
  }
  
  .btn-ghost {
	  background: transparent;
	  color: var(--text-secondary);
  }
  
  .btn-ghost:hover {
	  background: var(--bg-tertiary);
	  color: var(--text-primary);
  }
  
  .former-team-toggle {
	  margin: 0 auto;
	  width: fit-content;
  }
  .former-team-toggle .former-team-chevron {
	  transition: transform 0.3s ease;
  }
  .former-team-toggle.open .former-team-chevron {
	  transform: rotate(180deg);
  }
  
  .btn-magic {
	  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	  color: white;
	  border: none;
	  padding: 8px 16px;
	  font-size: 13px;
	  border-radius: var(--radius-sm);
	  cursor: pointer;
	  transition: all 0.3s ease;
	  font-weight: 600;
  }
  
  .btn-magic:hover {
	  transform: translateY(-2px);
	  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }
  
  .btn-magic:active {
	  transform: translateY(0);
  }
  
  .btn-sm {
	  padding: 8px 16px;
	  font-size: 13px;
  }
  
  .btn-lg {
	  padding: 16px 32px;
	  font-size: 16px;
  }
  
.header {
    position: sticky;
    top: 0;
    right: 0;
    left: 0;
    background: var(--header-bg);
    backdrop-filter: blur(var(--header-blur));
    border-bottom: 1px solid var(--border);
    z-index: 999;
    display: flex;
    flex-direction: column;
}
  
  .logged-in-topbar ~ .header {
	  top: 32px;
  }
  
  body.has-topbar .header {
	  top: 32px;
  }
  
.header-container {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 64px;
    gap: 24px;
    justify-content: space-between;
}
  
  .nav {
	  display: flex;
	  align-items: center;
	  gap: 8px;
  }
  
  .header-logo {
	  flex-shrink: 0;
	  order: 1;
  }
  
.header-logo-img {
    max-height: 40px;
    max-width: 150px;
    display: block;
}

.header-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    opacity: 1;
    background: var(--bg-primary);
}

.header-banner.contained {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.header-banner.fade-out {
    max-height: 0;
    opacity: 0;
}

.header-banner.hidden {
    display: none;
}

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

.header-banner.contained img {
    max-width: 1200px;
}

.logged-in-topbar {
	  position: sticky;
	  top: 0;
	  right: 0;
	  left: 0;
	  height: 32px;
	  background: var(--bg-secondary);
	  border-bottom: 1px solid var(--border);
	  z-index: 1000;
	  display: flex;
	  align-items: center;
	  justify-content: flex-start;
	  padding: 0 24px;
	  gap: 8px;
  }
  
  .logged-in-topbar .topbar-btn {
	  display: flex;
	  align-items: center;
	  gap: 6px;
	  padding: 4px 12px;
	  color: var(--text-secondary);
	  font-size: 13px;
	  font-weight: 500;
	  border-radius: var(--radius-sm);
	  transition: var(--transition);
	  cursor: pointer;
	  background: none;
	  border: none;
	  font-family: inherit;
  }
  
  .logged-in-topbar .topbar-btn:hover {
	  color: var(--text-primary);
	  background: var(--bg-tertiary);
  }
  
  .logged-in-topbar .topbar-btn svg {
	  width: 16px;
	  height: 16px;
  }
  
  .logged-in-topbar .topbar-btn.topbar-user {
	  gap: 8px;
  }
  
  .logged-in-topbar .topbar-avatar {
	  width: 20px;
	  height: 20px;
	  border-radius: 50%;
	  background: var(--accent-gradient);
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  font-size: 11px;
	  font-weight: 700;
	  color: white;
  }
  
  .logged-in-topbar .topbar-btn.topbar-user-name {
	  max-width: 150px;
	  overflow: hidden;
	  text-overflow: ellipsis;
	  white-space: nowrap;
  }
  
  .logged-in-topbar .topbar-badge {
	  background: var(--error);
	  color: white;
	  font-size: 10px;
	  font-weight: 700;
	  padding: 1px 5px;
	  border-radius: 10px;
	  min-width: 16px;
	  text-align: center;
  }
  
  .topbar-dropdown {
	  position: absolute;
	  top: 100%;
	  /*! right: auto; */
	  right: 0;
	  margin-top: 4px;
	  background: var(--bg-secondary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-md);
	  min-width: 140px;
	  overflow: hidden;
	  z-index: 1001;
  }
  
  .topbar-dropdown-trigger {
	  position: relative;
  }
  
  .topbar-dropdown-item {
	  display: flex;
	  align-items: center;
	  gap: 10px;
	  padding: 8px 16px;
	  color: var(--text-secondary);
	  font-size: 13px;
	  transition: var(--transition);
  }
  
  .topbar-dropdown-item svg {
	  width: 16px;
	  height: 16px;
	  flex-shrink: 0;
  }
  
  .topbar-dropdown-item:hover {
	  background: var(--bg-tertiary);
	  color: var(--text-primary);
  }
  
  .logo {
	  display: flex;
	  align-items: center;
	  gap: 12px;
	  font-size: 24px;
	  font-weight: 800;
	  background: var(--accent-gradient);
	  -webkit-background-clip: text;
	  -webkit-text-fill-color: transparent;
	  background-clip: text;
  }
  
  .logo-icon {
	  width: 40px;
	  height: 40px;
	  background: var(--accent-gradient);
	  border-radius: var(--radius-md);
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  font-size: 20px;
	  font-weight: 900;
	  color: white;
  }
  
  .header-logo-img {
	  max-height: 40px;
	  max-width: 150px;
	  border-radius: var(--radius-sm);
  }
  
  .nav {
	  display: flex;
	  align-items: center;
	  gap: 8px;
  }
  
  .nav-btn-login {
	  margin-right: auto;
  }
  
  .nav-link {
	  display: flex;
	  align-items: center;
	  gap: 8px;
	  padding: 8px 16px;
	  color: var(--text-secondary);
	  font-weight: 500;
	  border-radius: var(--radius-sm);
	  transition: var(--transition);
  }
  
  .nav-link svg {
	  flex-shrink: 0;
	  transition: var(--transition);
  }
  
  .nav-link:hover {
	  color: var(--text-primary);
	  background: var(--bg-tertiary);
  }
  
  .nav-link:hover svg {
	  stroke: var(--accent-secondary);
  }
  
  .nav-link.active {
	  color: var(--accent-secondary);
	  background: rgba(0, 217, 255, 0.1);
	  position: relative;
  }
  
  .nav-link.active::after {
	  content: '';
	  position: absolute;
	  bottom: 0;
	  left: 50%;
	  transform: translateX(-50%);
	  width: 20px;
	  height: 3px;
	  background: var(--accent-secondary);
	  border-radius: 2px;
  }
  
  .nav-link.active svg {
	  stroke: var(--accent-secondary);
  }
  
  .header-actions {
	  display: flex;
	  align-items: center;
	  gap: 16px;
  }
  
  .user-menu {
	  position: relative;
  }
  
  .user-avatar {
	  width: 40px;
	  height: 40px;
	  border-radius: 50%;
	  background: var(--accent-gradient);
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  font-weight: 700;
	  cursor: pointer;
	  border: 2px solid transparent;
	  transition: var(--transition);
	  overflow: hidden;
  }
  
  .user-avatar:hover {
	  border-color: var(--accent-secondary);
  }
  
  .user-dropdown {
	  position: absolute;
	  top: 100%;
	  left: 0;
	  right: 0;
	  margin-top: 8px;
	  background: var(--bg-secondary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-md);
	  padding: 8px;
	  min-width: 180px;
	  opacity: 0;
	  visibility: hidden;
	  transform: translateY(-10px);
	  transition: var(--transition);
	  box-shadow: var(--shadow);
  }
  
  .user-menu:hover .user-dropdown,
  .user-dropdown.active {
	  opacity: 1;
	  visibility: visible;
	  transform: translateY(0);
  }
  
  .dropdown-item {
	  display: block;
	  padding: 10px 12px;
	  color: var(--text-secondary);
	  border-radius: var(--radius-sm);
	  transition: var(--transition);
  }
  
  .dropdown-item:hover {
	  background: var(--bg-tertiary);
	  color: var(--text-primary);
  }
  
  .dropdown-divider {
	  height: 1px;
	  background: var(--border);
	  margin: 8px 0;
  }
  
  .main {
	  /*! margin-top: 64px; */
	  min-height: calc(100vh - 64px);
  }
  
  body.has-topbar .main {
	  /*! margin-top: 96px; */
	  min-height: calc(100vh - 96px);
  }
  
  .page {
	  padding: 48px 0;
	  animation: fadeIn 300ms ease-out;
  }
  
  @keyframes fadeIn {
	  from {
		  opacity: 0;
		  transform: translateY(10px);
	  }
	  to {
		  opacity: 1;
		  transform: translateY(0);
	  }
  }
  
  .hero {
	  padding: 80px 0;
	  background: linear-gradient(180deg, rgba(157, 78, 221, 0.1) 0%, transparent 100%);
	  text-align: center;
  }
  
  .hero h1 {
	  font-size: 48px;
	  font-weight: 900;
	  margin-bottom: 16px;
	  background: var(--accent-gradient);
	  -webkit-background-clip: text;
	  -webkit-text-fill-color: transparent;
	  background-clip: text;
  }
  
  .hero p {
	  font-size: 18px;
	  color: var(--text-secondary);
	  max-width: 600px;
	  margin: 0 auto 32px;
  }
  
  .section {
	  padding: 24px 0;
  }
  
  .section-header {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  margin-bottom: 32px;
  }
  
  .section-title {
	  font-size: 28px;
	  font-weight: 700;
	  position: relative;
	  display: inline-block;
	  margin-bottom: 22px;
  }
  
  .section-title::after {
	  content: '';
	  position: absolute;
	  bottom: -6px;
	  right: 0;
	  width: 100%;
	  height: 3px;
	  background: var(--accent-gradient);
	  border-radius: 2px;
  }
  
  .grid {
	  display: grid;
	  gap: 24px;
  }
  
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  
  @media (max-width: 1024px) {
	  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  }
  
  @media (max-width: 768px) {
	  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  }
  
  @media (max-width: 480px) {
	  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
	  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  }
  
  .schedule-home-grid {
	  display: flex;
	  gap: 16px;
	  overflow-x: auto;
	  padding-bottom: 8px;
	  scrollbar-width: thin;
	  scrollbar-color: var(--accent-primary) var(--bg-tertiary);
  }
  
  .schedule-home-grid::-webkit-scrollbar {
	  height: 6px;
  }
  
  .schedule-home-grid::-webkit-scrollbar-track {
	  background: var(--bg-tertiary);
	  border-radius: 3px;
  }
  
  .schedule-home-grid::-webkit-scrollbar-thumb {
	  background: var(--accent-primary);
	  border-radius: 3px;
  }
  
  .schedule-home-card {
	  min-width: 200px;
	  max-width: 200px;
	  background: var(--bg-secondary);
	  border-radius: var(--radius-md);
	  overflow: hidden;
	  cursor: pointer;
	  transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .schedule-home-card:hover {
	  transform: translateY(-4px);
	  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  
  .schedule-home-logo {
	  width: 100%;
	  height: 110px;
	  background: var(--bg-tertiary);
	  overflow: hidden;
  }
  
  .schedule-home-logo img {
	  width: 100%;
	  height: 100%;
	  object-fit: contain;
  }
  
  .schedule-home-info {
	  padding: 12px;
  }
  
  .schedule-home-title {
	  font-size: 14px;
	  font-weight: 700;
	  margin: 0 0 4px;
	  white-space: nowrap;
	  overflow: hidden;
	  text-overflow: ellipsis;
  }
  
  .schedule-home-episode {
	  font-size: 13px;
	  color: var(--accent-primary);
	  font-weight: 600;
  }
  
  .schedule-home-date {
	  font-size: 12px;
	  color: var(--text-muted);
	  margin-top: 4px;
  }
  
  .schedule-home-progress {
	  margin-top: 8px;
  }
  
  .schedule-home-progress .progress-text {
	  font-size: 11px;
	  background: var(--accent-primary);
	  color: white;
	  padding: 3px 10px;
	  border-radius: 12px;
	  display: inline-block;
	  margin-bottom: 6px;
  }
  
  .schedule-home-progress .progress-bar {
	  width: 100%;
	  height: 4px;
	  background: var(--bg-tertiary);
	  border-radius: 2px;
	  overflow: hidden;
  }
  
  .schedule-home-progress .progress-fill {
	  height: 100%;
	  background: var(--accent-gradient);
	  border-radius: 2px;
	  transition: width 0.3s ease;
  }
  
  .card {
	  background: var(--bg-secondary);
	  border-radius: var(--radius-md);
	  overflow: hidden;
	  border: 1px solid var(--border);
	  transition: var(--transition);
  }
  
  .card:hover {
	  transform: translateY(-4px);
	  border-color: var(--accent-primary);
	  box-shadow: 0 8px 30px rgba(157, 78, 221, 0.2);
  }
  
  .card-image {
	  position: relative;
	  aspect-ratio: 7 / 10;
	  background: var(--bg-tertiary);
	  overflow: hidden;
  }
  
  .card-image img,
  .reader-page img {
	  max-width: 100%;
	  object-fit: cover;
	  width: 100%;
	  height: 100%;
  }
  
  .poster-missing {
	  position: absolute;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  display: none;
	  align-items: center;
	  justify-content: center;
	  color: var(--text-muted);
  }
  
  .image-missing {
	  position: absolute;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  display: none;
	  align-items: center;
	  justify-content: center;
	  color: var(--text-muted);
  }
  
  .card:hover .card-image img {
	  transform: scale(1.05);
  }
  
  .card-badge {
	  position: absolute;
	  top: 12px;
	  right: 12px;
	  padding: 4px 10px;
	  font-size: 12px;
	  font-weight: 600;
	  border-radius: var(--radius-sm);
	  backdrop-filter: blur(10px);
	  color: var(--accent-secondary);
	  background: #00000087;
  }
  
  #projects-container {
	  display: flex;
	  flex-direction: column;
	  gap: 30px;
  }
  
.badge-ongoing {
  background: rgba(157, 78, 221, 0.9);
}

.badge-completed {
  background: rgba(0, 255, 136, 0.9);
}

.badge-hiatus {
  background: rgba(255, 170, 0, 0.9);
}

.badge-dropped {
  background: rgba(255, 68, 102, 0.9);
}

.badge-anime {
  background: rgba(255, 68, 102, 0.9);
  background: #002734;
  color: var(--accent-primary);
}

.badge-manga {
  background: rgba(0, 217, 255, 0.9);
  background: #302144;
  color: var(--accent-secondary);
}

.badge-movie {
  background: rgba(255, 200, 0, 0.9);
  background: #43311e;
  color: #f39c12;
}

.badge-ova {
  background: rgba(255, 200, 0, 0.9);
  background: #43311e;
  color: #f39c12;
}

.badge-anime {
  background: rgba(25, 149, 231, 0.6);
  color: #fff;
  border: 1px solid rgba(31, 117, 175, 0.3);
  backdrop-filter: blur(20px);
}

.badge-manga {
  background: rgba(231, 76, 60, 0.3);
  color: #fff;
  border: 1px solid rgba(231, 76, 60, 0.3);
  backdrop-filter: blur(20px);
}

.badge-movie {
  background: rgba(225, 151, 37, 0.6);
  color: #fff;
  border: 1px solid rgba(184, 111, 0, 0.3);
  backdrop-filter: blur(20px);
}

.badge-ova {
  background: rgba(225, 151, 37, 0.6);
  color: #fff;
  border: 1px solid rgba(184, 111, 0, 0.3);
  backdrop-filter: blur(20px);
}

.badge-op {
  background: rgba(9, 102, 37, 0.9);
}

.badge-ed {
  background: rgba(157, 78, 221, 0.9);
}

.badge-filler {
  background: rgba(255, 170, 0, 0.9);
  color: #000;
  font-weight: 600;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.badge-partial {
  background: rgba(255, 140, 0, 0.6);
  color: #fff;
  font-weight: 600;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.badge-unavailable {
  background: rgba(255, 68, 102, 0.9);
  color: #fff;
  font-weight: 600;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
}
  
  .card-content {
	  padding: 16px;
  }
  
  .card-title {
	  font-size: 16px;
	  font-weight: 600;
	  margin-bottom: 8px;
	  line-height: 1.4;
	  direction: rtl;
	  text-align: right;
	  display: -webkit-box;
	  -webkit-line-clamp: 2;
	  -webkit-box-orient: vertical;
	  overflow: hidden;
  }
  
  .card-meta-enname {
	  direction: ltr;
	  text-align: left;
	  align-self: flex-start;
	  width: 100%;
  }
  
  .card-meta {
	  display: flex;
	  /*! align-items: center; */
	  /*! gap: 12px; */
	  font-size: 13px;
	  color: var(--text-secondary);
	  flex-direction: column;
	  align-items: flex-start;
  }
  
.avatar-sm {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.default-avatar {
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-tertiary, #e2e8f0);
	border: 1px solid var(--accent-primary, #9b59b6);
	flex-shrink: 0;
	overflow: hidden;
}

.default-avatar svg {
	width: 50%;
	height: 50%;
}

.blog-card .card-meta {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	padding-top: 16px;
	margin-top: 16px;
	border-top: 1px solid var(--border);
}

.blog-card .card-meta .avatar-sm,
.blog-card .card-meta .avatar-placeholder {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	flex-shrink: 0;
}

.blog-card .card-meta .avatar-sm {
	object-fit: cover;
	border: 2px solid var(--accent-primary);
}

.blog-card .card-meta .avatar-placeholder {
	background: var(--accent-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
}

.blog-card .card-meta .author-name {
	font-weight: 600;
	color: var(--text-primary);
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.author-inline-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.author-inline-chip .avatar-xs,
.author-inline-chip .avatar-placeholder.avatar-xs {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	flex-shrink: 0;
}

.author-inline-chip .avatar-xs {
	object-fit: cover;
	border: 1.5px solid var(--accent-primary);
}

.author-inline-chip .avatar-placeholder {
	background: var(--accent-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
}

.blog-post-author .author-inline-chip + .author-inline-chip::before {
	content: '·';
	color: var(--text-secondary);
	margin-inline-start: 2px;
	font-size: 1.2em;
}

.author-quote-block {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	margin: 20px 0;
	background: var(--bg-secondary, rgba(255,255,255,0.05));
	border-right: 4px solid var(--accent-primary);
	border-radius: 8px;
}

.author-quote-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.author-quote-avatar-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	background: var(--accent-primary);
	color: #fff;
}

.author-quote-content {
	flex: 1;
	min-width: 0;
}

.author-quote-name {
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 4px;
}

.author-quote-text {
	font-style: italic;
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.6;
}

/* Admin editor preview styles */
.author-quote-shortcode-placeholder {
	display: block;
	cursor: default;
	user-select: none;
	margin: 16px 0;
}

.author-quote-preview {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	margin: 4px 0;
	background: var(--bg-tertiary, #f5f5f5);
	border-right: 4px solid var(--accent-primary);
	border-radius: 8px;
	pointer-events: none;
}

.author-quote-preview-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.author-quote-preview-avatar-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	background: var(--accent-primary);
	color: #fff;
}

/* Author quote modal user list */
.author-quote-users {
	max-height: 240px;
	overflow-y: auto;
	margin-top: 8px;
}

.author-quote-user-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 12px;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 6px;
	text-align: right;
	font-size: 14px;
	color: inherit;
	transition: background 0.15s;
}

.author-quote-user-btn:hover {
	background: var(--bg-tertiary, rgba(0,0,0,0.05));
}

.author-quote-user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.author-quote-user-avatar-placeholder {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--accent-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	flex-shrink: 0;
}

.author-quote-user-name {
	font-weight: 500;
}

.author-quote-user-btn-selected {
	background: var(--bg-tertiary, rgba(0,0,0,0.08));
	font-weight: 600;
}

.author-quote-check {
	margin-inline-start: auto;
	color: var(--accent-primary);
	display: flex;
	align-items: center;
}

.author-quote-check svg {
	width: 16px;
	height: 16px;
}

.blog-card .card-meta .post-date {
	color: var(--text-muted);
	font-size: 12px;
	margin-right: auto;
	display: flex;
	align-items: center;
	gap: 4px;
}
/*
.blog-card .card-meta .post-date::before {
	content: '';
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--text-muted);
	flex-shrink: 0;
}
  */
  .card-meta span {
	  display: flex;
	  /*! text-align: center; */
  }
  
  .blog-card .card-image {
	  position: relative;
	  aspect-ratio: 16/9;
	  overflow: hidden;
	  width: 100%;
	  display: block;
  }
  
  .blog-card .card-image img {
	  width: 100%;
	  height: 100%;
	  object-fit: cover;
	  /*! max-height: 200px; */
  }
  
  .blog-card .card-content {
	  padding: 20px;
  }
  
  .blog-card .card-title {
	  font-size: 20px;
	  -webkit-line-clamp: 1;
  }

  @media (min-width: 768px) {
    .blog-card-big {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      margin-bottom: 16px;
    }

    .blog-card-big .card-image {
      aspect-ratio: 16/9;
      height: 100%;
    }

    .blog-card-big .card-content {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 32px;
      /*! background: var(--bg-primary); */
      border-radius: 0 var(--radius) var(--radius) 0;
      border: 1px solid var(--border);
      border-left: none;
      border-right: none;
    }

    .blog-card-big .card-title {
      font-size: 28px;
      -webkit-line-clamp: 2;
      margin-bottom: 12px;
    }

    .blog-card-big .post-excerpt {
      font-size: 16px;
      -webkit-line-clamp: 4;
      margin-bottom: 20px;
    }
  }
  
  .media-meta {
	  color: var(--text-secondary);
	  font-size: 14px;
  }
  
  .post-excerpt {
	  color: var(--text-secondary);
	  font-size: 14px;
	  line-height: 1.6;
	  margin-bottom: 16px;
	  display: -webkit-box;
	  -webkit-line-clamp: 3;
	  -webkit-box-orient: vertical;
	  overflow: hidden;
  }
  
  .blog-list {
	  display: flex;
	  flex-direction: column;
	  gap: 32px;
	  margin-top: 32px;
  }
  
  .blog-post-card {
	  display: grid;
	  grid-template-columns: 340px 1fr;
	  gap: 0;
	  background: var(--card-bg);
	  border-radius: 16px;
	  overflow: hidden;
	  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
	  transition: all 0.3s ease;
	  border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .blog-post-card:hover {
	  transform: translateY(-4px);
	  box-shadow: 0 12px 40px rgba(157, 78, 221, 0.2);
	  border-color: rgba(157, 78, 221, 0.3);
  }
  
  .blog-post-image {
	  display: block;
	  overflow: hidden;
	  position: relative;
	  background: var(--bg-secondary);
  }
  
  .blog-post-image::after {
	  content: '';
	  position: absolute;
	  inset: 0;
	  background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, transparent 50%);
	  opacity: 0;
	  transition: opacity 0.3s ease;
  }
  
  .blog-post-card:hover .blog-post-image::after {
	  opacity: 1;
  }
  
  .blog-post-image img {
	  width: 100%;
	  height: 100%;
	  object-fit: cover;
	  transition: transform 0.4s ease;
	  /*! height: 280px; */
  }
  
  .blog-post-card:hover .blog-post-image img {
	  transform: scale(1.08);
  }
  
  .blog-post-content {
	  padding: 28px 32px;
	  display: flex;
	  flex-direction: column;
	  justify-content: center;
	  background: var(--bg-primary);
  }
  
  .blog-post-title {
	  font-size: 22px;
	  font-weight: 700;
	  margin-bottom: 16px;
	  color: var(--text-primary);
	  transition: color 0.2s;
	  line-height: 1.4;
  }
  
  .blog-post-card:hover .blog-post-title {
	  color: var(--accent-secondary);
  }
  
  .blog-post-meta {
	  display: flex;
	  align-items: center;
	  gap: 16px;
	  margin-bottom: 20px;
	  flex-wrap: wrap;
  }
  
  .blog-post-author {
	  display: flex;
	  align-items: center;
	  gap: 10px;
  }
  
  .author-avatar {
	  width: 32px;
	  height: 32px;
	  border-radius: 50%;
	  object-fit: cover;
	  border: 2px solid var(--accent-primary);
	  box-shadow: 0 2px 8px rgba(157, 78, 221, 0.3);
  }
  
  .author-name {
	  color: var(--text-primary);
	  font-weight: 500;
	  font-size: 14px;
  }
  
  .meta-divider {
	  color: var(--text-muted);
  }
  
  .post-date {
	  display: flex;
	  align-items: center;
	  gap: 6px;
	  color: var(--text-secondary);
	  font-size: 13px;
  }
  
  .post-date svg {
	  opacity: 0.6;
  }
  
  .blog-post-excerpt {
	  color: var(--text-secondary);
	  line-height: 1.8;
	  margin-bottom: 20px;
	  flex-grow: 1;
	  font-size: 15px;
	  display: -webkit-box;
	  -webkit-line-clamp: 3;
	  -webkit-box-orient: vertical;
	  overflow: hidden;
  }
  
  .blog-post-read-more {
	  display: inline-flex;
	  align-items: center;
	  gap: 8px;
	  color: var(--accent-secondary);
	  font-weight: 600;
	  font-size: 14px;
	  transition: all 0.2s ease;
	  align-self: flex-start;
  }
  
  .blog-post-read-more:hover {
	  gap: 12px;
	  color: var(--accent-primary);
  }
  
  .blog-post-read-more svg {
	  transition: transform 0.2s ease;
  }
  
  .blog-post-read-more:hover svg {
	  transform: translateX(-4px);
  }
  
  .pagination {
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  gap: 8px;
	  margin-top: 24px;
	  padding: 20px;
	  background: var(--bg-primary);
	  border-radius: 10px;
	  flex-wrap: wrap;
  }
  
  .pagination-btn {
	  display: inline-flex;
	  align-items: center;
	  justify-content: center;
	  min-width: 44px;
	  height: 44px;
	  padding: 0 16px;
	  background: var(--card-bg);
	  color: var(--text-primary);
	  border-radius: 10px;
	  font-size: 14px;
	  transition: all 0.2s;
	  text-decoration: none;
	  border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .pagination-btn:hover {
	  background: var(--accent-primary);
	  color: white;
	  border-color: var(--accent-primary);
	  transform: translateY(-2px);
  }
  
  .pagination-btn.active {
	  background: var(--accent-primary);
	  color: white;
	  border-color: var(--accent-primary);
	  font-weight: 600;
  }
  
  .pagination-ellipsis {
	  color: var(--text-secondary);
	  padding: 0 12px;
  }
  
  .blog-list {
	  display: flex;
	  flex-direction: column;
	  gap: 32px;
	  margin-bottom: 48px;
  }
  
  @media (max-width: 768px) {
	  .blog-post-card {
		  grid-template-columns: 1fr;
	  }
	  
	  .blog-post-image {
		  height: 220px;
	  }
	  
	  .blog-post-image img {
		  min-height: 220px;
	  }
	  
	  .blog-post-content {
		  padding: 24px;
	  }
  }
  
  .post-content {
	  font-size: 17px;
	  line-height: 1.9;
	  display: flow-root;
  }
  
  .post-content p {
	  margin-bottom: 20px;
  }
  
  .post-content h2, .post-content h3 {
	  margin: 32px 0 20px;
	  font-weight: 700;
  }
  
  .post-content ul, .post-content ol {
	  margin: 20px 0;
	  padding-right: 24px;
  }
  
  .post-content li {
	  margin-bottom: 10px;
  }
  
  .post-content img {
	  max-width: 100%;
	  height: auto;
	  border-radius: var(--radius-md);
	  margin: 24px auto;
	  clear: both;
	  clear: both;
	  display: block;
  }
  
  .gallery-image {
	  border-radius: var(--radius-md);
	  display: block;
	  transition: transform 0.2s;
  }
  
  .gallery-image.align-center {
	  margin-left: auto;
	  margin-right: auto;
  }
  
  .gallery-image.align-left {
	  float: left;
  }
  
  .gallery-image.align-right {
	  float: right;
  }
  
  .gallery-image-link {
	  /*! display: inline-block; */
	  /*! line-height: 0; */
  }
  
  .gallery-image-link:hover .gallery-image {
	  opacity: 0.85;
  }
  
  /* Captioned gallery images are wrapped in a <figure>: the 24px spacing moves
     from the img (which has margin:24px auto via .post-content img) onto the
     figure, so the caption sits flush against the image. */
  .post-content figure.gallery-image {
	  margin: 24px 0;
	  clear: both;
  }
  
  .post-content figure.gallery-image.align-center {
	  margin-left: auto;
	  margin-right: auto;
  }
  
  .post-content figure.gallery-image img.gallery-image {
	  margin: 0;
	  border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  
  .gallery-image-caption {
	  font-size: 0.85rem;
	  color: #fff;
	  text-align: center;
	  padding: 10px 14px 12px;
	  line-height: 1.5;
	  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.78));
	  border-radius: 0 0 var(--radius-md) var(--radius-md);
	  font-weight: 500;
	  letter-spacing: 0.02em;
	  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
	  background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%);
	  border: 1px solid rgba(157, 78, 221, 0.2);
	  border-top: 0;
  }
  
  .clearfix::after {
	  content: '';
	  display: table;
	  clear: both;
  }
  
  .single-post {
	  animation: fadeInUp 0.5s ease;
  }
  
  @keyframes fadeInUp {
	  from {
		  opacity: 0;
		  transform: translateY(20px);
	  }
	  to {
		  opacity: 1;
		  transform: translateY(0);
	  }
  }
  
  .single-post-hero {
	  margin: 0 -32px 32px -32px;
	  overflow: hidden;
	  border-radius: 16px 16px 0 0;
  }
  
  .single-post-hero img {
	  width: 100%;
	  max-height: 500px;
	  object-fit: cover;
  }
  
  .single-post-header {
	  margin-bottom: 32px;
  }
  
  .single-post-title {
	  font-size: 42px;
	  font-weight: 800;
	  line-height: 1.3;
	  margin-bottom: 24px;
	  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
	  -webkit-background-clip: text;
	  -webkit-text-fill-color: transparent;
	  background-clip: text;
  }
  
  .single-post-meta {
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	  padding: 20px 24px;
	  background: var(--card-bg);
	  border-radius: 12px;
	  border: 1px solid rgba(255, 255, 255, 0.05);
	  flex-wrap: wrap;
	  gap: 16px;
  }
  
  .single-post-author {
	  display: flex;
	  align-items: center;
	  gap: 14px;
  }
  
  .author-avatar-lg {
	  width: 48px;
	  height: 48px;
	  border-radius: 50%;
	  object-fit: cover;
	  border: 3px solid var(--accent-primary);
	  box-shadow: 0 4px 12px rgba(157, 78, 221, 0.4);
  }
  
  .author-info {
	  display: flex;
	  flex-direction: column;
	  gap: 2px;
  }
  
  .author-label {
	  font-size: 12px;
	  color: var(--text-muted);
	  text-transform: uppercase;
	  letter-spacing: 0.5px;
  }
  
  .author-name-lg {
	  font-size: 16px;
	  font-weight: 600;
	  color: var(--text-primary);
  }
  
  .single-post-stats {
	  display: flex;
	  gap: 24px;
  }
  
  .post-stat {
	  display: flex;
	  align-items: center;
	  gap: 8px;
	  color: var(--text-secondary);
	  font-size: 14px;
  }
  
  .post-stat svg {
	  opacity: 0.6;
  }
  
  .single-post-tags {
	  display: flex;
	  flex-wrap: wrap;
	  gap: 10px;
	  margin-bottom: 32px;
  }
  
  .single-post-categories {
	  display: flex;
	  flex-wrap: wrap;
	  gap: 10px;
	  margin-bottom: 16px;
  }
  
  .post-category {
	  padding: 8px 16px;
	  background: rgba(0, 217, 255, 0.15);
	  color: var(--accent-primary);
	  border-radius: 20px;
	  font-size: 13px;
	  font-weight: 500;
	  border: 1px solid rgba(0, 217, 255, 0.3);
	  transition: all 0.2s ease;
	  text-decoration: none;
  }
  
  .post-category:hover {
	  background: rgba(0, 217, 255, 0.25);
	  transform: translateY(-2px);
  }
  
  .post-tag {
	  padding: 8px 16px;
	  background: rgba(157, 78, 221, 0.15);
	  color: var(--accent-secondary);
	  border-radius: 20px;
	  font-size: 13px;
	  font-weight: 500;
	  border: 1px solid rgba(157, 78, 221, 0.3);
	  transition: all 0.2s ease;
  }
  
  .post-tag:hover {
	  background: rgba(157, 78, 221, 0.25);
	  transform: translateY(-2px);
  }
  
  .single-post-content {
	  margin-bottom: 48px;
  }
  
  .single-post-footer {
	  padding-top: 32px;
	  border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .single-post-author-card {
	  display: flex;
	  align-items: center;
	  gap: 20px;
	  padding: 24px;
	  background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%);
	  border-radius: 16px;
	  border: 1px solid rgba(157, 78, 221, 0.2);
  }
  
  .author-avatar-xl {
	  width: 72px;
	  height: 72px;
	  border-radius: 50%;
	  object-fit: cover;
	  border: 3px solid var(--accent-primary);
	  box-shadow: 0 6px 20px rgba(157, 78, 221, 0.4);
  }
  
  .author-card-info {
	  display: flex;
	  flex-direction: column;
	  gap: 4px;
  }
  
  .author-card-label {
	  font-size: 13px;
	  color: var(--text-muted);
	  text-transform: uppercase;
	  letter-spacing: 0.5px;
  }
  
  .author-card-name {
	  font-size: 20px;
	  font-weight: 700;
	  color: var(--text-primary);
  }
  
  .author-card-role {
	  display: inline-block;
	  font-size: 12px;
	  color: var(--accent);
	  font-weight: 600;
	  margin-top: 4px;
	  text-transform: uppercase;
	  letter-spacing: 0.5px;
  }
  
  .author-card-bio {
	  font-size: 14px;
	  color: var(--text-secondary);
	  margin-top: 8px;
	  line-height: 1.5;
  }
  
  @media (max-width: 768px) {
	  .single-post-title {
		  font-size: 28px;
	  }
	  
	  .single-post-hero {
		  margin: -20px -20px 24px;
		  border-radius: 12px 12px 0 0;
	  }
	  
	  .single-post-meta {
		  flex-direction: column;
		  align-items: flex-start;
	  }
	  
	  .single-post-stats {
		  flex-direction: column;
		  gap: 12px;
	  }
	  
	  .single-post-author-card {
		  flex-direction: column;
		  text-align: center;
	  }
  }
  
  .post-content blockquote {
	  border-right: 4px solid var(--accent-primary);
	  padding-right: 16px;
	  margin: 24px 0;
	  color: var(--text-secondary);
	  font-style: italic;
  }
  
  .project-header {
	  display: grid;
	  grid-template-columns: 300px 1fr;
	  gap: 48px;
	  margin-bottom: 48px;
	  min-width: 0;
	  max-width: 100%;
	  overflow-x: hidden;
  }
  
  @media (max-width: 768px) {
	  .project-header {
		  grid-template-columns: 1fr;
		  min-width: 0;
		  max-width: 100%;
	  }
  }
  
  .series-projects-block {
	  grid-column: 1 / -1;
	  min-width: 0;
	  max-width: 100%;
	  width: 100%;
	  overflow: hidden;
	  margin-top: 8px;
  }

  .project-poster,
  .project-info {
	  min-width: 0;
  }
  
  .series-projects-title {
	  font-size: 22px;
	  font-weight: 800;
	  margin-bottom: 16px;
  }
  
  .series-projects-grid {
	  display: flex;
	  flex-wrap: nowrap;
	  gap: 16px;
	  max-width: calc(100vw - 48px);
	  min-width: 0;
	  width: 100%;
	  overflow-x: auto;
	  padding-bottom: 8px;
	  scrollbar-width: thin;
	  scrollbar-color: var(--accent-primary) var(--bg-tertiary);
  }
  
  .series-projects-grid::-webkit-scrollbar {
	  height: 6px;
  }
  
  .series-projects-grid::-webkit-scrollbar-thumb {
	  background: var(--accent-primary);
	  border-radius: 3px;
  }
  
  .series-projects-grid::-webkit-scrollbar-track {
	  background: var(--bg-tertiary);
  }
  
  .series-project-card {
	  flex: 0 0 160px;
	  width: 160px;
	  max-width: 100%;
  }
  
  .series-project-card.is-current {
	  border-color: var(--accent-primary);
	  box-shadow: 0 0 0 2px var(--accent-primary);
	  overflow: visible;
  }
  
  .series-project-card.is-current:hover {
	  transform: none;
  }
  
  .series-card {
	  display: block;
	  width: 100%;
	  padding: 0;
	  margin: 0;
	  text-align: left;
	  font: inherit;
	  color: inherit;
	  cursor: pointer;
  }
  
  .series-card .card-content {
	  text-align: left;
  }
  
  .series-detail {
	  display: none;
	  margin-top: 40px;
  }
  
  .series-detail.open {
	  display: block;
  }
  
  .series-detail-header {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  margin-bottom: 24px;
	  padding-bottom: 16px;
	  border-bottom: 1px solid var(--border);
  }
  
  .series-detail-header h2 {
	  font-size: 22px;
	  font-weight: 800;
  }
  
  .project-poster {
	  position: relative;
	  aspect-ratio: 7 / 10;
	  border-radius: var(--radius-lg);
	  overflow: hidden;
	  box-shadow: var(--shadow);
  }
  
  .project-poster img {
	  width: 100%;
	  height: 100%;
	  object-fit: cover;
  }
  
  .project-logo {
	  /*! margin-bottom: 16px; */
	  float: left;
  }
  
  .project-logo img {
	  max-height: 80px;
	  max-width: 100%;
	  height: auto;
	  object-fit: contain;
  }
  
  .project-info h1 {
	  font-size: 36px;
	  font-weight: 800;
	  margin-bottom: 8px;
  }
  
  .project-info .english-name {
	  font-size: 18px;
	  color: var(--text-secondary);
	  margin-bottom: 24px;
  }
  
  .project-meta {
	  display: grid;
	  grid-template-columns: repeat(2, 1fr);
	  gap: 16px;
	  margin-bottom: 24px;
  }
  
  .meta-item {
	  padding: 16px;
	  background: var(--bg-secondary);
	  border-radius: var(--radius-md);
	  border: 1px solid var(--border);
  }
  
  .meta-item .label {
	  font-size: 12px;
	  color: var(--text-muted);
	  text-transform: uppercase;
	  letter-spacing: 1px;
	  margin-bottom: 4px;
  }
  
  .meta-item .value {
	  font-size: 16px;
	  font-weight: 600;
  }
  
  .genres {
	  display: flex;
	  flex-wrap: wrap;
	  gap: 8px;
	  margin-bottom: 24px;
  }
  
  .genre-tag {
	  padding: 6px 14px;
	  background: var(--bg-tertiary);
	  border-radius: 20px;
	  font-size: 13px;
	  color: var(--text-secondary);
	  transition: var(--transition);
  }
  
  .genre-tag:hover {
	  background: var(--accent-primary);
	  color: white;
  }
  
  .project-actions {
	  display: flex;
	  gap: 12px;
	  flex-wrap: wrap;
  }
  
  .project-summary {
	  margin-top: 32px;
	  padding: 24px;
	  background: var(--bg-secondary);
	  border-radius: var(--radius-md);
	  border: 1px solid var(--border);
  }
  
  .project-summary h3 {
	  font-size: 18px;
	  margin-bottom: 16px;
	  color: var(--accent-secondary);
  }
  
.project-summary p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.project-notes {
    margin-top: 24px;
}

.project-notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-note-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.project-note-item:hover {
    border-color: var(--accent-primary);
}

.note-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--error);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
}

.note-text {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14px;
    white-space: pre-wrap;
}
  
  .tabs {
	  display: flex;
	  gap: 8px;
	  margin-bottom: 24px;
	  border-bottom: 1px solid var(--border);
	  padding-bottom: 16px;
  }
  
  .tab {
	  padding: 10px 20px;
	  background: transparent;
	  border: none;
	  color: var(--text-secondary);
	  font-family: inherit;
	  font-size: 14px;
	  font-weight: 600;
	  cursor: pointer;
	  border-radius: var(--radius-sm);
	  transition: var(--transition);
  }
  
  .tab:hover {
	  background: var(--bg-tertiary);
	  color: var(--text-primary);
  }
  
  .tab.active {
	  background: var(--accent-gradient);
	  color: white;
  }
  
  .episode-list {
	  display: grid;
	  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	  gap: 16px;
  }
  
  .episode-card {
	  background: var(--bg-secondary);
	  border-radius: var(--radius-md);
	  overflow: hidden;
	  border: 1px solid var(--border);
	  transition: var(--transition);
	  cursor: pointer;
  }
  
  .episode-card:hover {
	  border-color: var(--accent-primary);
	  transform: translateY(-2px);
  }
  
  .episode-card.unavailable {
	  opacity: 0.5;
	  cursor: not-allowed;
  }
  
  .episode-thumbnail {
	  aspect-ratio: 16/9;
	  background: var(--bg-tertiary);
	  position: relative;
  }
  
  .episode-thumbnail img {
	  width: 100%;
	  height: 100%;
	  object-fit: cover;
  }
  
  .episode-number {
	  position: absolute;
	  bottom: 8px;
	  right: 8px;
	  padding: 4px 10px;
	  background: rgba(0, 0, 0, 0.8);
	  border-radius: var(--radius-sm);
	  font-size: 14px;
	  font-weight: 700;
  }
  
  .episode-info {
	  padding: 12px;
  }
  
  .episode-title {
	  font-size: 14px;
	  font-weight: 600;
	  margin-bottom: 4px;
	  white-space: nowrap;
	  overflow: hidden;
	  text-overflow: ellipsis;
  }
  
  .episode-meta {
	  display: flex;
	  align-items: center;
	  gap: 8px;
	  font-size: 12px;
	  color: var(--text-muted);
  }
  
  .watch-page {
	  display: grid;
	  grid-template-columns: 1fr 350px;
	  gap: 24px;
  }
  
  @media (max-width: 1024px) {
	  .watch-page {
		  grid-template-columns: 1fr;
	  }
  }
  
  .download-servers {
	  display: grid;
	  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	  gap: 16px;
	  margin-bottom: 32px;
  }
  
  .download-server-card {
	  background: var(--bg-secondary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-md);
	  padding: 20px;
	  display: flex;
	  flex-direction: column;
	  gap: 16px;
	  transition: var(--transition);
  }
  
  .download-server-card:hover {
	  border-color: var(--accent-primary);
	  transform: translateY(-2px);
  }
  
  .download-server-header {
	  display: flex;
	  align-items: center;
	  gap: 12px;
  }
  
  .download-server-name {
	  font-weight: 600;
	  font-size: 16px;
	  color: var(--text-primary);
  }
  
  .download-btn {
	  width: 100%;
	  justify-content: center;
  }
  
  .video-container {
	  position: relative;
	  aspect-ratio: 16/9;
	  background: #000;
	  border-radius: var(--radius-lg);
	  overflow: hidden;
	  margin-bottom: 24px;
  }
  
  .video-container iframe {
	  width: 100%;
	  height: 100%;
	  border: none;
  }
  
  .video-placeholder {
	  width: 100%;
	  height: 100%;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  background: var(--bg-tertiary);
	  color: var(--text-muted);
  }
  
  .player-controls {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  padding: 16px;
	  background: var(--bg-secondary);
	  border-radius: var(--radius-md);
	  margin-bottom: 24px;
  }
  
  .server-selector {
	  display: flex;
	  align-items: center;
	  gap: 8px;
  }
  
  .server-selector label {
	  font-size: 14px;
	  color: var(--text-secondary);
  }
  
  .watch-title {
	  margin-bottom: 24px;
	  font-size: 24px;
	  font-weight: 600;
	  color: var(--text-primary);
	  direction: rtl;
  }
  
  .watch-title span {
	  color: var(--text-secondary);
	  font-weight: 400;
  }
  
  .download-list {
	  display: flex;
	  flex-direction: column;
	  gap: 8px;
  }
  
  .download-episode-row {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  padding: 16px 20px;
	  background: var(--bg-secondary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-md);
	  transition: var(--transition);
  }
  
  .download-episode-row:hover:not(.unavailable) {
	  border-color: var(--accent-primary);
	  background: var(--bg-tertiary);
  }
  
  .download-episode-row.unavailable {
	  opacity: 0.5;
  }
  
  .download-episode-info {
	  display: flex;
	  align-items: center;
	  gap: 12px;
  }
  
  .download-episode-num {
	  font-weight: 700;
	  font-size: 16px;
	  color: var(--accent-primary);
	  min-width: 80px;
  }
  
  .download-episode-title {
	  font-size: 14px;
	  color: var(--text-primary);
  }
  
  .download-episode-links {
	  display: flex;
	  align-items: center;
	  gap: 8px;
  }
  
  .download-link-btn {
	  display: inline-flex;
	  align-items: center;
	  gap: 6px;
	  padding: 8px 16px;
	  background: var(--bg-tertiary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-sm);
	  color: var(--text-primary);
	  font-size: 13px;
	  font-weight: 500;
	  transition: var(--transition);
	  text-decoration: none;
  }
  
  .download-link-btn:hover {
	  background: var(--accent-primary);
	  border-color: var(--accent-primary);
	  color: white;
	  transform: translateY(-1px);
  }
  
  .download-server-name {
	  white-space: nowrap;
  }
  
  .download-unavailable {
	  font-size: 13px;
	  color: var(--error);
	  font-weight: 500;
  }

  @media (max-width: 768px) {
	  .download-episode-row {
		  flex-wrap: wrap;
		  gap: 8px;
	  }

	  .download-episode-info {
		  width: 100%;
	  }

	  .download-episode-links {
		  width: 100%;
		  flex-wrap: wrap;
	  }

	  .manga-download-row {
		  flex-wrap: wrap;
		  gap: 8px;
	  }

	  .manga-download-info {
		  width: 100%;
	  }

	  .manga-download-links {
		  width: 100%;
		  flex-wrap: wrap;
	  }

	  .download-server-name {
		  white-space: normal;
	  }
  }
  
  .manga-download-list {
	  display: flex;
	  flex-direction: column;
	  gap: 8px;
  }
  
  .manga-download-row {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  padding: 16px 20px;
	  background: var(--bg-secondary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-md);
	  transition: var(--transition);
  }
  
  .manga-download-row:hover {
	  border-color: var(--accent-primary);
	  background: var(--bg-tertiary);
  }
  
  .manga-download-info {
	  display: flex;
	  align-items: center;
	  gap: 16px;
  }
  
  .manga-download-num {
	  font-weight: 700;
	  font-size: 16px;
	  color: var(--accent-primary);
	  min-width: 100px;
  }
  
  .manga-download-title {
	  font-size: 14px;
	  color: var(--text-primary);
  }
  
  .manga-download-pages {
	  font-size: 13px;
	  color: var(--text-muted);
  }
  
  .manga-download-action button {
	  display: flex;
	  align-items: center;
	  gap: 8px;
  }
  
  .manga-download-action button:disabled {
	  opacity: 0.6;
	  cursor: not-allowed;
  }
  
  .custom-video-player {
	  width: 100%;
	  height: 100%;
	  position: relative;
	  background-color: #000;
	  cursor: pointer;
  }
  
  .custom-video-player video {
	  width: 100%;
	  height: 100%;
	  display: block;
  }
  
  .video-controls {
	  position: absolute;
	  bottom: 0;
	  left: 0;
	  right: 0;
	  background: linear-gradient(transparent, rgba(0,0,0,0.9));
	  padding: 40px 16px 12px;
	  display: flex;
	  flex-direction: column;
	  gap: 8px;
	  transition: opacity 0.3s ease;
  }
  
  .custom-video-player.controls-hidden .video-controls {
	  opacity: 0;
	  pointer-events: none;
  }
  
  .custom-video-player.controls-hidden:hover .video-controls {
	  opacity: 0;
	  pointer-events: auto;
  }
  
  .video-spinner {
	  position: absolute;
	  top: 50%;
	  left: 50%;
	  transform: translate(-50%, -50%);
	  width: 50px;
	  height: 50px;
	  z-index: 10;
	  opacity: 0;
	  pointer-events: none;
	  transition: opacity 0.2s ease;
  }
  
  .video-spinner.active {
	  opacity: 1;
  }
  
  .video-spinner-inner {
	  width: 100%;
	  height: 100%;
	  border: 4px solid rgba(255, 255, 255, 0.3);
	  border-top-color: var(--accent-secondary);
	  border-radius: 50%;
	  animation: spin 0.8s linear infinite;
  }
  
  .seek-feedback {
	  position: absolute;
	  top: 50%;
	  transform: translateY(-50%);
	  color: white;
	  font-size: 28px;
	  font-weight: 800;
	  opacity: 0;
	  transition: opacity 0.25s ease;
	  pointer-events: none;
	  z-index: 20;
	  display: flex;
	  align-items: center;
	  gap: 6px;
	  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(157, 78, 221, 0.5);
	  filter: drop-shadow(0 2px 8px rgba(0, 217, 255, 0.4));
  }
  
  .seek-feedback .seek-arrow {
	  display: flex;
	  align-items: center;
  }
  
  .seek-feedback .seek-arrow svg {
	  width: 28px;
	  height: 28px;
	  stroke: white;
	  stroke-width: 2.5;
	  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  }
  
  .seek-feedback-left {
	  left: 30px;
  }
  
  .seek-feedback-left.active {
	  opacity: 1;
  }
  
  .seek-feedback-right {
	  right: 30px;
  }
  
  .seek-feedback-right.active {
	  opacity: 1;
  }
  
  .custom-video-player:not(.controls-hidden):hover .video-controls,
  .custom-video-player.paused .video-controls {
	  opacity: 1;
  }
  
  .progress-bar {
	  width: 100%;
	  height: 6px;
	  background: rgba(255,255,255,0.2);
	  border-radius: 3px;
	  cursor: pointer;
	  position: relative;
	  transition: height 0.15s ease;
  }
  
  .progress-bar::before {
	  content: '';
	  position: absolute;
	  top: -8px;
	  bottom: -8px;
	  left: 0;
	  right: 0;
	  cursor: pointer;
  }
  
  .schedule-home-card:hover .progress-bar {
	  height: 10px;
  }
  
  .progress-bar .progress-filled {
	  height: 100%;
	  background: var(--accent-gradient);
	  border-radius: 3px;
	  position: relative;
	  transition: width 0.05s linear;
  }
  
  .progress-bar .progress-filled::after {
	  content: '';
	  position: absolute;
	  left: 100%;
	  top: 50%;
	  transform: translate(-50%, -50%) scale(0);
	  width: 14px;
	  height: 14px;
	  background: white;
	  border-radius: 50%;
	  transition: transform 0.15s ease;
	  box-shadow: 0 0 6px rgba(0, 217, 255, 0.6);
  }
  
  .progress-bar:hover .progress-filled::after {
	  transform: translate(-50%, -50%) scale(1);
  }
  
  .progress-hover-fill {
	  position: absolute;
	  top: 0;
	  height: 100%;
	  background: rgba(255, 255, 255, 0.25);
	  border-radius: 3px;
	  pointer-events: none;
	  opacity: 0;
	  transition: opacity 0.1s ease;
  }
  
  .progress-bar:hover .progress-hover-fill {
	  opacity: 1;
  }
  
  .progress-hover-line {
	  position: absolute;
	  top: -2px;
	  bottom: -2px;
	  width: 2px;
	  background: white;
	  transform: translateX(-50%);
	  pointer-events: none;
	  opacity: 0;
	  transition: opacity 0.1s ease;
	  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
  }
  
  .progress-bar:hover .progress-hover-line {
	  opacity: 1;
  }
  
  .progress-hover-time {
	  position: absolute;
	  top: -32px;
	  transform: translateX(-50%);
	  background: rgba(0, 0, 0, 0.85);
	  color: white;
	  padding: 4px 8px;
	  border-radius: 4px;
	  font-size: 12px;
	  font-weight: 600;
	  pointer-events: none;
	  opacity: 0;
	  transition: opacity 0.1s ease;
	  white-space: nowrap;
	  z-index: 30;
  }
  
  .progress-bar:hover .progress-hover-time {
	  opacity: 1;
  }
  
  .progress-bar.seeking .progress-hover-fill,
  .progress-bar.seeking .progress-hover-line,
  .progress-bar.seeking .progress-hover-time {
	  opacity: 0 !important;
  }
  
  .custom-video-player:not(.video-loaded) .progress-hover-fill,
  .custom-video-player:not(.video-loaded) .progress-hover-line,
  .custom-video-player:not(.video-loaded) .progress-hover-time {
	  display: none !important;
  }
  
  .progress-bar:hover .progress-filled::after {
	  transform: translate(-50%, -50%) scale(1);
  }
  
  .controls-row {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  gap: 12px;
  }
  
  .controls-right,
  .controls-left {
	  display: flex;
	  align-items: center;
	  gap: 8px;
  }
  
  .control-btn {
	  width: 36px;
	  height: 36px;
	  border: none;
	  background: transparent;
	  color: white;
	  cursor: pointer;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  border-radius: 50%;
	  transition: all 0.2s ease;
	  position: relative;
  }
  
  .control-btn:hover {
	  background: rgba(255,255,255,0.15);
	  transform: scale(1.1);
  }
  
  .control-btn:active {
	  transform: scale(0.95);
  }
  
  .control-btn svg {
	  width: 20px;
	  height: 20px;
	  fill: currentColor;
  }
  
  .play-btn {
	  width: 44px;
	  height: 44px;
  }
  
  .play-btn svg {
	  width: 24px;
	  height: 24px;
  }
  
  .volume-container {
	  display: flex;
	  align-items: center;
	  gap: 4px;
  }
  
  .volume-slider {
	  width: 0;
	  transition: width 0.3s ease;
  }
  
  .volume-container:hover .volume-slider {
	  width: 80px;
  }
  
  .volume-slider {
	  position: relative;
  }
  
  .volume-slider input {
	  width: 80px;
	  height: 20px;
	  -webkit-appearance: none;
	  appearance: none;
	  background: transparent;
	  border-radius: 2px;
	  cursor: pointer;
	  direction: ltr;
	  position: relative;
	  z-index: 1;
	  margin: 0;
  }
  
  .volume-slider .volume-fill {
	  position: absolute;
	  left: 0;
	  top: 50%;
	  transform: translateY(-50%);
	  height: 4px;
	  width: 100%;
	  background: var(--accent-gradient);
	  border-radius: 2px;
	  pointer-events: none;
	  z-index: 0;
	  opacity: 0;
	  transition: opacity 0.2s ease;
  }
  
  .volume-slider .volume-thumb {
	  position: absolute;
	  top: 50%;
	  transform: translate(-50%, -50%);
	  width: 12px;
	  height: 12px;
	  background: white;
	  border-radius: 50%;
	  pointer-events: none;
	  z-index: 2;
	  box-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
	  opacity: 0;
	  transition: opacity 0.2s ease;
  }
  
  .volume-container:hover .volume-slider .volume-fill,
  .volume-container:hover .volume-slider .volume-thumb {
	  opacity: 1;
  }
  
  .volume-slider input::-webkit-slider-thumb {
	  -webkit-appearance: none;
	  width: 20px;
	  height: 20px;
	  background: transparent;
	  cursor: pointer;
  }
  
  .volume-slider input::-moz-range-thumb {
	  width: 20px;
	  height: 20px;
	  background: transparent;
	  border: none;
	  cursor: pointer;
  }
  
  .volume-slider .volume-thumb {
	  position: absolute;
	  top: 50%;
	  transform: translate(-50%, -50%);
	  width: 12px;
	  height: 12px;
	  background: white;
	  border-radius: 50%;
	  pointer-events: none;
	  z-index: 2;
	  box-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
  }
  
  .volume-icon .mute-line {
	  stroke: white;
	  stroke-width: 2;
	  stroke-linecap: round;
	  display: none;
  }
  
  .volume-icon.muted .mute-line {
	  display: block;
  }
  
  .time-display {
	  font-size: 13px;
	  color: rgba(255,255,255,0.8);
	  font-weight: 500;
	  font-variant-numeric: tabular-nums;
	  white-space: nowrap;
  }
  
  .time-display span {
	  color: rgba(255,255,255,0.5);
	  margin: 0 4px;
  }
  
  .big-play-btn {
	  position: absolute;
	  top: 50%;
	  left: 50%;
	  transform: translate(-50%, -50%);
	  width: 80px;
	  height: 80px;
	  background: rgba(0, 217, 255, 0.9);
	  border: none;
	  border-radius: 50%;
	  cursor: pointer;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  transition: all 0.3s ease;
	  box-shadow: 0 0 40px rgba(0, 217, 255, 0.4);
  }
  
  .big-play-btn:hover {
	  transform: translate(-50%, -50%) scale(1.1);
	  background: rgba(0, 217, 255, 1);
	  box-shadow: 0 0 60px rgba(0, 217, 255, 0.6);
  }
  
  .big-play-btn svg {
	  width: 32px;
	  height: 32px;
	  fill: white;
	  margin-right: -4px;
  }
  
  .custom-video-player:not(.paused) .big-play-btn {
	  opacity: 0;
	  pointer-events: none;
  }
  
  .custom-video-player:not(.paused):hover .big-play-btn {
	  opacity: 1;
	  pointer-events: auto;
  }
  
  .pip-btn.active {
	  color: var(--accent-secondary);
  }
  
  .settings-btn {
	  position: relative;
  }
  
  .settings-menu {
	  position: absolute;
	  bottom: 100%;
	  right: 0;
	  background: rgba(20, 20, 30, 0.95);
	  border-radius: var(--radius-md);
	  padding: 8px 0;
	  min-width: 150px;
	  opacity: 0;
	  visibility: hidden;
	  transform: translateY(10px);
	  transition: all 0.2s ease;
	  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
	  border: 1px solid rgba(255,255,255,0.1);
  }
  
  .settings-btn:hover .settings-menu {
	  opacity: 1;
	  visibility: visible;
	  transform: translateY(-8px);
  }
  
  .settings-menu-item {
	  padding: 8px 16px;
	  cursor: pointer;
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  font-size: 13px;
	  color: rgba(255,255,255,0.8);
	  transition: background 0.15s ease;
  }
  
  .settings-menu-item:hover {
	  background: rgba(255,255,255,0.1);
  }
  
  .settings-menu-item.active {
	  color: var(--accent-secondary);
  }
  
  .server-selector select {
	  padding: 8px 16px;
	  background: var(--bg-tertiary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-sm);
	  color: var(--text-primary);
	  font-family: inherit;
	  cursor: pointer;
  }
  
  .server-selector select:focus {
	  outline: none;
	  border-color: var(--accent-primary);
  }
  
  .watch-sidebar {
	  background: var(--bg-secondary);
	  border-radius: var(--radius-lg);
	  padding: 16px;
	  max-height: calc(100vh - 150px);
	  overflow-y: auto;
  }
  
  .watch-sidebar h3 {
	  font-size: 16px;
	  margin-bottom: 16px;
	  padding-bottom: 12px;
	  border-bottom: 1px solid var(--border);
  }
  
  .episode-nav-item {
	  display: flex;
	  align-items: center;
	  gap: 12px;
	  padding: 12px;
	  border-radius: var(--radius-md);
	  cursor: pointer;
	  transition: var(--transition);
	  margin-bottom: 8px;
  }
  
  .episode-nav-item:hover:not(.active):not(.unavailable) {
	  background: var(--bg-tertiary);
  }
  
  .episode-nav-item.active {
	  background: rgba(157, 78, 221, 0.3);
	  border: 1px solid var(--accent-primary);
  }
  
  .episode-nav-item.unavailable {
	  opacity: 0.6;
	  cursor: default;
  }
  
  .episode-nav-item.unavailable:hover {
	  background: var(--bg-tertiary);
  }
  
  .episode-nav-thumb {
	  width: 80px;
	  height: 45px;
	  border-radius: var(--radius-sm);
	  overflow: hidden;
	  flex-shrink: 0;
  }
  
  .episode-nav-thumb img {
	  width: 100%;
	  height: 100%;
	  object-fit: cover;
  }
  
  .episode-nav-info {
	  flex: 1;
	  min-width: 0;
  }
  
  .episode-nav-title {
	  display: flex;
	  flex-direction: column;
	  gap: 2px;
  }
  
  .episode-nav-number {
	  font-size: 14px;
	  font-weight: 600;
	  color: var(--text-primary);
	  white-space: nowrap;
	  overflow: hidden;
	  text-overflow: ellipsis;
  }
  
  .episode-nav-subtitle {
	  font-size: 12px;
	  font-weight: 400;
	  color: var(--text-secondary);
	  white-space: nowrap;
	  overflow: hidden;
	  text-overflow: ellipsis;
  }
  
  .episode-nav-item.active .episode-nav-number {
	  color: white;
  }
  
  .episode-nav-status {
	  font-size: 12px;
	  color: var(--text-muted);
	  margin-top: 4px;
	  display: flex;
	  gap: 4px;
	  flex-wrap: wrap;
  }
  
  .episode-nav-item.active .episode-nav-status {
	  color: rgba(255, 255, 255, 0.8);
  }
  
  .manga-reader {
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  padding: 24px;
	  background: var(--bg-primary);
	  min-height: calc(100vh - 64px);
  }
  
  .manga-chapters-view {
	  padding: 40px 0;
	  min-height: calc(100vh - 64px);
  }
  
  .manga-chapters-header {
	  display: flex;
	  align-items: center;
	  gap: 20px;
	  margin-bottom: 32px;
  }
  
  .manga-chapters-header h1 {
	  font-size: 28px;
	  margin: 0;
  }
  
  .manga-chapters-grid {
	  display: grid;
	  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	  gap: 20px;
  }
  
  .manga-chapter-card {
	  background: var(--bg-secondary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-lg);
	  overflow: hidden;
	  transition: var(--transition);
	  display: block;
  }
  
  .manga-chapter-card:hover {
	  border-color: var(--accent-primary);
	  transform: translateY(-4px);
	  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  
  .manga-chapter-cover {
	  aspect-ratio: 3/4;
	  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  color: var(--text-muted);
	  overflow: hidden;
  }
  
  .manga-chapter-cover-img {
	  width: 100%;
	  height: 100%;
	  object-fit: cover;
  }
  
  .manga-chapter-info {
	  padding: 16px;
  }
  
  .manga-chapter-num {
	  display: block;
	  font-size: 18px;
	  font-weight: 700;
	  margin-bottom: 4px;
  }
  
  .manga-chapter-title {
	  display: block;
	  font-size: 13px;
	  color: var(--text-secondary);
	  margin-bottom: 8px;
  }
  
  .manga-chapter-pages {
	  display: block;
	  font-size: 12px;
	  color: var(--text-muted);
  }
  
  .manga-reader-view {
	  display: flex;
	  flex-direction: column;
	  /*! height: calc(100vh - 64px); */
	  background: #000;
	  position: relative;
  }
  
  body.has-topbar .manga-reader-view {
	  height: calc(100vh - 96px);
  }
  
  .reader-topbar {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  padding: 12px 24px;
	  background: var(--bg-secondary);
	  border-bottom: 1px solid var(--border);
	  gap: 16px;
	  flex-shrink: 0;
	  position: sticky;
	  top: 0;
	  z-index: 1000;
  }
  
  .logged-in-topbar ~ main .reader-topbar {
	  top: 32px;
  }
  
  .reader-back {
	  display: flex;
	  align-items: center;
	  gap: 8px;
	  color: var(--text-secondary);
	  font-size: 14px;
	  transition: color 0.2s;
  }
  
  .reader-back:hover {
	  color: var(--text-primary);
  }
  
  .reader-title {
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  flex: 1;
  }
  
  .reader-manga-name {
	  font-size: 14px;
	  color: var(--text-muted);
  }
  
  .reader-chapter-name {
	  font-size: 16px;
	  font-weight: 600;
  }
  
  .reader-settings {
	  position: relative;
	  display: flex;
	  gap: 8px;
  }
  
  .reader-settings-btn,
  .reader-fullscreen-btn {
	  width: 40px;
	  height: 40px;
	  border-radius: var(--radius-sm);
	  border: none;
	  background: var(--bg-tertiary);
	  color: var(--text-secondary);
	  cursor: pointer;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  transition: var(--transition);
  }
  
  .reader-settings-btn:hover,
  .reader-fullscreen-btn:hover {
	  background: var(--accent-primary);
	  color: white;
  }
  
  .reader-settings-menu {
	  position: absolute;
	  top: calc(100% + 8px);
	  left: 0;
	  background: var(--bg-secondary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-md);
	  padding: 16px;
	  min-width: 200px;
	  display: none;
	  z-index: 1000;
	  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  }
  
  .reader-settings-menu.active {
	  display: block;
  }
  
  .reader-settings-group {
	  margin-bottom: 16px;
  }
  
  .reader-settings-group:last-child {
	  margin-bottom: 0;
  }
  
  .reader-settings-group label {
	  display: block;
	  font-size: 12px;
	  color: var(--text-muted);
	  margin-bottom: 8px;
	  text-transform: uppercase;
	  letter-spacing: 0.5px;
  }
  
  .reader-settings-hint {
	  font-size: 12px;
	  color: var(--text-secondary);
	  margin: 0;
  }
  
  .reader-size-controls {
	  display: flex;
	  align-items: center;
	  gap: 12px;
  }
  
  .reader-size-controls button {
	  width: 32px;
	  height: 32px;
	  border-radius: var(--radius-sm);
	  border: 1px solid var(--border);
	  background: var(--bg-tertiary);
	  color: var(--text-primary);
	  cursor: pointer;
	  font-size: 18px;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  transition: var(--transition);
  }
  
  .reader-size-controls button:hover {
	  background: var(--accent-primary);
	  border-color: var(--accent-primary);
  }
  
  .reader-size-controls span {
	  min-width: 50px;
	  text-align: center;
	  font-weight: 600;
  }
  
  .reader-content {
	  flex: 1;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  overflow: hidden;
	  position: relative;
	  cursor: pointer;
  }
  
  .reader-page-wrapper {
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  width: 100%;
	  height: 100%;
	  padding: 8px;
	  box-sizing: border-box;
  }
  
  .reader-page-img {
	  object-fit: contain;
	  display: block;
	  width: 1000px;
  }
  
  .manga-reader-view.is-fullscreen .reader-content {
	  align-items: flex-start;
	  overflow: auto !important;
  }
  
  .manga-reader-view.is-fullscreen .reader-page-wrapper {
	  align-items: flex-start;
	  height: auto;
  }
  
  .reader-nav {
	  position: absolute;
	  top: 50%;
	  transform: translateY(-50%);
	  width: 100px;
	  height: 150px;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  color: rgba(255, 255, 255, 0.25);
	  cursor: pointer;
	  transition: all 0.2s ease;
  }
  
  .reader-nav:hover {
	  color: rgba(255, 255, 255, 0.8);
  }
  
  .reader-nav-prev {
	  left: 0;
  }
  
  .reader-nav-next {
	  right: 0;
  }
  
  .reader-chapter-overlay {
	  position: absolute;
	  inset: 0;
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  justify-content: center;
	  gap: 16px;
	  background: rgba(0, 0, 0, 0.85);
	  z-index: 100;
	  opacity: 0;
	  transition: opacity 0.3s;
	  padding: 24px;
	  text-align: center;
  }
  
  .reader-chapter-overlay.active {
	  opacity: 1;
  }
  
  .reader-chapter-overlay span {
	  font-size: 16px;
	  color: var(--text-secondary);
  }
  
  .reader-chapter-overlay-link {
	  font-size: 20px;
	  font-weight: 700;
	  color: var(--accent-secondary);
	  cursor: pointer;
	  text-decoration: none;
	  padding: 12px 24px;
	  border: 2px solid var(--accent-secondary);
	  border-radius: var(--radius-md);
	  transition: var(--transition);
  }
  
  .reader-chapter-overlay-link:hover {
	  background: var(--accent-secondary);
	  color: #000;
  }
  
  .reader-bottombar {
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  gap: 24px;
	  padding: 12px 24px;
	  background: var(--bg-secondary);
	  border-top: 1px solid var(--border);
	  flex-shrink: 0;
	  position: sticky;
	  bottom: 0;
  }
  
  .reader-bottombar select {
	  padding: 8px 32px 8px 12px;
	  background: var(--bg-tertiary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius);
	  color: var(--text-primary);
	  font-size: 13px;
	  cursor: pointer;
	  appearance: none;
	  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	  background-repeat: no-repeat;
	  background-position: right 10px center;
  }
  
  .reader-bottombar select:focus {
	  outline: none;
	  border-color: var(--accent-primary);
  }
  
  .reader-nav-inline {
	  display: flex;
	  align-items: center;
	  gap: 8px;
  }
  
  .reader-nav-inline button {
	  width: 32px;
	  height: 32px;
	  border-radius: var(--radius-sm);
	  border: 1px solid var(--border);
	  background: var(--bg-tertiary);
	  color: var(--text-primary);
	  cursor: pointer;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  transition: var(--transition);
  }
  
  .reader-nav-inline button:hover:not(:disabled) {
	  background: var(--accent-primary);
	  border-color: var(--accent-primary);
  }
  
  .reader-nav-inline button:disabled {
	  opacity: 0.3;
	  cursor: not-allowed;
  }
  
  .reader-nav-inline span {
	  font-size: 13px;
	  color: var(--text-secondary);
	  min-width: 80px;
	  text-align: center;
  }
  
  .reader-controls {
	  position: fixed;
	  bottom: 24px;
	  left: 50%;
	  transform: translateX(-50%);
	  display: flex;
	  align-items: center;
	  gap: 16px;
	  padding: 12px 24px;
	  background: var(--bg-secondary);
	  border-radius: var(--radius-lg);
	  box-shadow: var(--shadow);
	  z-index: 100;
  }
  
  .reader-controls button {
	  width: 48px;
	  height: 48px;
	  border-radius: 50%;
	  border: none;
	  background: var(--bg-tertiary);
	  color: var(--text-primary);
	  cursor: pointer;
	  transition: var(--transition);
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  font-size: 20px;
  }
  
  .reader-controls button:hover {
	  background: var(--accent-primary);
  }
  
  .reader-controls button:disabled {
	  opacity: 0.5;
	  cursor: not-allowed;
  }
  
  .page-indicator {
	  font-size: 14px;
	  color: var(--text-secondary);
	  min-width: 80px;
	  text-align: center;
  }
  
  .reader-page {
	  max-width: 100%;
	  max-height: calc(100vh - 150px);
	  margin-bottom: 80px;
  }
  
  .reader-page img {
	  max-width: 100%;
	  max-height: calc(100vh - 150px);
	  object-fit: contain;
  }
  
  .manga-reader-view.scroller-mode .reader-content {
	  align-items: flex-start;
	  overflow: auto;
	  cursor: default;
  }
  
  .scroller-pages {
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  width: 100%;
  }
  
  .scroller-page-img {
	  display: block;
	  max-width: 100%;
	  height: auto;
	  margin-bottom: 0;
  }
  
  .chapter-list {
	  display: grid;
	  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	  gap: 12px;
  }
  
  .chapter-item {
	  padding: 16px;
	  background: var(--bg-secondary);
	  border-radius: var(--radius-md);
	  text-align: center;
	  border: 1px solid var(--border);
	  cursor: pointer;
	  transition: var(--transition);
  }
  
  .chapter-item:hover {
	  border-color: var(--accent-primary);
	  background: var(--bg-tertiary);
  }
  
  .chapter-item.unavailable {
	  opacity: 0.5;
	  cursor: not-allowed;
  }
  
  .chapter-num {
	  font-size: 20px;
	  font-weight: 700;
	  margin-bottom: 4px;
  }
  
  .chapter-pages {
	  font-size: 12px;
	  color: var(--text-muted);
  }
  
  .media-grid {
	  display: grid;
	  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	  gap: 24px;
  }
  
  .media-card {
	  background: var(--bg-secondary);
	  border-radius: var(--radius-md);
	  overflow: hidden;
	  border: 1px solid var(--border);
  }
  
  .media-card .card-image {
	  aspect-ratio: 16/9;
  }
  
  .media-card .card-content {
	  padding: 16px;
  }
  
  .media-card .card-image {
	  position: relative;
  }
  
  .media-card .media-meta {
	  color: var(--text-secondary);
	  font-size: 14px;
  }
  
  .media-play-overlay {
	  position: absolute;
	  top: 0;
	  left: 0;
	  right: 0;
	  bottom: 0;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  background: rgba(0, 0, 0, 0.4);
	  opacity: 0;
	  transition: opacity 0.3s ease;
  }
  
  .media-card:hover .media-play-overlay {
	  opacity: 1;
  }
  
  .media-play-overlay svg {
	  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  }
  
   .media-modal {
	  position: fixed;
	  top: 0;
	  left: 0;
	  right: 0;
	  bottom: 0;
	  background: rgba(0, 0, 0, 0.9);
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  z-index: 2000;
	  opacity: 0;
	  transition: opacity 0.3s ease;
   }
   
   .media-modal.active {
	  opacity: 1;
   }
   
   .media-modal-content {
	  width: 90%;
	  max-width: 900px;
	  position: relative;
   }
   
   .media-modal-close {
	  position: absolute;
	  top: -40px;
	  right: 0;
	  background: none;
	  border: none;
	  color: white;
	  font-size: 32px;
	  cursor: pointer;
	  padding: 8px;
	  line-height: 1;
   }
   
   .media-modal-close:hover {
	  color: var(--accent-secondary);
   }
   
   .media-modal-title {
	  text-align: center;
	  color: white;
	  font-size: 20px;
	  font-weight: 600;
	  margin-bottom: 16px;
   }
   
   @media (max-height: 600px) {
	   .media-modal {
		   align-items: flex-start;
		   overflow-y: auto;
		   padding: 56px 0 16px;
	   }
	   .media-modal-content {
		   width: 100%;
		   max-width: 100%;
	   }
	   .media-modal-close {
		   position: fixed;
		   top: 4px;
		   right: 8px;
		   z-index: 2001;
		   font-size: 36px;
	   }
	   .media-modal-title {
		   padding: 0 12px;
		   font-size: 16px;
		   margin-bottom: 8px;
	   }
   }
  
  .media-modal-video .custom-video-player,
  .media-modal-video .video-container {
	  aspect-ratio: 16/9;
	  border-radius: var(--radius-md);
	  overflow: hidden;
  }
  
  .stats-grid {
	  display: grid;
	  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	  gap: 24px;
	  margin-bottom: 48px;
  }
  
  .stat-card {
	  background: var(--bg-secondary);
	  border-radius: var(--radius-md);
	  padding: 24px;
	  border: 1px solid var(--border);
	  text-align: center;
  }
  
  .stat-number {
	  font-size: 48px;
	  font-weight: 900;
	  background: var(--accent-gradient);
	  -webkit-background-clip: text;
	  -webkit-text-fill-color: transparent;
	  background-clip: text;
	  line-height: 1;
	  margin-bottom: 8px;
  }
  
  .stats-overview {
	  display: grid;
	  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	  gap: 16px;
  }
  
  .stats-overview .stat-card {
	  padding: 20px;
  }
  
  .stats-overview .stat-value {
	  font-size: 32px;
	  font-weight: 700;
	  color: var(--text-primary);
	  margin-bottom: 4px;
  }
  
  .stats-overview .stat-label {
	  font-size: 13px;
	  color: var(--text-muted);
  }
  
  .stats-grid {
	  display: grid;
	  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	  gap: 24px;
  }
  
  .stats-card-block {
	  background: var(--bg-secondary);
	  border-radius: var(--radius-md);
	  padding: 24px;
	  border: 1px solid var(--border);
  }
  
  .stats-card-block h3 {
	  font-size: 18px;
	  margin-bottom: 20px;
	  padding-bottom: 12px;
	  border-bottom: 1px solid var(--border);
  }
  
  .stats-list {
	  display: flex;
	  flex-direction: column;
	  gap: 12px;
  }
  
  .stats-list-item {
	  display: flex;
	  align-items: center;
	  gap: 12px;
  }
  
  .stats-rank {
	  width: 28px;
	  height: 28px;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  background: var(--bg-tertiary);
	  border-radius: 50%;
	  font-size: 13px;
	  font-weight: 600;
	  color: var(--text-muted);
	  flex-shrink: 0;
  }
  
  .stats-name {
	  flex: 1;
	  font-weight: 500;
	  white-space: nowrap;
	  overflow: hidden;
	  text-overflow: ellipsis;
  }
  
  .stats-count {
	  color: var(--accent-secondary);
	  font-size: 14px;
	  font-weight: 600;
  }
  
  .stats-milestones {
	  display: grid;
	  grid-template-columns: repeat(2, 1fr);
	  gap: 20px;
	  margin-top: 32px;
  }
  
  .milestone-card {
	  /*! background: var(--bg-tertiary); */
	  border-radius: var(--radius-md);
	  padding: 32px;
	  text-align: center;
	  border: 1px solid var(--border);
	  background: var(--bg-secondary);
  }
  
  .milestone-value {
	  font-size: 56px;
	  font-weight: 800;
	  background: var(--accent-gradient);
	  -webkit-background-clip: text;
	  -webkit-text-fill-color: transparent;
	  background-clip: text;
	  line-height: 1;
	  margin-bottom: 8px;
  }
  
  .milestone-label {
	  font-size: 16px;
	  color: var(--text-muted);
  }
  
  .stat-label {
	  font-size: 14px;
	  color: var(--text-secondary);
	  text-transform: uppercase;
	  letter-spacing: 1px;
  }
  
  .stat-row {
	  display: flex;
	  justify-content: space-between;
	  padding: 12px 0;
	  border-bottom: 1px solid var(--border);
  }
  
  .stat-row:last-child {
	  border-bottom: none;
  }

  @media (max-width: 768px) {
	  .stats-milestones {
		  grid-template-columns: 1fr;
	  }

	  .stats-overview {
		  justify-content: center;
	  }
  }
  
  .comments-section {
	  margin-top: 48px;
	  padding-top: 48px;
	  border-top: 1px solid var(--border);
  }
  
  .comments-header {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  margin-bottom: 24px;
  }
  
  .comments-header h3 {
	  font-size: 20px;
  }
  
  .comment-count {
	  padding: 4px 12px;
	  background: var(--bg-tertiary);
	  border-radius: 20px;
	  font-size: 14px;
	  color: var(--text-secondary);
  }
  
  .comment-form {
	  margin-bottom: 32px;
  }
  
  .comment-form-row {
	  display: flex;
	  gap: 12px;
	  margin-bottom: 12px;
  }
  
  .comment-form-row input {
	  flex: 1;
	  padding: 12px 16px;
	  background: var(--bg-secondary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-md);
	  color: var(--text-primary);
	  font-family: inherit;
	  font-size: 14px;
  }
  
  .comment-form-row input:focus {
	  outline: none;
	  border-color: var(--accent-primary);
  }
  
  .comment-form textarea {
	  width: 100%;
	  min-height: 120px;
	  padding: 16px;
	  background: var(--bg-secondary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-md);
	  color: var(--text-primary);
	  font-family: inherit;
	  font-size: 14px;
	  resize: vertical;
	  margin-bottom: 12px;
  }
  
  .comment-form textarea:focus {
	  outline: none;
	  border-color: var(--accent-primary);
  }
  
  .comment-form-footer {
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
  }
  
  .spoiler-checkbox {
	  display: flex;
	  align-items: center;
	  gap: 8px;
	  cursor: pointer;
	  color: var(--text-secondary);
	  font-size: 14px;
  }

  .spoiler-checkbox input {
	  display: none;
  }

  .spoiler-checkbox .checkbox-custom {
	  width: 22px;
	  height: 22px;
	  border: 2px solid var(--border);
	  border-radius: var(--radius-sm);
	  background: var(--bg-tertiary);
	  position: relative;
	  transition: var(--transition);
	  flex-shrink: 0;
  }

  .spoiler-checkbox input:checked + .checkbox-custom {
	  background: var(--accent-primary);
	  border-color: var(--accent-primary);
  }

  .spoiler-checkbox .checkbox-custom::after {
	  content: '';
	  position: absolute;
	  top: 4px;
	  right: 7px;
	  width: 6px;
	  height: 10px;
	  border: solid white;
	  border-width: 0 2px 2px 0;
	  transform: rotate(45deg);
	  opacity: 0;
	  transition: var(--transition);
  }

  .spoiler-checkbox input:checked + .checkbox-custom::after {
	  opacity: 1;
  }
  
  .comment-status {
	  display: inline-block;
	  padding: 2px 8px;
	  background: var(--warning);
	  color: #000;
	  font-size: 11px;
	  border-radius: var(--radius-sm);
	  margin-right: 8px;
  }
  
  .spoiler-content {
	  position: relative;
	  background: var(--bg-tertiary);
	  padding: 16px;
	  border-radius: var(--radius-md);
	  overflow: hidden;
  }
  
  .spoiler-content::before {
	  content: '';
	  position: absolute;
	  inset: 0;
	  background: var(--bg-tertiary);
	  filter: blur(5px);
	  z-index: 0;
  }
  
  .spoiler-content > *:not(.spoiler-reveal) {
	  position: relative;
	  z-index: 1;
	  filter: blur(5px);
	  user-select: none;
  }
  
  .spoiler-content .spoiler-reveal {
	  position: absolute;
	  top: 50%;
	  left: 50%;
	  transform: translate(-50%, -50%);
	  padding: 8px 16px;
	  background: var(--accent-primary);
	  color: white;
	  border: none;
	  border-radius: var(--radius-sm);
	  cursor: pointer;
	  font-size: 14px;
	  white-space: nowrap;
  }
  
  .spoiler-content .spoiler-reveal:hover {
	  background: var(--accent-secondary);
  }
  
  .captcha-modal {
	  position: fixed;
	  inset: 0;
	  background: rgba(0, 0, 0, 0.8);
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  z-index: 2000;
  }
  
  .captcha-modal-content {
	  background: var(--bg-secondary);
	  border-radius: var(--radius-lg);
	  padding: 24px;
	  max-width: 400px;
	  width: 100%;
	  text-align: center;
  }
  
  .captcha-modal-header {
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	  margin-bottom: 16px;
  }
  
  .captcha-modal-header h3 {
	  margin: 0;
  }
  
  .captcha-modal-header button {
	  background: none;
	  border: none;
	  font-size: 24px;
	  cursor: pointer;
	  color: var(--text-secondary);
  }
  
  .captcha-display {
	  display: flex;
	  gap: 12px;
	  justify-content: center;
	  align-items: center;
	  margin: 16px 0;
  }
  
  .captcha-display svg {
	  border-radius: var(--radius-sm);
  }
  
  #captcha-input {
	  width: 100%;
	  padding: 12px;
	  background: var(--bg-tertiary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-md);
	  color: var(--text-primary);
	  font-size: 18px;
	  text-align: center;
	  margin-bottom: 16px;
  }
  
  #captcha-input:focus {
	  outline: none;
	  border-color: var(--accent-primary);
  }
  
  .comment {
	  display: flex;
	  gap: 16px;
	  padding: 16px 0;
	  border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .comment:not(:has(.comment-replies)) {
	  border-bottom: 1px solid var(--border);
  }

  .comment.has-replies {
	  border-bottom: none;
  }

  .comment:last-child {
	  border-bottom: none;
  }

  .comment:last-child .comment-replies {
	  border-bottom: none;
	  padding-bottom: 0;
  }
  
  .comment-pending {
	  font-size: 11px;
	  color: #f59e0b;
	  background: rgba(245, 158, 11, 0.12);
	  padding: 2px 8px;
	  border-radius: 4px;
	  font-weight: 600;
  }
  
  .comment-avatar {
	  width: 48px;
	  height: 48px;
	  border-radius: 50%;
	  background: var(--accent-gradient);
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  font-weight: 700;
	  flex-shrink: 0;
	  overflow: hidden;
  }
  
  .comment-avatar-img {
	  width: 100%;
	  height: 100%;
	  object-fit: cover;
  }
  
  .comment-body {
	  flex: 1;
  }
  
  .comment-header {
	  display: flex;
	  align-items: center;
	  gap: 12px;
	  margin-bottom: 8px;
  }
  
  .comment-author {
	  font-weight: 600;
  }
  
  .comment-role {
	  padding: 2px 8px;
	  background: var(--accent-primary);
	  border-radius: 4px;
	  font-size: 11px;
	  font-weight: 600;
  }
  
  .comment-time {
	  font-size: 13px;
	  color: var(--text-muted);
  }
  
  .comment-content {
	  color: var(--text-secondary);
	  line-height: 1.6;
	  word-wrap: break-word;
	  overflow-wrap: break-word;
	  word-break: break-word;
  }
  
  .comment-actions {
	  display: flex;
	  gap: 12px;
	  margin-top: 12px;
  }
  
  .comment-action {
	  font-size: 13px;
	  color: var(--text-muted);
	  cursor: pointer;
	  transition: var(--transition);
  }
  
  .comment-action:hover {
	  color: var(--accent-secondary);
  }
  
  .comment-replies {
	  margin-top: 12px;
	  padding: 12px 16px;
	  margin-right: 16px;
	  border-right: 3px solid var(--accent-primary);
	  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	  background: rgba(255, 255, 255, 0.02);
	  border-bottom: 1px solid var(--border);
	  padding-bottom: 16px;
  }
  
  .reply {
	  display: flex;
	  gap: 12px;
	  padding: 12px 0;
	  border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .reply:last-child {
	  border-bottom: none;
  }
  
  .reply-avatar {
	  width: 36px;
	  height: 36px;
	  border-radius: 50%;
	  background: var(--bg-tertiary);
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  font-weight: 600;
	  font-size: 14px;
	  flex-shrink: 0;
	  overflow: hidden;
  }
  
  .auth-modal {
	  position: fixed;
	  inset: 0;
	  background: rgba(0, 0, 0, 0.8);
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  z-index: 2000;
	  padding: 24px;
	  opacity: 0;
	  visibility: hidden;
	  transition: var(--transition);
  }
  
  .auth-modal.active {
	  opacity: 1;
	  visibility: visible;
  }
  
  .auth-box {
	  background: var(--bg-secondary);
	  border-radius: var(--radius-lg);
	  padding: 32px;
	  width: 100%;
	  max-width: 400px;
	  border: 1px solid var(--border);
	  transform: scale(0.9);
	  transition: var(--transition);
  }
  
  .auth-modal.active .auth-box {
	  transform: scale(1);
  }
  
  .auth-box h2 {
	  font-size: 24px;
	  margin-bottom: 24px;
	  text-align: center;
  }
  
  .form-group {
	  margin-bottom: 20px;
  }
  
  .form-group label {
	  display: block;
	  font-size: 14px;
	  font-weight: 500;
	  margin-bottom: 8px;
	  color: var(--text-secondary);
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
	  width: 100%;
	  padding: 12px 16px;
	  background: var(--bg-tertiary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-md);
	  color: var(--text-primary);
	  font-family: inherit;
	  font-size: 14px;
	  transition: var(--transition);
  }
  
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
	  outline: none;
	  border-color: var(--accent-primary);
	  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2);
  }
  
  .form-group input::placeholder {
	  color: var(--text-muted);
  }
  
  .form-error {
	  color: var(--error);
	  font-size: 13px;
	  margin-top: 8px;
  }
  
  .auth-tabs {
	  display: flex;
	  gap: 8px;
	  margin-bottom: 24px;
  }
  
  .auth-tab {
	  flex: 1;
	  padding: 12px;
	  background: transparent;
	  border: none;
	  color: var(--text-secondary);
	  font-family: inherit;
	  font-size: 14px;
	  font-weight: 600;
	  cursor: pointer;
	  border-radius: var(--radius-sm);
	  transition: var(--transition);
  }
  
  .auth-tab.active {
	  background: var(--accent-gradient);
	  color: white;
  }
  
  .breadcrumbs {
	  display: flex;
	  align-items: center;
	  gap: 8px;
	  font-size: 14px;
	  color: var(--text-muted);
	  margin-bottom: 24px;
  }
  
  .breadcrumbs a {
	  color: var(--text-secondary);
  }
  
  .breadcrumbs span {
	  color: var(--text-muted);
  }
  
  .filter-bar {
	  display: flex;
	  gap: 16px;
	  margin-bottom: 24px;
	  flex-wrap: wrap;
  }
  
  .filter-tabs {
	  display: flex;
	  gap: 8px;
	  flex-wrap: wrap;
  }
  
  .filter-tab {
	  padding: 10px 24px;
	  background: var(--bg-secondary);
	  border: 1px solid var(--border);
	  border-radius: var(--radius-sm);
	  color: var(--text-secondary);
	  font-family: inherit;
	  font-size: 15px;
	  font-weight: 500;
	  cursor: pointer;
	  transition: all 0.2s ease;
  }
  
  .filter-tab:hover {
	  background: var(--bg-tertiary);
	  color: var(--text-primary);
	  border-color: var(--accent-primary);
  }
  
  .filter-tab.active {
	  background: var(--accent-primary);
	  color: #fff;
	  border-color: var(--accent-primary);
  }
  
  .empty-state {
	  text-align: center;
	  padding: 80px 24px;
  }
  
  .empty-state svg {
	  width: 80px;
	  height: 80px;
	  color: var(--text-muted);
	  margin-bottom: 24px;
  }
  
  .empty-state h3 {
	  font-size: 20px;
	  margin-bottom: 8px;
  }
  
  .empty-state p {
	  color: var(--text-secondary);
	  margin-bottom: 24px;
  }
  
  .loading {
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  padding: 48px;
  }
  
  .spinner {
	  width: 40px;
	  height: 40px;
	  border: 3px solid var(--bg-tertiary);
	  border-top-color: var(--accent-primary);
	  border-radius: 50%;
	  animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
	  to { transform: rotate(360deg); }
  }
  
  .toast-container {
	  position: fixed;
	  top: 80px;
	  left: 24px;
	  z-index: 10000;
	  display: flex;
	  flex-direction: column;
	  gap: 12px;
  }
  
  .toast {
	  padding: 16px 24px;
	  background: var(--bg-secondary);
	  border-radius: var(--radius-md);
	  border: 1px solid var(--border);
	  box-shadow: var(--shadow);
	  animation: slideIn 300ms ease-out;
	  max-width: 350px;
  }
  
  @keyframes slideIn {
	  from {
		  transform: translateX(-100%);
		  opacity: 0;
	  }
	  to {
		  transform: translateX(0);
		  opacity: 1;
	  }
  }
  
  .toast.success {
	  border-color: var(--success);
  }
  
  .toast.error {
	  border-color: var(--error);
  }
  
  .toast.warning {
	  border-color: var(--warning);
  }
  
  .footer {
	  background: var(--bg-secondary);
	  border-top: 1px solid var(--border);
	  padding: 48px 0 24px;
	  margin-top: 80px;
  }
  
  .footer-content {
	  display: grid;
	  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	  gap: 48px;
	  margin-bottom: 48px;
	  display: none;
  }
  
  .footer-section h4 {
	  font-size: 16px;
	  font-weight: 700;
	  margin-bottom: 16px;
	  color: var(--accent-secondary);
  }
  
  .footer-section a {
	  display: block;
	  color: var(--text-secondary);
	  padding: 6px 0;
	  transition: var(--transition);
  }
  
  .footer-section a:hover {
	  color: var(--text-primary);
	  padding-right: 8px;
  }
  
  .footer-bottom {
	  text-align: center;
	  /*! padding-top: 24px; */
	  /*! border-top: 1px solid var(--border); */
	  color: var(--text-muted);
	  font-size: 14px;
  }
  
  .footer-bottom a {
	  color: var(--text-secondary);
  }
  
  .mobile-menu-btn {
	  display: none;
	  width: 40px;
	  height: 40px;
	  border: none;
	  background: transparent;
	  color: var(--text-primary);
	  cursor: pointer;
	  font-size: 24px;
  }
  
  .mobile-only {
	  display: none;
  }
  
  @media (max-width: 768px) {
	  .header {
		  top: 0;
	  }
	  
	  .header-container {
		  position: relative;
	  }
	  
	  .nav {
		  display: none;
		  position: absolute;
		  top: 100%;
		  right: 0;
		  left: 0;
		  background: var(--bg-secondary);
		  border-bottom: 1px solid var(--border);
		  flex-direction: column;
		  padding: 8px;
		  gap: 4px;
	  }
	  
	  .nav.open {
		  display: flex;
	  }
	  
	  .nav-link {
		  width: 100%;
		  padding: 12px 16px;
	  }
	  
	  .nav-link.active::after {
		  display: none;
	  }
	  
	  .logged-in-topbar {
		  flex-wrap: nowrap;
		  padding: 4px 12px;
		  gap: 4px;
		  justify-content: flex-start;
		  overflow-x: auto;
		  overflow-y: hidden;
		  scrollbar-width: none;
	  }
	  
	  .logged-in-topbar .topbar-btn {
		  padding: 2px 8px;
		  font-size: 12px;
		  white-space: nowrap;
	  }
	  
	  .mobile-menu-btn,
	  .mobile-only {
		  display: flex;
		  align-items: center;
		  justify-content: center;
	  }
	  
	  .header-logo-img {
		  max-height: 32px;
		  max-width: 100px;
	  }
	  
	  .hero h1 {
		  font-size: 32px;
	  }
	  
	  .hero p {
		  font-size: 16px;
	  }
	  
	  .project-info h1 {
		  font-size: 28px;
	  }
	  
	  .footer-content {
		  grid-template-columns: 1fr;
		  gap: 32px;
	  }

	  .page {
		  padding: 24px 0;
	  }

	  .breadcrumbs {
		  margin-bottom: 40px;
	  }

	  .footer {
		  margin-top: 40px;
	  }
  }
  
  .modal {
	  position: fixed;
	  inset: 0;
	  background: rgba(0, 0, 0, 0.8);
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  z-index: 2000;
	  padding: 24px;
	  opacity: 0;
	  visibility: hidden;
	  transition: var(--transition);
  }
  
  .modal.active {
	  opacity: 1;
	  visibility: visible;
  }
  
  .modal-content {
	  background: var(--bg-secondary);
	  border-radius: var(--radius-lg);
	  padding: 32px;
	  width: 100%;
	  max-width: 600px;
	  max-height: 90vh;
	  overflow-y: auto;
	  border: 1px solid var(--border);
  }
  
  .modal-header {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  margin-bottom: 24px;
  }
  
  .modal-header h2 {
	  font-size: 20px;
  }
  
  .modal-close {
	  width: 36px;
	  height: 36px;
	  border: none;
	  background: var(--bg-tertiary);
	  border-radius: var(--radius-sm);
	  color: var(--text-secondary);
	  cursor: pointer;
	  font-size: 20px;
	  transition: var(--transition);
  }
  
  .modal-close:hover {
	  background: var(--error);
	  color: white;
  }
  
  .modal-footer {
	  display: flex;
	  justify-content: flex-end;
	  gap: 12px;
	  margin-top: 24px;
	  padding-top: 24px;
	  border-top: 1px solid var(--border);
  }
  
  .image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms ease;
  }

  .image-modal.active {
    opacity: 1;
    visibility: visible;
  }

  .image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
  }

  .image-modal-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease;
    z-index: 3001;
  }

  .image-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  .fade-enter {
	  opacity: 0;
  }
  
  .fade-enter-active {
	  opacity: 1;
	  transition: opacity 300ms ease-out;
  }
  
  .skeleton {
	  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
	  background-size: 200% 100%;
	  animation: shimmer 1.5s infinite;
	  border-radius: var(--radius-sm);
  }
  
  @keyframes shimmer {
	  0% { background-position: 200% 0; }
	  100% { background-position: -200% 0; }
  }
  
  .skeleton-card {
	  aspect-ratio: 3/4;
  }
  
  .skeleton-text {
	  height: 20px;
	  margin-bottom: 8px;
  }
  
  .skeleton-text.short {
	  width: 60%;
  }
  
  .social-links {
	  display: flex;
	  gap: 20px;
	  justify-content: center;
	  flex-wrap: wrap;
  }
  
  .social-link {
	  display: inline-flex;
	  flex-direction: column;
	  align-items: center;
	  gap: 8px;
	  padding: 16px;
	  background: var(--bg-secondary);
	  border-radius: 12px;
	  min-width: 80px;
	  transition: all 0.2s ease;
	  text-decoration: none;
  }
  
  .social-link:hover {
	  transform: translateY(-4px);
	  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .social-link-icon {
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  padding: 8px;
	  width: 60px;
	  height: 60px;
	  border-radius: 50%;
	  color: white;
  }
  
  .social-link-name {
	  color: var(--text-primary);
	  font-size: 14px;
	  font-weight: 500;
  }
  
  .comment-highlight {
	  animation: commentFade 3s ease-out;
  }
  
  @keyframes commentFade {
	  0% { background-color: rgba(var(--accent-rgb), 0.15); }
	  100% { background-color: transparent; }
  }

  .arc-page-header {
    padding: 32px 0 24px;
  }

  .arc-page-header h1 {
    margin: 0;
    font-size: 28px;
  }

  .arc-entries {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .arc-entry {
    display: flex;
    gap: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
  }

  .arc-entry:hover {
    border-color: var(--accent-primary);
  }

  .arc-entry-image {
    flex-shrink: 0;
    width: 260px;
    min-height: 160px;
    background: var(--bg-tertiary);
    cursor: pointer;
  }

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

  .arc-entry-content {
    flex: 1;
    padding: 16px 20px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .arc-entry.has-image .arc-entry-content {
    padding-right: 0;
  }

  .arc-entry-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
  }

  .arc-entry-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .arc-entry-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
  }

  .arc-badge-anime {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
  }

  .arc-badge-manga {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
  }

  .badge-exclusive {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
  }

  .arc-entry-desc {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
  }

  @media (max-width: 768px) {
    .arc-entry {
      flex-direction: column;
    }
    .arc-entry-image {
      width: 100%;
      height: 220px;
    }
    .arc-entry-content {
      padding: 12px 16px;
    }
    .arc-entry.has-image .arc-entry-content {
      padding: 12px 16px;
    }
  }

.mode-banners {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column-reverse;
    z-index: 9999;
    pointer-events: none;
}

.mode-banner {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
}

.debug-mode-banner {
    background: rgba(220, 38, 38, 0.92);
}

.maintenance-mode-banner {
    background: rgba(217, 119, 6, 0.95);
}