/* NovelTrad Production Stylesheet - (c) 2026 NovelTrad */



:root {
  --bg-deep: #05050a; --bg-app: #0a0a14; --bg-sidebar: #07070f;
  --bg-card: #12121e; --bg-elevated: #1a1a2e; --bg-hover: #1f1f33;
  --bg-glass: rgba(255,255,255,0.04); --bg-glass-hover: rgba(255,255,255,0.08);
  --bg-main: #0a0a14; --surface-color: #12121e; --surface-light: #1a1a2e;
  --accent: #6366f1; --accent-hover: #818cf8; --accent-active: #4f46e5;
  --accent-glow: rgba(99, 102, 241,0.25); --accent-subtle: rgba(99, 102, 241,0.08);
  --accent-color: #6366f1; --primary-color: #6366f1;
  --secondary: #6366f1; --secondary-glow: rgba(99,102,241,0.20);
  --border-color: rgba(255,255,255,0.07); --border-hover: rgba(255,255,255,0.14);
  --border-accent: rgba(99, 102, 241,0.35);
  --text-primary: #f1f5f9; --text-secondary: #94a3b8;
  --text-tertiary: #475569; --text-muted: #334155;
  --success: #10b981; --warning: #f59e0b; --danger: #ef4444;
  --radius-xs: 3px; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px;
  --radius-xl: 18px; --radius-2xl: 24px; --radius-full: 9999px;
  --font-sans: 'Nunito Sans','Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --font-display: 'Playfair Display','Nunito Sans',serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5); --shadow-md: 0 4px 12px rgba(0,0,0,0.6);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.7); --shadow-xl: 0 20px 50px rgba(0,0,0,0.8);
  --shadow-glow: 0 0 20px var(--accent-glow); --shadow-cover: 0 8px 24px rgba(0,0,0,0.6);
  --ease-out: cubic-bezier(0.23,1,0.32,1); --ease-in-out: cubic-bezier(0.77,0,0.175,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --transition-fast: 150ms; --transition-normal: 250ms; --transition-slow: 400ms;
}


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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select {
  font-family: inherit;
}

.hidden {
  display: none !important;
}


.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}



.topnav {
  width: 100%;
  background: rgba(7,7,15,0.88);
  backdrop-filter: brightness(0.85) contrast(105%);
  -webkit-backdrop-filter: brightness(0.85) contrast(105%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 64px;
  flex-shrink: 0;
  gap: 4px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(255,255,255,0.07), 0 4px 24px rgba(0,0,0,0.35);
}


.topnav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 24px;
  text-decoration: none;
  flex-shrink: 0;
}

.topnav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg,#6366f1,#818cf8);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.topnav-logo h1 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}


.topnav-items {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.btn-sidebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out), transform 100ms var(--ease-out);
}

.btn-sidebar i {
  font-size: 13px;
}

.btn-sidebar:hover:not(.disabled) {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.btn-sidebar:active:not(.disabled) {
  transform: scale(0.97);
}

.btn-sidebar.active {
  background: rgba(99, 102, 241,0.12);
  color: #818cf8;
  position: relative;
}

.btn-sidebar.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--primary-color, #6366f1);
  border-radius: 1px;
}

.btn-sidebar.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


.topnav-spacer {
  flex: 1;
}


.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 0 12px;
}


.history-badge {
  background: #6366f1;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  margin-left: 2px;
}


.library-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-color);
}


.sidebar-section,
.sidebar-label,
.sidebar-divider,
.sidebar-spacer,
.sidebar-overlay,
.btn-new-translation { display: none !important; }


.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bg-app);
  padding: 32px 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.module-container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: fadeIn 300ms var(--ease-out);
}


#libraryModule.module-container {
  max-width: 100%;
  padding: 0 4px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.studio-header {
  margin-bottom: 8px;
}

.studio-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.studio-header p {
  color: var(--text-secondary);
  font-size: 14px;
}




.dropzone {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  transition: border-color 150ms var(--ease-out), background 150ms var(--ease-out);
  position: relative;
}

.dropzone.dragover {
  border-color: var(--text-primary);
  background: var(--bg-elevated);
}

.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dropzone-empty .upload-icon-pulse,
.dropzone-empty .upload-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.dropzone-empty h3 {
  font-size: 16px;
  font-weight: 600;
}

.dropzone-empty p {
  font-size: 13px;
  color: var(--text-secondary);
}

.file-loaded-info {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: var(--bg-elevated);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.pdf-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--text-primary);
  color: var(--bg-app);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.pdf-meta h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.pdf-meta p {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-clear {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 16px;
  transition: color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.btn-clear:hover {
  color: var(--text-primary);
}
.btn-clear:active {
  transform: scale(0.9);
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all 150ms var(--ease-out);
  padding: 8px 16px;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg,#6366f1,#818cf8);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241,0.25);
  border: none;
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg,#818cf8,#fb7185);
  box-shadow: 0 6px 22px rgba(99, 102, 241,0.42);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: brightness(0.85) contrast(105%);
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 14px;
  flex: 1;
}
.btn-md {
  padding: 10px 20px;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}


.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.control-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

select, input[type="text"], input[type="search"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 150ms var(--ease-out);
}


input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}

select:focus, input:focus {
  border-color: var(--text-secondary);
}

.input-box {
  position: relative;
}

.btn-toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
}
.btn-toggle-pass:hover {
  color: var(--text-primary);
}

.action-row {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}


.dashboard-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.dashboard-stats-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-box span {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-box h4 {
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary) !important; 
}


.progress-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  animation: fadeIn 200ms var(--ease-out);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.progress-track, .progress-bar-bg {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill, .progress-bar-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(99, 102, 241,0.25);
  transition: width 400ms var(--ease-out);
}

.progress-subtext {
  font-size: 12px;
  color: var(--text-secondary);
}


.result-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  animation: fadeIn 200ms var(--ease-out);
}

.success-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.success-icon {
  width: 48px;
  height: 48px;
  background: var(--text-primary);
  color: var(--bg-app);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.success-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2px;
}
.success-text p {
  font-size: 13px;
  color: var(--text-secondary);
}

.error-banner {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #ef4444;
}
.error-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 16px;
}


.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  padding: 0 8px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
}
.status-dot.warning { background: var(--warning); }
.status-dot.green { background: var(--text-primary); }


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: brightness(0.85) contrast(105%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  animation: fadeIn 200ms var(--ease-out);
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  width: 90%;
  max-width: 500px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.75),0 0 0 1px rgba(255,255,255,0.05);
  backdrop-filter: brightness(0.85) contrast(105%);
}

.history-modal-card {
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}
.close-modal {
  font-size: 24px;
  color: var(--text-secondary);
  transition: color 150ms var(--ease-out);
}
.close-modal:hover {
  color: var(--text-primary);
}
.modal-body {
  overflow-y: auto;
  padding-right: 8px;
}


.job-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.job-card-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.job-card-info p {
  font-size: 12px;
  color: var(--text-secondary);
}
.job-card-actions {
  display: flex;
  gap: 8px;
}


.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; padding: 20px; }




.library-card {
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition-fast) var(--ease-out),
              border-color var(--transition-fast) var(--ease-out);
}
.library-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-secondary);
}

.library-card-cover-container {
  background: var(--bg-color);
}



.reader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  flex-direction: column;
  background-color: var(--bg-app);
  color: var(--text-primary);
  overflow: hidden;
}

.reader-overlay.theme-dark {
  background-color: #0f1115;
  color: #e2e8f0;
}

.reader-overlay.theme-light {
  background-color: #f8fafc;
  color: #1e293b;
}

.reader-overlay.theme-sepia {
  background-color: #f4ecd8;
  color: #5b4636;
}

.reader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
}

.reader-overlay.theme-dark .reader-header {
  background: #1e2128;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reader-overlay.theme-light .reader-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.reader-overlay.theme-sepia .reader-header {
  background: #e8dfc7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}



.reader-body {
  display: flex;
  flex: 1;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 60px);
  background-color: rgba(0, 0, 0, 0.03); 
}

.reader-overlay.theme-dark .reader-body {
  background-color: rgba(0, 0, 0, 0.2);
}

.reader-overlay.theme-sepia .reader-body {
  background-color: rgba(0, 0, 0, 0.05);
}

.reader-viewer {
  flex: none;
  
  height: calc(100% - 48px);
  
  max-width: 100%; 
  
  margin: 24px auto;
  position: relative;
  overflow: hidden;
  display: block;
  
  
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 4px;
}

.reader-overlay.theme-dark .reader-viewer {
  flex: none;
  
  height: calc(100% - 48px);
  
  max-width: 100%; 
  
  margin: 24px auto;
  position: relative;
  overflow: hidden;
  display: block;
  
  
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 4px;
}

.reader-overlay.theme-sepia .reader-viewer {
  flex: none;
  
  height: calc(100% - 48px);
  
  max-width: 100%; 
  
  margin: 24px auto;
  position: relative;
  overflow: hidden;
  display: block;
  
  
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 4px;
}

.reader-nav-btn {
  width: 60px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.reader-nav-btn:hover {
  background: rgba(128, 128, 128, 0.1);
  color: var(--text-primary);
}

.reader-controls {
  display: flex;
  gap: 12px;
}

.reader-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-btn:hover {
  background: var(--bg-hover);
}

.reader-overlay.theme-dark .reader-btn {
  border-color: rgba(255, 255, 255, 0.1);
}

.reader-overlay.theme-dark .reader-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}


.reader-viewer.format-a4 {
  aspect-ratio: 1 / 1.414;
  max-width: 100%;
}


.reader-viewer.format-a5 {
  aspect-ratio: 1 / 1.6;
  max-height: 800px;
  max-width: 500px;
}


.reader-viewer.format-full {
  aspect-ratio: auto;
  max-width: 1200px;
  width: 100%;
}

.sidebar-sub-menu {
  display: flex;
  flex-direction: column;
  padding-left: 2rem;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}
.btn-sub-sidebar {
  background: transparent;
  border: none;
  color: var(--text-muted);
  text-align: left;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.btn-sub-sidebar:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.btn-sub-sidebar.active {
  color: var(--primary-color);
  font-weight: 500;
}


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

.library-search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}
.library-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.library-search-box input {
    width: 100%;
    background-color: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px 10px 40px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}
.library-search-box input:focus {
    border-color: var(--primary-color);
}

.library-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-icon {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-icon:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}


.continue-hero {
    display: flex;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(67, 97, 238, 0.02) 100%);
    border: 1px solid rgba(67, 97, 238, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    gap: 24px;
    align-items: center;
}
.hero-cover-container {
    flex-shrink: 0;
    width: 120px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero-cover {
    width: 100%;
    height: auto;
    display: block;
}
.hero-info {
    flex: 1;
}
.hero-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}
.hero-format {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}
.hero-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    max-width: 400px;
}
.hero-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--surface-light);
    border-radius: 3px;
    overflow: hidden;
}
.hero-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}
.hero-progress-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.hero-btn {
    padding: 8px 24px;
    font-weight: 600;
    font-size: 0.9rem;
}


.library-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}
.lib-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0 0 12px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.lib-tab:hover {
    color: var(--text-primary);
}
.lib-tab.active {
    color: var(--primary-color);
}
.lib-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
}



.library-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 28px 20px;
}

.lib-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    position: relative;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.2s;
}
.lib-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.lib-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff5722; 
}
.status-dot.reading {
    background: #4caf50; 
}
.status-dot.completed {
    background: #2196f3; 
}

.lib-card-cover-container {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    margin-bottom: 12px;
    transition: box-shadow 300ms;
}

.lib-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lib-card-info {
    padding: 0;
}
.lib-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 4px 0;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lib-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}



.reader-settings-menu {
    position: absolute;
    top: 50px;
    right: 0;
    width: 250px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 16px;
    z-index: 2000;
}
.settings-group {
    margin-bottom: 16px;
}
.settings-group:last-child {
    margin-bottom: 0;
}
.settings-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.settings-options {
    display: flex;
    gap: 8px;
    align-items: center;
}
.setting-btn {
    flex: 1;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.setting-btn:hover {
    border-color: var(--primary-color);
}
.setting-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.reader-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    height: 100%;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    background: inherit;
}

.reader-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 60px); 
    width: 100%;
    background-color: var(--bg-app);
}




.reader-content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 60px);
}

.reader-sidebar {
    width: 250px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, margin-left 0.3s ease;
}

.reader-sidebar.hidden {
    transform: translateX(-100%);
    margin-left: -250px;
}

.reader-sidebar h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.toc-list a:hover {
    background: var(--bg-hover);
}

.toc-list ul {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    border-left: 1px solid var(--border-color);
}

.reader-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-app); 
    position: relative;
    overflow: hidden;
}

.reader-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0;
    overflow-y: auto;
}


.reader-paper-wrapper {
    background: var(--bg-card); 
    max-width: 960px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}


.reader-body.scrolled-mode {
    align-items: flex-start;
}
.reader-body.scrolled-mode .reader-paper-wrapper {
    height: auto;
    min-height: 100%;
    padding-bottom: 50px;
}

.reader-viewer {
    width: 100%;
    height: 100%;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }


.reader-body.scrolled-mode .nav-btn {
    display: none;
}

.read-mode-options .btn-theme {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


[data-theme="dark"] .reader-paper-wrapper {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .reader-sidebar {
        position: absolute;
        height: 100%;
        z-index: 20;
    }
    .reader-paper-wrapper {
        box-shadow: none;
        max-width: 100%;
    }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
}




.mobile-topbar {
    display: none;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
    z-index: 100;
}
.mobile-topbar h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}




@media (max-width: 1024px) {
  .topnav-items .btn-sidebar span,
  .topnav-items .btn-sidebar {
    font-size: 12px;
  }
  .module-container {
    max-width: 100%;
  }
  .controls-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}


@media (max-width: 768px) {
  
  .topnav {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 16px;
    gap: 0;
  }
  
  .topnav-logo {
    flex: 1;
    margin-right: 0;
  }
  
  .topnav-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
  }
  
  .topnav-items {
    width: 100%;
    display: none;
    flex-direction: column;
    padding: 8px 0 4px;
    gap: 2px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
  }
  
  .topnav-items.open {
    display: flex;
  }
  
  .topnav-items .btn-sidebar {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .topnav-spacer {
    display: none;
  }
  
  .status-badge {
    display: none;
  }

  
  .main-content {
    padding: 16px;
    overflow-x: hidden;
  }
  
  .module-container {
    max-width: 100%;
    gap: 16px;
  }
  
  
  .library-filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 8px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .library-filter-bar::-webkit-scrollbar { display: none; }
  
  
  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 12px;
    padding: 0;
  }
  
  
  .library-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .library-search-box {
    min-width: unset;
    width: 100%;
  }
  .library-actions {
    justify-content: flex-end;
  }
  
  
  .workspace-panels {
    flex-direction: column !important;
  }
  .panel {
    width: 100% !important;
    height: 50vh !important;
  }
  .resize-handle {
    width: 100% !important;
    height: 10px !important;
    cursor: ns-resize !important;
  }
  
  
  .controls-grid {
    grid-template-columns: 1fr !important;
  }
  
  
  .studio-header { padding: 20px; }
  .dropzone {
    padding: 24px 16px;
    margin: 0;
  }
  
  
  .series-page-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .series-page-cover-wrap {
    width: 140px;
    margin: 0 auto;
  }
  .series-page-banner {
    height: 200px;
  }
  .series-page-content {
    padding: 16px;
  }
  .series-volumes-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 12px;
  }
}


@media (max-width: 480px) {
  .library-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .series-volumes-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}




.premium-reader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-app);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}


.premium-reader-toolbar {
    height: 50px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 100;
}

.toolbar-left, .toolbar-center, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.toolbar-left { flex: 1; }
.toolbar-right { flex: 1; justify-content: flex-end; }
.toolbar-center { flex: 2; justify-content: center; }

.toolbar-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.toolbar-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.toolbar-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.reader-progress-indicator {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 80px;
    text-align: center;
}


.premium-reader-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.premium-reader-sidebar {
    width: 300px;
    background-color: var(--bg-main);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.premium-reader-sidebar.closed {
    transform: translateX(-100%);
    position: absolute;
    height: 100%;
}

.sidebar-header {
    padding: 20px 20px 10px 20px;
}
.sidebar-header h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin: 0;
}

.premium-toc-list {
    list-style: none;
    padding: 0 10px 20px 10px;
    margin: 0;
}
.premium-toc-list li {
    margin: 2px 0;
}
.premium-toc-list a {
    display: block;
    padding: 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: background 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.premium-toc-list a:hover {
    background-color: var(--bg-hover);
}
.premium-toc-list ul {
    padding-left: 15px;
    border-left: 1px solid var(--border-color);
    margin-left: 15px;
    margin-top: 2px;
}


.premium-reader-main {
    flex: 1;
    background-color: var(--bg-app); 
    display: flex;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
}

.premium-reader-page {
    background-color: var(--bg-card); 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 960px; 
    min-height: 100%;
    margin: 0 auto;
    position: relative;
    transition: max-width 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

html.dark .premium-reader-page {
    box-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.epub-viewer-container {
    width: 100%;
    height: 100%;
}


.dropdown-container {
    position: relative;
}

.premium-popover {
    position: absolute;
    top: 45px;
    right: 0;
    width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 16px;
    z-index: 1000;
    transform-origin: top right;
    animation: popoverFadeIn 0.15s ease-out;
}
html.dark .premium-popover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@keyframes popoverFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.popover-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.popover-row {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.popover-row:last-child { margin-bottom: 0; }
.popover-row label {
    font-size: 13px;
    font-weight: 500;
}

.segmented-control {
    display: flex;
    background: var(--bg-main);
    border-radius: 6px;
    padding: 2px;
}
.segmented-control button {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 6px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}
.segmented-control button:hover {
    background: var(--bg-hover);
}
.segmented-control button.active {
    background: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.segmented-control span {
    flex: 1;
    text-align: center;
    font-size: 13px;
    line-height: 28px;
}

.theme-control {
    display: flex;
    gap: 8px;
}
.theme-btn {
    flex: 1;
    border: 1px solid var(--border-color);
    padding: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.theme-btn:hover { opacity: 0.9; }
.theme-btn.active { opacity: 1; border-color: var(--primary-color); outline: 2px solid var(--primary-color); outline-offset: 2px; }


.reader-search-bar {
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 8px;
    z-index: 500;
    animation: popoverFadeIn 0.15s ease-out;
}
.reader-search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 200px;
    font-size: 13px;
}
.search-count {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: right;
}


.premium-reader-overlay:fullscreen {
    background-color: var(--bg-app);
}
.premium-reader-overlay:-webkit-full-screen {
    background-color: var(--bg-app);
}


@media (max-width: 768px) {
    .premium-reader-sidebar {
        position: absolute;
        height: 100%;
        z-index: 1000;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    }
    .toolbar-title { display: none; }
    .premium-reader-page { box-shadow: none; padding: 0 10px; max-width: 100%; }
    .premium-reader-main { padding: 0; }
}


.hidden { display: none !important; }




.library-search-box {
    position: relative;
}
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 1000;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
}
.search-dropdown.hidden {
    display: none;
}
.search-dropdown-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}
.search-dropdown-item:last-child {
    border-bottom: none;
}
.search-dropdown-item:hover {
    background: var(--bg-hover);
}
.search-dropdown-item img {
    width: 30px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}
.search-dropdown-info {
    display: flex;
    flex-direction: column;
}
.search-dropdown-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.search-dropdown-format {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
}


.library-masonry.list-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.library-masonry.list-view .book-card {
    display: flex;
    flex-direction: row;
    height: 100px;
    align-items: center;
    padding: 10px;
}
.library-masonry.list-view .book-cover {
    width: 60px;
    height: 80px;
    margin-bottom: 0;
    margin-right: 15px;
}
.library-masonry.list-view .book-info {
    flex: 1;
    text-align: left;
}



.lib-card-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    z-index: 20;
    transition: all 0.2s;
    opacity: 1; 
}

.lib-card-fav:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
    color: white;
}
.lib-card-fav.active {
    color: #ef4444; 
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
}



.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: brightness(0.85) contrast(105%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
    
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .library-top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .library-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    
    .continue-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .hero-info {
        align-items: center;
    }
    
    
    .premium-reader-toolbar {
        padding: 8px 10px;
    }
    .toolbar-title {
        font-size: 13px;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .toolbar-center {
        gap: 5px;
    }
    .reader-progress-indicator {
        min-width: 50px;
        font-size: 11px;
    }
    .toolbar-btn {
        width: 32px;
        height: 32px;
    }
    
    .premium-popover {
        width: 250px;
        right: 5px;
        top: 50px;
    }
}





#seriesModule {
    background-color: var(--bg-main);
}

.series-page-banner {
    width: 100%;
    height: 250px;
    background: var(--bg-card) url('') center/cover no-repeat;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
.series-page-banner::after {
    display: none;
}

.series-page-header {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 24px 40px;
    z-index: 10;
    display: flex;
    justify-content: flex-start;
}

.btn-back {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: brightness(0.85) contrast(105%);
    -webkit-backdrop-filter: brightness(0.85) contrast(105%);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-back:hover {
    background: var(--accent-color);
    transform: translateX(-4px);
}

.series-page-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.series-page-top {
    display: flex;
    padding: 0;
    margin-top: -100px;
    gap: 32px;
}

.series-page-cover-wrap {
    flex-shrink: 0;
    width: 200px;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    background: var(--bg-main);
    border: 1px solid rgba(255,255,255,0.1);
}
.series-page-cover {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.series-page-meta {
    padding-top: 0;
    flex: 1;
}

#seriesTitle {
    font-size: 36px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.series-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.series-tag {
    background: rgba(99, 102, 241,0.10);
    border: 1px solid rgba(99, 102, 241,0.25);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: #818cf8;
}

.series-details {
    display: flex;
    gap: 24px;
}
.series-details p {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.series-details i {
    color: var(--accent-color);
}
.series-details strong {
    color: var(--text-primary);
}

.series-page-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.series-synopsis-section h3, .series-volumes-section h3 {
    font-size: 22px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.series-synopsis-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-line;
    max-width: 960px;
}

.series-volumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
}

.volume-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex; flex-direction: column;
}
.volume-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: var(--accent-color);
}
.volume-cover {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.volume-info {
    padding: 12px;
    text-align: center;
}
.volume-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--text-primary);
}
.volume-format {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    background: var(--bg-main);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

@media (max-width: 768px) {
    .series-page-banner { height: 250px; }
    .series-page-header { padding: 16px; }
    .series-page-top { flex-direction: column; align-items: center; margin-top: -80px; padding: 0 20px; text-align: center; gap: 20px;}
    .series-page-cover-wrap { width: 160px; }
    .series-page-meta { padding-top: 10px; }
    .series-tags { justify-content: center; }
    .series-details { justify-content: center; }
    .series-page-body { padding: 20px; }
    .series-volumes-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}


.library-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}
.lib-card-meta.volumes-count {
    color: var(--accent-color);
    font-weight: 600;
}


.series-module-full {
  max-width: 100%;
  width: 100%;
  gap: 0;
  padding: 0;
  margin: 0;
  animation: fadeIn 300ms var(--ease-out);
}


.library-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.library-filter-bar .btn-sub-sidebar {
  background: transparent;
  border: none;
  color: var(--text-muted);
  text-align: left;
  padding: 4px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.library-filter-bar .btn-sub-sidebar:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
}
.library-filter-bar .btn-sub-sidebar.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
  font-weight: 500;
}


.series-page-banner {
  height: 320px;
  background-size: cover;
  background-position: center top;
  position: relative;
  flex-shrink: 0;
}



.lib-card-fav { opacity: 0; transition: opacity 0.2s, color 0.2s, transform 0.2s; }
.lib-card:hover .lib-card-fav { opacity: 1; }
.lib-card-fav.active { opacity: 1; color: #ef4444; }




.home-container {
  max-width: 100% !important;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 4px 60px;
  animation: fadeIn 350ms var(--ease-out);
}


.home-hero-card {
  position: relative;
  background: radial-gradient(circle at 85% 20%, rgba(39, 39, 42, 0.7) 0%, rgba(18, 18, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  overflow: hidden;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
}

.home-hero-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.home-hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--text-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.home-hero-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 26px;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
}

.home-hero-actions .btn:hover {
  transform: translateY(-2px);
}


.home-resume-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-resume-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.home-resume-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.home-resume-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.home-resume-cover-wrap {
  width: 64px;
  height: 92px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.home-resume-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-resume-info {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-resume-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.home-resume-format {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.home-resume-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
}

.home-resume-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 9999px;
  overflow: hidden;
}

.home-resume-progress-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.home-resume-progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 32px;
}


.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.home-section-header h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-section-header h2 i {
  font-size: 16px;
  color: var(--text-secondary);
}

.home-section-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}


.home-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.home-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s var(--ease-out);
  overflow: hidden;
}

.home-feature-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6);
  background: var(--bg-elevated);
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-feature-card:hover .feature-card-icon {
  transform: scale(1.06);
  background: var(--text-primary);
  color: var(--bg-sidebar);
}

.home-feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.home-feature-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.feature-card-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-card-points li {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card-points li i {
  font-size: 10px;
  color: var(--text-primary);
}

.feature-card-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  transition: gap 0.2s ease;
}

.home-feature-card:hover .feature-card-action {
  gap: 10px;
}


.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.home-featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), border-color 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.home-featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.7);
}

.home-featured-cover-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  position: relative;
  background: var(--bg-elevated);
  overflow: hidden;
}

.home-featured-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.home-featured-card:hover .home-featured-cover {
  transform: scale(1.04);
}

.home-featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: brightness(0.85) contrast(105%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.home-featured-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--bg-card);
}

.home-featured-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.home-featured-meta {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-featured-loading {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}


.home-highlights-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 190px;
}

.highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.highlight-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.highlight-text strong {
  font-size: 12px;
  color: var(--text-primary);
}

.highlight-text span {
  font-size: 11px;
  color: var(--text-secondary);
}

.highlight-divider {
  width: 1px;
  height: 28px;
  background: var(--border-color);
}

@media (max-width: 900px) {
  .highlight-divider {
    display: none;
  }
}


.linked-folder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color 0.2s;
}

.linked-folder-item:hover {
  border-color: var(--border-hover);
}

.linked-folder-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.linked-folder-path {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

.linked-folder-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.linked-folder-status-ok {
  color: #4ade80;
}

.linked-folder-status-err {
  color: #f87171;
}

.btn-remove-folder {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  transition: all 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-remove-folder:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}


.smart-add-option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s var(--ease-out);
  width: 100%;
}

.smart-add-option-btn:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.smart-add-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.smart-add-option-btn:hover .smart-add-icon {
  background: var(--text-primary);
  color: var(--bg-sidebar);
}

.smart-add-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.smart-add-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.smart-add-text span {
  font-size: 12px;
  color: var(--text-secondary);
}

.smart-add-option-btn .arrow-icon {
  color: var(--text-tertiary);
  font-size: 13px;
  transition: transform 0.2s ease;
}

.smart-add-option-btn:hover .arrow-icon {
  transform: translateX(4px);
  color: var(--text-primary);
}


.library-drop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: brightness(0.85) contrast(105%);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  pointer-events: none;
  animation: fadeIn 0.2s ease-out;
}

.drop-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--text-primary);
}

.drop-overlay-content i {
  font-size: 48px;
  color: var(--text-primary);
}

.drop-overlay-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.drop-overlay-content p {
  font-size: 14px;
  color: var(--text-secondary);
}




.library-module-container {
  max-width: 1400px !important;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 4px 60px;
  animation: fadeIn 350ms var(--ease-out);
}


.library-header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}

.library-title-group {
  display: flex;
  flex-direction: column;
}

.library-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  width: fit-content;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite ease-in-out;
}

.library-main-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.library-main-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}


.library-stats-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lib-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lib-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.lib-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.stat-icon-series {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.stat-icon-vols {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.stat-icon-reading {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.stat-icon-completed {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.lib-stat-info {
  display: flex;
  flex-direction: column;
}

.lib-stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.lib-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


.continue-reading-spotlight {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(39, 39, 42, 0.75) 0%, rgba(18, 18, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  transition: border-color 0.2s ease;
}

.continue-reading-spotlight:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.spotlight-backdrop {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.85) contrast(105%);
  opacity: 0.15;
  pointer-events: none;
}

.spotlight-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.spotlight-cover-container {
  width: 100px;
  height: 145px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  position: relative;
}

.spotlight-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-info {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fb923c;
  text-transform: uppercase;
}

.spotlight-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.spotlight-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-tag-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-transform: uppercase;
}

.spotlight-progress-box {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.spotlight-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.spotlight-progress-labels .progress-percent {
  font-weight: 700;
  color: var(--text-primary);
}

.spotlight-progress-bar {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.spotlight-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  transition: width 0.3s ease;
}

.spotlight-btn {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-top: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(255, 255, 255, 0.2);
}


.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.library-search-wrapper {
  flex: 1;
  min-width: 260px;
  max-width: 520px;
  position: relative;
}

.library-search-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 14px;
  pointer-events: none;
}

.library-search-wrapper input {
  width: 100%;
  padding: 12px 42px 12px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13.5px;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.library-search-wrapper input:focus {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.library-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.library-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 10px 18px;
  font-size: 13px;
  border-radius: var(--radius-md);
}

.btn-icon-glass {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-glass:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.custom-select-glass select {
  height: 40px;
  padding: 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.custom-select-glass select:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.view-mode-toggle {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.view-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  color: var(--text-primary);
}

.view-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}


.library-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.library-filter-pills::-webkit-scrollbar {
  display: none;
}

.lib-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
}

.lib-pill:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.lib-pill.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-sidebar);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.pill-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.lib-pill.active .pill-count {
  background: rgba(0, 0, 0, 0.18);
  color: var(--bg-sidebar);
}


.library-grid-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}


.novel-series-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.novel-series-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.05);
}


.novel-card-cover-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  position: relative;
  background: var(--bg-elevated);
  overflow: hidden;
}

.novel-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease-out);
}

.novel-series-card:hover .novel-card-cover {
  transform: scale(1.05);
}


.novel-card-badge-vols {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: brightness(0.85) contrast(105%);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.novel-card-badge-status {
  position: absolute;
  top: 10px;
  right: 48px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
  backdrop-filter: brightness(0.85) contrast(105%);
  text-transform: uppercase;
}

.novel-card-badge-status.reading {
  background: rgba(249, 115, 22, 0.85);
  color: #ffffff;
}

.novel-card-badge-status.completed {
  background: rgba(34, 197, 94, 0.85);
  color: #ffffff;
}

.novel-card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: brightness(0.85) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
}

.novel-card-fav-btn:hover {
  transform: scale(1.12);
  background: rgba(0, 0, 0, 0.85);
  color: #818cf8;
}

.novel-card-fav-btn.active {
  color: #818cf8;
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
}


.novel-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s var(--ease-out);
  z-index: 2;
}

.novel-series-card:hover .novel-card-hover-overlay {
  opacity: 1;
}

.novel-card-play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-sidebar);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}

.novel-series-card:hover .novel-card-play-icon {
  transform: scale(1);
}


.novel-card-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3;
}

.novel-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.8);
}


.novel-card-info {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
}

.novel-card-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.novel-card-author {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.novel-card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-tertiary);
}

.novel-card-format-tag {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}


.library-grid-showcase.list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.library-grid-showcase.list-view .novel-series-card {
  flex-direction: row;
  height: 100px;
  border-radius: var(--radius-md);
}

.library-grid-showcase.list-view .novel-card-cover-wrap {
  width: 70px;
  height: 100%;
  aspect-ratio: auto;
}

.library-grid-showcase.list-view .novel-card-info {
  flex: 1;
  justify-content: center;
  padding: 12px 18px;
}

.library-grid-showcase.list-view .novel-card-title {
  min-height: auto;
  -webkit-line-clamp: 1;
  font-size: 15px;
}

@media (max-width: 768px) {
  .library-grid-showcase {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
  .novel-card-title {
    font-size: 13px;
    min-height: 34px;
  }
  .library-stats-bar {
    width: 100%;
  }
  .lib-stat-card {
    flex: 1;
    min-width: 130px;
  }
}



.module-container.hidden,
#homeModuleContainer.hidden,
#docModuleContainer.hidden,
#videoModuleContainer.hidden,
#libraryModule.hidden,
#settingsModule.hidden {
  display: none !important;
}

#libraryModule:not(.hidden),
.library-module-container:not(.hidden) {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 8px 60px;
  margin: 0 auto;
}

.library-header-section {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  margin-bottom: 4px !important;
}

.library-stats-bar {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.library-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

.library-filter-pills {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  overflow-x: auto !important;
  padding: 4px 0 !important;
  width: 100% !important;
}

.library-grid-showcase {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
}




.epub-viewer-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}


.pdf-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 24px 0;
  box-sizing: border-box;
}


.pdf-page-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
  background: #fff; 
}


.pdf-page-skeleton {
  width: 100%;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmerSkeleton 1.5s infinite;
  border-radius: 4px;
  min-height: 200px;
}

@keyframes shimmerSkeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


.pdf-webtoon-container {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100% !important;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
}

.pdf-webtoon-container .pdf-page-wrapper {
  padding: 0;
  margin: 0;
  width: 100%;
}

.pdf-webtoon-container .pdf-page-canvas {
  width: 100%;
  max-width: 900px;
  border-radius: 0;
  box-shadow: none;
}


.premium-reader-main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.premium-reader-page {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}


.epub-viewer-container,
#readerViewer {
  width: 100%;
  height: 100%;
  overflow: hidden;
}


#readerViewer.pdf-webtoon-container {
  overflow-y: auto !important;
  height: 100% !important;
}


#readerViewer iframe {
  background: transparent !important;
}


.epub-container {
  background: transparent !important;
}


.reader-mode-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px !important;
  width: auto !important;
  min-width: 80px;
  font-size: 13px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.reader-mode-toggle .mode-label {
  font-size: 12px;
  font-weight: 500;
}

.reader-mode-toggle:hover {
  border-color: var(--border-hover) !important;
  background: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
}

.reader-mode-toggle[data-mode="webtoon"] {
  color: #a78bfa !important;
  border-color: #7c3aed !important;
}




.volume-cover-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}


.volume-format-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 4px;
  backdrop-filter: brightness(0.85) contrast(105%);
  text-transform: uppercase;
}


.volume-format-badge:has(+ *) {  }
.volume-card[data-format="pdf"] .volume-format-badge {
  background: rgba(185,28,28,0.85);
}


.volume-hover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: brightness(0.85) contrast(105%);
}
.volume-hover-play i {
  font-size: 32px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.volume-card:hover .volume-hover-play {
  opacity: 1;
}


.volume-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.15);
}
.volume-progress-fill {
  height: 100%;
  background: #a78bfa;
  border-radius: 0 2px 2px 0;
  transition: width 0.3s ease;
}


.volume-progress-pct {
  font-size: 11px;
  color: #a78bfa;
  font-weight: 600;
  margin-top: 2px;
}




.premium-reader-overlay {
  background-color: #09090b !important;
}


.premium-reader-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 56px);
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 16px 24px;
  background-color: #121214 !important;
  transition: background-color 0.2s ease;
}

.premium-reader-overlay.theme-light .premium-reader-main,
.premium-reader-main.theme-light {
  background-color: #121214 !important; 
}

.premium-reader-overlay.theme-sepia .premium-reader-main,
.premium-reader-main.theme-sepia {
  background-color: #1a1612 !important; 
}

.premium-reader-overlay.theme-dark .premium-reader-main,
.premium-reader-main.theme-dark {
  background-color: #09090b !important; 
}


.premium-reader-page {
  width: 100%;
  max-width: 860px;
  min-height: calc(100vh - 110px);
  margin: 0 auto;
  position: relative;
  border-radius: 4px;
  transition: max-width 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}


.premium-reader-page,
.premium-reader-overlay.theme-light .premium-reader-page,
.premium-reader-page.theme-light {
  background-color: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.45) !important;
}

.premium-reader-overlay.theme-light #readerViewer iframe,
.premium-reader-overlay.theme-light .epub-container {
  background-color: #ffffff !important;
}


.premium-reader-overlay.theme-sepia .premium-reader-page,
.premium-reader-page.theme-sepia {
  background-color: #fbf0d9 !important;
  color: #453424 !important;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.45) !important;
}

.premium-reader-overlay.theme-sepia #readerViewer iframe,
.premium-reader-overlay.theme-sepia .epub-container {
  background-color: #fbf0d9 !important;
}


.premium-reader-overlay.theme-dark .premium-reader-page,
.premium-reader-page.theme-dark {
  background-color: #18181b !important;
  color: #f4f4f5 !important;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6) !important;
}

.premium-reader-overlay.theme-dark #readerViewer iframe,
.premium-reader-overlay.theme-dark .epub-container {
  background-color: #18181b !important;
}


.premium-reader-page.pdf-reading-mode {
  background-color: transparent !important;
  box-shadow: none !important;
  max-width: 100% !important;
  min-height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}


.pdf-page-canvas {
  display: block !important;
  max-width: min(800px, 94vw) !important;
  max-height: calc(100vh - 90px) !important;
  width: auto !important;
  height: auto !important;
  background-color: #ffffff !important;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  margin: 0 auto;
}

.pdf-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  box-sizing: border-box;
  background: transparent !important;
}


.pdf-webtoon-container {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 0 !important;
}

.pdf-webtoon-container .pdf-page-wrapper {
  padding: 0 !important;
  margin: 0 !important;
}

.pdf-webtoon-container .pdf-page-canvas {
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 900px !important;
}



.library-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important; 
  width: 100% !important;
  flex-wrap: wrap !important;
}


.library-search-wrapper {
  flex: 1 1 340px !important;
  min-width: 280px !important;
  max-width: none !important; 
  position: relative !important;
}

.library-search-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 15px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.library-search-wrapper input {
  width: 100% !important;
  height: 44px !important;
  padding: 0 44px 0 44px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.library-search-wrapper input:focus {
  background: var(--bg-elevated) !important;
  border-color: rgba(167, 139, 250, 0.5) !important; 
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.library-search-wrapper input:focus + .search-icon,
.library-search-wrapper input:not(:placeholder-shown) + .search-icon {
  color: #a78bfa;
}

.library-toolbar-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}


.search-dropdown {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  width: 100% !important;
  max-height: 420px !important;
  background: rgba(18, 18, 22, 0.96) !important;
  backdrop-filter: brightness(0.85) contrast(105%);
  -webkit-backdrop-filter: brightness(0.85) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  overflow-y: auto !important;
  z-index: 1000 !important;
  padding: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  animation: searchDropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.search-dropdown.hidden {
  display: none !important;
}

@keyframes searchDropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-dropdown-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 8px 12px 4px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-dropdown-section-title i {
  font-size: 10px;
  color: #a78bfa;
}

.search-dropdown-item {
  padding: 10px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
  border-bottom: none !important;
}

.search-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  transform: translateX(2px);
}

.search-dropdown-item img {
  width: 36px !important;
  height: 50px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  background: #18181b !important;
  flex-shrink: 0 !important;
}

.search-dropdown-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.search-dropdown-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.search-dropdown-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
  color: var(--text-secondary) !important;
}

.search-dropdown-tag {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-secondary) !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
}

.search-dropdown-tag.format {
  background: rgba(167, 139, 250, 0.15) !important;
  color: #c4b5fd !important;
  font-weight: 700 !important;
}

.search-dropdown-progress {
  font-size: 11px !important;
  color: #a78bfa !important;
  font-weight: 600 !important;
}

.search-dropdown-empty {
  padding: 24px 16px !important;
  text-align: center !important;
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}



@media (max-width: 860px) {
  .premium-reader-main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: calc(100vh - 56px) !important;
  }
  
  .premium-reader-page {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #readerViewer {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .pdf-page-wrapper {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .pdf-page-canvas {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  .pdf-webtoon-container .pdf-page-canvas {
    max-width: 100% !important;
    width: 100% !important;
  }
}



.premium-reader-main {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: calc(100vh - 56px) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
}

.premium-reader-page {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#readerViewer {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.pdf-page-wrapper {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.pdf-page-canvas {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: calc(100vh - 56px) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 auto !important;
}

.pdf-webtoon-container {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100% !important;
  display: block !important;
}

.pdf-webtoon-container .pdf-page-wrapper {
  height: auto !important;
}

.pdf-webtoon-container .pdf-page-canvas {
  max-width: 100% !important;
  width: 100% !important;
  max-height: none !important;
}





.catalog-container {
  padding: 0 0 100px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}


.catalog-hero-carousel {
  position: relative;
  width: 100%;
  min-height: 440px;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
  background: var(--bg-card);
}

.catalog-hero-track {
  position: relative;
  width: 100%;
  min-height: 440px;
}

.catalog-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 64px;
  background-size: cover;
  background-position: center;
}

.catalog-hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.catalog-hero-content {
  max-width: 560px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catalog-hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.5);
}

.hero-badge.webnovel {
  background: rgba(236, 72, 153, 0.2);
  color: #f9a8d4;
  border-color: rgba(236, 72, 153, 0.4);
}

.hero-badge.pdf {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.hero-rating {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-status {
  font-size: 0.75rem;
  color: #6ee7b7;
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-status i { font-size: 7px; }

.catalog-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
  letter-spacing: -0.5px;
}

.catalog-hero-meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-hero-synopsis {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-read {
  background: #ffffff !important;
  color: #09090b !important;
  border-color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 16px rgba(255,255,255,0.2);
  transition: all 0.2s ease;
}
.btn-hero-read:hover {
  background: #f4f4f5 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.25);
}

.btn-hero-bookmark {
  background: rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  backdrop-filter: brightness(0.85) contrast(105%);
  transition: all 0.2s ease;
}
.btn-hero-bookmark:hover {
  background: rgba(255,255,255,0.2) !important;
  border-color: rgba(255,255,255,0.5) !important;
}

.catalog-hero-cover-wrap {
  z-index: 2;
  flex-shrink: 0;
  margin-left: 32px;
}

.catalog-hero-cover {
  width: 210px;
  height: 315px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.1);
  transition: transform 0.4s ease;
}
.catalog-hero-cover:hover { transform: scale(1.02) translateY(-4px); }

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(9,9,11,0.6);
  backdrop-filter: brightness(0.85) contrast(105%);
  border: 1px solid rgba(255,255,255,0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  font-size: 14px;
}
.carousel-nav-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-50%) scale(1.08);
  border-color: rgba(255,255,255,0.4);
}
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.catalog-hero-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.carousel-dot.active {
  width: 24px;
  border-radius: 3px;
  background: #ffffff;
}


.catalog-discovery-hub {
  position: relative;
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}


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

.catalog-search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.cat-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-tertiary);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.catalog-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 40px 10px 40px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}
.catalog-search-input::placeholder { color: var(--text-tertiary); }
.catalog-search-input:focus {
  outline: none;
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.cat-search-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s;
}
.cat-search-clear:hover { color: var(--text-primary); }


.catalog-view-toggle {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.view-toggle-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}
.view-toggle-btn.active,
.view-toggle-btn:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}


.catalog-quick-tabs {
  display: flex;
  gap: 2px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0;
  margin-bottom: -1px;
}
.catalog-quick-tabs::-webkit-scrollbar { display: none; }

.catalog-quick-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  border-radius: 0;
  margin-bottom: -1px;
}
.catalog-quick-tab:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border-hover);
}
.catalog-quick-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  font-weight: 600;
}
.catalog-quick-tab i {
  font-size: 12px;
  opacity: 0.8;
}


.catalog-genres-wrapper {
  overflow: hidden;
}
.catalog-genres-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 4px;
}
.catalog-genres-scroll::-webkit-scrollbar { display: none; }

.catalog-genre-pill {
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.catalog-genre-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}
.catalog-genre-pill.active {
  background: var(--text-primary);
  color: var(--bg-app);
  border-color: var(--text-primary);
  font-weight: 600;
}


.catalog-hub-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-dropdowns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.catalog-select-pill-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text-tertiary);
  font-size: 12px;
  transition: border-color 0.15s;
}
.catalog-select-pill-wrap:hover { border-color: var(--border-hover); }
.catalog-select-pill-wrap i { flex-shrink: 0; }
.catalog-pill-select {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-family: var(--font-sans);
  padding: 8px 0;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}


.catalog-active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.active-filter-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}
.active-filter-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.active-filter-tag:hover {
  background: #3f3f46;
  color: var(--text-primary);
}
.btn-clear-all-filters {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 3px 6px;
  transition: color 0.15s;
  text-decoration: underline;
}
.btn-clear-all-filters:hover { color: var(--text-primary); }


.catalog-spotlight-section,
.catalog-main-section {
  padding: 36px 32px 0;
}

.catalog-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.catalog-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cat-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.cat-section-icon.fire {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}
.cat-section-icon.compass {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.catalog-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.catalog-section-subtitle {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin: 4px 0 0;
}
.catalog-results-badge {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 20px;
}
.catalog-results-badge-wrap { display: flex; }


.catalog-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.ln-spotlight-card {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.ln-spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
}
.ln-spotlight-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.ln-spotlight-card:hover::before { opacity: 1; }

.ln-spotlight-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 2;
}
.rank-badge-gold { background: rgba(251, 191, 36, 0.2); color: #fbbf24; border: 1px solid rgba(251,191,36,0.4); }
.rank-badge-silver { background: rgba(148, 163, 184, 0.2); color: #94a3b8; border: 1px solid rgba(148,163,184,0.4); }
.rank-badge-bronze { background: rgba(180, 115, 73, 0.2); color: #cd8c5a; border: 1px solid rgba(180,115,73,0.4); }
.rank-badge-other { background: rgba(100,116,139,0.15); color: var(--text-tertiary); border: 1px solid var(--border-color); }

.ln-spotlight-cover-wrap {
  position: relative;
  flex-shrink: 0;
}
.ln-spotlight-cover {
  width: 72px;
  height: 108px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.ln-spotlight-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.ln-spotlight-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ln-spotlight-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.ln-spotlight-author {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ln-spotlight-status {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.25);
  white-space: nowrap;
}


.catalog-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 60px;
}
.catalog-grid.view-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.catalog-grid.view-list {
  grid-template-columns: 1fr;
}


.catalog-skeleton-card {
  aspect-ratio: 2/3;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-elevated) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


.ln-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease;
  border-radius: 0;
  background: transparent;
}
.ln-card:hover { transform: translateY(-4px); }
.ln-card:hover .ln-card-cover { box-shadow: 0 16px 40px rgba(0,0,0,0.6); }

.ln-card-cover-container {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: box-shadow 0.3s ease;
}
.ln-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ln-card:hover .ln-card-cover { transform: scale(1.04); }


.ln-card-top-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.ln-format-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 3px;
}
.ln-format-pill.epub { background: rgba(99,102,241,0.85); color: #fff; }
.ln-format-pill.pdf  { background: rgba(239,68,68,0.85); color: #fff; }
.ln-format-pill.webnovel { background: rgba(236,72,153,0.85); color: #fff; }

.ln-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.4);
}
.ln-status-dot.releasing { background: #4ade80; }
.ln-status-dot.finished  { background: #94a3b8; }


.ln-card-cover-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 8px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.ln-meta-chip {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 3px;
}
.text-accent-gold { color: #fbbf24; }


.ln-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: brightness(0.85) contrast(105%);
  border-radius: 8px;
}
.ln-card:hover .ln-card-hover-overlay { opacity: 1; }

.ln-btn-quick-read {
  background: #ffffff;
  color: #09090b;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}
.ln-btn-quick-read:hover { background: #f4f4f5; }

.ln-btn-quick-bookmark {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.ln-btn-quick-bookmark:hover { background: rgba(255,255,255,0.25); }


.ln-card-details {
  padding: 10px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ln-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ln-card-author {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ln-card-genres-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.ln-genre-pill {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  border: 1px solid var(--border-color);
  white-space: nowrap;
}


.ln-list-card {
  display: flex;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ln-list-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}
.ln-list-cover-wrap {
  position: relative;
  flex-shrink: 0;
  width: 80px;
}
.ln-list-cover {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.ln-list-main { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ln-list-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ln-list-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}
.ln-list-meta {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin: 4px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ln-list-meta span { display: flex; align-items: center; gap: 4px; }
.ln-list-stats { display: flex; gap: 8px; flex-shrink: 0; }
.ln-stat-box {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.ln-list-synopsis {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ln-list-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ln-list-actions { display: flex; gap: 8px; }


.catalog-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-secondary);
  gap: 12px;
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.catalog-empty-state h3 { font-size: 1.1rem; color: var(--text-primary); margin: 0; }
.catalog-empty-state p { font-size: 0.88rem; color: var(--text-tertiary); margin: 0; max-width: 360px; }


.catalog-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}
.catalog-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


@media (max-width: 768px) {
  .catalog-container { padding: 0 0 80px; }
  .catalog-hero-slide { padding: 28px 20px; flex-direction: column; min-height: 360px; }
  .catalog-hero-cover-wrap { display: none; }
  .catalog-hero-title { font-size: 1.7rem; }
  .catalog-discovery-hub { padding: 14px 16px; gap: 10px; position: static; }
  .catalog-spotlight-section, .catalog-main-section { padding: 24px 16px 0; }
  .catalog-spotlight-grid { grid-template-columns: 1fr; }
  .catalog-grid.view-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .catalog-section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .catalog-hub-bottom { flex-direction: column; align-items: flex-start; }
}



.webnovel-reader-overlay {
    position: fixed;
    inset: 0;
    background: #09090b;
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.webnovel-reader-overlay[data-theme="light"] {
    background: #ffffff;
    color: #18181b;
}
.webnovel-reader-overlay[data-theme="light"] .wn-toolbar {
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: #18181b;
}
.webnovel-reader-overlay[data-theme="light"] .wn-toolbar button,
.webnovel-reader-overlay[data-theme="light"] .wn-toolbar span,
.webnovel-reader-overlay[data-theme="light"] .wn-toolbar h4 {
    color: #18181b;
}
.webnovel-reader-overlay[data-theme="light"] .wn-chapter-text {
    color: #27272a;
}

.webnovel-reader-overlay[data-theme="sepia"] {
    background: #fbf0d9;
    color: #5f4b32;
}
.webnovel-reader-overlay[data-theme="sepia"] .wn-toolbar {
    background: #f4e3c1;
    border-color: #e5d1a4;
    color: #5f4b32;
}
.webnovel-reader-overlay[data-theme="sepia"] .wn-toolbar button,
.webnovel-reader-overlay[data-theme="sepia"] .wn-toolbar span,
.webnovel-reader-overlay[data-theme="sepia"] .wn-toolbar h4 {
    color: #5f4b32;
}
.webnovel-reader-overlay[data-theme="sepia"] .wn-chapter-text {
    color: #433422;
}

.wn-toolbar {
    height: 60px;
    background: #121214;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.wn-toolbar-left, .wn-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.wn-toolbar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.wn-toolbar-center h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}
.wn-toolbar-center span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.wn-tool-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wn-tool-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.wn-tool-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.wn-font-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 8px;
}
.wn-font-size-text {
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.wn-theme-group {
    display: flex;
    gap: 4px;
}
.wn-theme-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
}
.wn-theme-btn.light { background: #ffffff; }
.wn-theme-btn.sepia { background: #fbf0d9; }
.wn-theme-btn.dark { background: #18181b; }
.wn-theme-btn.active { border-color: var(--accent); }

.wn-scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px 20px 80px;
    position: relative;
    scrollbar-width: thin;
}

.wn-content-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.wn-chapter-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}
.wn-series-badge {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.wn-chapter-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin: 6px 0 0;
    color: inherit;
}

.wn-chapter-text {
    font-size: 18px;
    line-height: 1.8;
    color: #e4e4e7;
}
.wn-chapter-text p {
    margin-bottom: 1.5em;
}

.wn-chapter-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}
.wn-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}


.catalog-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: brightness(0.85) contrast(105%);
    color: #ffffff;
    border: 1px solid var(--accent);
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.catalog-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.catalog-toast i {
    color: #34d399;
    font-size: 1.2rem;
}


.wn-toc-popover {
    position: absolute;
    top: 65px;
    right: 20px;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    width: 300px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    z-index: 50;
    overflow: hidden;
}
.wn-toc-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 0.9rem;
}
.wn-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}
.wn-toc-list li {
    padding: 10px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}
.wn-toc-list li:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent);
}
.wn-toc-list li.active {
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
}


@media (max-width: 900px) {
    .catalog-hero-slide {
        flex-direction: column;
        padding: 30px 24px;
        text-align: center;
    }
    .catalog-hero-content {
        align-items: center;
    }
    .catalog-hero-cover-wrap {
        display: none;
    }
    .novel-sheet-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }
    .novel-sheet-meta {
        padding-top: 16px;
        align-items: center;
    }
    .novel-sheet-attributes {
        grid-template-columns: 1fr;
    }
}


.nav-auth-container {
    display: flex;
    align-items: center;
    position: relative;
}

.btn-nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-nav-auth:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.nav-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-user-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
}

.nav-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
}

.nav-user-email {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary, #fff);
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-arrow {
    font-size: 0.7rem;
    color: var(--text-secondary, #94a3b8);
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: brightness(0.85) contrast(105%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    padding: 12px;
    z-index: 1000;
}

.nav-user-dropdown-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 8px;
}

.user-dropdown-label {
    font-size: 0.7rem;
    color: var(--text-secondary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-dropdown-email {
    font-size: 0.85rem;
    color: #fff;
    word-break: break-all;
}

.nav-user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

.nav-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-dropdown-item:hover {
    background: rgba(239, 68, 68, 0.15);
}


.auth-modal-card {
    max-width: 440px;
    width: 90%;
    background: rgba(18, 18, 24, 0.95) !important;
    backdrop-filter: brightness(0.85) contrast(105%);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
    position: relative;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.auth-modal-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.auth-modal-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab-btn.active {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-input-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-input-group input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.auth-input-group input:focus {
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.auth-submit-btn {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
}

.auth-switch-text {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 8px;
}

.auth-switch-text a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch-text a:hover {
    text-decoration: underline;
}

.auth-feedback {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.825rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.auth-feedback.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.auth-feedback.info {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
}




.account-module-container {
  padding: 32px 40px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease-out;
}

.account-header-section {
  margin-bottom: 28px;
}

.account-title-group .account-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-main-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.account-main-subtitle {
  font-size: 14px;
  color: var(--text-secondary, #94a3b8);
  max-width: 700px;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

.account-card {
  background: var(--bg-card, rgba(30, 41, 59, 0.7));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  backdrop-filter: brightness(0.85) contrast(105%);
  display: flex;
  flex-direction: column;
}

.account-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  margin-bottom: 20px;
}

.account-avatar-large {
  font-size: 48px;
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(99, 102, 241, 0.3);
}

.account-user-meta h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #f8fafc);
  margin-bottom: 4px;
  word-break: break-all;
}

.account-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.account-details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.account-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.account-detail-item .detail-label {
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-detail-item .detail-value {
  color: var(--text-primary, #f8fafc);
  font-weight: 500;
}

.account-detail-item .text-success {
  color: #10b981;
}

.account-card-actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fee2e2;
}


.account-card-header-simple h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary, #f8fafc);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.account-card-header-simple p {
  font-size: 13px;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 18px;
}

.account-shortcuts-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-shortcut-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.05));
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.account-shortcut-box:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(4px);
}

.shortcut-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.icon-library { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.icon-continue { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-favorites { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-history { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.shortcut-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shortcut-text strong {
  font-size: 14px;
  color: var(--text-primary, #f8fafc);
}

.shortcut-text span {
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
}

.shortcut-arrow {
  font-size: 12px;
  color: var(--text-muted, #64748b);
}


.account-settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

@media (max-width: 600px) {
  .setting-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

.setting-label-group {
  display: flex;
  flex-direction: column;
}

.setting-label-group strong {
  font-size: 14px;
  color: var(--text-primary, #f8fafc);
}

.setting-label-group span {
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
}

.account-select {
  background: var(--bg-input, #0f172a);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  color: var(--text-primary, #f8fafc);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.account-select:focus {
  border-color: #818cf8;
}


.cloud-sync-note-card {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(49, 46, 129, 0.2) 100%);
  border: 1px dashed rgba(99, 102, 241, 0.3);
}

@media (max-width: 900px) {
  .cloud-sync-note-card {
    grid-column: span 1;
  }
}

.cloud-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #818cf8;
  margin-bottom: 8px;
}

.cloud-sync-note-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #f8fafc);
  margin-bottom: 6px;
}

.cloud-sync-note-card p {
  font-size: 13px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.5;
}

.nav-dropdown-danger {
  color: #f87171 !important;
}

.nav-dropdown-danger:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fee2e2 !important;
}




.catalog-container {
    padding-bottom: 60px;
    animation: fadeIn 0.25s ease-out;
}


.catalog-discovery-hub {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 36px;
    backdrop-filter: brightness(0.85) contrast(105%);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.catalog-hub-top {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.catalog-search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
    display: flex;
    align-items: center;
}

.catalog-search-box .search-icon {
    position: absolute;
    left: 16px;
    color: #818cf8;
    font-size: 15px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.catalog-search-input {
    width: 100%;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary, #f8fafc);
    padding: 12px 42px 12px 46px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.catalog-search-input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(2, 6, 23, 0.9);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 8px 20px -4px rgba(99, 102, 241, 0.2);
}

.catalog-search-input:focus + .search-clear-btn {
    opacity: 1;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.search-clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}


.catalog-quick-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.catalog-quick-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
}

.catalog-quick-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.15);
}

.catalog-quick-tab:active {
    transform: scale(0.96);
}

.catalog-quick-tab.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}


.catalog-view-toggle {
    display: flex;
    background: rgba(2, 6, 23, 0.6);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 2px;
}

.view-toggle-btn {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 7px 11px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.view-toggle-btn:hover {
    color: #f8fafc;
}

.view-toggle-btn.active {
    background: rgba(99, 102, 241, 0.25);
    color: #818cf8;
}


.catalog-genres-wrapper {
    position: relative;
    padding: 4px 0;
}

.catalog-genres-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 6px;
    mask-image: linear-gradient(to right, black 95%, transparent 100%);
}

.catalog-genre-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s cubic-bezier(0.23, 1, 0.32, 1);
}

.catalog-genre-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.16);
}

.catalog-genre-pill:active {
    transform: scale(0.96);
}

.catalog-genre-pill.active {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}


.catalog-hub-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-dropdowns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.catalog-select-pill-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.catalog-select-pill-wrap .select-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    font-size: 11px;
    pointer-events: none;
}

.catalog-pill-select {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
    padding: 7px 14px 7px 30px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.catalog-pill-select:hover, .catalog-pill-select:focus {
    border-color: #818cf8;
    color: #f8fafc;
}


.catalog-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.active-filter-label {
    font-size: 0.78rem;
    color: #64748b;
}

.active-filter-tag {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.active-filter-tag:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-clear-all-filters {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
}

.btn-clear-all-filters:hover {
    color: #f87171;
}


.catalog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.catalog-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.spotlight-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(239, 68, 68, 0.2) 100%);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.library-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.catalog-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.3px;
    margin: 0 0 2px 0;
}

.catalog-section-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

.catalog-results-badge {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #818cf8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 9999px;
}


.catalog-spotlight-section {
    margin-bottom: 48px;
}

.catalog-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.ln-spotlight-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 14px;
    position: relative;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: brightness(0.85) contrast(105%);
    overflow: hidden;
}

.ln-spotlight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
}

.ln-spotlight-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 3;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.rank-badge-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; }
.rank-badge-silver { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #000; }
.rank-badge-bronze { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.rank-badge-other { background: rgba(15, 23, 42, 0.9); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }

.ln-spotlight-cover-wrap {
    width: 80px;
    min-width: 80px;
    height: 115px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}

.ln-spotlight-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ln-spotlight-card:hover .ln-spotlight-cover {
    transform: scale(1.08);
}

.ln-spotlight-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.ln-spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.ln-spotlight-status {
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
}

.ln-spotlight-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 4px 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ln-spotlight-author {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0 0 6px 0;
}


.catalog-grid.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 24px;
}

.ln-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.22s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    backdrop-filter: brightness(0.85) contrast(105%);
}

.ln-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
}

.ln-card:active {
    transform: scale(0.98);
}

.ln-card-cover-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #090d16;
    overflow: hidden;
}

.ln-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.ln-card:hover .ln-card-cover {
    transform: scale(1.06);
}


.ln-card-top-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.ln-format-pill {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: brightness(0.85) contrast(105%);
    letter-spacing: 0.5px;
}

.ln-format-pill.webnovel { background: rgba(6, 182, 212, 0.85); color: #000; }
.ln-format-pill.epub { background: rgba(16, 185, 129, 0.85); color: #000; }
.ln-format-pill.pdf { background: rgba(244, 63, 94, 0.85); color: #fff; }

.ln-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.5);
}

.ln-status-dot.releasing {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.ln-status-dot.finished {
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}


.ln-card-cover-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 10px 8px;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.6) 60%, transparent 100%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.ln-meta-chip {
    font-size: 0.7rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 7px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


.ln-card-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 13, 22, 0.7);
    backdrop-filter: brightness(0.85) contrast(105%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 4;
}

.ln-card:hover .ln-card-hover-overlay {
    opacity: 1;
}

.ln-btn-quick-read {
    background: #6366f1;
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    transition: all 0.15s ease;
}

.ln-btn-quick-read:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

.ln-btn-quick-bookmark {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s ease;
}

.ln-btn-quick-bookmark:hover {
    background: #f59e0b;
    color: #000;
    border-color: #f59e0b;
    transform: scale(1.1);
}

.ln-card-details {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ln-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em;
}

.ln-card-author {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ln-card-genres-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: auto;
}

.ln-genre-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 5px;
}


.catalog-grid.view-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ln-list-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: brightness(0.85) contrast(105%);
}

.ln-list-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.4);
}

.ln-list-cover-wrap {
    width: 100px;
    min-width: 100px;
    height: 145px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #090d16;
}

.ln-list-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ln-list-card:hover .ln-list-cover {
    transform: scale(1.06);
}

.ln-list-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.ln-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.ln-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 4px 0;
}

.ln-list-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.ln-list-stats {
    display: flex;
    gap: 8px;
}

.ln-stat-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    font-weight: 600;
    color: #f8fafc;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ln-list-synopsis {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ln-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 12px;
}

.ln-list-actions {
    display: flex;
    gap: 10px;
}


.catalog-skeleton-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    animation: skeletonPulse 1.5s infinite ease-in-out;
}

@keyframes skeletonPulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}


.catalog-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 40px;
    color: #818cf8;
    margin-bottom: 16px;
}

.catalog-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
}

.catalog-empty-state p {
    font-size: 0.9rem;
    color: #94a3b8;
    max-width: 450px;
    margin-bottom: 20px;
}


.text-accent-gold { color: #f59e0b; }
.text-accent-orange { color: #f97316; }
.text-accent-purple { color: #a855f7; }
.text-accent-cyan { color: #06b6d4; }
.text-accent-emerald { color: #10b981; }
.text-accent-rose { color: #818cf8; }


@media (max-width: 768px) {
    .catalog-hub-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .catalog-quick-tabs {
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    
    .catalog-grid.view-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .ln-list-card {
        flex-direction: column;
    }

    .ln-list-cover-wrap {
        width: 100%;
        height: 180px;
    }
}



.sync-status-badge {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    transition: all 0.25s ease;
    user-select: none;
}
.sync-status-badge.syncing {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
}
.sync-status-badge.synced {
    color: #34d399;
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.25);
}
.sync-status-badge.offline {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.25);
}
.sync-status-badge.error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.25);
}
.sync-spin {
    display: inline-block;
    animation: sync-spin-anim 1.2s linear infinite;
}
@keyframes sync-spin-anim {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.10);border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,0.18)}
.home-hero-card{background:radial-gradient(ellipse 100% 80% at 50% -5%,rgba(99, 102, 241,0.16) 0%,transparent 55%),linear-gradient(180deg,rgba(18,18,30,0.98) 0%,#12121e 100%);border:1px solid rgba(255,255,255,0.07);border-radius:24px;padding:56px 52px;position:relative;overflow:hidden}
.home-hero-card::before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,#6366f1,#818cf8,transparent);opacity:0.5}
.home-hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(99, 102, 241,0.10);border:1px solid rgba(99, 102, 241,0.25);border-radius:9999px;padding:6px 16px;font-size:11px;font-weight:700;color:#818cf8;letter-spacing:0.05em;text-transform:uppercase;margin-bottom:24px}
.badge-dot{width:6px;height:6px;border-radius:50%;background:#6366f1;animation:pulse-dot 2s ease-in-out infinite}
@keyframes pulse-dot{0%,100%{opacity:1;transform:scale(1)}50%{opacity:0.5;transform:scale(0.8)}}
.home-hero-title{font-family:var(--font-sans);font-size:44px;font-weight:800;line-height:1.12;letter-spacing:-0.03em;margin-bottom:20px}
.gradient-text{background:linear-gradient(135deg,#818cf8,#6366f1,#fb923c);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.home-hero-subtitle{font-size:16px;color:#94a3b8;line-height:1.65;max-width:600px;margin-bottom:36px}
.home-hero-glow{position:absolute;top:-80px;right:-80px;width:400px;height:400px;border-radius:50%;background:radial-gradient(circle,rgba(99, 102, 241,0.12),transparent 70%);pointer-events:none}
.home-hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.home-features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
.home-feature-card{background:#12121e;border:1px solid rgba(255,255,255,0.07);border-radius:18px;padding:28px;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;transition:transform 250ms cubic-bezier(0.34,1.56,0.64,1),border-color 250ms,box-shadow 250ms;position:relative;overflow:hidden}
.home-feature-card::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at top left,rgba(99, 102, 241,0.05),transparent 60%);opacity:0;transition:opacity 300ms}
.home-feature-card:hover::before{opacity:1}
.home-feature-card:hover{transform:translateY(-5px);border-color:rgba(99, 102, 241,0.35);box-shadow:0 14px 35px rgba(0,0,0,0.5),0 0 22px rgba(99, 102, 241,0.25)}
.feature-card-icon{width:48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:4px}
.feature-card-icon.doc-icon{background:rgba(99, 102, 241,0.12);color:#818cf8}
.feature-card-icon.lib-icon{background:rgba(99,102,241,0.12);color:#818cf8}
.feature-card-icon.video-icon{background:rgba(245,158,11,0.12);color:#fbbf24}
.home-feature-card h3{font-size:16px;font-weight:700;margin-bottom:8px;letter-spacing:-0.01em}
.home-feature-card p{font-size:13px;color:#94a3b8;line-height:1.6}
.feature-card-points{list-style:none;padding:0;margin:12px 0 0;display:flex;flex-direction:column;gap:6px}
.feature-card-points li{font-size:12px;color:#94a3b8;display:flex;align-items:center;gap:8px}
.feature-card-points li i{color:#10b981;font-size:10px}
.feature-card-action{margin-top:20px;font-size:13px;font-weight:700;color:#818cf8;display:flex;align-items:center;gap:6px;transition:gap 200ms}
.home-feature-card:hover .feature-card-action{gap:10px}
.home-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.home-section-header h2{font-size:20px;font-weight:800;letter-spacing:-0.02em;display:flex;align-items:center;gap:10px}
.home-section-header h2 i{color:#6366f1;font-size:18px}
.home-section-header p{font-size:13px;color:#94a3b8;margin-top:3px}
.home-featured-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:20px}
.home-highlights-bar{display:flex;align-items:center;background:#12121e;border:1px solid rgba(255,255,255,0.07);border-radius:18px;padding:20px 28px;gap:0;flex-wrap:wrap}
.highlight-item{display:flex;align-items:center;gap:14px;flex:1;min-width:180px}
.highlight-icon{width:40px;height:40px;border-radius:10px;background:rgba(99, 102, 241,0.10);color:#818cf8;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}
.highlight-text strong{display:block;font-size:13px;font-weight:700;letter-spacing:-0.01em}
.highlight-text span{font-size:11.5px;color:#94a3b8;display:block;margin-top:1px}
.highlight-divider{width:1px;height:32px;background:rgba(255,255,255,0.07);margin:0 24px}
.home-resume-card{background:linear-gradient(135deg,rgba(99,102,241,0.08),#12121e);border:1px solid rgba(99,102,241,0.20);border-radius:18px;padding:24px 28px}
.home-resume-badge{font-size:11px;font-weight:700;color:#818cf8;letter-spacing:0.05em;text-transform:uppercase;margin-bottom:16px;display:flex;align-items:center;gap:8px}
.home-resume-content{display:flex;gap:20px;align-items:center}
.home-resume-cover{width:70px;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,0.6);aspect-ratio:2/3;object-fit:cover}
.home-resume-title{font-size:17px;font-weight:800;letter-spacing:-0.02em;margin-bottom:4px}
.home-resume-format{font-size:12px;color:#94a3b8;margin-bottom:14px}
.home-resume-progress-bar{height:5px;background:rgba(255,255,255,0.06);border-radius:9999px;overflow:hidden;flex:1}
.home-resume-progress-fill{height:100%;background:linear-gradient(90deg,#6366f1,#818cf8);border-radius:9999px;transition:width 400ms}
.home-resume-progress-wrap{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.home-resume-progress-text{font-size:12px;font-weight:700;color:#818cf8;min-width:30px}
.catalog-genre-pill{background:#1a1a2e;border:1px solid rgba(255,255,255,0.07);border-radius:9999px;padding:6px 16px;font-size:12.5px;font-weight:600;color:#94a3b8;cursor:pointer;white-space:nowrap;transition:all 200ms;font-family:var(--font-sans)}
.catalog-genre-pill:hover{background:#1f1f33;color:#f1f5f9;border-color:rgba(255,255,255,0.14)}
.catalog-genre-pill.active{background:rgba(99, 102, 241,0.15);border-color:rgba(99, 102, 241,0.40);color:#818cf8}
.catalog-quick-tab{background:transparent;border:none;color:#94a3b8;font-size:13.5px;font-weight:600;padding:10px 18px;border-radius:9999px;cursor:pointer;transition:all 200ms;display:flex;align-items:center;gap:7px;font-family:var(--font-sans)}
.catalog-quick-tab:hover{background:rgba(255,255,255,0.08);color:#f1f5f9}
.catalog-quick-tab.active{background:rgba(99, 102, 241,0.12);color:#818cf8}
.catalog-card,.book-card{border-radius:14px!important;border:1px solid rgba(255,255,255,0.07)!important;background:#12121e!important;overflow:hidden;cursor:pointer;transition:transform 300ms cubic-bezier(0.34,1.56,0.64,1),box-shadow 300ms,border-color 300ms!important}
.catalog-card:hover,.book-card:hover{transform:translateY(-6px)!important;box-shadow:0 16px 40px rgba(0,0,0,0.6),0 0 20px rgba(99, 102, 241,0.25)!important;border-color:rgba(99, 102, 241,0.35)!important}
.sync-status-badge{font-size:11px;font-weight:600;padding:4px 12px;border-radius:9999px;background:rgba(16,185,129,0.12);border:1px solid rgba(16,185,129,0.25);color:#34d399;letter-spacing:0.01em}
.library-masonry{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:28px 20px}
.continue-hero{background:linear-gradient(135deg,rgba(99,102,241,0.10),rgba(99,102,241,0.03))!important;border:1px solid rgba(99,102,241,0.20)!important;border-radius:18px!important;padding:24px 28px!important}
.btn-sub-sidebar{background:transparent;border:1px solid transparent;color:#94a3b8;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer;border-radius:9999px;transition:all 200ms;font-family:var(--font-sans)}
.btn-sub-sidebar:hover{color:#f1f5f9;background:rgba(255,255,255,0.08)}
.btn-sub-sidebar.active{color:#818cf8;background:rgba(99, 102, 241,0.10);border-color:rgba(99, 102, 241,0.25)}
.catalog-hero-carousel{border-radius:24px!important;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,0.8)!important}
.series-page-cover-wrap{box-shadow:0 20px 50px rgba(0,0,0,0.7),0 0 30px rgba(99, 102, 241,0.25)!important;border-radius:14px!important}
.lib-tab.active{color:#818cf8!important}
.lib-tab.active::after{background:#6366f1!important}
.nav-user-dropdown{background:#12121e!important;border:1px solid rgba(255,255,255,0.07)!important;border-radius:14px!important;box-shadow:0 10px 30px rgba(0,0,0,0.7)!important}
.lib-card:hover .lib-card-cover-container{box-shadow:0 16px 40px rgba(0,0,0,0.7),0 0 20px rgba(99, 102, 241,0.25)!important}
.history-badge{background:#6366f1!important;color:#fff!important}
.status-dot.green{background:#10b981!important}
@media(max-width:768px){.home-hero-card{padding:36px 24px}.home-hero-title{font-size:30px}.highlight-divider{display:none}.main-content{padding:20px 16px}.topnav{padding:0 16px}}
@media(max-width:480px){.home-hero-title{font-size:26px}.home-featured-grid{grid-template-columns:repeat(3,1fr);gap:12px}.library-masonry{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:16px 12px}}





.series-page-banner {
  width: 100% !important;
  height: 440px !important;
  position: relative !important;
  overflow: hidden !important;
  background-color: var(--bg-main, #090a10) !important;
  border-bottom: none !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}

.series-banner-bg {
  position: absolute !important;
  inset: -15px !important;
  background-size: cover !important;
  background-position: center 25% !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s ease-out !important;
}


.series-banner-bg.is-wide {
  background-position: center 25% !important;
  filter: brightness(0.72) contrast(1.05) saturate(1.1) !important;
  transform: scale(1.02) !important;
  opacity: 0.95 !important;
}


.series-banner-bg.is-ambient-glow,
.series-banner-bg.is-cover {
  background-position: center 30% !important;
  filter: blur(55px) saturate(1.2) brightness(0.38) !important;
  opacity: 0.65 !important;
  transform: scale(1.2) !important;
}


.series-banner-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: 
    linear-gradient(180deg, rgba(7, 8, 14, 0.5) 0%, transparent 22%),
    linear-gradient(180deg, transparent 20%, rgba(9, 10, 16, 0.45) 55%, rgba(9, 10, 16, 0.85) 80%, var(--bg-main, #090a10) 100%),
    linear-gradient(90deg, var(--bg-main, #090a10) 0%, transparent 15%, transparent 85%, var(--bg-main, #090a10) 100%),
    radial-gradient(ellipse 90% 70% at 50% 30%, transparent 30%, rgba(9, 10, 16, 0.6) 80%, var(--bg-main, #090a10) 100%) !important;
  pointer-events: none !important;
}


html.theme-light .series-page-banner {
  background-color: #f8fafc !important;
}

html.theme-light .series-banner-overlay {
  background: 
    linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, transparent 22%),
    linear-gradient(180deg, transparent 20%, rgba(248, 250, 252, 0.5) 55%, rgba(248, 250, 252, 0.9) 80%, #f8fafc 100%),
    linear-gradient(90deg, #f8fafc 0%, transparent 15%, transparent 85%, #f8fafc 100%),
    radial-gradient(ellipse 90% 70% at 50% 30%, transparent 30%, rgba(248, 250, 252, 0.6) 80%, #f8fafc 100%) !important;
}

html.theme-light .series-banner-bg.is-ambient-glow,
html.theme-light .series-banner-bg.is-cover {
  filter: blur(55px) saturate(1.15) brightness(0.7) !important;
  opacity: 0.45 !important;
}

.series-page-content {
  max-width: 1240px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 28px 48px 28px !important;
  position: relative !important;
  z-index: 5 !important;
}


.series-page-top {
  display: flex !important;
  gap: 36px !important;
  margin-top: -190px !important;
  align-items: flex-end !important;
  padding: 0 !important;
}


.series-page-cover-wrap {
  width: 220px !important;
  min-width: 220px !important;
  flex-shrink: 0 !important;
  position: relative !important;
  border-radius: 14px !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 0, 0, 0.5) !important;
  background: #11131f !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
}

.series-page-cover-wrap:hover {
  transform: translateY(-4px) scale(1.015) !important;
  box-shadow: 0 32px 70px -10px rgba(0, 0, 0, 0.95), 0 0 45px rgba(99, 102, 241, 0.22) !important;
}

.series-cover-ambient-glow {
  position: absolute !important;
  inset: -14px !important;
  background-size: cover !important;
  background-position: center !important;
  filter: blur(28px) saturate(1.25) brightness(0.5) !important;
  opacity: 0.45 !important;
  z-index: -1 !important;
  border-radius: 20px !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease, filter 0.35s ease !important;
}

.series-page-cover-wrap:hover .series-cover-ambient-glow {
  opacity: 0.75 !important;
  filter: blur(34px) saturate(1.35) brightness(0.65) !important;
}

.series-page-cover {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2/3 !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 13px !important;
  position: relative !important;
  z-index: 1 !important;
}


.series-page-meta {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding-bottom: 4px !important;
}


.series-header-pills {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}

.series-type-pill,
.series-origin-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.series-type-pill i,
.series-origin-pill i {
  color: #fb7185 !important;
  font-size: 10.5px !important;
}


.series-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-bottom: 2px !important;
}

#seriesTitle {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 34px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75) !important;
}


.series-subtitle-editorial {
  font-family: var(--font-sans, 'Nunito Sans', sans-serif) !important;
  font-size: 14px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.03em !important;
  margin-top: 4px !important;
  margin-bottom: 12px !important;
}


.series-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin-top: 4px !important;
  margin-bottom: 16px !important;
}

.series-tag {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 4px 11px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #cbd5e1 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: all 0.2s ease !important;
  letter-spacing: 0.01em !important;
}

.series-tag:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}


.series-details-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 22px !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 10px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  width: fit-content !important;
  max-width: 100% !important;
}

.series-meta-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.series-meta-label {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: #64748b !important;
}

.series-meta-val {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  display: inline-flex !important;
  align-items: center !important;
}


.status-indicator-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  margin-right: 6px !important;
  flex-shrink: 0 !important;
}

.status-indicator-dot.ongoing {
  background-color: #10b981 !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6) !important;
}

.status-indicator-dot.completed {
  background-color: #38bdf8 !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6) !important;
}


.series-page-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 6px !important;
  flex-wrap: wrap !important;
}

.btn-series-hero-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 11px 24px !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-series-hero-primary:hover {
  background: linear-gradient(135deg, #818cf8, #6366f1) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.55) !important;
}

.btn-series-hero-secondary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 11px 22px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #f1f5f9 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-series-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-2px) !important;
}

.btn-series-hero-secondary.in-library {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
  color: #34d399 !important;
}

.btn-series-hero-secondary.in-library:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(248, 113, 113, 0.4) !important;
  color: #f87171 !important;
}


.series-page-body {
  padding: 36px 0 40px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 36px !important;
}

.series-section-header h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 12px !important;
  color: #f8fafc !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.series-section-header h3::before {
  content: '' !important;
  display: inline-block !important;
  width: 3px !important;
  height: 14px !important;
  background: linear-gradient(180deg, #818cf8, #6366f1) !important;
  border-radius: 999px !important;
}

.series-synopsis-section {
  max-width: 960px !important;
}

.series-synopsis-wrapper {
  position: relative !important;
}

.series-synopsis-content {
  font-size: 14px !important;
  line-height: 1.75 !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-height: 5.2em !important;
  overflow: hidden !important;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease !important;
}

.series-synopsis-content p {
  margin: 0 !important;
  color: inherit !important;
}

.series-synopsis-wrapper:not(.is-expanded) .series-synopsis-content {
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%) !important;
  mask-image: linear-gradient(180deg, #000 50%, transparent 100%) !important;
}

.series-synopsis-wrapper.is-expanded .series-synopsis-content {
  max-height: 2000px !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  color: #cbd5e1 !important;
}

.btn-synopsis-expand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: transparent !important;
  border: none !important;
  color: #818cf8 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  padding: 6px 0 !important;
  margin-top: 6px !important;
  transition: all 0.2s ease !important;
  letter-spacing: 0.01em !important;
}

.btn-synopsis-expand:hover {
  color: #fb7185 !important;
  transform: translateX(2px) !important;
}

.btn-synopsis-expand i {
  font-size: 10px !important;
  transition: transform 0.25s ease !important;
}

.series-synopsis-wrapper.is-expanded .btn-synopsis-expand i {
  transform: rotate(180deg) !important;
}


@media (max-width: 768px) {
  .series-page-banner {
    height: 250px !important;
  }
  
  .series-page-content {
    padding: 0 16px 36px 16px !important;
  }

  .series-page-top {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-top: -115px !important;
    gap: 18px !important;
  }

  .series-page-cover-wrap {
    width: 150px !important;
    min-width: 150px !important;
    border-radius: 12px !important;
  }

  .series-page-meta {
    padding-top: 0 !important;
    align-items: center !important;
    width: 100% !important;
  }

  .series-header-pills {
    justify-content: center !important;
  }

  .series-title-row {
    justify-content: center !important;
  }

  #seriesTitle {
    font-size: 24px !important;
    text-align: center !important;
  }

  .series-subtitle-editorial {
    text-align: center !important;
  }

  .series-tags {
    justify-content: center !important;
    margin-bottom: 12px !important;
  }

  .series-details-grid {
    justify-content: center !important;
    width: 100% !important;
    gap: 16px !important;
  }

  .series-meta-item {
    align-items: center !important;
  }

  .series-page-actions {
    justify-content: center !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .btn-series-hero-primary,
  .btn-series-hero-secondary {
    width: 100% !important;
    justify-content: center !important;
  }

  .series-page-body {
    padding: 24px 0 32px 0 !important;
    gap: 24px !important;
  }
}



.topnav {
  width: 100%;
  background: rgba(8, 10, 18, 0.88);
  backdrop-filter: brightness(0.85) contrast(105%);
  -webkit-backdrop-filter: brightness(0.85) contrast(105%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  height: 64px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.45);
}


.topnav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.topnav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.topnav-logo:hover {
  opacity: 0.9;
}

.topnav-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.topnav-logo h1 {
  font-family: var(--font-display, 'Outfit', 'Inter', -apple-system, sans-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}


.topnav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 16px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topnav-hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}


.topnav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 6px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}


.nav-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 9999px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: inherit;
  user-select: none;
}

.nav-item-btn i:not(.nav-caret) {
  font-size: 13px;
  opacity: 0.85;
}

.nav-item-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item-btn.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.18);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.4);
}

.nav-item-btn.active i:not(.nav-caret) {
  color: #818cf8;
  opacity: 1;
}

.nav-caret {
  font-size: 9.5px;
  opacity: 0.55;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  margin-left: 1px;
}


.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
  color: #818cf8;
}


.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 14px;
  background: transparent;
  pointer-events: auto;
}


.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 250px;
  background: rgba(14, 16, 28, 0.96);
  backdrop-filter: brightness(0.85) contrast(105%);
  -webkit-backdrop-filter: brightness(0.85) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s ease;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-dropdown[data-nav="explorer"] .nav-dropdown-menu {
  min-width: 230px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}


.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  font-family: inherit;
  position: relative;
  user-select: none;
}

.nav-dropdown-link i {
  font-size: 14px;
  color: #818cf8;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-dropdown-link:hover i {
  transform: scale(1.18);
  color: #fb7185;
}

.nav-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-link-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.nav-link-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.25;
}

.nav-dropdown-link:hover .nav-link-desc {
  color: #94a3b8;
}


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


.nav-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  padding: 0 10px 0 34px;
  height: 36px;
  width: 180px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-search-wrapper:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-search-wrapper:focus-within {
  width: 240px;
  background: rgba(18, 20, 32, 0.95);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.nav-search-icon {
  position: absolute;
  left: 12px;
  font-size: 12.5px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s ease;
}

.nav-search-wrapper:focus-within .nav-search-icon {
  color: #818cf8;
}

.nav-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12.5px;
  color: #ffffff;
  font-family: inherit;
}

.nav-search-input::placeholder {
  color: #64748b;
  transition: color 0.2s ease;
}

.nav-search-wrapper:focus-within .nav-search-input::placeholder {
  color: #94a3b8;
}

.nav-search-clear {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 3px 6px;
  font-size: 11px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-search-clear:hover {
  color: #ffffff;
}


.nav-mobile-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 14px;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  cursor: pointer;
}


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

.btn-nav-back:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}



.nav-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.25s ease;
}

.nav-mobile-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.nav-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: brightness(0.85) contrast(105%);
  -webkit-backdrop-filter: brightness(0.85) contrast(105%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-mobile-drawer.open .nav-mobile-backdrop {
  opacity: 1;
}

.nav-mobile-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #0d0f1b;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.nav-mobile-drawer.open .nav-mobile-panel {
  transform: translateX(0);
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 16px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-mobile-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-mobile-body {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-mobile-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 0 12px 0 36px;
  height: 40px;
}

.nav-mobile-search-box i {
  position: absolute;
  left: 12px;
  font-size: 13px;
  color: #64748b;
}

.nav-mobile-search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
}

.nav-mobile-search-box input::placeholder {
  color: #64748b;
}

.nav-mobile-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  padding: 4px 10px;
}

.nav-mobile-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #cbd5e1;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  font-family: inherit;
}

.nav-mobile-btn i {
  font-size: 15px;
  color: #818cf8;
  width: 20px;
  text-align: center;
}

.nav-mobile-btn:hover,
.nav-mobile-btn:active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-mobile-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: #ffffff;
  font-weight: 600;
}

.nav-mobile-auth-group {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile-login-btn {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #ffffff;
  font-weight: 600;
}


@media (max-width: 992px) {
  .topnav {
    padding: 0 16px;
  }
  .nav-search-wrapper {
    width: 140px;
  }
  .nav-search-wrapper:focus-within {
    width: 190px;
  }
}

@media (max-width: 860px) {
  .topnav {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 0 12px;
  }
  .topnav-hamburger {
    display: flex !important;
  }
  .topnav-center {
    display: none !important;
  }
  .nav-search-wrapper {
    display: none !important;
  }
  .nav-mobile-search-toggle {
    display: flex !important;
  }
}






.catalog-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0 48px;
}


.catalog-hero-carousel {
  position: relative;
  width: 100%;
  min-height: 380px;
  border-radius: 20px;
  overflow: hidden;
  background: #090a12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.catalog-hero-track {
  position: relative;
  width: 100%;
  min-height: 380px;
}

.catalog-hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: center;
  padding: 40px 48px;
  gap: 32px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
  z-index: 1;
}

.catalog-hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.catalog-hero-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  z-index: 3;
}

.catalog-hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-badge.epub {
  background: rgba(99, 102, 241, 0.2);
  color: #fb7185;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.hero-badge.webnovel {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.hero-badge.origin {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-rating {
  font-size: 12.5px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-status {
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.catalog-hero-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.catalog-hero-meta {
  font-size: 13.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.catalog-hero-synopsis {
  font-size: 14px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 650px;
}

.catalog-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.btn-hero-read {
  background: linear-gradient(135deg, #6366f1, #818cf8) !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: 12px !important;
  border: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-hero-read:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55) !important;
}

.btn-hero-bookmark {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-hero-bookmark:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}


.catalog-hero-cover-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.hero-cover-depth-effect {
  position: relative;
  width: 200px;
  height: 290px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), -8px 0 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cover-depth-effect:hover {
  transform: scale(1.03) rotate(-1deg);
}

.catalog-hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(14, 16, 28, 0.75);
  backdrop-filter: brightness(0.85) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: rgba(99, 102, 241, 0.85);
  border-color: rgba(99, 102, 241, 0.8);
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.catalog-hero-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  width: 24px;
  background: #818cf8;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.6);
}


.catalog-discovery-hub {
  background: rgba(13, 15, 27, 0.85);
  backdrop-filter: brightness(0.85) contrast(105%);
  -webkit-backdrop-filter: brightness(0.85) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

.catalog-search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 0 14px 0 42px;
  height: 46px;
  transition: all 0.2s ease;
}

.catalog-search-box:focus-within {
  background: rgba(20, 23, 38, 0.95);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.cat-search-icon {
  position: absolute;
  left: 15px;
  font-size: 15px;
  color: #64748b;
}

.catalog-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: #ffffff;
  font-family: inherit;
}

.catalog-search-input::placeholder {
  color: #64748b;
}

.cat-search-clear {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

.cat-search-clear:hover { color: #fff; }

.catalog-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


.btn-surprise-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #ffffff;
  padding: 0 16px;
  height: 46px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-surprise-me:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.6);
  transform: translateY(-1px);
}

.btn-surprise-me.rolling i {
  animation: diceRoll 0.4s ease;
}

@keyframes diceRoll {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg); }
}

.catalog-view-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
  height: 46px;
}

.view-toggle-btn {
  width: 40px;
  height: 38px;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

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

.view-toggle-btn.active {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.4);
}


.catalog-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.catalog-quick-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.catalog-quick-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.catalog-quick-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.catalog-quick-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}


.catalog-origin-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-origin-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.catalog-origin-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.origin-pill {
  padding: 5px 11px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.origin-pill:hover {
  color: #ffffff;
}

.origin-pill.active {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.4);
}


.catalog-genres-wrapper {
  width: 100%;
  overflow: hidden;
}

.catalog-genres-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.catalog-genre-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-genre-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  transform: translateY(-1px);
}

.catalog-genre-pill.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(244, 63, 94, 0.15));
  border-color: rgba(99, 102, 241, 0.5);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}


.catalog-hub-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-dropdowns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-select-pill-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0 10px 0 32px;
  height: 36px;
}

.catalog-select-pill-wrap i {
  position: absolute;
  left: 11px;
  font-size: 12px;
  pointer-events: none;
}

.catalog-pill-select {
  background: transparent;
  border: none;
  outline: none;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.catalog-pill-select option {
  background: #101221;
  color: #fff;
}


.catalog-active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.active-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.active-filter-chip:hover {
  background: rgba(99, 102, 241, 0.3);
}

.btn-clear-all-filters {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 6px;
}

.btn-clear-all-filters:hover { color: #818cf8; }


.catalog-spotlight-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.catalog-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.cat-section-icon.fire {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cat-section-icon.compass {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.catalog-section-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.catalog-section-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.catalog-results-badge {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.catalog-spotlight-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(14, 16, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.catalog-spotlight-card:hover {
  background: rgba(20, 23, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.spotlight-rank-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
}

.rank-1 .spotlight-rank-badge { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, 0.6); }
.rank-2 .spotlight-rank-badge { color: #e2e8f0; }
.rank-3 .spotlight-rank-badge { color: #d97706; }

.spotlight-cover-container {
  width: 60px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.spotlight-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.spotlight-genre {
  font-size: 11px;
  font-weight: 600;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spotlight-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #94a3b8;
  margin: 0;
}


.catalog-main-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-grid.view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}

.ln-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ln-card:hover {
  transform: translateY(-6px);
}

.ln-card-cover-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0c16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ln-card:hover .ln-card-cover-container {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(99, 102, 241, 0.2);
}


.ln-card-depth-spine {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.25) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 2;
  pointer-events: none;
}

.ln-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ln-card:hover .ln-card-cover {
  transform: scale(1.04);
}


.ln-card-top-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  z-index: 3;
}

.ln-format-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: brightness(0.85) contrast(105%);
}

.ln-format-pill.epub {
  background: rgba(99, 102, 241, 0.85);
  color: #ffffff;
}

.ln-format-pill.webnovel {
  background: rgba(139, 92, 246, 0.85);
  color: #ffffff;
}

.ln-format-pill.pdf {
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
}

.ln-origin-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(14, 16, 28, 0.8);
  color: #ffffff;
  backdrop-filter: brightness(0.85) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ln-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.ln-status-dot.releasing {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.ln-status-dot.finished {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}


.ln-card-cover-bottom {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  z-index: 3;
}

.ln-meta-chip {
  font-size: 10.5px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(10, 12, 20, 0.75);
  backdrop-filter: brightness(0.85) contrast(105%);
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 4px;
}


.ln-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 18, 0.8);
  backdrop-filter: brightness(0.85) contrast(105%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 4;
}

.ln-card:hover .ln-card-hover-overlay {
  opacity: 1;
  visibility: visible;
}

.ln-btn-quick-read {
  background: #818cf8;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.5);
  transition: all 0.15s ease;
}

.ln-btn-quick-read:hover {
  background: #6366f1;
  transform: scale(1.06);
}

.ln-btn-quick-bookmark {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ln-btn-quick-bookmark:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.ln-btn-quick-bookmark.bookmarked {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #10b981;
}


.ln-card-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ln-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.ln-card:hover .ln-card-title {
  color: #fb7185;
}

.ln-card-author {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ln-card-genres-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.ln-genre-pill {
  font-size: 10.5px;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
}


.catalog-grid.view-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ln-list-card {
  display: flex;
  gap: 20px;
  background: rgba(14, 16, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.ln-list-card:hover {
  background: rgba(20, 23, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.ln-list-cover-wrap {
  position: relative;
  width: 100px;
  height: 145px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.ln-list-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ln-list-rating-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  background: rgba(9, 10, 18, 0.85);
  backdrop-filter: brightness(0.85) contrast(105%);
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  text-align: center;
  padding: 2px 4px;
  border-radius: 4px;
}

.ln-list-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.ln-list-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.ln-list-origin {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
}

.ln-list-status {
  font-size: 11.5px;
  font-weight: 600;
}

.ln-list-status.releasing { color: #34d399; }
.ln-list-status.finished { color: #60a5fa; }

.ln-list-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.ln-list-original-title {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  font-style: italic;
}

.ln-list-author-meta {
  font-size: 12.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.ln-list-synopsis {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ln-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.ln-list-genres {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ln-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}


.catalog-skeleton-card {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.catalog-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: rgba(14, 16, 28, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}


@media (max-width: 900px) {
  .catalog-hero-slide {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }
  .catalog-hero-cover-wrap {
    display: none;
  }
  .catalog-hero-title {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .catalog-grid.view-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .catalog-search-row {
    flex-direction: column;
  }
  .catalog-top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .btn-surprise-me {
    flex: 1;
    justify-content: center;
  }
  .ln-list-card {
    flex-direction: column;
  }
  .ln-list-cover-wrap {
    width: 100%;
    height: 200px;
  }
}







#contributorMountPoint,
#adminMountPoint {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.contributor-module-container,
.admin-module-container {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 28px auto 4.5rem auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}


.contrib-header-section {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 1.5rem !important;
  margin-bottom: 2rem !important;
  padding-bottom: 1.5rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  flex-wrap: wrap !important;
}

.contrib-title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.contrib-main-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.025em !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.contrib-main-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.95rem !important;
  color: #94a3b8 !important;
  max-width: 720px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}


.contrib-top-actions {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

.btn-contrib-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  padding: 0.75rem 1.4rem !important;
  border-radius: 10px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.28) !important;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 160ms ease-out, filter 160ms ease-out !important;
}

.btn-contrib-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.42) !important;
  filter: brightness(1.06) !important;
}

.btn-contrib-primary:active {
  transform: scale(0.98) !important;
}


.contrib-subnav-bar {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(15, 19, 32, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 6px !important;
  border-radius: 14px !important;
  margin: 0 0 2rem 0 !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  overflow-x: auto !important;
  max-width: 100% !important;
}

.contrib-subnav-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  padding: 0.65rem 1.25rem !important;
  background: transparent !important;
  color: #94a3b8 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out !important;
}

.contrib-subnav-btn:hover:not(.active) {
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.contrib-subnav-btn.active {
  color: #ffffff !important;
  background: rgba(99, 102, 241, 0.2) !important;
  border: 1px solid rgba(99, 102, 241, 0.45) !important;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.22) !important;
}

.contrib-subnav-btn:active {
  transform: scale(0.98) !important;
}


.contrib-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: 1.25rem !important;
  margin-bottom: 2rem !important;
}

.contrib-stat-card {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  background: linear-gradient(145deg, rgba(20, 24, 38, 0.72), rgba(15, 18, 30, 0.55)) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  padding: 1.25rem 1.4rem !important;
  border-radius: 14px !important;
  transition: transform 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out !important;
}

.contrib-stat-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(99, 102, 241, 0.28) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32) !important;
}

.contrib-stat-icon {
  width: 50px !important;
  height: 50px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.35rem !important;
  flex-shrink: 0 !important;
  background: rgba(99, 102, 241, 0.12) !important;
  color: #818cf8 !important;
  border: 1px solid rgba(99, 102, 241, 0.22) !important;
}

.contrib-stat-icon.draft {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
}

.contrib-stat-icon.pending {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.22) !important;
}

.contrib-stat-icon.published {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
}

.contrib-stat-info .stat-number {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.85rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

.contrib-stat-info .stat-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  margin-top: 4px !important;
}


.contrib-block-card {
  background: rgba(18, 22, 34, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 14px !important;
  padding: 1.5rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.contrib-block-card h3 {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
}


.contrib-search-wrap {
  background: rgba(15, 19, 32, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 0 1rem !important;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out !important;
}

.contrib-search-wrap:focus-within {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16) !important;
}

.contrib-select {
  background: rgba(15, 19, 32, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  color: #f1f5f9 !important;
  padding: 0.75rem 1.1rem !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
}

.contrib-select:focus {
  border-color: #6366f1 !important;
  outline: none !important;
}


.contrib-mode-switcher {
  display: inline-flex !important;
  background: rgba(15, 19, 32, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 4px !important;
  gap: 4px !important;
}

.contrib-mode-switcher .mode-btn {
  padding: 0.6rem 1.1rem !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  border: 1px solid transparent !important;
  color: #94a3b8 !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: all 160ms ease-out !important;
}

.contrib-mode-switcher .mode-btn.active {
  background: rgba(99, 102, 241, 0.22) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  color: #ffffff !important;
}

.contrib-mode-switcher .mode-btn:active {
  transform: scale(0.98) !important;
}

.account-badge-pill.admin {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.pulse-dot.red {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

.contrib-top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-contrib-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-color, #6366f1), #8b5cf6);
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-contrib-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-contrib-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-contrib-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.contrib-subnav-bar {
  display: flex;
  gap: 0.5rem;
  background: rgba(18, 20, 29, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem;
  border-radius: 10px;
  margin: 1.5rem 0 2rem 0;
  overflow-x: auto;
}

.contrib-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: transparent;
  color: #94a3b8;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.contrib-subnav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.contrib-subnav-btn.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.admin-queue-pill {
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  margin-left: 0.3rem;
}


.contrib-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.contrib-stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(26, 29, 41, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.25rem;
  border-radius: 12px;
}

.contrib-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.contrib-stat-icon.draft {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.contrib-stat-icon.pending {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}

.contrib-stat-icon.published {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.contrib-stat-icon.users {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.contrib-stat-info {
  display: flex;
  flex-direction: column;
}

.contrib-stat-info .stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f8fafc;
}

.contrib-stat-info .stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
}


.contrib-overview-body {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .contrib-overview-body {
    grid-template-columns: 1fr;
  }
}

.contrib-block-card {
  background: rgba(26, 29, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.5rem;
}

.contrib-block-card h3 {
  font-size: 1.1rem;
  color: #f8fafc;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contrib-block-card.info-guide ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contrib-block-card.info-guide li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
  padding-left: 1.25rem;
  position: relative;
}

.contrib-block-card.info-guide li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #6366f1;
  font-size: 1.4rem;
  line-height: 1;
}

.contrib-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contrib-recent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contrib-row-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contrib-row-info strong {
  color: #f8fafc;
  font-size: 0.95rem;
}

.contrib-row-info span {
  font-size: 0.8rem;
  color: #94a3b8;
}

.contrib-row-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-contrib-mini {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-contrib-mini:hover {
  background: #6366f1;
  color: #fff;
}

.btn-contrib-mini.danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-contrib-mini.danger:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}


.contrib-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.contrib-search-wrap {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  background: rgba(26, 29, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 0.85rem;
  gap: 0.6rem;
  color: #94a3b8;
}

.contrib-search-wrap input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.75rem 0;
  width: 100%;
  outline: none;
  font-size: 0.9rem;
}

.contrib-select {
  background: rgba(26, 29, 41, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.contrib-novels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contrib-novel-card {
  background: rgba(26, 29, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contrib-novel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
}

.contrib-card-cover-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0f172a;
}

.contrib-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contrib-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.badge-draft {
  background: rgba(234, 179, 8, 0.85);
  color: #000;
}

.badge-pending {
  background: rgba(249, 115, 22, 0.85);
  color: #fff;
}

.badge-published {
  background: rgba(34, 197, 94, 0.85);
  color: #fff;
}

.badge-archived {
  background: rgba(148, 163, 184, 0.85);
  color: #000;
}

.contrib-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contrib-card-title {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contrib-card-author {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.contrib-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.contrib-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-contrib-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

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

.btn-contrib-action.primary {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

.btn-contrib-action.primary:hover {
  background: #4f46e5;
}

.btn-contrib-action.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem;
}

.btn-contrib-action.danger:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}


.contrib-form-container {
  background: rgba(26, 29, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contrib-form-header-title {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.contrib-main-form .form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 650px) {
  .contrib-main-form .form-row.two-cols {
    grid-template-columns: 1fr;
  }
}

.contrib-main-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.contrib-main-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.contrib-main-form input,
.contrib-main-form textarea,
.contrib-main-form select {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.contrib-main-form input:focus,
.contrib-main-form textarea:focus,
.contrib-main-form select:focus {
  border-color: #6366f1;
}

.form-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}


.contrib-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.contrib-modal-card {
  background: #1e2235;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  width: 100%;
  max-width: 750px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contrib-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contrib-modal-header h3 {
  color: #fff;
  font-size: 1.15rem;
}

.contrib-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.contrib-modal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .contrib-modal-split {
    grid-template-columns: 1fr;
  }
}

.vol-form-col h4,
.vol-list-col h4 {
  color: #f8fafc;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.contrib-vols-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contrib-vol-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem;
}

.vol-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.vol-chap-badge {
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.vol-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
}


.admin-queue-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-queue-card {
  display: flex;
  gap: 1.5rem;
  background: rgba(26, 29, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
}

@media (max-width: 650px) {
  .admin-queue-card {
    flex-direction: column;
  }
}

.admin-queue-cover {
  width: 140px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  background: #0f172a;
}

.admin-queue-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.admin-queue-header h3 {
  color: #fff;
  font-size: 1.2rem;
}

.admin-queue-meta {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.admin-queue-meta strong {
  color: #cbd5e1;
}

.admin-queue-synopsis {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.admin-queue-genres {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.tag-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.admin-queue-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.btn-admin-action {
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-admin-action.approve {
  background: #16a34a;
  color: #fff;
}

.btn-admin-action.approve:hover {
  background: #15803d;
}

.btn-admin-action.reject {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-admin-action.reject:hover {
  background: rgba(239, 68, 68, 0.25);
}


.admin-table-wrapper {
  background: rgba(26, 29, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: rgba(15, 23, 42, 0.8);
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table-thumb {
  width: 40px;
  height: 55px;
  object-fit: cover;
  border-radius: 4px;
}

.admin-status-select,
.admin-role-select {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.role-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.role-user {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.role-contributor {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.role-admin {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.admin-empty-clean {
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}




.contrib-form-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.contrib-form-header-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

.contrib-mode-switcher {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0.35rem;
}

.mode-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.6rem 1.1rem;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

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

.mode-btn.active {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}


.contrib-auto-panel {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.auto-search-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(26, 29, 41, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  gap: 0.75rem;
}

.auto-search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.btn-contrib-primary.search-action {
  white-space: nowrap;
  padding: 0.65rem 1.25rem;
}

.auto-search-hint {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}


.contrib-api-result-card {
  display: flex;
  gap: 1.5rem;
  background: rgba(26, 29, 41, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1.25rem;
}

@media (max-width: 700px) {
  .contrib-api-result-card {
    flex-direction: column;
  }
}

.api-result-cover-wrap {
  width: 130px;
  height: 185px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  flex-shrink: 0;
}

.api-result-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.api-result-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.api-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.api-result-header h3 {
  font-size: 1.15rem;
  color: #fff;
}

.api-provider-badge {
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.api-result-meta {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
}

.api-result-genres {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.api-result-synopsis {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1rem;
}


.genre-chips-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.genre-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.genre-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.genre-chip.selected {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}


.contrib-main-form-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 950px) {
  .contrib-main-form-layout {
    grid-template-columns: 1fr;
  }
}

.contrib-form-live-preview {
  background: rgba(26, 29, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  position: sticky;
  top: 90px;
}

.contrib-form-live-preview h4 {
  font-size: 0.95rem;
  color: #f8fafc;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.live-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.live-preview-cover-box {
  width: 160px;
  height: 230px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.live-preview-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-preview-title {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-preview-author {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.live-preview-genres {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}



.contrib-modal-xl {
  max-width: 960px !important;
  width: 95% !important;
}

.contrib-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  font-size: 1.25rem;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.modal-subtitle-novel {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 2px;
}

.vol-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vol-col-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.badge-format-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.vol-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}


.vol-dropzone {
  border: 2px dashed rgba(139, 92, 246, 0.35);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.vol-dropzone:hover, .vol-dropzone.drag-over {
  border-color: #a78bfa;
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}

.dropzone-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  font-size: 1.4rem;
  margin: 0 auto 12px;
  transition: transform 0.25s ease;
}

.vol-dropzone:hover .dropzone-icon-circle {
  transform: scale(1.1);
  color: #e9d5ff;
}

.dropzone-main-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.dropzone-sub-text {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.dropzone-browse-btn {
  color: #818cf8;
  text-decoration: underline;
  font-weight: 600;
}

.dropzone-allowed-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.badge-ext {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-ext.epub {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-ext.pdf {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}


.dropzone-selected-file {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 12px 16px;
  border-radius: 10px;
  text-align: left;
}

.file-icon-box {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-details {
  flex: 1;
  overflow: hidden;
}

.file-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

.btn-remove-file {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-remove-file:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
  transform: scale(1.05);
}


.contrib-vols-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.vol-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.vol-card-item:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(30, 41, 59, 0.7);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.vol-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  overflow: hidden;
}

.vol-badge-number {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  white-space: nowrap;
}

.vol-info-wrap {
  flex: 1;
  overflow: hidden;
}

.vol-title-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vol-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.vol-pill-type {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.vol-pill-type.epub {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.vol-pill-type.pdf {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.vol-meta-item {
  font-size: 0.72rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vol-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.btn-vol-download {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-vol-download:hover {
  background: #6366f1;
  color: #fff;
  transform: scale(1.05);
}

.btn-vol-delete {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-vol-delete:hover {
  background: #ef4444;
  color: #fff;
  transform: scale(1.05);
}


.vol-empty-state {
  padding: 40px 20px;
  text-align: center;
  background: rgba(15, 23, 42, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.vol-empty-icon {
  font-size: 2.5rem;
  color: #64748b;
  margin-bottom: 12px;
}

.vol-empty-state h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.vol-empty-state p {
  font-size: 0.82rem;
  color: #64748b;
  max-width: 280px;
  margin: 0 auto;
}


.vol-upload-progress {
  margin: 14px 0;
}

.progress-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transition: width 0.3s ease;
}

.progress-status-text {
  font-size: 0.75rem;
  color: #a78bfa;
  margin-top: 6px;
  text-align: center;
  font-weight: 600;
}





.series-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.series-catalog-badge {
  display: inline-flex;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-pill.published {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-pill.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  cursor: help;
}

.series-action-bar {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-submit-catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
}

.btn-submit-catalog:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.submit-catalog-modal {
  max-width: 540px;
  width: 92%;
  padding: 28px;
}

.submit-novel-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-hover, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}

.submit-preview-cover {
  width: 60px;
  height: 85px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.submit-preview-info h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  color: var(--text-primary, #ffffff);
}

.submit-preview-info p {
  margin: 2px 0;
  font-size: 0.85rem;
  color: var(--text-secondary, #a1a1aa);
}

.submit-volumes-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding: 10px;
  background: var(--bg-surface, rgba(0,0,0,0.2));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
}

.submit-vol-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-primary, #ffffff);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.submit-vol-check-item:hover {
  background: rgba(255,255,255,0.05);
}

.submit-info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
  font-size: 0.85rem;
  color: #93c5fd;
}

.submit-info-box i {
  margin-top: 2px;
  font-size: 1rem;
}

.submit-info-box p {
  margin: 0;
  line-height: 1.4;
}



.contrib-api-candidates-wrap {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  animation: fadeIn 0.25s ease-out;
}
.candidates-label {
  font-size: 0.82rem;
  color: var(--text-secondary, #94a3b8);
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.api-candidates-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.api-candidate-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #f1f5f9);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.api-candidate-chip:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.45);
  color: #fff;
  transform: translateY(-1px);
}
.api-candidate-chip.active {
  background: rgba(99, 102, 241, 0.28);
  border-color: #6366f1;
  color: #c7d2fe;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}
.api-candidate-chip .chip-format {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.api-candidate-chip.format-novel .chip-format {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}
.api-candidate-chip.format-manga .chip-format {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}
.api-candidate-chip .chip-title {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.api-candidate-chip .chip-year {
  font-size: 0.72rem;
  color: var(--text-tertiary, #64748b);
}





.contrib-volumes-container {
  background: rgba(26, 29, 41, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 2rem;
  max-width: 1120px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.contrib-volumes-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-contrib-back {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-contrib-back:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(-3px);
}

.vol-novel-banner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vol-novel-banner-cover {
  width: 50px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.vol-novel-banner-info h3 {
  color: #f8fafc;
  font-size: 1.2rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.vol-novel-banner-meta {
  font-size: 0.84rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contrib-volumes-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .contrib-volumes-grid {
    grid-template-columns: 1fr;
  }
}

.vol-col-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.badge-format-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.vol-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 550px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  font-size: 0.9rem;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding-left: 36px !important;
}

.vol-upload-progress {
  margin: 1rem 0;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
}

.progress-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transition: width 0.3s ease;
}

.progress-status-text {
  font-size: 0.78rem;
  color: #cbd5e1;
  text-align: center;
}


.btn-contrib-action.featured-active {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #fbbf24 !important;
}
.btn-contrib-action.featured-active:hover {
  background: rgba(245, 158, 11, 0.28) !important;
  border-color: rgba(245, 158, 11, 0.7) !important;
  color: #f59e0b !important;
}


.stream-chapter-container {
  width: 100%;
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 28px 24px 80px 24px;
  background: transparent;
  color: inherit;
}

.stream-chapter-body {
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.82;
  letter-spacing: 0.012em;
  word-break: break-word;
  color: inherit;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Georgia", serif, sans-serif;
  transition: max-width 0.25s ease;
}

.stream-chapter-header {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  text-align: center;
}

.stream-chapter-badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary, #6366f1);
  font-weight: 700;
  margin-bottom: 8px;
}

.stream-chapter-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 0;
  color: inherit;
}

.stream-chapter-content {
  font-size: 1.0625rem; 
  line-height: 1.85;
  color: inherit;
}

.stream-chapter-content p {
  margin: 0 0 1.15em 0;
  text-indent: 1.5em;
  text-align: justify;
  text-justify: inter-word;
  word-break: break-word;
  hyphens: auto;
  color: inherit;
}

.stream-chapter-content p.dialogue {
  text-indent: 0;
  margin-bottom: 0.95em;
}

.stream-chapter-content .ln-illustration {
  text-align: center;
  margin: 32px 0;
}

.stream-chapter-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 24px auto !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

.stream-chapter-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  gap: 12px;
}

.btn-stream-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  color: #fb7185;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stream-nav:hover {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .stream-chapter-container {
    padding: 16px 14px 70px 14px;
  }
  .stream-chapter-title {
    font-size: 18px;
  }
  .btn-stream-nav {
    padding: 7px 12px;
    font-size: 12px;
  }
}


.reader-swipe-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(99, 102, 241, 0.45);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100000;
}

.reader-swipe-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.novel-card-cover-wrap,
.volume-cover-wrap,
.lnori-card-cover-box,
.spotlight-cover-container,
.catalog-novel-cover-wrap,
.hero-cover-container,
.card-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(24, 24, 27, 0.9) 0%,
    rgba(39, 39, 42, 0.6) 50%,
    rgba(24, 24, 27, 0.9) 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: coverSkeletonShimmer 1.8s infinite ease-in-out !important;
}

@keyframes coverSkeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


.novel-card-cover,
.volume-cover,
.lnori-card-cover-box img,
.card-inner img,
.spotlight-cover,
.catalog-novel-cover {
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease !important;
  content-visibility: auto;
}

.novel-card-cover.loaded,
.volume-cover.loaded,
.lnori-card-cover-box img.loaded,
.card-inner img.loaded,
.spotlight-cover.loaded,
.catalog-novel-cover.loaded {
  opacity: 1 !important;
}





.badge-rejected {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95)) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}


.contrib-novel-card.is-rejected-card {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(30, 24, 30, 0.7);
}

.contrib-novel-card.is-rejected-card:hover {
  border-color: rgba(239, 68, 68, 0.6);
}


.contrib-rejection-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contrib-rejection-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contrib-rejection-msg {
  color: #fecaca;
  font-size: 0.85rem;
  line-height: 1.45;
  font-style: italic;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border-left: 3px solid #ef4444;
}

.contrib-rejection-hint {
  color: #cbd5e1;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.contrib-rejection-hint i {
  color: #eab308;
}


.btn-resubmit-accent {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  border-color: #ea580c !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.35);
  animation: pulse-resubmit 2.5s infinite;
}

.btn-resubmit-accent:hover {
  background: linear-gradient(135deg, #fb923c, #f97316) !important;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.5);
}

@keyframes pulse-resubmit {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}


.admin-queue-vols-section {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.admin-queue-vols-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0.65rem;
}

.admin-queue-vols-head i {
  color: #818cf8;
}

.admin-no-vols-alert {
  color: #f87171;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-vols-empty-hint {
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
  margin: 0;
}

.admin-queue-vols-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-vol-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-vol-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
}

.admin-vol-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-vol-badge {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.admin-vol-title {
  color: #f1f5f9;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.admin-vol-type {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.admin-vol-type.epub {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.admin-vol-type.pdf {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-vol-size {
  color: #94a3b8;
  font-size: 0.75rem;
}

.admin-vol-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-admin-preview-vol {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(79, 70, 229, 0.35));
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #e0e7ff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-admin-preview-vol:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(79, 70, 229, 0.55));
  border-color: #818cf8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.btn-admin-download-vol {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-admin-download-vol:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}


.popup-views {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  line-height: 1;
}

.popup-views i {
  color: #818cf8;
  font-size: 0.72rem;
}

.popup-vol-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1;
}

.popup-vol-pill i {
  color: #94a3b8;
  font-size: 0.7rem;
}


.reader-audio-fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
}

.reader-audio-fab-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--bg-card, #1c1c22);
  color: var(--text-primary, #ffffff);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  opacity: 0.65;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

.reader-audio-fab-btn:hover {
  opacity: 1;
  transform: scale(1.08);
  border-color: var(--primary-color, #6366f1);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}

.reader-audio-fab-btn.audio-playing {
  opacity: 1;
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}

.reader-audio-fab-btn.audio-playing i {
  animation: audioPulseIcon 1.6s infinite ease-in-out;
}

@keyframes audioPulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.reader-audio-fab-btn.audio-playing::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.audio-fab-popover {
  position: absolute;
  bottom: 54px;
  right: 0;
  top: auto;
  width: 270px;
  transform-origin: bottom right;
  margin-bottom: 6px;
  background: var(--bg-card, #1c1c22);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  padding: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: popoverFadeUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1300;
}

@keyframes popoverFadeUp {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reader-audio-master-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}
.reader-audio-master-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary-color);
}
.reader-audio-master-btn.is-playing {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
}
.reader-audio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.audio-preset-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.audio-preset-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.audio-preset-btn.active {
  background: var(--bg-card);
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}
.audio-preset-btn .preset-icon {
  font-size: 14px;
}
.reader-audio-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

@media (max-width: 600px) {
  .reader-audio-fab-container {
    bottom: 18px;
    right: 16px;
  }
  .reader-audio-fab-btn {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .audio-fab-popover {
    right: 0;
    max-width: calc(100vw - 32px);
  }
}
.reader-audio-master-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}
.reader-audio-master-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary-color);
}
.reader-audio-master-btn.is-playing {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
}
.reader-audio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.audio-preset-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.audio-preset-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.audio-preset-btn.active {
  background: var(--bg-card);
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}
.audio-preset-btn .preset-icon {
  font-size: 14px;
}
.reader-audio-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  accent-color: var(--primary-color);
  cursor: pointer;
}
.toolbar-btn.audio-playing {
  color: #10b981 !important;
  position: relative;
}
.toolbar-btn.audio-playing::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: audioPulse 1.8s infinite ease-in-out;
}
@keyframes audioPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}




.editorial-container {
  width: 100% !important;
  max-width: 1260px !important;
  margin: 0 auto !important;
  padding: 0 24px 60px 24px !important;
  position: relative !important;
  box-sizing: border-box !important;
}


.editorial-hero-banner {
  position: relative;
  width: 100%;
  min-height: 200px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 24px;
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 40%),
              #0c0f18;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 32px 40px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.editorial-hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.editorial-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #fb7185;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.editorial-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.editorial-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}


.editorial-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 28px;
}

.editorial-subbar-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editorial-subbar-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.editorial-subbar-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.editorial-subbar-tab.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}




.yen-month-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 6px;
  background: #0f121d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
}

.yen-nav-arrow {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.yen-nav-arrow:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.yen-month-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 4px;
}

.yen-month-track::-webkit-scrollbar {
  display: none;
}

.yen-month-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.yen-month-pill:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.yen-month-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.yen-month-count {
  background: rgba(99, 102, 241, 0.35);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}


.yen-toolbar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #0f121d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  margin-bottom: 32px;
}

.yen-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.yen-search-field {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 380px;
}

.yen-search-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
  pointer-events: none;
}

.yen-search-field input {
  width: 100%;
  padding: 9px 36px 9px 38px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.yen-search-field input:focus {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.yen-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

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

.yen-select-control {
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.yen-select-control:focus {
  border-color: rgba(99, 102, 241, 0.5);
}

.yen-btn-fav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yen-btn-fav:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.yen-btn-fav.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.yen-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yen-view-toggle {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px;
}

.yen-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yen-view-btn.active {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
}


.yen-schedule-body {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.yen-date-section {
  position: relative;
}

.yen-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.yen-date-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yen-date-accent-line {
  width: 4px;
  height: 20px;
  background: #6366f1;
  border-radius: 2px;
}

.yen-date-heading {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.yen-date-weekday {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.yen-today-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.yen-date-count-badge {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}


.yen-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.yen-book-card {
  background: #0f121d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.yen-book-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.7);
}

.yen-card-cover-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #090a10;
}

.yen-cover-link {
  display: block;
  width: 100%;
  height: 100%;
}

.yen-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.yen-book-card:hover .yen-cover-img {
  transform: scale(1.04);
}

.yen-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.yen-ribbon-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  z-index: 2;
}

.yen-card-status-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.yen-card-status-pill.status-released {
  background: rgba(16, 185, 129, 0.85);
  color: #ffffff;
}

.yen-card-status-pill.status-upcoming {
  background: rgba(99, 102, 241, 0.85);
  color: #ffffff;
}

.yen-card-info {
  padding: 12px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.yen-card-format-tag {
  font-size: 10px;
  font-weight: 700;
  color: #6366f1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.yen-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yen-card-title a {
  color: #f1f5f9;
  text-decoration: none;
  transition: color 0.2s ease;
}

.yen-card-title a:hover {
  color: #fb7185;
}

.yen-card-volume {
  font-size: 12.5px;
  font-weight: 600;
  color: #fb7185;
  margin-bottom: 8px;
}

.yen-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  margin-top: auto;
  margin-bottom: 10px;
}

.yen-card-team {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yen-card-actions {
  display: flex;
}

.yen-card-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.yen-card-btn.btn-released {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.yen-card-btn.btn-released:hover {
  background: #10b981;
  color: #ffffff;
}

.yen-card-btn.btn-details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.yen-card-btn.btn-details:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
}


.yen-books-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yen-list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: #0f121d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.yen-list-row:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(4px);
}

.yen-list-thumb {
  width: 44px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #090a10;
}

.yen-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yen-list-main {
  flex: 2;
  min-width: 0;
}

.yen-list-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.yen-badge-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6366f1;
}

.yen-list-title {
  margin: 0 0 2px 0;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yen-list-title a {
  color: #f1f5f9;
  text-decoration: none;
}

.yen-list-title a:hover {
  color: #fb7185;
}

.yen-list-sub {
  font-size: 12.5px;
  color: #94a3b8;
}

.yen-list-team {
  flex: 1;
  font-size: 12.5px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.yen-list-time {
  font-size: 12.5px;
  color: #64748b;
  width: 70px;
  text-align: right;
  flex-shrink: 0;
}

.yen-list-action {
  flex-shrink: 0;
}


.yen-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: #0f121d;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.yen-empty-icon {
  font-size: 42px;
  color: #64748b;
  margin-bottom: 16px;
}

.yen-empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.yen-empty-state p {
  font-size: 14px;
  color: #94a3b8;
  max-width: 500px;
  margin: 0 auto 20px auto;
}



.editorial-cat-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.editorial-cat-chip {
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.editorial-cat-chip:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.editorial-cat-chip.active {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.editorial-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.editorial-news-card {
  background: #0f121d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.editorial-news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.7);
}

.editorial-news-card.is-pinned {
  border-color: rgba(245, 158, 11, 0.4);
}

.news-cover-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: #090a10;
  overflow: hidden;
}

.news-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.editorial-news-card:hover .news-cover {
  transform: scale(1.04);
}

.pinned-badge,
.pinned-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(245, 158, 11, 0.9);
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.pinned-badge-no-img {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin: 16px 18px 0 18px;
  width: fit-content;
}

.news-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.news-category-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.news-category-tag.tag-annonce { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.news-category-tag.tag-sortie { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.news-category-tag.tag-nouveauté { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.news-category-tag.tag-maintenance { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.news-category-tag.tag-partenariat { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.news-date {
  font-size: 12px;
  color: #64748b;
}

.news-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.news-excerpt {
  font-size: 13.5px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0 0 16px 0;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.news-author {
  font-size: 12px;
  color: #64748b;
}

.btn-read-news {
  background: transparent;
  border: none;
  color: #fb7185;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-read-news:hover {
  transform: translateX(3px);
  color: #ffffff;
}


.editorial-news-modal-content {
  max-width: 680px !important;
  padding: 32px !important;
  background: #0f121d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
}

.news-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 8px 0;
}

.news-modal-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
}

.news-modal-cover {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.news-modal-body {
  font-size: 15px;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 24px;
}




.admin-ed-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-ed-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #0f121d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.admin-ed-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.admin-ed-stat-icon.icon-cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.admin-ed-stat-icon.icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.admin-ed-stat-icon.icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.admin-ed-stat-icon.icon-rose {
  background: rgba(99, 102, 241, 0.15);
  color: #fb7185;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.admin-ed-stat-info {
  display: flex;
  flex-direction: column;
}

.admin-ed-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.admin-ed-stat-lbl {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 2px;
}


.admin-ed-tabs-header {
  margin-bottom: 24px;
}

.admin-ed-subnav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.admin-ed-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-ed-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
}

.admin-ed-tab-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

.admin-ed-badge-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11.5px;
}


.admin-ed-pane-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-ed-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.admin-ed-search-box {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 420px;
}

.admin-ed-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
  pointer-events: none;
}

.admin-ed-search-box input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: 10px;
  background: #0f121d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.admin-ed-search-box input:focus {
  border-color: rgba(99, 102, 241, 0.5);
}


.admin-ed-table-wrap {
  background: #0f121d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow-x: auto;
}

.admin-ed-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-ed-table th {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.admin-ed-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.admin-ed-row:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-ed-thumb {
  width: 38px;
  height: 56px;
  border-radius: 5px;
  object-fit: cover;
  background: #090a10;
}

.admin-ed-sub {
  font-size: 12.5px;
  color: #fb7185;
  margin-top: 2px;
}


.admin-status-toggle-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-status-toggle-btn.status-pill-released {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.admin-status-toggle-btn.status-pill-released:hover {
  background: rgba(16, 185, 129, 0.3);
  transform: scale(1.02);
}

.admin-status-toggle-btn.status-pill-upcoming {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #fb7185;
}

.admin-status-toggle-btn.status-pill-upcoming:hover {
  background: rgba(99, 102, 241, 0.3);
  transform: scale(1.02);
}


.admin-ed-news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.admin-news-card {
  background: #0f121d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.admin-news-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.admin-news-card.is-pinned-card {
  border-color: rgba(245, 158, 11, 0.4);
}

.admin-news-cover-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  background: #090a10;
}

.admin-news-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-news-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.admin-news-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.admin-news-date {
  font-size: 11.5px;
  color: #64748b;
}

.admin-news-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.admin-news-excerpt {
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0 0 16px 0;
}

.admin-news-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-news-author {
  font-size: 12px;
  color: #64748b;
}

.admin-news-btns {
  display: flex;
  gap: 8px;
}

.btn-pinned {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}


.admin-ed-modal-content {
  max-width: 640px !important;
}

.admin-ed-cover-preview-box {
  width: 50px;
  height: 75px;
  border-radius: 8px;
  background: #090a10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}

.admin-ed-cover-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-ed-banner-preview-box {
  width: 100px;
  height: 56px;
  border-radius: 8px;
  background: #090a10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}

.admin-ed-banner-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


@media (max-width: 768px) {
  .editorial-hero-banner {
    padding: 24px;
  }
  .editorial-title {
    font-size: 24px;
  }
  .yen-toolbar-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .yen-search-field {
    max-width: 100%;
  }
  .yen-books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .admin-ed-pane-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-ed-search-box {
    max-width: 100%;
  }
}




.cal-page-container {
  width: 100% !important;
  max-width: 1260px !important;
  margin: 0 auto !important;
  padding: 12px 20px 80px 20px !important;
  box-sizing: border-box !important;
}

.cal-wrapper {
  width: 100%;
}


.cal-header {
  margin-bottom: 24px;
}

.cal-header-info {
  text-align: left;
  margin-bottom: 20px;
}

.cal-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0 0 6px 0;
  font-family: inherit;
}

.cal-subtitle {
  font-size: 14.5px;
  color: #94a3b8;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}


.cal-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.cal-month-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 4px;
}

.cal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.cal-current-month-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.cal-year-tag {
  background: rgba(99, 102, 241, 0.18);
  color: #fb7185;
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}

.cal-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cal-today-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-today-btn:hover {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}


.cal-view-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.cal-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-switch-btn:hover {
  color: #f1f5f9;
}

.cal-switch-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}


.cal-filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.cal-filters-bar::-webkit-scrollbar {
  display: none;
}

.cal-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.cal-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.15);
}

.cal-filter-btn.active {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.cal-filter-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-weight: 700;
}

.cal-filter-btn.active .cal-filter-count {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}


.cal-grid-wrapper {
  width: 100%;
}

.cal-weekdays-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.cal-weekday-cell {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  padding: 8px 4px;
}

.cal-monthly-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.cal-day-cell {
  min-height: 128px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s ease;
  overflow: hidden;
}

.cal-day-cell:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.75);
}

.cal-day-muted {
  opacity: 0.3;
  background: rgba(15, 23, 42, 0.2);
  border-color: rgba(255, 255, 255, 0.04);
}

.cal-day-today {
  border: 1.5px solid #6366f1;
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.15) inset;
}

.cal-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.cal-day-number {
  font-size: 13.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.cal-day-today .cal-day-number {
  color: #fb7185;
  font-weight: 800;
}

.cal-today-pill {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #6366f1;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 9999px;
}

.cal-day-events-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}


.cal-event-card {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.cal-event-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.cal-event-thumb-wrap {
  width: 24px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #1e293b;
}

.cal-event-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cal-event-details {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cal-event-badge-row {
  margin-bottom: 1px;
}

.cal-badge-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-available {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-release {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-translation {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.badge-new {
  color: #818cf8;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.badge-announcement {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.cal-event-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.cal-event-vol {
  font-size: 10.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.cal-more-events-btn {
  width: 100%;
  padding: 3px 0;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-more-events-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}


.cal-agenda-wrapper {
  width: 100%;
}

.cal-agenda-group {
  margin-bottom: 24px;
}

.cal-agenda-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3.5px solid #6366f1;
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
}

.cal-agenda-day-name {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cal-agenda-day-number {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-left: 8px;
}

.cal-agenda-cards-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-agenda-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-agenda-item:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.cal-agenda-item-thumb-box {
  width: 48px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #1e293b;
}

.cal-agenda-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cal-agenda-item-info {
  flex: 1;
  min-width: 0;
}

.cal-agenda-item-badge {
  margin-bottom: 4px;
}

.cal-agenda-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.cal-agenda-item-vol {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.cal-agenda-item-team {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-agenda-item-actions {
  flex-shrink: 0;
}

.cal-btn-quick-read,
.cal-btn-quick-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
}


.cal-empty-state {
  text-align: center;
  padding: 64px 20px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-top: 16px;
}

.cal-empty-icon {
  font-size: 42px;
  color: #64748b;
  margin-bottom: 14px;
  opacity: 0.7;
}

.cal-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.cal-empty-desc {
  font-size: 13.5px;
  color: #94a3b8;
  max-width: 420px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}


#calEventModal.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

#calEventModal.modal-backdrop.hidden {
  display: none !important;
}

.cal-event-modal-content {
  max-width: 680px !important;
  border-radius: 16px !important;
  background: #0f121d !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85) !important;
  padding: 28px !important;
  position: relative;
}

.cal-modal-grid {
  display: flex;
  gap: 24px;
}

.cal-modal-cover-side {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cal-modal-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  background: #1e293b;
}

.cal-modal-badge-container {
  display: flex;
  justify-content: center;
}

.cal-modal-info-side {
  flex: 1;
  min-width: 0;
}

.cal-modal-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.cal-modal-volume-tag {
  font-size: 14px;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 14px;
}

.cal-modal-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: #cbd5e1;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-modal-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-modal-meta-item i {
  color: #94a3b8;
  width: 16px;
  text-align: center;
}

.cal-modal-description {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  max-height: 120px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.cal-modal-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cal-btn-notify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-btn-notify:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.cal-btn-notify.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #fb7185;
}


.cal-day-modal-wrapper {
  max-height: 70vh;
  overflow-y: auto;
}

.cal-day-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.cal-day-modal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-day-modal-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.cal-day-modal-thumb {
  width: 32px;
  height: 46px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1e293b;
}

.cal-day-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cal-day-modal-info {
  flex: 1;
  min-width: 0;
}

.cal-day-modal-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-day-modal-vol {
  font-size: 11.5px;
  color: #94a3b8;
}


.cal-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cal-toast.show {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 900px) {
  .cal-page-container {
    padding: 10px 12px 60px 12px !important;
  }
  .cal-weekday-cell {
    font-size: 11px;
    padding: 6px 2px;
  }
  .cal-day-cell {
    min-height: 100px;
    padding: 6px 4px;
  }
  .cal-event-card {
    padding: 3px 4px;
    gap: 5px;
  }
  .cal-event-thumb-wrap {
    width: 20px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  .cal-title {
    font-size: 24px;
  }
  .cal-nav-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cal-month-nav {
    justify-content: space-between;
  }
  .cal-nav-actions {
    justify-content: space-between;
  }
  .cal-grid-wrapper {
    display: none !important;
  }
  .cal-agenda-wrapper {
    display: block !important;
  }
  .cal-modal-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cal-modal-cover-side {
    width: 120px;
  }
  .cal-modal-meta-list {
    align-items: center;
  }
  .cal-modal-actions-row {
    justify-content: center;
  }
}




.btn-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
}

.btn-action-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-action-icon.btn-danger:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: #fb7185;
}

.admin-ed-modal-content {
  max-width: 620px !important;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 16px !important;
  background: #0f121d !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85) !important;
}

.admin-ed-modal-content .form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.admin-ed-modal-content .auth-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 13.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.admin-ed-modal-content textarea.auth-input {
  height: auto;
  padding: 10px 14px;
}

.admin-ed-modal-content .auth-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
  outline: none;
}

.admin-ed-modal-content select.auth-input {
  cursor: pointer;
}

.admin-ed-modal-content select.auth-input option {
  background: #0f172a;
  color: #f8fafc;
}



#calEventModal .modal-close-btn {
  position: absolute !important;
  top: 16px !important;
  right: 18px !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 50% !important;
  color: #cbd5e1 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  z-index: 10 !important;
}

#calEventModal .modal-close-btn:hover {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
  transform: rotate(90deg) !important;
}

.cal-modal-actions-row .btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  background: #6366f1 !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.cal-modal-actions-row .btn-primary:hover {
  background: #4f46e5 !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-1px) !important;
}

.cal-modal-actions-row .btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f1f5f9 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.cal-modal-actions-row .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}





.nav-pwa-install-btn {
  color: #fb7185 !important;
  background: rgba(99, 102, 241, 0.12) !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.nav-pwa-install-btn:hover {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45) !important;
  transform: translateY(-1px) !important;
}


.pwa-install-mobile-btn {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(99, 102, 241, 0.08)) !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  color: #fb7185 !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
}

.pwa-install-mobile-btn i {
  color: #fb7185 !important;
}

.pwa-install-mobile-btn:hover {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
}

.pwa-install-mobile-btn:hover i {
  color: #ffffff !important;
}


.pwa-network-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999999;
  max-width: 90vw;
  width: auto;
  min-width: 280px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.85);
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-network-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.pwa-toast-offline {
  background: rgba(30, 20, 10, 0.95) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #fbbf24 !important;
}

.pwa-toast-success {
  background: rgba(10, 30, 20, 0.95) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
}

.pwa-toast-info {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #7dd3fc !important;
}


body.pwa-standalone {
  user-select: none;
  -webkit-user-select: none;
}





.nav-pwa-install-btn {
  display: inline-flex !important;
  color: #fb7185 !important;
  background: rgba(99, 102, 241, 0.15) !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2) !important;
  animation: pwaPulseBtn 3s infinite ease-in-out;
}

@keyframes pwaPulseBtn {
  0%, 100% { box-shadow: 0 0 8px rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 16px rgba(99, 102, 241, 0.45); }
}

body.pwa-standalone .nav-pwa-install-btn,
body.pwa-standalone .pwa-install-mobile-btn,
body.pwa-standalone .pwa-smart-banner {
  display: none !important;
}


.pwa-guide-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pwa-guide-modal-overlay.open {
  opacity: 1;
}

.pwa-guide-modal-card {
  position: relative;
  background: #0f172a;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.15);
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 24px;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-guide-modal-overlay.open .pwa-guide-modal-card {
  transform: scale(1);
}

.pwa-guide-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pwa-guide-close-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
  border-color: #6366f1;
}

.pwa-guide-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.pwa-guide-icon-badge img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.pwa-guide-title-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.pwa-os-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.15);
  color: #fb7185;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.pwa-guide-intro {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.pwa-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.pwa-guide-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: 12px;
}

.pwa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6366f1;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pwa-step-content strong {
  display: block;
  font-size: 13px;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.pwa-step-content p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.btn-pwa-guide-ok {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
}

.btn-pwa-guide-ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.nav-mobile-drawer.open ~ #pwaSmartBanner, body:has(.nav-mobile-drawer.open) #pwaSmartBanner {
  opacity: 0 !important;
  pointer-events: none !important;
}




.pwa-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: flex-end; 
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.35s ease;
}

.pwa-popup-overlay.open {
  pointer-events: auto;
  visibility: visible;
}

.pwa-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pwa-popup-overlay.open .pwa-popup-backdrop {
  opacity: 1;
}


.pwa-popup-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #111526, #090c16);
  border-top: 1px solid rgba(99, 102, 241, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.2);
  border-radius: 26px 26px 0 0;
  padding: 16px 22px 28px 22px;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .pwa-popup-overlay {
    align-items: center;
    padding: 20px;
  }
  .pwa-popup-sheet {
    border-radius: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  }
  .pwa-popup-overlay.open .pwa-popup-sheet {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.pwa-popup-overlay.open .pwa-popup-sheet {
  transform: translateY(0);
}


.pwa-popup-handle-bar {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  margin: 0 auto 16px auto;
}

@media (min-width: 640px) {
  .pwa-popup-handle-bar {
    display: none;
  }
}

.pwa-popup-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pwa-popup-close-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
  border-color: #6366f1;
}


.pwa-popup-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.pwa-popup-icon-box img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.5);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.3);
  display: block;
}

.pwa-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.15);
  color: #fb7185;
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 4px;
}

.pwa-popup-title-box h3 {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px 0;
  letter-spacing: -0.3px;
}

.pwa-popup-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}


.pwa-popup-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 22px;
}

.pwa-popup-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-feat-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #fb7185;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.pwa-feat-text {
  display: flex;
  flex-direction: column;
}

.pwa-feat-text strong {
  font-size: 13px;
  color: #f1f5f9;
  font-weight: 700;
}

.pwa-feat-text span {
  font-size: 11px;
  color: #94a3b8;
}


.pwa-popup-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-pwa-popup-install {
  flex: 1.5;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transition: all 0.2s ease;
}

.btn-pwa-popup-install:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.6);
}

.btn-pwa-popup-later {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pwa-popup-later:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}





#readerOverlay.theme-dark .pdf-page-canvas {
  filter: none !important;
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}


#readerOverlay.theme-sepia .pdf-page-canvas {
  filter: sepia(0.60) brightness(0.95) contrast(1.08) !important;
  background-color: #fbf1e2 !important;
  box-shadow: 0 8px 32px rgba(60, 40, 20, 0.25) !important;
}


#readerOverlay.theme-light .pdf-page-canvas {
  filter: none !important;
  background-color: #ffffff !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
}


.pdf-reflow-container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 24px 80px 24px;
  box-sizing: border-box;
  animation: fadeInReflow 0.2s ease-out;
}

@keyframes fadeInReflow {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pdf-reflow-content {
  font-family: 'Nunito Sans', 'Inter', -apple-system, sans-serif;
  line-height: 1.85;
  letter-spacing: 0.01em;
  transition: font-size 0.15s ease;
  color: #f1f5f9 !important;
}

.pdf-reflow-paragraph {
  margin-bottom: 1.35em;
  text-align: justify;
  text-justify: inter-word;
  word-break: break-word;
  color: inherit !important;
}

#readerOverlay.theme-dark .pdf-reflow-content,
.theme-dark .pdf-reflow-content {
  color: #f8fafc !important;
}
#readerOverlay.theme-sepia .pdf-reflow-content,
.theme-sepia .pdf-reflow-content {
  color: #382414 !important;
  font-family: 'Playfair Display', Georgia, serif;
}
#readerOverlay.theme-light .pdf-reflow-content,
.theme-light .pdf-reflow-content {
  color: #0f172a !important;
}

.pdf-reflow-illustration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.pdf-reflow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.15);
  color: #fb7185;
  border: 1px solid rgba(99, 102, 241, 0.3);
}


.btn-quick-pdf-mode {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #fb7185 !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  border-radius: 9999px !important;
  padding: 5px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-quick-pdf-mode.hidden,
#btnQuickPdfReflow.hidden,
#btnQuickPdfReflow[style*="display: none"],
#btnQuickPdfReflow[style*="display:none"] {
  display: none !important;
}

.btn-quick-pdf-mode:hover {
  background: #6366f1 !important;
  color: #ffffff !important;
}

.btn-quick-pdf-mode.active-reflow {
  background: #6366f1 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5) !important;
}





.btn-quick-pdf-gallery {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 9999px !important;
  padding: 5px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-quick-pdf-gallery.hidden,
#btnQuickPdfGallery.hidden,
#btnQuickPdfGallery[style*="display: none"],
#btnQuickPdfGallery[style*="display:none"] {
  display: none !important;
}

.btn-quick-pdf-gallery:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}


.pdf-spread-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  position: relative !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform-origin: center center !important;
}

.pdf-spread-wrapper.single-page-spread {
  flex-direction: row !important;
}

.pdf-spread-side {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 1 auto;
}


.pdf-spread-side.spread-left {
  box-shadow: none !important;
}

.pdf-spread-side.spread-left .pdf-page-canvas {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.pdf-spread-side.spread-right {
  box-shadow: none !important;
}

.pdf-spread-side.spread-right .pdf-page-canvas {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.pdf-spread-side .pdf-page-canvas {
  max-height: calc(100vh - 60px) !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}


.pdf-spread-side.single-page .pdf-page-canvas {
  max-height: calc(100vh - 60px) !important;
  max-width: calc(100vw - 32px) !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}


.pdf-smart-zoomed {
  cursor: grab !important;
}
.pdf-smart-zoomed:active {
  cursor: grabbing !important;
}


.pdf-page-flipping-next {
  animation: pageFlipNext 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.pdf-page-flipping-prev {
  animation: pageFlipPrev 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFlipNext {
  0% { opacity: 0.65; transform: translateX(20px) scale(0.985); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes pageFlipPrev {
  0% { opacity: 0.65; transform: translateX(-20px) scale(0.985); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}


.pdf-gallery-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(15, 18, 28, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 36px rgba(0, 0, 0, 0.65);
}

.pdf-gallery-drawer.open {
  right: 0;
}

.pdf-gallery-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pdf-gallery-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-gallery-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.pdf-gallery-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.pdf-gallery-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: start;
}

.pdf-gallery-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  aspect-ratio: 2 / 3;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdf-gallery-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #6366f1;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.25);
}

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

.pdf-gallery-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pdf-gallery-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 99998;
  display: none;
}

.pdf-gallery-backdrop.open {
  display: block;
}

.btn-popover-action {
  width: 100%;
  padding: 8px 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-popover-action:hover {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}



.account-dashboard-wrapper {
  max-width: 1040px;
  margin: 32px auto 60px;
  padding: 0 16px;
}

.account-guest-banner {
  background: rgba(18, 20, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.4);
}

.guest-banner-card {
  display: flex;
  align-items: center;
  gap: 24px;
}

.guest-banner-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(251, 113, 133, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fb7185;
  flex-shrink: 0;
}

.guest-banner-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 8px 0;
  font-family: var(--font-display);
}

.guest-banner-content p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px 0;
  max-width: 760px;
}

.guest-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


.account-profile-header-card {
  background: linear-gradient(135deg, rgba(26, 29, 44, 0.85), rgba(15, 17, 26, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.account-profile-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #fb7185, #6366f1);
}

.profile-header-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

.profile-avatar-large {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #fb7185);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #ffffff;
  border: 3px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.4);
}

.avatar-ring-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.4);
  pointer-events: none;
  animation: pulseAvatar 3s ease-in-out infinite;
}

@keyframes pulseAvatar {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.06); opacity: 0.2; }
}

.profile-meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-display-name {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  font-family: var(--font-display);
}

.profile-email-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0;
}

.profile-meta-badges {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.meta-pill {
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-profile-signout {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-profile-signout:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-1px);
}


.account-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

@media (max-width: 860px) {
  .account-grid-layout {
    grid-template-columns: 1fr;
  }
  .account-profile-header-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.account-column-left,
.account-column-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.form-group-profile {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-profile label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button input {
  flex: 1;
  background: rgba(11, 13, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.input-with-button input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.field-hint {
  font-size: 11.5px;
  color: #64748b;
}


.avatar-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.avatar-preset-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-preset-btn img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.2s;
}

.avatar-preset-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(251, 113, 133, 0.4);
  transform: translateY(-2px);
}

.avatar-preset-btn:hover img {
  transform: scale(1.08);
}

.avatar-preset-btn.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}


.dropdown-display-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.dropdown-email-sub {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 2px;
}

.nav-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}





.has-para-comment-anchor {
  position: relative;
  transition: background-color 0.2s ease;
}

.has-para-comment-anchor:hover {
  background-color: rgba(99, 102, 241, 0.04);
  border-radius: 6px;
}


.para-comment-trigger {
  position: absolute;
  right: -38px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(30, 34, 52, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.has-para-comment-anchor:hover .para-comment-trigger,
.para-comment-trigger.has-count {
  opacity: 1;
  pointer-events: auto;
}


@media (max-width: 768px), (hover: none) {
  .has-para-comment-anchor:hover {
    background-color: transparent !important;
  }

  .para-comment-trigger {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .para-comment-trigger.has-count {
    display: inline-flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    right: -4px;
    height: 22px;
    min-width: 26px;
    padding: 0 6px;
    font-size: 10.5px;
    border-radius: 11px;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  }
}

.para-comment-trigger.has-count {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(251, 113, 133, 0.9));
  border-color: #fb7185;
  color: #ffffff;
  width: auto;
  min-width: 32px;
  padding: 0 8px;
  border-radius: 14px;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.para-comment-trigger:hover {
  transform: translateY(-50%) scale(1.15);
  background: #6366f1;
  color: #ffffff;
  border-color: #fb7185;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.para-comment-count {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display, sans-serif);
}


.para-comments-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.para-comments-backdrop.hidden {
  display: none;
}


.para-comments-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 92vw;
  background: rgba(15, 17, 26, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.para-comments-drawer.open {
  transform: translateX(0);
}

.para-comments-drawer.hidden {
  display: none;
}


.para-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.para-comments-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  font-family: var(--font-display, sans-serif);
}

.para-comments-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.para-comments-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}


.para-quote-box {
  margin: 16px 20px 0;
  padding: 12px 16px;
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid #6366f1;
  border-radius: 8px;
  position: relative;
}

.para-quote-box .quote-mark {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 14px;
  color: rgba(99, 102, 241, 0.4);
}

.para-quote-box p {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.para-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.para-comments-loading,
.para-comments-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #94a3b8;
  padding: 40px 20px;
  gap: 12px;
}

.para-comments-empty .empty-icon {
  font-size: 36px;
  color: rgba(99, 102, 241, 0.4);
}

.para-comments-empty h4 {
  margin: 0;
  font-size: 15px;
  color: #f1f5f9;
}

.para-comments-empty p {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  max-width: 260px;
}


.para-comment-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s;
}

.para-comment-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

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

.comment-item-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1, #fb7185);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
}

.comment-item-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-item-meta {
  display: flex;
  flex-direction: column;
}

.comment-author-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-author-name {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.comment-item-time {
  font-size: 11px;
  color: #64748b;
}

.comment-item-text {
  margin: 0;
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}


.comment-spoiler-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.comment-spoiler-box .spoiler-warning {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-spoiler-box .spoiler-warning span {
  font-weight: 400;
  opacity: 0.8;
  font-size: 11px;
}

.comment-spoiler-box .spoiler-content {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.5;
}

.comment-spoiler-box.revealed .spoiler-content {
  display: block;
}

.comment-spoiler-box.revealed .spoiler-warning {
  opacity: 0.6;
  font-size: 11px;
}


.comment-item-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-like-comment {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-like-comment:hover,
.btn-like-comment.liked {
  color: #fb7185;
}

.btn-like-comment.liked {
  font-weight: 700;
}

.btn-delete-comment {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}

.btn-delete-comment:hover {
  color: #ef4444;
}


.para-comment-form-container {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 20, 30, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-author-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
}

.comment-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-author-name {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.para-comment-form-container textarea {
  width: 100%;
  background: rgba(11, 13, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13.5px;
  resize: none;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.para-comment-form-container textarea:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spoiler-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.spoiler-toggle-label input {
  accent-color: #f59e0b;
  cursor: pointer;
}





.reader-selection-tooltip {
  position: fixed;
  z-index: 10002;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(18, 20, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 4px 6px;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.25);
  backdrop-filter: blur(16px);
  animation: tooltipFadeIn 0.18s ease-out;
}

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.reader-selection-tooltip.hidden {
  display: none !important;
}

.tooltip-action-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tooltip-action-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #ffffff;
}

.tooltip-action-btn i {
  color: #fb7185;
}


.btn-para-quote-share {
  margin-top: 8px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fb7185;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-para-quote-share:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #fb7185;
  color: #ffffff;
}


.quote-card-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quote-card-modal-overlay.hidden {
  display: none !important;
}

.quote-card-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.quote-card-modal-container {
  position: relative;
  background: rgba(18, 20, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 960px;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.15);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.quote-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quote-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  font-family: var(--font-display, sans-serif);
}

.quote-modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.quote-modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.quote-modal-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  padding: 24px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .quote-modal-body {
    grid-template-columns: 1fr;
  }
}


.quote-preview-column {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 18, 0.6);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.canvas-aspect-wrapper {
  max-width: 100%;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#quoteCardCanvas {
  max-width: 100%;
  max-height: 460px;
  border-radius: 12px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}


.quote-controls-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.control-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}


.aspect-ratio-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.aspect-ratio-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.aspect-ratio-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.aspect-ratio-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}


.quote-theme-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.quote-theme-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.quote-theme-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.quote-theme-btn.active {
  border-color: #fb7185;
  background: rgba(99, 102, 241, 0.15);
  color: #ffffff;
}

.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.neon-dot { background: linear-gradient(135deg, #6366f1, #6366f1); }
.sepia-dot { background: linear-gradient(135deg, #d97706, #78350f); }
.cyber-dot { background: linear-gradient(135deg, #06b6d4, #a855f7); }
.cinema-dot { background: linear-gradient(135deg, #475569, #0f172a); }


.quote-font-size-adjuster {
  display: flex;
  gap: 4px;
}

.quote-font-size-adjuster button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
}

.quote-font-size-adjuster button:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}

.quote-controls-column textarea {
  background: rgba(10, 12, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13.5px;
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
}

.quote-controls-column textarea:focus {
  border-color: #fb7185;
}


.control-group-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #cbd5e1;
  cursor: pointer;
}

.toggle-checkbox input {
  accent-color: #6366f1;
}


.quote-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.quote-modal-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 10px;
}


@media (max-width: 600px) {
  .reader-selection-tooltip {
    max-width: calc(100vw - 20px);
    padding: 4px;
    gap: 2px;
  }
  .tooltip-action-btn {
    padding: 5px 8px;
    font-size: 11.5px;
    gap: 4px;
  }
}


#accountModuleContainer,
.account-container,
.account-dashboard-wrapper,
.account-auth-view,
.account-profile-header-card,
.account-grid-layout,
.account-column-left,
.account-column-right,
.account-card,
.account-details-list,
.account-detail-item,
.account-settings-form,
.setting-item,
.input-with-button {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

#accountModuleContainer {
  width: 100% !important;
  overflow-x: hidden !important;
}

@media (max-width: 860px) {
  
  .account-dashboard-wrapper {
    margin: 8px auto 40px !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .account-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  
  .account-profile-header-card {
    padding: 20px 14px !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .profile-header-main {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .profile-avatar-wrapper {
    width: 68px !important;
    height: 68px !important;
    margin: 0 auto !important;
  }

  .profile-avatar-large {
    width: 68px !important;
    height: 68px !important;
    font-size: 28px !important;
  }

  .profile-meta-info {
    width: 100% !important;
    min-width: 0 !important;
    align-items: center !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .profile-title-row {
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    flex-wrap: wrap !important;
  }

  .profile-display-name {
    font-size: 20px !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
  }

  .profile-email-subtitle {
    font-size: 12px !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    margin-top: 4px !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  .profile-meta-badges {
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 10px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .meta-pill {
    font-size: 10.5px !important;
    padding: 4px 8px !important;
    white-space: normal !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  .profile-header-actions {
    width: 100% !important;
  }

  .btn-profile-signout {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    box-sizing: border-box !important;
  }

  
  .account-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .account-column-left,
  .account-column-right {
    width: 100% !important;
    min-width: 0 !important;
    gap: 14px !important;
    box-sizing: border-box !important;
  }

  
  .account-card {
    padding: 16px 14px !important;
    border-radius: 14px !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .account-card-header-simple h3 {
    font-size: 15.5px !important;
  }

  .account-card-header-simple p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  
  .input-with-button {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .input-with-button input {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    padding: 10px 12px !important;
  }

  .input-with-button button {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    box-sizing: border-box !important;
  }

  
  .avatar-presets-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .avatar-preset-btn {
    border-radius: 10px !important;
    padding: 4px !important;
    box-sizing: border-box !important;
  }

  
  .account-shortcut-box {
    padding: 12px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .shortcut-text {
    min-width: 0 !important;
    flex: 1 !important;
  }

  .shortcut-text strong {
    font-size: 13.5px !important;
    word-break: break-word !important;
  }

  .shortcut-text span {
    font-size: 11.5px !important;
    word-break: break-word !important;
  }

  
  .account-settings-form {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .setting-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .setting-item label {
    font-size: 12.5px !important;
  }

  .setting-item select {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 10px !important;
    font-size: 13.5px !important;
  }

  
  .account-details-list {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .account-detail-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 10px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .account-detail-item .detail-label {
    font-size: 12px !important;
  }

  .account-detail-item .detail-value {
    font-size: 13px !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
  }

  
  .account-guest-banner {
    padding: 20px 14px !important;
    border-radius: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .guest-banner-card {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .guest-banner-actions {
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .guest-banner-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}






.contrib-cover-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contrib-cover-label-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.contrib-cover-label-bar label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.contrib-cover-toggle-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 2px;
}

.theme-light .contrib-cover-toggle-pills {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

.cover-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cover-pill-btn:hover {
  color: var(--text-primary);
}

.cover-pill-btn.active {
  background: var(--primary, #6366f1);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.contrib-cover-panel {
  width: 100%;
}

.contrib-cover-dropzone {
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 18px 16px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  user-select: none;
}

.theme-light .contrib-cover-dropzone {
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.02);
}

.contrib-cover-dropzone:hover {
  border-color: var(--primary, #6366f1);
  background: rgba(99, 102, 241, 0.04);
}

.contrib-cover-dropzone.dragover {
  border-color: var(--primary, #6366f1);
  background: rgba(99, 102, 241, 0.08);
  transform: scale(1.008);
}


.drop-content-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.drop-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  color: #fb7185;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.contrib-cover-dropzone:hover .drop-icon-wrap {
  transform: translateY(-2px) scale(1.05);
}

.drop-text-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drop-main-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.drop-sub-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.btn-drop-browse {
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.theme-light .btn-drop-browse {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

.btn-drop-browse:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}


.drop-content-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
}

.drop-thumb-container {
  width: 64px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

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

.drop-preview-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.drop-file-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-file-badge {
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.drop-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-cover-action {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-cover-action.change {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.btn-cover-action.change:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-cover-action.delete {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.btn-cover-action.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}


.drop-content-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  color: var(--primary, #6366f1);
  font-size: 12px;
  font-weight: 600;
}

.drop-content-loading i {
  font-size: 24px;
}


.contrib-url-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.contrib-url-box i {
  position: absolute;
  left: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  pointer-events: none;
}

.contrib-url-box input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-light .contrib-url-box input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}

.contrib-url-box input:focus {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.contrib-field-tip {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
}



.vol-banner-top-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}

.contrib-unit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  padding: 3px 6px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.unit-toggle-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  padding-left: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.unit-toggle-pills {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.unit-pill-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.4;
}

.unit-pill-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.unit-pill-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.unit-pill-btn#btnUnitModeChapter.active {
  background: linear-gradient(135deg, #059669, #0891b2);
  color: #ffffff;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

.vol-badge-number.chapter-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.25));
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}



.series-badge-exclusive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(244, 63, 94, 0.25));
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}



.toolbar-btn.btn-download-locked {
  opacity: 0.9 !important;
  cursor: pointer !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.12) !important;
}

.toolbar-btn.btn-download-locked:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  transform: translateY(-1px);
}

.download-restricted-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-restricted-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.download-restricted-card {
  background: linear-gradient(145deg, #181d2a, #0f131f);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(239, 68, 68, 0.18);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-restricted-overlay.active .download-restricted-card {
  transform: scale(1);
}

.download-restricted-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(244, 63, 94, 0.25));
  border: 1px solid rgba(239, 68, 68, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.download-restricted-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 14px;
}

.download-restricted-card p {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-restricted-dismiss {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-restricted-dismiss:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}



.contrib-api-candidates-section {
  margin-top: 18px;
  margin-bottom: 20px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
}

.api-candidates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.api-candidates-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.candidates-count-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
}

.api-candidates-hint {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 14px;
}

.contrib-candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.api-candidate-card {
  display: flex;
  gap: 12px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.api-candidate-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.api-candidate-card.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
}

.api-candidate-thumb {
  width: 50px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.api-candidate-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.api-candidate-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.api-candidate-author {
  font-size: 0.76rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.api-candidate-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.api-source-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.api-source-badge.anilist {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.api-source-badge.kitsu {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.api-source-badge.mangadex {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.api-origin-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.api-origin-badge.format-novel {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

.api-origin-badge.format-manga {
  background: rgba(244, 63, 94, 0.15);
  color: #fca5a5;
}


.lnori-card-format-tag.fr, .popup-pill.fr {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(239, 68, 68, 0.25));
  color: #93c5fd;
  border-color: rgba(99, 102, 241, 0.4);
}







.series-page-cover-wrap {
  position: relative !important;
  overflow: visible !important;
}

.series-page-cover-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, 
    rgba(0, 0, 0, 0.45) 0%, 
    rgba(255, 255, 255, 0.16) 28%, 
    rgba(0, 0, 0, 0.22) 65%, 
    transparent 100%
  );
  pointer-events: none;
  border-top-left-radius: 13px;
  border-bottom-left-radius: 13px;
  z-index: 3;
}


.btn-series-hero-primary.is-resume {
  padding: 8px 22px !important;
  gap: 12px !important;
}

.btn-resume-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  line-height: 1.25 !important;
}

.btn-resume-label {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.btn-resume-sub {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-top: 1px !important;
}


.btn-series-hero-restart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-series-hero-restart:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  transform: rotate(-90deg) scale(1.05) !important;
}


.series-volumes-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-bottom: 22px !important;
}

.series-volumes-title-group {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}

.series-volumes-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.vol-search-input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.vol-search-input-wrap i {
  position: absolute !important;
  left: 12px !important;
  font-size: 12px !important;
  color: #64748b !important;
  pointer-events: none !important;
}

.vol-search-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  padding: 7px 14px 7px 32px !important;
  font-size: 12.5px !important;
  color: #f8fafc !important;
  outline: none !important;
  width: 140px !important;
  transition: all 0.25s ease !important;
}

.vol-search-input:focus {
  width: 190px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--primary, #6366f1) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.btn-vol-sort {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-vol-sort:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}


.series-recommendations-section {
  margin-top: 50px !important;
  padding-top: 36px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.series-recommendations-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 20px !important;
  margin-top: 20px !important;
}

.recom-card {
  display: flex !important;
  flex-direction: column !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.recom-card:hover {
  transform: translateY(-4px) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(99, 102, 241, 0.15) !important;
}

.recom-cover-wrap {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 2/3 !important;
  overflow: hidden !important;
  background: #0d0f17 !important;
}

.recom-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.35s ease !important;
}

.recom-card:hover .recom-cover {
  transform: scale(1.05) !important;
}

.recom-badge {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  background: rgba(9, 10, 16, 0.85) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.recom-info {
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.recom-genre {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #818cf8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.recom-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #f8fafc !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.35 !important;
}


html.theme-light .series-page-cover-wrap::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(255, 255, 255, 0.25) 30%, transparent 100%) !important;
}

html.theme-light .vol-search-input {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

html.theme-light .btn-vol-sort {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #475569 !important;
}

html.theme-light .recom-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

html.theme-light .recom-title {
  color: #0f172a !important;
}

html.theme-light .series-recommendations-section {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}


@media (max-width: 640px) {
  .series-recommendations-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .recom-info {
    padding: 10px 8px !important;
    gap: 2px !important;
  }
  .recom-title {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
  .recom-genre {
    font-size: 10px !important;
  }
  .recom-badge {
    top: 6px !important;
    right: 6px !important;
    font-size: 9px !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
  }
}


.volume-card.vol-card-hidden,
.modern-vol-card.vol-card-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .series-volumes-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  .series-volumes-toolbar {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
  }
  .vol-search-input-wrap {
    flex: 1 !important;
  }
  .vol-search-input {
    width: 100% !important;
  }
  .vol-search-input:focus {
    width: 100% !important;
  }
}


.card-bookmark-ribbon {
  position: absolute;
  top: 0;
  left: 10px;
  z-index: 15;
  width: 30px;
  height: 48px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #b45309 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5px;
  color: #ffffff;
  
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45), 0 2px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.card-bookmark-ribbon i {
  font-size: 12px;
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  margin-bottom: 3px;
}

.card-bookmark-ribbon span {
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.lnori-card-wrapper:hover .card-bookmark-ribbon,
.novel-series-card:hover .card-bookmark-ribbon,
.hero-carousel-card:hover .card-bookmark-ribbon {
  transform: translateY(3px) scale(1.05);
  filter: brightness(1.15) drop-shadow(0 6px 18px rgba(245, 158, 11, 0.65));
}


.hero-badge-original {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}


.series-badge-original-creation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.3) 100%);
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #fbbf24;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.series-badge-original-creation i {
  color: #f59e0b;
}

.series-page-cover-wrap {
  position: relative;
}



.wn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wn-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.wn-modal-card {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(239, 68, 68, 0.2);
  color: #f4f4f5;
  overflow: hidden;
  animation: wnModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wnModalPop {
  0% { transform: scale(0.95) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.wn-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.wn-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.wn-modal-close {
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.wn-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.wn-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wn-report-context-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.wn-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wn-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d4d4d8;
}

.wn-form-hint {
  font-size: 0.75rem;
  color: #a1a1aa;
  margin-top: 4px;
}

.wn-input {
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wn-input:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.wn-textarea {
  resize: vertical;
  min-height: 60px;
}

.wn-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}




/* ── ONBOARDING REPORT TIP TOAST & NEW BADGE ── */
.reader-onboarding-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.96) 0%, rgba(14, 14, 18, 0.98) 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f4f4f5;
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.8), 0 0 28px rgba(239, 68, 68, 0.22);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 100005;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 640px;
  width: calc(100vw - 40px);
}

.reader-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.2);
}

.reader-toast-content {
  flex: 1;
  min-width: 0;
}

.reader-toast-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.reader-toast-pill {
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.reader-toast-title {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.reader-toast-text {
  color: #d4d4d8;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.reader-toast-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.reader-toast-action-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}

.reader-toast-action-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5);
}

.reader-toast-action-btn:active {
  transform: translateY(0);
}

.reader-onboarding-toast-close {
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.reader-onboarding-toast-close:hover {
  color: #ffffff;
  transform: scale(1.1);
}

@media (max-width: 680px) {
  .reader-onboarding-toast {
    bottom: 85px;
    padding: 12px 14px;
    gap: 12px;
    border-radius: 14px;
    flex-wrap: wrap;
  }
  .reader-toast-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .reader-toast-title {
    font-size: 12.5px;
  }
  .reader-toast-text {
    font-size: 11.5px;
  }
  .reader-toast-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.reader-onboarding-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.reader-onboarding-toast.hidden {
  display: none !important;
}

.reader-tool-badge-new {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 7.5px;
  font-weight: 800;
  padding: 1px 3.5px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  line-height: 1.1;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
  animation: pulseReportBadge 2s infinite;
  pointer-events: none;
}

@keyframes pulseReportBadge {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

#readerReportErrorBtn, #wnReportErrorBtn {
  position: relative !important;
}

/* Assurer la sélection fluide du texte dans le lecteur sur tactile / mobile et mode PWA */
.pdf-reflow-content, .wn-chapter-body, .reader-text-container, [data-reader-selectable] {
  user-select: text !important;
  -webkit-user-select: text !important;
}






.main-content {
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
  overflow-x: hidden !important;
  background-color: #090a10 !important;
}


.module-container.hidden,
#homeModuleContainer.hidden,
#catalogModule.hidden,
#editorialModule.hidden,
#newsModule.hidden,
#libraryModule.hidden,
#docModuleContainer.hidden,
#videoModuleContainer.hidden,
#seriesModule.hidden,
#accountModuleContainer.hidden,
#contributorModuleContainer.hidden,
#adminModuleContainer.hidden,
.hidden {
  display: none !important;
}


#homeModuleContainer.home-container:not(.hidden) {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}


#homeLnoriHero.home-lnori-hero,
.home-lnori-hero {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 540px !important;
  margin: 0 0 36px 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


#homeHeroAmbient.home-hero-ambient,
.home-hero-ambient {
  position: absolute !important;
  inset: -60px !important;
  width: calc(100% + 120px) !important;
  height: calc(100% + 120px) !important;
  background-size: cover !important;
  background-position: center 25% !important;
  filter: blur(45px) saturate(2.2) brightness(0.55) !important;
  transform: scale(1.25) !important;
  opacity: 0.85 !important;
  transition: background-image 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  z-index: 1 !important;
  pointer-events: none !important;
}


#homeHeroOverlay.home-hero-overlay,
.home-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: 
    radial-gradient(ellipse 90% 75% at 50% 25%, transparent 20%, rgba(9, 10, 16, 0.6) 70%, #090a10 100%),
    linear-gradient(to bottom, transparent 25%, rgba(9, 10, 16, 0.7) 65%, #090a10 100%),
    linear-gradient(to right, #090a10 0%, rgba(9, 10, 16, 0.3) 25%, rgba(9, 10, 16, 0.3) 75%, #090a10 100%) !important;
}


.home-hero-layout {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 40px 24px !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 40px !important;
  align-items: center !important;
}


.home-hero-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
}

.home-hero-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 9999px;
  background: rgba(225, 29, 72, 0.18);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  backdrop-filter: blur(12px);
}

.hero-pill-badge.status {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.hero-pill-badge.origin {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.home-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 500;
}

.home-hero-meta .author {
  color: #e2e8f0;
  font-weight: 600;
}

.home-hero-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-genre-tag {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.hero-genre-tag:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.home-hero-synopsis {
  color: #cbd5e1;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 4px 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.92;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.5);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(225, 29, 72, 0.65);
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.btn-hero-glass {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 12px;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}


#homeModuleContainer > :not(#homeLnoriHero) {
  width: 100% !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

#catalogModule.catalog-container:not(.hidden),
#catalogModule:not(.hidden) {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 32px 24px 60px 24px !important;
  box-sizing: border-box !important;
}


#libraryModule.library-module-container:not(.hidden),
#libraryModule:not(.hidden),
.library-module-container:not(.hidden) {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 32px 24px 60px 24px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
}

.library-header-section {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
}

.library-toolbar {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.library-filter-pills {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  overflow-x: auto !important;
  padding: 4px 0 !important;
}

.library-grid-showcase {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)) !important;
  gap: 24px !important;
}


#contributorMountPoint {
  width: 100% !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#contributorModuleContainer.contributor-module-container:not(.hidden),
#contributorModuleContainer:not(.hidden),
.contributor-module-container:not(.hidden) {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 32px 24px 60px 24px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
}

#contributorModuleContainer .account-header-section,
#contributorModuleContainer .contrib-header-section {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
  margin-bottom: 0 !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
}

#contributorModuleContainer .contrib-title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

#contributorModuleContainer .contrib-main-title,
#contributorModuleContainer .account-main-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

#contributorModuleContainer .contrib-main-subtitle,
#contributorModuleContainer .account-main-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.95rem !important;
  color: #94a3b8 !important;
  max-width: 720px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

#contributorModuleContainer .contrib-subnav-bar {
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(15, 19, 32, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 6px !important;
  border-radius: 12px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
}

#contributorModuleContainer .contrib-section-view {
  width: 100% !important;
  box-sizing: border-box !important;
}

#contributorModuleContainer .contrib-stats-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
}

#contributorModuleContainer .contrib-overview-body {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 2fr 1.2fr !important;
  gap: 24px !important;
  box-sizing: border-box !important;
}

#contributorModuleContainer .contrib-toolbar {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-bottom: 24px !important;
  box-sizing: border-box !important;
}

#contributorModuleContainer .contrib-novels-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 24px !important;
  box-sizing: border-box !important;
}

#contributorModuleContainer .contrib-form-container {
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}




#seriesModule.series-module-full,
#seriesModule.module-container:not(.hidden),
.series-module-full {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  display: block !important;
}

.series-page-banner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
}


.module-container:not(#homeModuleContainer):not(#catalogModule):not(#libraryModule):not(.library-module-container):not(#seriesModule):not(.series-module-full):not(#editorialModule):not(.cal-page-container):not(#adminModuleContainer):not(.admin-module-container) {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 32px 24px !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  #homeLnoriHero.home-lnori-hero {
    min-height: auto !important;
  }
  .home-hero-layout {
    padding: 32px 20px !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  #homeModuleContainer > :not(#homeLnoriHero) {
  width: 100% !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}
}




.home-hero-deck-area {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 100% !important;
  max-width: 380px !important;
  margin: 0 auto !important;
}

.home-hero-stack-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 380px !important;
  position: relative !important;
  box-sizing: border-box !important;
  padding: 15px 25px 0 0 !important;
}

#homeHeroStack {
  position: relative !important;
  width: 230px !important;
  height: 345px !important;
  cursor: pointer !important;
  user-select: none !important;
  touch-action: pan-y !important;
}


.hero-carousel-card {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  will-change: transform, opacity, filter !important;
  transform-origin: center center !important;
  cursor: pointer !important;
  user-select: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-card {
    transition: none !important;
  }
}

.hero-carousel-card .card-inner {
  width: 100% !important;
  height: 100% !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #14151e !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 10px 20px -5px rgba(0, 0, 0, 0.5) !important;
  position: relative !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.hero-carousel-card .card-inner img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}


.hero-carousel-card .card-inner .card-shine-glare {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 65%) !important;
  pointer-events: none !important;
}


.hero-carousel-card .card-inner::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 12px !important;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, transparent 100%) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}




.hero-carousel-card.card-discard {
  pointer-events: none !important;
  z-index: 60 !important;
}

.hero-carousel-card.card-0 {
  opacity: 1 !important;
  transform: translate(0px, 0px) rotate(0deg) !important;
  z-index: 50 !important;
  filter: brightness(1) !important;
  pointer-events: auto !important;
}

.hero-carousel-card.card-0 .card-inner {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.4) !important;
}


.hero-carousel-card.card-1 {
  opacity: 0.85 !important;
  transform: translate(7px, -7px) rotate(1.6deg) !important;
  z-index: 40 !important;
  filter: brightness(0.82) !important;
  pointer-events: auto !important;
}


.hero-carousel-card.card-2 {
  opacity: 0.60 !important;
  transform: translate(14px, -14px) rotate(3.2deg) !important;
  z-index: 30 !important;
  filter: brightness(0.66) !important;
  pointer-events: auto !important;
}


.hero-carousel-card.card-3 {
  opacity: 0.35 !important;
  transform: translate(21px, -21px) rotate(4.8deg) !important;
  z-index: 20 !important;
  filter: brightness(0.50) !important;
  pointer-events: none !important;
}


.hero-carousel-card.card-4 {
  opacity: 0.15 !important;
  transform: translate(28px, -28px) rotate(6.4deg) !important;
  z-index: 10 !important;
  filter: brightness(0.35) !important;
  pointer-events: none !important;
}


#homeHeroStack:hover .hero-carousel-card.card-1 {
  transform: translate(10px, -10px) rotate(2.2deg) !important;
  filter: brightness(0.88) !important;
}

#homeHeroStack:hover .hero-carousel-card.card-2 {
  transform: translate(20px, -20px) rotate(4.4deg) !important;
  filter: brightness(0.74) !important;
}

#homeHeroStack:hover .hero-carousel-card.card-3 {
  transform: translate(30px, -30px) rotate(6.6deg) !important;
  filter: brightness(0.58) !important;
}


@keyframes heroDetailsEnter {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

.home-hero-details.hero-slide-enter {
  animation: heroDetailsEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroAmbientPulse {
  0% {
    opacity: 0.35;
    transform: scale(1.18);
  }
  100% {
    opacity: 0.85;
    transform: scale(1.25);
  }
}

#homeHeroAmbient.ambient-animate {
  animation: heroAmbientPulse 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


.home-hero-nav {
  position: static !important;
  margin-top: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  z-index: 10 !important;
  width: auto !important;
}


.hero-arrow-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(30, 32, 40, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #d1d5db !important;
  cursor: pointer !important;
  backdrop-filter: blur(12px) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
}

.hero-arrow-btn i {
  font-size: 12px !important;
  transition: transform 0.2s ease !important;
}

.hero-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  transform: scale(1.06) !important;
}

.hero-arrow-btn:active {
  transform: scale(0.96) !important;
}


.home-hero-pills {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 0 6px !important;
}

.hero-pill-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  cursor: pointer !important;
  border: none !important;
  padding: 0 !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.hero-pill-dot:hover {
  background: rgba(255, 255, 255, 0.5) !important;
}

.hero-pill-dot.active {
  width: 22px !important;
  height: 7px !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6) !important;
}


.home-lnori-section {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto 48px auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

.home-section-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-section-title-wrap h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.3px;
}

.home-section-title-wrap h2 i {
  font-size: 20px;
  color: #e11d48;
}

.home-section-title-wrap p {
  color: #94a3b8;
  font-size: 13.5px;
  margin: 4px 0 0 0;
}

.home-section-link {
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.home-section-link:hover {
  color: #fb7185;
  transform: translateX(3px);
}


.lnori-catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 1280px) {
  .lnori-catalog-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (max-width: 960px) {
  .lnori-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .home-lnori-section {
    padding: 0 16px !important;
    margin-bottom: 36px !important;
  }
  .lnori-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}



.lnori-card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lnori-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.lnori-card-cover-box {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3 !important;
  border-radius: 14px;
  overflow: hidden;
  background: #12131a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}


.lnori-card-cover-box img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block;
  border-radius: inherit;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lnori-card:hover .lnori-card-cover-box img {
  transform: scale(1.05);
}

.lnori-card:hover .lnori-card-cover-box {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 16px 35px -8px rgba(225, 29, 72, 0.25);
}

.lnori-card-format-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  background: rgba(9, 10, 16, 0.85);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.lnori-card-vol-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(225, 29, 72, 0.9);
  color: #ffffff;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.lnori-card-info {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}


.lnori-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
  height: 2.8em !important;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lnori-card-sub {
  font-size: 12px;
  color: #94a3b8;
  height: 1.4em !important;
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.lnori-card-popup {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) translateY(5px) scale(0.96);
  width: 330px;
  max-width: 90vw;
  background: rgba(14, 16, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 20px rgba(225, 29, 72, 0.15);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

@media (min-width: 1024px) {
  .lnori-card-wrapper:hover .lnori-card-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.popup-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

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

.popup-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(225, 29, 72, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.popup-rating {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
}

.popup-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.popup-author {
  font-size: 12px;
  color: #94a3b8;
}

.popup-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.popup-genre-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
}

.popup-synopsis {
  font-size: 12.5px;
  line-height: 1.55;
  color: #cbd5e1;
  max-height: 110px;
  overflow-y: auto;
  margin: 0 0 16px 0;
  padding-right: 4px;
}

.popup-synopsis::-webkit-scrollbar {
  width: 4px;
}
.popup-synopsis::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.popup-actions {
  display: flex;
  gap: 10px;
}

.popup-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  color: #ffffff;
  background: #e11d48;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.popup-btn-primary:hover {
  background: #f43f5e;
}

.popup-btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popup-btn-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}


.home-resume-banner {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto 40px auto !important;
  box-sizing: border-box !important;
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.12) 0%, rgba(18, 19, 28, 0.8) 50%, rgba(18, 19, 28, 0.95) 100%);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.home-resume-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.home-resume-cover-img {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.home-resume-meta-wrap h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fb7185;
  margin: 0 0 4px 0;
}

.home-resume-meta-wrap h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.home-resume-progress-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.home-resume-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
}

.home-resume-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #e11d48, #f43f5e);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.home-resume-bar-percent {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}


.home-studios-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .home-studios-bar {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.home-studio-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-studio-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(244, 63, 94, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

.home-studio-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.home-studio-icon.doc {
  background: rgba(225, 29, 72, 0.15);
  color: #fb7185;
  border: 1px solid rgba(225, 29, 72, 0.3);
}

.home-studio-icon.lib {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.home-studio-icon.video {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.home-studio-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.home-studio-info p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}


@media (max-width: 1024px) {
  .home-hero-layout {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 30px;
  }
  .home-hero-stack-container {
    height: 320px;
  }
  .home-hero-stack {
    width: 200px;
    height: 300px;
  }
  .home-hero-nav {
    right: 28px;
    bottom: 18px;
  }
}


@media (max-width: 640px) {
  .home-resume-banner {
    flex-direction: column;
    align-items: stretch;
  }
}




.catalog-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 0 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.catalog-lnori-header {
  margin: 0 auto 32px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: center;
}

.catalog-lnori-search-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.catalog-lnori-search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(18, 19, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  height: 50px;
  padding: 0 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-lnori-search-box:focus-within {
  background: rgba(24, 26, 38, 0.95);
  border-color: rgba(225, 29, 72, 0.5);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15), 0 12px 30px -5px rgba(0, 0, 0, 0.6);
}

.catalog-lnori-search-box .cat-search-icon {
  color: #94a3b8;
  font-size: 17px;
  margin-right: 12px;
  flex-shrink: 0;
}

.catalog-lnori-search-box input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 15px;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.catalog-lnori-search-box input::placeholder {
  color: #64748b;
}

.cat-search-clear {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: color 0.15s;
}

.cat-search-clear:hover {
  color: #ffffff;
}


.catalog-filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.catalog-filter-toggle-btn:hover,
.catalog-filter-toggle-btn.active {
  background: rgba(225, 29, 72, 0.18);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

.filter-count-badge {
  background: #e11d48;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  margin-left: 4px;
}


.catalog-tools-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s;
}

.catalog-tools-panel.open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.catalog-tools-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px 20px;
  background: rgba(18, 19, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(16px);
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.catalog-filter-select {
  background: rgba(10, 11, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-radius: 10px;
  height: 40px;
  padding: 0 12px;
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.catalog-filter-select:focus {
  border-color: rgba(225, 29, 72, 0.5);
}


.catalog-active-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  animation: fadeIn 0.25s ease;
}

.active-rail-label {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(225, 29, 72, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  cursor: pointer;
  transition: all 0.15s ease;
}

.active-chip:hover {
  background: rgba(225, 29, 72, 0.25);
  color: #ffffff;
}

.active-chip i {
  font-size: 10px;
  opacity: 0.8;
}

.btn-clear-all-chips {
  margin-left: auto;
  font-size: 12px;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.btn-clear-all-chips:hover {
  color: #fb7185;
}


.catalog-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-count-pill {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}


@media (min-width: 1024px) {
  
  .lnori-card-wrapper.popup-left .lnori-card-popup {
    left: 0;
    right: auto;
    transform: translateX(0) translateY(5px) scale(0.96);
    transform-origin: left center;
  }
  .lnori-card-wrapper.popup-left:hover .lnori-card-popup {
    transform: translateX(0) translateY(0) scale(1);
  }

  
  .lnori-card-wrapper.popup-right .lnori-card-popup {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(5px) scale(0.96);
    transform-origin: right center;
  }
  .lnori-card-wrapper.popup-right:hover .lnori-card-popup {
    transform: translateX(0) translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .catalog-lnori-search-wrap {
    flex-wrap: wrap;
  }
  .catalog-lnori-search-box {
    order: 1;
    width: 100%;
  }
  .catalog-filter-toggle-btn {
    order: 2;
    flex: 1;
  }
  .btn-surprise-me {
    order: 3;
    flex: 1;
  }
}



.topnav#mainHeader,
.topnav {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 64px !important;
  background: rgba(9, 10, 16, 0.78) !important;
  backdrop-filter: blur(14px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 1000 !important;
}


.topnav-container {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  box-sizing: border-box !important;
}


.topnav-left-group {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  flex-shrink: 0 !important;
}



.topnav-logo {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 4px 6px !important;
  border-radius: 10px !important;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease-out !important;
}

.topnav-logo:hover {
  transform: translateY(-1px) !important;
  opacity: 0.98 !important;
}

.topnav-logo:active {
  transform: scale(0.98) !important;
}

.topnav-logo .logo-icon {
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  border-radius: 10px !important;
  background: rgba(99, 102, 241, 0.12) !important;
  border: 1px solid rgba(99, 102, 241, 0.28) !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  transition: box-shadow 200ms ease-out, border-color 200ms ease-out, background-color 200ms ease-out !important;
}

.topnav-logo:hover .logo-icon {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.42), 0 0 12px rgba(168, 85, 247, 0.35) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  background: rgba(99, 102, 241, 0.18) !important;
  transform: none !important;
}

.topnav-logo .logo-brand,
.topnav-logo .logo-text {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 1px !important;
  line-height: 1 !important;
}

.topnav-logo .logo-novel {
  color: #f8fafc !important;
  font-weight: 700 !important;
}

.topnav-logo .logo-trad {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 800 !important;
}

.topnav-logo .logo-spark {
  color: #fbbf24 !important;
  font-size: 13px !important;
  margin-left: 3px !important;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6)) !important;
  display: inline-block !important;
  transition: transform 250ms ease-out !important;
}

.topnav-logo:hover .logo-spark {
  transform: scale(1.3) rotate(20deg) !important;
}


.topnav-nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.topnav-nav-links .nav-item-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  border-radius: 9999px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.topnav-nav-links .nav-item-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.topnav-nav-links .nav-item-btn.active {
  color: #ffffff !important;
  font-weight: 600 !important;
  background: rgba(225, 29, 72, 0.15) !important;
  border-color: rgba(225, 29, 72, 0.3) !important;
  color: #fb7185 !important;
}

.nav-item-btn .nav-caret {
  font-size: 10px !important;
  opacity: 0.6 !important;
  transition: transform 0.2s ease !important;
}


.nav-dropdown {
  position: relative !important;
}

.nav-dropdown:hover .nav-caret {
  transform: rotate(180deg) !important;
  opacity: 1 !important;
}

.nav-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  min-width: 250px !important;
  background: rgba(10, 12, 20, 0.95) !important;
  backdrop-filter: blur(16px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7) !important;
  padding: 8px !important;
  display: none !important;
  flex-direction: column !important;
  gap: 4px !important;
  z-index: 1050 !important;
  animation: navFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex !important;
}

@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: none !important;
  color: #cbd5e1 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  text-align: left !important;
  width: 100% !important;
  transition: all 0.15s ease !important;
}

.nav-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.nav-dropdown-link i {
  font-size: 15px !important;
  color: #fb7185 !important;
  width: 18px !important;
  text-align: center !important;
}

.nav-link-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.nav-link-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
}

.nav-link-desc {
  font-size: 11px !important;
  color: #64748b !important;
}


.topnav-right-group {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  flex: 1 !important;
  min-width: 0 !important;
}


.nav-search-wrapper.search-input-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 360px !important;
  height: 38px !important;
  padding: 0 14px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(12px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.8) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

.nav-search-wrapper:focus-within {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(225, 29, 72, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15) !important;
}

.nav-search-icon {
  color: #64748b !important;
  font-size: 13px !important;
  flex-shrink: 0 !important;
  transition: color 0.2s ease !important;
}

.nav-search-wrapper:focus-within .nav-search-icon {
  color: #fb7185 !important;
}

.nav-search-input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 13px !important;
  width: 100% !important;
  font-family: inherit !important;
}

.nav-search-input::placeholder {
  color: #64748b !important;
}

.nav-search-clear {
  color: #64748b !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 4px !important;
  font-size: 12px !important;
  transition: color 0.15s !important;
}

.nav-search-clear:hover {
  color: #cbd5e1 !important;
}


.topnav-actions-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.nav-icon-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}


.btn-nav-auth-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  border-radius: 9999px !important;
  background: rgba(225, 29, 72, 0.15) !important;
  border: 1px solid rgba(244, 63, 94, 0.3) !important;
  color: #fb7185 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-nav-auth-pill:hover {
  background: #e11d48 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.4) !important;
  transform: translateY(-1px) !important;
}


.nav-user-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 12px 4px 5px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.nav-user-pill:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  transform: scale(1.03) !important;
}

.nav-user-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
}

.nav-user-email {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  max-width: 140px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.nav-user-arrow {
  font-size: 10px !important;
  color: #64748b !important;
}


.avatar-popover.nav-user-dropdown {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  width: 260px !important;
  background: rgba(10, 12, 20, 0.96) !important;
  backdrop-filter: blur(18px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7) !important;
  padding: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  z-index: 1050 !important;
}

.nav-user-dropdown.hidden {
  display: none !important;
}

.nav-user-dropdown-header {
  padding: 8px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.user-dropdown-label {
  font-size: 11px !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.user-dropdown-email {
  font-size: 13px !important;
  color: #ffffff !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.nav-user-dropdown-divider {
  height: 1px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  margin: 4px 0 !important;
}

.nav-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  text-align: left !important;
  width: 100% !important;
  transition: all 0.15s ease !important;
}


.nav-dropdown-item.hidden,
.nav-user-dropdown .nav-dropdown-item.hidden,
#btnNavContributorStudio.hidden,
#btnNavAdminPanel.hidden {
  display: none !important;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.nav-dropdown-item i {
  width: 16px !important;
  text-align: center !important;
  font-size: 14px !important;
}

.nav-dropdown-danger {
  color: #f87171 !important;
}

.nav-dropdown-danger:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
}


.topnav-hamburger {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.topnav-hamburger:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}



@media (max-width: 900px) {
  .topnav-nav-links {
    display: none !important;
  }
  .nav-search-wrapper.search-input-wrapper {
    display: none !important;
  }
  .nav-icon-btn.nav-mobile-search-toggle,
  .topnav-hamburger {
    display: inline-flex !important;
  }
  .topnav-container {
    padding: 0 14px !important;
    gap: 8px !important;
  }
  .topnav-actions-wrapper {
    gap: 6px !important;
  }

  
  #navLoginBtn,
  .btn-nav-auth-pill,
  .btn-nav-auth {
    display: none !important;
  }

  
  .nav-user-email,
  .nav-user-arrow {
    display: none !important;
  }
  .nav-user-pill {
    padding: 2px !important;
    background: transparent !important;
    border: none !important;
  }

  
  .topnav .btn-nav-auth-pill#btnBackToLibrary span {
    display: none !important;
  }
  .topnav .btn-nav-auth-pill#btnBackToLibrary {
    padding: 8px 10px !important;
    display: inline-flex !important;
  }
}




@media (max-width: 768px) {
  #homeLnoriHero.home-lnori-hero {
    min-height: auto !important;
    padding: 16px 12px 20px 12px !important;
    background-attachment: scroll !important;
  }

  .home-hero-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 8px 4px !important;
    gap: 10px !important;
    width: 100% !important;
  }

  
  .home-hero-stack-container {
    display: flex !important;
    order: 1 !important;
    height: 200px !important;
    width: 100% !important;
    perspective: 800px !important;
    margin: 4px auto 2px auto !important;
    justify-content: center !important;
    align-items: center !important;
    pointer-events: auto !important;
    touch-action: pan-y pinch-zoom !important;
  }

  .home-hero-stack {
    width: 130px !important;
    height: 195px !important;
    position: relative !important;
    margin: 0 auto !important;
    transform-style: preserve-3d !important;
  }

  .stack-card {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.8) !important;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease !important;
  }

  .stack-card.card-0 {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1) !important;
    box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.85), 0 0 20px rgba(225, 29, 72, 0.3) !important;
  }

  .stack-card.card-1 {
    transform: translate3d(16px, -4px, -20px) rotate(3deg) scale(0.94) !important;
    opacity: 0.85 !important;
  }

  .stack-card.card-2 {
    transform: translate3d(30px, -8px, -40px) rotate(6deg) scale(0.88) !important;
    opacity: 0.55 !important;
  }

  .stack-card.card-hidden {
    transform: translate3d(45px, -12px, -60px) rotate(9deg) scale(0.82) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  
  .home-hero-nav {
    display: flex !important;
    order: 2 !important;
    position: static !important;
    margin: 2px auto 4px auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .hero-arrow-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 11px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
  }

  .hero-pill-dot {
    width: 6px !important;
    height: 4px !important;
    border-radius: 9999px !important;
  }

  .hero-pill-dot.active {
    width: 18px !important;
    background: #e11d48 !important;
  }

  
  .home-hero-details {
    display: flex !important;
    order: 3 !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
    max-width: 440px !important;
    width: 100% !important;
  }

  .home-hero-badge-row {
    justify-content: center !important;
    gap: 6px !important;
    margin-bottom: 2px !important;
  }

  .hero-pill-badge {
    font-size: 9.5px !important;
    padding: 2.5px 8px !important;
  }

  .hero-rating-badge {
    font-size: 10px !important;
    padding: 2.5px 7px !important;
  }

  .home-hero-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    margin: 0 0 2px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .home-hero-meta {
    justify-content: center !important;
    font-size: 11.5px !important;
    gap: 8px !important;
    opacity: 0.8 !important;
  }

  .home-hero-genres {
    justify-content: center !important;
    gap: 5px !important;
  }

  .hero-genre-tag {
    font-size: 10px !important;
    padding: 2px 7px !important;
  }

  
  .home-hero-synopsis {
    display: none !important;
  }

  
  .home-hero-actions {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 280px !important;
    margin-top: 4px !important;
  }

  .btn-hero-primary {
    flex: 1 !important;
    padding: 8px 14px !important;
    font-size: 12.5px !important;
    border-radius: 9px !important;
    justify-content: center !important;
  }

  .btn-hero-glass {
    padding: 8px 12px !important;
    font-size: 12.5px !important;
    border-radius: 9px !important;
    justify-content: center !important;
  }
}


@media (max-width: 640px) {
  #homeLnoriHero.home-lnori-hero {
    padding: 12px 10px 16px 10px !important;
  }

  .home-hero-layout {
    gap: 6px !important;
  }

  .home-hero-stack-container {
    height: 170px !important;
  }

  .home-hero-stack {
    width: 110px !important;
    height: 165px !important;
  }

  .stack-card.card-0 {
    box-shadow: 0 10px 24px -3px rgba(0, 0, 0, 0.8), 0 0 16px rgba(225, 29, 72, 0.25) !important;
  }

  .stack-card.card-1 {
    transform: translate3d(12px, -3px, -15px) rotate(2.5deg) scale(0.94) !important;
  }

  .stack-card.card-2 {
    transform: translate3d(22px, -6px, -30px) rotate(5deg) scale(0.88) !important;
  }

  .home-hero-title {
    font-size: 16px !important;
  }
}


@media (max-width: 400px) {
  .home-hero-stack-container {
    height: 145px !important;
  }

  .home-hero-stack {
    width: 95px !important;
    height: 142px !important;
  }

  .home-hero-title {
    font-size: 14.5px !important;
  }

  .btn-hero-primary {
    font-size: 11.5px !important;
    padding: 7px 10px !important;
  }

  .btn-hero-glass {
    font-size: 11.5px !important;
    padding: 7px 10px !important;
  }
}


.home-section-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.12);
  color: #f43f5e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  border: 1px solid rgba(225, 29, 72, 0.25);
}

.home-section-tag-pill.popular {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.25);
}

.home-section-tag-pill.recommend {
  background: rgba(147, 51, 234, 0.12);
  color: #c084fc;
  border-color: rgba(147, 51, 234, 0.25);
}



.search-filter-container {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 !important;
  max-width: 440px !important;
  min-width: 0 !important;
}

.search-filter-container .nav-search-wrapper {
  flex: 1 !important;
  max-width: none !important;
}


.filter-toggle-btn.nav-filter-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  backdrop-filter: blur(12px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.8) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.filter-toggle-btn.nav-filter-btn:hover,
.filter-toggle-btn.nav-filter-btn.active {
  background: rgba(225, 29, 72, 0.2) !important;
  border-color: rgba(225, 29, 72, 0.5) !important;
  color: #fb7185 !important;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.3) !important;
}

.filter-toggle-btn.nav-filter-btn .filter-count-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #e11d48 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 1px 5px !important;
  border-radius: 9999px !important;
  border: 2px solid #090a10 !important;
}


.catalog-lnori-header {
  margin: 0 auto 20px auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 1320px !important;
}

.catalog-subbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  padding: 0 4px !important;
  flex-wrap: wrap !important;
}

.catalog-subbar-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.catalog-subbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.catalog-mobile-filter-btn {
  display: none !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 14px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.catalog-mobile-filter-btn:hover,
.catalog-mobile-filter-btn.active {
  background: rgba(225, 29, 72, 0.2) !important;
  border-color: rgba(225, 29, 72, 0.5) !important;
  color: #fb7185 !important;
}

@media (max-width: 900px) {
  .search-filter-container {
    display: none !important;
  }
  .catalog-mobile-filter-btn {
    display: inline-flex !important;
  }
}


.home-studios-shortcuts {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  max-width: 1320px !important;
  margin: 3rem auto 4rem auto !important;
  padding: 0 1.5rem !important;
  box-sizing: border-box !important;
}

.studio-shortcut-card {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  padding: 1.35rem 1.5rem !important;
  background: rgba(18, 20, 29, 0.7) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.studio-shortcut-card:hover {
  transform: translateY(-4px) !important;
  background: rgba(24, 27, 40, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.6) !important;
}


.studio-shortcut-card i {
  font-size: 1.6rem !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}


#studioCardDoc i {
  color: #fb7185 !important;
  background: rgba(244, 63, 94, 0.12) !important;
  border: 1px solid rgba(244, 63, 94, 0.25) !important;
}
#studioCardDoc:hover {
  border-color: rgba(244, 63, 94, 0.45) !important;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(244, 63, 94, 0.18) !important;
}
#studioCardDoc:hover i {
  transform: scale(1.1) rotate(-3deg) !important;
  background: rgba(244, 63, 94, 0.2) !important;
  border-color: rgba(244, 63, 94, 0.4) !important;
}


#studioCardLib i {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
}
#studioCardLib:hover {
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.18) !important;
}
#studioCardLib:hover i {
  transform: scale(1.1) rotate(3deg) !important;
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}


#studioCardVideo i {
  color: #c084fc !important;
  background: rgba(168, 85, 247, 0.12) !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
}
#studioCardVideo:hover {
  border-color: rgba(168, 85, 247, 0.45) !important;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.18) !important;
}
#studioCardVideo:hover i {
  transform: scale(1.1) rotate(-3deg) !important;
  background: rgba(168, 85, 247, 0.2) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
}


.studio-shortcut-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.studio-shortcut-info h4 {
  margin: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  letter-spacing: -0.015em !important;
}

.studio-shortcut-info p {
  margin: 0 !important;
  font-size: 0.825rem !important;
  line-height: 1.4 !important;
  color: #94a3b8 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}


@media (max-width: 1024px) {
  .home-studios-shortcuts {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin: 2rem auto 3rem auto !important;
  }
}





@media (max-width: 1024px) {
  #homeLnoriHero.home-lnori-hero,
  .home-lnori-hero {
    min-height: 480px !important;
    margin-bottom: 28px !important;
  }

  .home-hero-layout {
    grid-template-columns: 1.1fr 0.9fr !important;
    gap: 32px !important;
    padding: 32px 24px !important;
  }

  .home-hero-title {
    font-size: 32px !important;
  }

  .home-hero-stack-container {
    height: 350px !important;
    padding: 10px 20px 0 0 !important;
  }

  #homeHeroStack {
    width: 210px !important;
    height: 315px !important;
  }
}


@media (max-width: 768px) {
  #homeLnoriHero.home-lnori-hero,
  .home-lnori-hero {
    min-height: auto !important;
    padding: 16px 12px 20px 12px !important;
    margin-bottom: 24px !important;
    background-attachment: scroll !important;
  }

  .home-hero-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 8px 12px !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  
  .home-hero-deck-area {
    display: flex !important;
    order: 1 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .home-hero-stack-container {
    display: flex !important;
    height: 210px !important;
    width: 100% !important;
    margin: 4px auto 2px auto !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    pointer-events: auto !important;
    touch-action: pan-y pinch-zoom !important;
  }

  #homeHeroStack {
    width: 130px !important;
    height: 195px !important;
    position: relative !important;
    margin: 0 auto !important;
  }

  
  .hero-carousel-card.card-0 {
    transform: translate(0px, 0px) rotate(0deg) !important;
    z-index: 50 !important;
    opacity: 1 !important;
  }

  .hero-carousel-card.card-1 {
    transform: translate(6px, -4px) rotate(2deg) !important;
    z-index: 40 !important;
    opacity: 0.85 !important;
  }

  .hero-carousel-card.card-2 {
    transform: translate(12px, -8px) rotate(4deg) !important;
    z-index: 30 !important;
    opacity: 0.6 !important;
  }

  .hero-carousel-card.card-3 {
    transform: translate(18px, -12px) rotate(6deg) !important;
    z-index: 20 !important;
    opacity: 0.35 !important;
  }

  .hero-carousel-card.card-4 {
    transform: translate(24px, -16px) rotate(8deg) !important;
    z-index: 10 !important;
    opacity: 0.15 !important;
  }

  
  #homeHeroStack:hover .hero-carousel-card.card-1 {
    transform: translate(6px, -4px) rotate(2deg) !important;
  }
  #homeHeroStack:hover .hero-carousel-card.card-2 {
    transform: translate(12px, -8px) rotate(4deg) !important;
  }
  #homeHeroStack:hover .hero-carousel-card.card-3 {
    transform: translate(18px, -12px) rotate(6deg) !important;
  }

  
  .home-hero-nav {
    display: flex !important;
    position: static !important;
    margin: 6px auto 8px auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    z-index: 10 !important;
  }

  .hero-arrow-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 11px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
  }

  .hero-pill-dot {
    width: 6px !important;
    height: 4px !important;
    border-radius: 9999px !important;
  }

  .hero-pill-dot.active {
    width: 18px !important;
    height: 4px !important;
    background: #e11d48 !important;
  }

  
  .home-hero-details {
    display: flex !important;
    order: 2 !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
    max-width: 440px !important;
    width: 100% !important;
  }

  .home-hero-badge-row {
    justify-content: center !important;
    gap: 6px !important;
    margin-bottom: 2px !important;
  }

  .hero-pill-badge {
    font-size: 9.5px !important;
    padding: 2.5px 8px !important;
  }

  .hero-rating-badge {
    font-size: 10px !important;
    padding: 2.5px 7px !important;
  }

  .home-hero-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    margin: 0 0 4px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .home-hero-meta {
    justify-content: center !important;
    font-size: 11.5px !important;
    gap: 8px !important;
    opacity: 0.8 !important;
  }

  .home-hero-genres {
    justify-content: center !important;
    gap: 5px !important;
  }

  .hero-genre-tag {
    font-size: 10.5px !important;
    padding: 2px 8px !important;
  }

  
  .home-hero-synopsis {
    display: none !important;
  }

  
  .home-hero-actions {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 8px auto 0 auto !important;
  }

  .btn-hero-primary {
    flex: 1 !important;
    padding: 9px 16px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    justify-content: center !important;
  }

  .btn-hero-glass {
    padding: 9px 14px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    justify-content: center !important;
  }
}





.pdf-reader-loading-overlay {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  background: var(--bg-app, #090a10) !important;
  z-index: 50 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
}

.pdf-loader-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  background: rgba(18, 20, 30, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  padding: 32px 28px !important;
  max-width: 380px !important;
  width: 90% !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(16px) !important;
}

.pdf-loader-icon-wrap {
  width: 54px !important;
  height: 54px !important;
  border-radius: 14px !important;
  background: rgba(225, 29, 72, 0.15) !important;
  color: #e11d48 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  margin-bottom: 16px !important;
}

.pdf-loader-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
  margin: 0 0 16px 0 !important;
  line-height: 1.4 !important;
  word-break: break-word !important;
}

.pdf-progress-track {
  width: 100% !important;
  height: 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
}

.pdf-progress-bar {
  height: 100% !important;
  background: linear-gradient(90deg, #e11d48, #fb7185) !important;
  border-radius: 999px !important;
  transition: width 0.25s ease !important;
}

.pdf-loader-status {
  font-size: 13px !important;
  color: #94a3b8 !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

.pdf-page-top-loader {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 3px !important;
  z-index: 15 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  overflow: hidden !important;
}

.pdf-top-loader-line {
  height: 100% !important;
  width: 40% !important;
  background: #e11d48 !important;
  border-radius: 999px !important;
  animation: pdfTopLoaderAnim 1s infinite linear !important;
}

@keyframes pdfTopLoaderAnim {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}





.series-volumes-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 24px !important;
  margin-top: 16px !important;
}

@media (max-width: 768px) {
  .series-volumes-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)) !important;
    gap: 16px !important;
  }
}


.modern-vol-card {
  background: rgba(18, 20, 29, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  cursor: pointer !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
  position: relative !important;
}

.modern-vol-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: rgba(225, 29, 72, 0.4) !important;
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(225, 29, 72, 0.2) !important;
}


.modern-vol-card .volume-cover-wrap {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 2/3 !important;
  overflow: hidden !important;
  background: #0d0f17 !important;
}

.modern-vol-card .volume-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s ease !important;
}

.modern-vol-card:hover .volume-cover {
  transform: scale(1.05) !important;
}


.volume-book-spine {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 10px !important;
  background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(255,255,255,0.15) 35%, rgba(0,0,0,0.2) 70%, transparent 100%) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}


.volume-hover-action {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(8, 10, 15, 0.55) !important;
  backdrop-filter: blur(2px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  transition: opacity 0.25s ease !important;
  z-index: 3 !important;
}

.modern-vol-card:hover .volume-hover-action {
  opacity: 1 !important;
}

.btn-read-volume {
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 18px !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.45) !important;
  transform: translateY(8px) !important;
  transition: transform 0.25s ease, background 0.2s !important;
  cursor: pointer !important;
}

.modern-vol-card:hover .btn-read-volume {
  transform: translateY(0) !important;
}

.btn-read-volume:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
  transform: scale(1.05) !important;
}


.modern-vol-card .volume-info {
  padding: 12px 14px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.volume-badge-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
}

.volume-pill-tag {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
}

.volume-pct-tag {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.modern-vol-card .volume-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #f8fafc !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
}


#readerOverlay.theme-dark .pdf-page-canvas {
  filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.92) !important;
  background: #090a10 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

#readerOverlay.theme-sepia .pdf-page-canvas {
  filter: sepia(0.55) brightness(0.96) contrast(0.96) !important;
  background: #f4ecd8 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

#readerOverlay.theme-light .pdf-page-canvas {
  filter: none !important;
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}



#navLoginBtn.hidden,
.btn-nav-auth-pill.hidden {
  display: none !important;
}


#syncStatusBadge,
.sync-status-badge {
  display: none !important;
}



.btn-hero-secondary.in-library {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
  color: #34d399 !important;
}
.btn-hero-secondary.in-library:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(248, 113, 113, 0.4) !important;
  color: #f87171 !important;
}




.series-page-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 20px !important;
  flex-wrap: wrap !important;
}

.btn-series-hero-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 26px !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-series-hero-primary:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.6) !important;
}

.btn-series-hero-secondary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 24px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px) !important;
  color: #f1f5f9 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-series-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px) !important;
}

.btn-series-hero-secondary.in-library {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
  color: #34d399 !important;
}

.btn-series-hero-secondary.in-library:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  color: #f87171 !important;
}


.series-volumes-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

.series-volume-filter-tabs {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(15, 18, 25, 0.7) !important;
  padding: 4px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.vol-filter-tab {
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  border: none !important;
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.vol-filter-tab.active {
  background: #e11d48 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.4) !important;
}

.vol-filter-tab:hover:not(.active) {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.volume-pill-tag.spinoff {
  background: rgba(168, 85, 247, 0.2) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
}

.volume-pill-tag.sidestory {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(14, 165, 233, 0.3) !important;
}




.noveltrad-main-footer {
  background: #090a10 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative !important;
  color: #94a3b8 !important;
  font-family: inherit !important;
  padding: 60px 0 30px !important;
  margin-top: 60px !important;
  overflow: hidden !important;
  box-shadow: inset 0 20px 40px -20px rgba(0, 0, 0, 0.8) !important;
}

.noveltrad-main-footer::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 15% !important;
  right: 15% !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.5), transparent) !important;
  pointer-events: none !important;
}

.footer-container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}


.footer-ethical-banner {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.12), rgba(20, 24, 38, 0.75)) !important;
  border: 1px solid rgba(225, 29, 72, 0.3) !important;
  border-radius: 16px !important;
  padding: 24px 28px !important;
  margin-bottom: 48px !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
}

.footer-ethical-banner::after {
  content: '' !important;
  position: absolute !important;
  top: -40px !important;
  right: -40px !important;
  width: 140px !important;
  height: 140px !important;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.25) 0%, transparent 70%) !important;
  pointer-events: none !important;
}

.ethical-banner-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
  position: relative !important;
  z-index: 2 !important;
}

.ethical-icon-badge {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.4) !important;
}

.ethical-text-group {
  flex: 1 !important;
  min-width: 280px !important;
}

.ethical-title {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 0 6px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ethical-desc {
  color: #cbd5e1 !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.ethical-desc strong {
  color: #fb7185 !important;
}

.ethical-actions-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.ethical-store-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f8fafc !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.ethical-store-btn:hover {
  background: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4) !important;
}


.footer-columns-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 40px !important;
  margin-bottom: 48px !important;
}

@media (max-width: 992px) {
  .footer-columns-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 580px) {
  .footer-columns-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

.footer-col-brand {
  padding-right: 16px !important;
}

.footer-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.footer-logo-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
}

.footer-logo-text {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
}

.footer-logo-text strong {
  color: #e11d48 !important;
}

.footer-brand-tagline {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: #94a3b8 !important;
  margin: 0 0 16px 0 !important;
}

.footer-status-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
}

.status-pulse-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  box-shadow: 0 0 8px #10b981 !important;
}

.btn-footer-discord {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  background: #5865f2 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-footer-discord:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.4) !important;
}

.footer-col-title {
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  margin: 0 0 18px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  letter-spacing: 0.02em !important;
}

.footer-links-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.footer-links-list li a {
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
}

.footer-links-list li a i {
  font-size: 9px !important;
  color: #64748b !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.footer-links-list li a:hover {
  color: #fb7185 !important;
  transform: translateX(4px) !important;
}

.footer-links-list li a:hover i {
  color: #e11d48 !important;
  transform: translateX(2px) !important;
}


.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding-top: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  font-size: 12.5px !important;
  color: #64748b !important;
}

.footer-bottom-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.footer-sep {
  opacity: 0.5 !important;
}

.footer-social-links {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.footer-social-links a {
  color: #94a3b8 !important;
  font-size: 16px !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.footer-social-links a:hover {
  color: #ffffff !important;
  background: #e11d48 !important;
  transform: translateY(-2px) !important;
}



.noveltrad-main-footer {
  width: 100%;
  background: rgba(9, 10, 16, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 48px 24px 32px;
  margin-top: 56px;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.noveltrad-main-footer .footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .footer-nav-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-col-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links li a:hover {
  color: #ffffff;
}


.footer-creator-support-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 850px;
  box-sizing: border-box;
}

.footer-creator-support-line a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(244, 63, 94, 0.4);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.footer-creator-support-line a:hover {
  color: #f43f5e;
  text-decoration-color: #f43f5e;
}


.footer-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 640px) {
  .footer-subbar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

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

.footer-social-icons a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-social-icons a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}



.modern-vol-card.vol-card-hidden {
  display: none !important;
}



.illustration-lightbox-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  background: rgba(4, 5, 10, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  display: flex !important;
  flex-direction: column !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}

.illustration-lightbox-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.lightbox-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 24px !important;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%) !important;
  z-index: 10 !important;
}

.lightbox-info {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.lightbox-title {
  font-family: var(--font-display, 'Outfit', sans-serif) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  letter-spacing: 0.3px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.lightbox-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #e2e8f0 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 14px !important;
  transition: all 0.18s ease !important;
  text-decoration: none !important;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.lightbox-btn#lbZoomResetBtn {
  width: auto !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.lightbox-close-btn {
  background: rgba(225, 29, 72, 0.2) !important;
  border-color: rgba(225, 29, 72, 0.4) !important;
  color: #fb7185 !important;
  font-size: 16px !important;
}

.lightbox-close-btn:hover {
  background: rgba(225, 29, 72, 0.95) !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
}

.lightbox-stage {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  position: relative !important;
  cursor: grab !important;
  padding: 16px !important;
}

.lightbox-stage.dragging {
  cursor: grabbing !important;
}

.lightbox-img-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 100% !important;
  max-height: 100% !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform !important;
}

#lbImg {
  max-width: 92vw !important;
  max-height: 82vh !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  transform: scale(0.96) !important;
  opacity: 0 !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
  pointer-events: auto !important;
  cursor: zoom-in !important;
}

.illustration-lightbox-overlay.active #lbImg {
  transform: scale(1) !important;
  opacity: 1 !important;
}

#lbImg.is-zoomed {
  cursor: zoom-out !important;
}

.lightbox-hint {
  text-align: center !important;
  padding: 10px 16px !important;
  font-size: 12px !important;
  color: #94a3b8 !important;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%) !important;
  pointer-events: none !important;
}

.lightbox-hint kbd {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 4px !important;
  padding: 1px 5px !important;
  font-size: 11px !important;
  color: #e2e8f0 !important;
}


.stream-chapter-content img,
.stream-chapter-content image,
.epub-viewer-container img,
.epub-viewer-container image,
#webnovelContent img,
.wn-content-wrap img {
  cursor: zoom-in !important;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease !important;
  border-radius: 6px !important;
}

.stream-chapter-content img:hover,
.stream-chapter-content image:hover,
.epub-viewer-container img:hover,
.epub-viewer-container image:hover,
#webnovelContent img:hover,
.wn-content-wrap img:hover {
  filter: brightness(1.08) contrast(1.03) !important;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.25) !important;
}



.premium-reader-toolbar {
  height: 52px !important;
  background: rgba(15, 17, 26, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28) !important;
  position: relative !important;
  z-index: 100 !important;
  user-select: none !important;
}


.toolbar-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  max-width: calc(50% - 110px) !important;
  overflow: hidden !important;
  z-index: 20 !important;
}

.toolbar-title {
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #f1f5f9 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: -0.01em !important;
  min-width: 0 !important;
}


.toolbar-center {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  z-index: 99 !important;
  pointer-events: auto !important;
  white-space: nowrap !important;
  margin: 0 !important;
}


.toolbar-right {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  z-index: 20 !important;
}

.toolbar-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #94a3b8 !important;
  font-size: 15px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.toolbar-btn:active {
  transform: scale(0.93) !important;
}


#readerDownloadBtn:hover {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
}

.reader-progress-indicator {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  font-variant-numeric: tabular-nums !important;
  min-width: 65px !important;
  text-align: center !important;
  letter-spacing: 0.02em !important;
}


.premium-popover {
  background: rgba(18, 20, 29, 0.96) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
  z-index: 1000 !important;
}




@media (max-width: 768px) {
  .premium-reader-toolbar {
    height: 50px !important;
    padding: 0 10px !important;
  }
  .toolbar-left {
    gap: 6px !important;
    max-width: calc(50% - 90px) !important;
  }
  .toolbar-title {
    font-size: 13px !important;
  }
  .toolbar-center {
    gap: 4px !important;
  }
  .toolbar-right {
    gap: 6px !important;
  }
  .toolbar-btn {
    width: 35px !important;
    height: 35px !important;
    font-size: 14px !important;
  }
  .reader-progress-indicator {
    font-size: 12px !important;
    min-width: 55px !important;
  }
}


@media (max-width: 480px) {
  .premium-reader-toolbar {
    height: 48px !important;
    padding: 0 6px !important;
  }
  .toolbar-left {
    gap: 4px !important;
    max-width: calc(50% - 75px) !important;
  }
  .toolbar-title {
    font-size: 12px !important;
    font-weight: 500 !important;
  }
  .toolbar-center {
    gap: 2px !important;
  }
  .toolbar-right {
    gap: 4px !important;
  }
  .toolbar-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
    border-radius: 7px !important;
  }
  .reader-progress-indicator {
    font-size: 11px !important;
    min-width: 46px !important;
  }
  .premium-popover {
    position: fixed !important;
    top: 52px !important;
    right: 8px !important;
    left: auto !important;
    width: calc(100vw - 16px) !important;
    max-width: 310px !important;
  }
}


@media (max-width: 360px) {
  .toolbar-left {
    max-width: calc(50% - 65px) !important;
  }
  .toolbar-title {
    font-size: 11px !important;
  }
  .reader-progress-indicator {
    font-size: 10px !important;
    min-width: 38px !important;
  }
}
#readerPrevBtn, #readerNextBtn, .toolbar-center .toolbar-btn {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 100 !important;
  position: relative !important;
}



.premium-reader-toolbar {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, margin-top 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-reader-toolbar.toolbar-autohidden {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin-top: -52px !important;
}


.reader-tap-flash {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
  font-size: 16px;
  pointer-events: none;
  z-index: 99999;
  animation: tapFlashAnim 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reader-tap-flash.left { left: 16px; }
.reader-tap-flash.right { right: 16px; }

@keyframes tapFlashAnim {
  0% { opacity: 0; transform: translateY(-50%) scale(0.6); }
  50% { opacity: 0.95; transform: translateY(-50%) scale(1.08); }
  100% { opacity: 0; transform: translateY(-50%) scale(1); }
}



.download-sponsor-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999999 !important;
  background: rgba(4, 6, 12, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.download-sponsor-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.download-sponsor-card {
  position: relative !important;
  width: 100% !important;
  max-width: 380px !important;
  background: #111319 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  padding: 22px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  transform: scale(0.94) translateY(8px) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.download-sponsor-overlay.active .download-sponsor-card {
  transform: scale(1) translateY(0) !important;
}

.download-sponsor-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 14px !important;
  transition: all 0.18s ease !important;
}

.download-sponsor-close:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  transform: scale(1.05) !important;
}

.download-sponsor-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  background: rgba(225, 29, 72, 0.12) !important;
  border: 1px solid rgba(225, 29, 72, 0.25) !important;
  color: #fb7185 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
}

.download-sponsor-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.3 !important;
  max-width: 90% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.download-sponsor-desc {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  color: #94a3b8 !important;
  margin: 0 0 14px 0 !important;
  padding: 0 6px !important;
}

.download-sponsor-desc strong {
  color: #e2e8f0 !important;
}

.download-sponsor-ad-frame {
  width: 300px !important;
  height: 250px !important;
  min-height: 250px !important;
  background: #090a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  margin: 0 auto 16px auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.download-sponsor-footer {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.download-timer-pill {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.download-timer-pill span {
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

.download-sponsor-btn {
  width: 100% !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: not-allowed !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #64748b !important;
  transition: all 0.22s ease !important;
}

.download-sponsor-btn.ready {
  cursor: pointer !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid #10b981 !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
}

.download-sponsor-btn.ready:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45) !important;
}

.download-sponsor-btn.ready:active {
  transform: translateY(1px) !important;
}



.stream-chapter-section {
  position: relative !important;
  margin-bottom: 24px !important;
}

.stream-chapter-divider {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 48px 0 36px 0 !important;
  position: relative !important;
  user-select: none !important;
}

.stream-chapter-divider .divider-line {
  flex: 1 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.25), transparent) !important;
}

.stream-chapter-divider .divider-pill {
  padding: 6px 18px !important;
  border-radius: 20px !important;
  background: #11141c !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.stream-chapter-divider .divider-pill i {
  color: var(--primary, #e11d48) !important;
}

.stream-append-loader {
  padding: 24px 16px !important;
  text-align: center !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.stream-append-loader i {
  color: var(--primary, #e11d48) !important;
  font-size: 16px !important;
}

.stream-book-completed-card {
  margin: 50px 0 80px 0 !important;
  padding: 32px 20px !important;
  border-radius: 16px !important;
  background: rgba(16, 185, 129, 0.06) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  text-align: center !important;
  color: #f8fafc !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
}

.stream-book-completed-card .completed-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  margin-bottom: 14px !important;
}

.stream-book-completed-card h3 {
  font-size: 19px !important;
  font-weight: 700 !important;
  margin: 0 0 8px 0 !important;
}

.stream-book-completed-card p {
  font-size: 13.5px !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}


.stream-volume-completion-wrap {
  margin: 40px 0 100px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 36px !important;
}


.completed-actions-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 22px !important;
}

.btn-completed-action {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 22px !important;
  border-radius: 9999px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid transparent !important;
  text-decoration: none !important;
}

.btn-completed-action.primary {
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.35) !important;
}
.btn-completed-action.primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.5) !important;
}

.btn-completed-action.secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}
.btn-completed-action.secondary:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  transform: translateY(-2px) !important;
}

.btn-completed-action.ghost {
  background: transparent !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}
.btn-completed-action.ghost:hover {
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}


html.theme-light .btn-completed-action.secondary,
#readerOverlay.theme-light .btn-completed-action.secondary {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
#readerOverlay.theme-sepia .btn-completed-action.secondary {
  background: #ede3ce !important;
  color: #3d3024 !important;
  border-color: #d1c4aa !important;
}


.vol-comments-section {
  border-radius: 20px !important;
  background: #0d0f17 !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  padding: 28px 24px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4) !important;
}


.vol-comments-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 24px !important;
}

.vol-comments-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.vol-comments-title {
  margin: 0 !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.vol-comments-title i {
  color: #fb7185 !important;
}

.vol-comments-count-pill {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  background: rgba(225, 29, 72, 0.15) !important;
  color: #fb7185 !important;
  border: 1px solid rgba(225, 29, 72, 0.3) !important;
}


.vol-comments-sort-tabs {
  display: inline-flex !important;
  background: #151824 !important;
  padding: 4px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  gap: 4px !important;
}

.vol-sort-tab {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.18s ease !important;
}

.vol-sort-tab.active {
  background: #232839 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.vol-sort-tab.active i {
  color: #fb7185 !important;
}


.vol-comment-input-box {
  background: #131622 !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  padding: 18px !important;
  margin-bottom: 28px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.vol-comment-input-box:focus-within {
  border-color: rgba(251, 113, 133, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12) !important;
}

.vol-input-user-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.vol-user-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #232839 !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.vol-user-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.vol-user-identity {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 !important;
}

.vol-user-name {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
}

.vol-guest-name-input {
  background: #1b1f2e !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  font-size: 12.5px !important;
  max-width: 220px !important;
}

.vol-guest-name-input:focus {
  outline: none !important;
  border-color: #fb7185 !important;
}

.vol-login-link-btn {
  background: transparent !important;
  border: none !important;
  color: #fb7185 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
}

.vol-comment-textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #090a10 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  color: #f8fafc !important;
  padding: 12px 14px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  resize: vertical !important;
  min-height: 80px !important;
}

.vol-comment-textarea:focus {
  outline: none !important;
  border-color: rgba(251, 113, 133, 0.5) !important;
}

.vol-input-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 12px !important;
  gap: 12px !important;
}

.vol-spoiler-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12.5px !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  user-select: none !important;
}

.vol-spoiler-toggle input[type="checkbox"] {
  accent-color: #fb7185 !important;
  cursor: pointer !important;
}

.vol-submit-btn {
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 20px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.18s ease !important;
}

.vol-submit-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4) !important;
}


.vol-top-spotlight {
  background: rgba(245, 158, 11, 0.06) !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  margin-bottom: 24px !important;
}

.vol-top-spotlight-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #fbbf24 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  letter-spacing: 0.02em !important;
}

.vol-top-spotlight-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}


.vol-comments-feed {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.vol-comment-card {
  background: #11141e !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  transition: border-color 0.18s ease !important;
}

.vol-comment-card.is-top-rank {
  background: #141724 !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

.vol-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 10px !important;
}

.vol-card-author-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.vol-card-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #1f2333 !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.vol-card-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.vol-card-name-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.vol-card-username {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
}

.vol-badge-role {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 9999px !important;
  letter-spacing: 0.03em !important;
}

.vol-badge-role.admin {
  background: rgba(225, 29, 72, 0.18) !important;
  color: #fb7185 !important;
  border: 1px solid rgba(225, 29, 72, 0.35) !important;
}

.vol-badge-role.vip {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.vol-badge-top-rank {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
  background: rgba(245, 158, 11, 0.2) !important;
  color: #f59e0b !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.vol-card-time {
  font-size: 11.5px !important;
  color: #64748b !important;
  display: block !important;
  margin-top: 2px !important;
}

.vol-btn-delete {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  cursor: pointer !important;
  font-size: 13px !important;
  padding: 4px 6px !important;
  transition: color 0.15s ease !important;
}

.vol-btn-delete:hover {
  color: #ef4444 !important;
}

.vol-card-body {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #e2e8f0 !important;
  margin-bottom: 10px !important;
}

.vol-comment-text {
  margin: 0 !important;
  word-break: break-word !important;
}


.vol-spoiler-box {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px dashed rgba(239, 68, 68, 0.3) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  cursor: pointer !important;
  user-select: none !important;
}

.vol-spoiler-banner {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #f87171 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.vol-spoiler-banner em {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #94a3b8 !important;
  font-style: normal !important;
}

.vol-spoiler-text {
  display: none !important;
  margin-top: 8px !important;
  font-size: 13.5px !important;
  color: #f1f5f9 !important;
  line-height: 1.5 !important;
  word-break: break-word !important;
}

.vol-spoiler-box.revealed {
  background: rgba(255, 255, 255, 0.03) !important;
  border-style: solid !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.vol-spoiler-box.revealed .vol-spoiler-banner {
  display: none !important;
}

.vol-spoiler-box.revealed .vol-spoiler-text {
  display: block !important;
}


.vol-card-footer {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.vol-btn-like {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
}

.vol-btn-like:hover {
  background: rgba(225, 29, 72, 0.1) !important;
  border-color: rgba(225, 29, 72, 0.3) !important;
  color: #fb7185 !important;
}

.vol-btn-like.liked {
  background: rgba(225, 29, 72, 0.15) !important;
  border-color: rgba(225, 29, 72, 0.4) !important;
  color: #fb7185 !important;
}

.vol-btn-like.liked i {
  color: #fb7185 !important;
}


.vol-feed-empty {
  text-align: center !important;
  padding: 40px 20px !important;
  color: #94a3b8 !important;
}

.vol-feed-empty .empty-icon-wrap {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  margin-bottom: 12px !important;
}

.vol-feed-empty h4 {
  margin: 0 0 6px 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
}

.vol-feed-empty p {
  margin: 0 !important;
  font-size: 13px !important;
  color: #64748b !important;
  max-width: 420px !important;
  margin: 0 auto !important;
}


html.theme-light .vol-comments-section,
#readerOverlay.theme-light .vol-comments-section {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
}

html.theme-light .vol-comments-header,
#readerOverlay.theme-light .vol-comments-header {
  border-bottom-color: #e2e8f0 !important;
}

html.theme-light .vol-comments-title,
#readerOverlay.theme-light .vol-comments-title {
  color: #0f172a !important;
}

html.theme-light .vol-comments-sort-tabs,
#readerOverlay.theme-light .vol-comments-sort-tabs {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

html.theme-light .vol-sort-tab,
#readerOverlay.theme-light .vol-sort-tab {
  color: #64748b !important;
}

html.theme-light .vol-sort-tab.active,
#readerOverlay.theme-light .vol-sort-tab.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

html.theme-light .vol-comment-input-box,
#readerOverlay.theme-light .vol-comment-input-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.theme-light .vol-user-name,
#readerOverlay.theme-light .vol-user-name {
  color: #0f172a !important;
}

html.theme-light .vol-guest-name-input,
#readerOverlay.theme-light .vol-guest-name-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.theme-light .vol-comment-textarea,
#readerOverlay.theme-light .vol-comment-textarea {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.theme-light .vol-comment-card,
#readerOverlay.theme-light .vol-comment-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.theme-light .vol-comment-card.is-top-rank,
#readerOverlay.theme-light .vol-comment-card.is-top-rank {
  background: #fffbeb !important;
  border-color: #fde68a !important;
}

html.theme-light .vol-card-username,
#readerOverlay.theme-light .vol-card-username {
  color: #0f172a !important;
}

html.theme-light .vol-card-body,
#readerOverlay.theme-light .vol-card-body {
  color: #334155 !important;
}

html.theme-light .vol-btn-like,
#readerOverlay.theme-light .vol-btn-like {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}

html.theme-light .vol-feed-empty h4,
#readerOverlay.theme-light .vol-feed-empty h4 {
  color: #0f172a !important;
}


#readerOverlay.theme-sepia .vol-comments-section {
  background: #f4ecd8 !important;
  border-color: #d1c4aa !important;
  box-shadow: 0 8px 30px rgba(74, 53, 34, 0.1) !important;
}

#readerOverlay.theme-sepia .vol-comments-header {
  border-bottom-color: #e0d3bc !important;
}

#readerOverlay.theme-sepia .vol-comments-title {
  color: #3d3024 !important;
}

#readerOverlay.theme-sepia .vol-comments-sort-tabs {
  background: #e6dbbe !important;
  border-color: #d1c4aa !important;
}

#readerOverlay.theme-sepia .vol-sort-tab {
  color: #6a5746 !important;
}

#readerOverlay.theme-sepia .vol-sort-tab.active {
  background: #fdfbf7 !important;
  color: #3d3024 !important;
}

#readerOverlay.theme-sepia .vol-comment-input-box {
  background: #ede3ce !important;
  border-color: #d1c4aa !important;
}

#readerOverlay.theme-sepia .vol-comment-textarea {
  background: #fdfbf7 !important;
  border-color: #d1c4aa !important;
  color: #3d3024 !important;
}

#readerOverlay.theme-sepia .vol-comment-card {
  background: #fdfbf7 !important;
  border-color: #e0d3bc !important;
}

#readerOverlay.theme-sepia .vol-card-username {
  color: #3d3024 !important;
}

#readerOverlay.theme-sepia .vol-card-body {
  color: #4a3b2c !important;
}

#readerOverlay.theme-sepia .vol-btn-like {
  background: #ede3ce !important;
  border-color: #d1c4aa !important;
  color: #6a5746 !important;
}


@media (max-width: 640px) {
  .vol-comments-section {
    padding: 18px 12px !important;
    border-radius: 16px !important;
  }
  .vol-comments-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .vol-comments-sort-tabs {
    width: 100% !important;
    display: flex !important;
  }
  .vol-sort-tab {
    flex: 1 !important;
    justify-content: center !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
  .vol-comment-input-box {
    padding: 14px 10px !important;
    border-radius: 12px !important;
  }
  .vol-input-user-row {
    flex-wrap: wrap !important;
  }
  .vol-guest-name-input {
    max-width: 100% !important;
    width: 100% !important;
  }
  .vol-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .completed-actions-row {
    flex-direction: column !important;
    width: 100% !important;
  }
  .btn-completed-action {
    width: 100% !important;
    justify-content: center !important;
  }
}



.reader-webtoon-bottom-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 60px !important;
  background: rgba(9, 10, 16, 0.94) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  z-index: 100 !important;
  padding: 0 10px !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

.reader-webtoon-bottom-bar.bottombar-autohidden {
  transform: translateY(100%) !important;
}

.webtoon-bottom-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  padding: 6px 14px !important;
  border-radius: 12px !important;
  transition: all 0.16s ease !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.webtoon-bottom-btn i {
  font-size: 16px !important;
  transition: transform 0.16s ease !important;
}

.webtoon-bottom-btn:hover,
.webtoon-bottom-btn:active {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.webtoon-bottom-btn:active i {
  transform: scale(0.9) !important;
}


.webtoon-bottom-btn.primary-comment {
  color: #fb7185 !important;
}

.webtoon-bottom-btn.primary-comment:hover {
  background: rgba(225, 29, 72, 0.12) !important;
  color: #fda4af !important;
}

.webtoon-comment-icon-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.webtoon-comment-icon-wrap i {
  font-size: 19px !important;
}

.webtoon-comment-badge {
  position: absolute !important;
  top: -7px !important;
  right: -12px !important;
  min-width: 17px !important;
  height: 17px !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  color: #ffffff !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.5) !important;
  border: 1.5px solid #090a10 !important;
}


.vol-comments-drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 250 !important;
  opacity: 1 !important;
  transition: opacity 0.25s ease !important;
}

.vol-comments-drawer-backdrop.hidden {
  display: none !important;
  opacity: 0 !important;
}

.vol-comments-drawer {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 86vh !important;
  max-height: 86vh !important;
  background: #0d0f17 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px 24px 0 0 !important;
  z-index: 260 !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateY(100%) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6) !important;
}

.vol-comments-drawer.open {
  transform: translateY(0) !important;
}

.vol-comments-drawer.hidden {
  display: none !important;
}


@media (min-width: 769px) {
  .vol-comments-drawer {
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 460px !important;
    max-width: 90vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: none !important;
    border-radius: 0 !important;
    transform: translateX(100%) !important;
  }
  .vol-comments-drawer.open {
    transform: translateX(0) !important;
  }
  .vol-drawer-handle-bar {
    display: none !important;
  }
}

.vol-drawer-handle-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 0 4px 0 !important;
}

.vol-drawer-drag-handle {
  width: 38px !important;
  height: 4px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.22) !important;
}

.vol-drawer-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 20px 14px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.vol-drawer-title-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.vol-drawer-title-group h3 {
  margin: 0 !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
}

.vol-drawer-count {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
  background: rgba(225, 29, 72, 0.18) !important;
  color: #fb7185 !important;
  border: 1px solid rgba(225, 29, 72, 0.35) !important;
}

.vol-drawer-close-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: none !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 15px !important;
  transition: all 0.15s ease !important;
}

.vol-drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.vol-drawer-content-mount {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 16px 18px 40px 18px !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}


.vol-drawer-content-mount .vol-comments-section {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}



#readerOverlay.theme-light .reader-webtoon-bottom-bar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-top-color: #e2e8f0 !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08) !important;
}

#readerOverlay.theme-light .webtoon-bottom-btn {
  color: #64748b !important;
}

#readerOverlay.theme-light .webtoon-bottom-btn:hover,
#readerOverlay.theme-light .webtoon-bottom-btn:active {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

#readerOverlay.theme-light .webtoon-bottom-btn.primary-comment {
  color: #e11d48 !important;
}

#readerOverlay.theme-light .webtoon-comment-badge {
  border-color: #ffffff !important;
}

#readerOverlay.theme-light .vol-comments-drawer {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

#readerOverlay.theme-light .vol-drawer-header {
  border-bottom-color: #e2e8f0 !important;
}

#readerOverlay.theme-light .vol-drawer-title-group h3 {
  color: #0f172a !important;
}

#readerOverlay.theme-light .vol-drawer-drag-handle {
  background: #cbd5e1 !important;
}

#readerOverlay.theme-light .vol-drawer-close-btn {
  background: #f1f5f9 !important;
  color: #64748b !important;
}


#readerOverlay.theme-sepia .reader-webtoon-bottom-bar {
  background: rgba(244, 236, 216, 0.96) !important;
  border-top-color: #d1c4aa !important;
}

#readerOverlay.theme-sepia .webtoon-bottom-btn {
  color: #6a5746 !important;
}

#readerOverlay.theme-sepia .vol-comments-drawer {
  background: #f4ecd8 !important;
  border-color: #d1c4aa !important;
}

#readerOverlay.theme-sepia .vol-drawer-header {
  border-bottom-color: #d1c4aa !important;
}

#readerOverlay.theme-sepia .vol-drawer-title-group h3 {
  color: #3d3024 !important;
}


.stream-chapter-ad-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 40px auto 32px auto !important;
  padding: 16px 20px !important;
  background: rgba(17, 20, 28, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 18px !important;
  max-width: 360px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
  user-select: none !important;
}

.stream-ad-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.stream-ad-label i {
  color: #fb7185 !important;
}

.stream-ad-frame-wrap {
  width: 300px !important;
  height: 250px !important;
  min-height: 250px !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.stream-ad-frame-wrap iframe {
  width: 300px !important;
  height: 250px !important;
  border: none !important;
  display: block !important;
}


#readerOverlay.theme-light .stream-chapter-ad-card,
html.theme-light .stream-chapter-ad-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

#readerOverlay.theme-light .stream-ad-label,
html.theme-light .stream-ad-label {
  color: #64748b !important;
}


#readerOverlay.theme-sepia .stream-chapter-ad-card {
  background: #ede3ce !important;
  border-color: #d1c4aa !important;
  box-shadow: 0 4px 20px rgba(74, 53, 34, 0.08) !important;
}

#readerOverlay.theme-sepia .stream-ad-label {
  color: #786452 !important;
}





@media (max-width: 768px) {
  .cal-page-container {
    padding: 8px 12px 80px 12px !important;
  }

  .cal-header-info {
    margin-bottom: 12px !important;
  }

  .cal-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
  }

  .cal-subtitle {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  
  .cal-nav-bar {
    display: flex !important;
    flex-direction: column !important;
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }

  .cal-month-nav {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 4px !important;
    border-radius: 9999px !important;
    box-sizing: border-box !important;
  }

  .cal-nav-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
  }

  .cal-nav-btn-txt {
    display: none !important;
  }

  .cal-current-month-display {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 2px 8px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
  }

  .cal-year-tag {
    font-size: 11px !important;
    padding: 2px 7px !important;
  }

  .cal-nav-actions {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .cal-today-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  
  .cal-view-switch {
    display: none !important;
  }

  
  .cal-filters-bar {
    gap: 8px !important;
    margin-top: 10px !important;
    margin-bottom: 16px !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .cal-filter-btn {
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 9999px !important;
  }

  
  .cal-agenda-group {
    margin-bottom: 22px !important;
  }

  .cal-agenda-date-header {
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
    border-radius: 8px !important;
    border-left: 3.5px solid #e11d48 !important;
  }

  .cal-agenda-day-name {
    font-size: 11.5px !important;
    letter-spacing: 0.04em !important;
  }

  .cal-agenda-day-number {
    font-size: 15px !important;
    margin-left: 6px !important;
  }

  
  .cal-agenda-item {
    display: grid !important;
    grid-template-columns: 60px 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 10px 14px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    align-items: start !important;
  }

  .cal-agenda-item-thumb-box {
    grid-row: 1 / span 2 !important;
    width: 60px !important;
    height: 86px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  }

  .cal-agenda-item-info {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
  }

  .cal-agenda-item-badge {
    margin-bottom: 2px !important;
  }

  .cal-badge-pill {
    font-size: 10px !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
  }

  .cal-agenda-item-title {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .cal-agenda-item-vol {
    font-size: 12.5px !important;
    color: #fb7185 !important;
    font-weight: 600 !important;
  }

  .cal-agenda-item-team {
    font-size: 11.5px !important;
    color: #94a3b8 !important;
  }

  .cal-agenda-item-actions {
    grid-column: 2 !important;
    display: flex !important;
    gap: 8px !important;
    margin-top: 4px !important;
  }

  .cal-btn-quick-read,
  .cal-btn-quick-view {
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    width: auto !important;
  }
}


html.theme-light #editorialModule .cal-title {
  color: #0f172a !important;
}

html.theme-light #editorialModule .cal-subtitle {
  color: #64748b !important;
}

html.theme-light #editorialModule .cal-nav-bar {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

html.theme-light #editorialModule .cal-month-nav {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

html.theme-light #editorialModule .cal-nav-btn {
  color: #334155 !important;
}

html.theme-light #editorialModule .cal-nav-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

html.theme-light #editorialModule .cal-current-month-display {
  color: #0f172a !important;
}

html.theme-light #editorialModule .cal-year-tag {
  background: rgba(225, 29, 72, 0.1) !important;
  color: #e11d48 !important;
  border-color: rgba(225, 29, 72, 0.25) !important;
}

html.theme-light #editorialModule .cal-today-btn {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html.theme-light #editorialModule .cal-today-btn:hover {
  background: #e11d48 !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25) !important;
}

html.theme-light #editorialModule .cal-view-switch {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

html.theme-light #editorialModule .cal-switch-btn {
  color: #64748b !important;
}

html.theme-light #editorialModule .cal-switch-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

html.theme-light #editorialModule .cal-filter-btn {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

html.theme-light #editorialModule .cal-filter-btn:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.theme-light #editorialModule .cal-filter-btn.active {
  background: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25) !important;
}

html.theme-light #editorialModule .cal-agenda-date-header {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

html.theme-light #editorialModule .cal-agenda-day-name {
  color: #64748b !important;
}

html.theme-light #editorialModule .cal-agenda-day-number {
  color: #0f172a !important;
}

html.theme-light #editorialModule .cal-agenda-item {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

html.theme-light #editorialModule .cal-agenda-item:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07) !important;
}

html.theme-light #editorialModule .cal-agenda-item-title {
  color: #0f172a !important;
}

html.theme-light #editorialModule .cal-agenda-item-vol {
  color: #e11d48 !important;
}

html.theme-light #editorialModule .cal-agenda-item-team {
  color: #64748b !important;
}


html.theme-light #editorialModule .cal-weekday-cell {
  color: #64748b !important;
}

html.theme-light #editorialModule .cal-day-cell {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

html.theme-light #editorialModule .cal-day-cell:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

html.theme-light #editorialModule .cal-day-muted {
  background: #f8fafc !important;
  opacity: 0.45 !important;
  border-color: #f1f5f9 !important;
}

html.theme-light #editorialModule .cal-day-number {
  color: #0f172a !important;
}

html.theme-light #editorialModule .cal-day-today {
  background: rgba(225, 29, 72, 0.04) !important;
  border-color: #e11d48 !important;
}

html.theme-light #editorialModule .cal-event-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.theme-light #editorialModule .cal-event-card:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

html.theme-light #editorialModule .cal-event-title {
  color: #0f172a !important;
}

html.theme-light #editorialModule .cal-event-vol {
  color: #64748b !important;
}

html.theme-light #editorialModule .cal-more-events-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}


html.theme-light #calEventModal .cal-event-modal-content {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}

html.theme-light #calEventModal .cal-modal-title {
  color: #0f172a !important;
}

html.theme-light #calEventModal .cal-modal-volume-tag {
  color: #e11d48 !important;
}

html.theme-light #calEventModal .cal-modal-meta-list {
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

html.theme-light #calEventModal .cal-modal-description {
  color: #475569 !important;
}

html.theme-light #calEventModal .modal-close-btn {
  color: #64748b !important;
}

html.theme-light #calEventModal .modal-close-btn:hover {
  color: #0f172a !important;
}

html.theme-light #calEventModal .cal-btn-notify {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html.theme-light #calEventModal .cal-day-modal-row {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.theme-light #calEventModal .cal-day-modal-row:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

html.theme-light #calEventModal .cal-day-modal-title {
  color: #0f172a !important;
}

html.theme-light #calEventModal .cal-day-modal-vol {
  color: #64748b !important;
}

html.theme-light #editorialModule .cal-empty-state {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.theme-light #editorialModule .cal-empty-title {
  color: #0f172a !important;
}

html.theme-light #editorialModule .cal-empty-desc {
  color: #64748b !important;
}




.cal-page-container,
.cal-header,
.cal-nav-bar {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.cal-day-strip {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 8px 4px 10px 4px !important;
  margin-top: 14px !important;
  margin-bottom: 6px !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
}

.cal-day-strip::-webkit-scrollbar {
  display: none !important;
}

.cal-day-strip-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 52px !important;
  height: 60px !important;
  padding: 6px 8px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  user-select: none !important;
  box-sizing: border-box !important;
}

.cal-day-strip-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-2px) !important;
}

.cal-day-strip-item.is-today {
  border-color: rgba(225, 29, 72, 0.45) !important;
  background: rgba(225, 29, 72, 0.08) !important;
}

.cal-day-strip-item.active {
  background: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.4) !important;
  transform: translateY(-2px) !important;
}

.cal-day-strip-name {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  margin-bottom: 3px !important;
  opacity: 0.85 !important;
}

.cal-day-strip-num {
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

.cal-day-strip-dot {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: #fb7185 !important;
  margin-top: 4px !important;
  box-shadow: 0 0 6px rgba(251, 113, 133, 0.8) !important;
}

.cal-day-strip-item.active .cal-day-strip-dot {
  background: #ffffff !important;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9) !important;
}


html.theme-light .cal-day-strip-item {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

html.theme-light .cal-day-strip-item:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.theme-light .cal-day-strip-item.is-today {
  border-color: #e11d48 !important;
  background: rgba(225, 29, 72, 0.04) !important;
}

html.theme-light .cal-day-strip-item.active {
  background: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.3) !important;
}

html.theme-light .cal-day-strip-dot {
  background: #e11d48 !important;
}

html.theme-light .cal-day-strip-item.active .cal-day-strip-dot {
  background: #ffffff !important;
}


.cal-empty-day-state {
  text-align: center !important;
  padding: 42px 20px !important;
  background: rgba(15, 23, 42, 0.45) !important;
  border: 1px dashed rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  margin: 12px 0 24px 0 !important;
}

.cal-empty-day-icon {
  font-size: 32px !important;
  color: #64748b !important;
  margin-bottom: 10px !important;
  opacity: 0.8 !important;
}

.cal-empty-day-state h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  margin: 0 0 6px 0 !important;
}

.cal-empty-day-state p {
  font-size: 13px !important;
  color: #94a3b8 !important;
  margin: 0 0 16px 0 !important;
}

.cal-btn-see-month {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}

html.theme-light .cal-empty-day-state {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

html.theme-light .cal-empty-day-state h4 {
  color: #0f172a !important;
}

html.theme-light .cal-empty-day-state p {
  color: #64748b !important;
}





#adminModuleContainer.admin-module-container:not(.hidden) {
  display: block !important;
}

.admin-module-container {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 28px 24px 80px 24px !important;
  box-sizing: border-box !important;
}


.admin-header-section {
  margin-bottom: 24px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.admin-header-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.admin-title-group {
  flex: 1 !important;
  min-width: 280px !important;
}

.admin-main-title {
  font-size: 30px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  color: #ffffff !important;
  margin: 0 !important;
  font-family: inherit !important;
}

.admin-main-subtitle {
  font-size: 14px !important;
  color: #94a3b8 !important;
  margin: 6px 0 0 0 !important;
  line-height: 1.5 !important;
  max-width: 680px !important;
}

.admin-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.admin-system-status-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.status-indicator-dot {
  width: 8px !important;
  height: 8px !important;
  background-color: #10b981 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px #10b981 !important;
  animation: adminPulse 2s infinite !important;
}

@keyframes adminPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}


.admin-tabs-bar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 6px !important;
  border-radius: 14px !important;
  margin-bottom: 28px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  backdrop-filter: blur(12px) !important;
}

.admin-tabs-bar::-webkit-scrollbar {
  display: none !important;
}

.admin-tab-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
}

.admin-tab-btn i {
  font-size: 14px !important;
  transition: transform 0.2s ease !important;
}

.admin-tab-btn:hover {
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.admin-tab-btn:hover i {
  transform: translateY(-1px) !important;
}

.admin-tab-btn.active {
  background: #f43f5e !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35) !important;
}

.admin-tab-btn.active i {
  color: #ffffff !important;
}

.admin-queue-pill {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  padding: 2px 7px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  margin-left: 2px !important;
}


.admin-module-container .contrib-stats-grid.admin {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
}

.admin-module-container .contrib-stat-card {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  backdrop-filter: blur(10px) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.admin-module-container .contrib-stat-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(244, 63, 94, 0.3) !important;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.4) !important;
}

.admin-module-container .contrib-stat-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
}

.admin-module-container .contrib-stat-icon.novels {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
}

.admin-module-container .contrib-stat-icon.pending {
  background: rgba(251, 146, 60, 0.12) !important;
  color: #fb923c !important;
  border: 1px solid rgba(251, 146, 60, 0.25) !important;
}

.admin-module-container .contrib-stat-icon.users {
  background: rgba(168, 85, 247, 0.12) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
}

.admin-module-container .contrib-stat-icon.published {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.admin-module-container .contrib-stat-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.admin-module-container .stat-number {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.5px !important;
  line-height: 1.1 !important;
}

.admin-module-container .stat-label {
  font-size: 12.5px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}


.admin-dashboard-widgets-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  min-width: 0 !important;
  gap: 20px !important;
  margin-top: 12px !important;
}

.admin-widget-card {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 22px !important;
  backdrop-filter: blur(10px) !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.admin-widget-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.admin-widget-header h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.admin-widget-badge {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 3px 9px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}


.admin-top-novels-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.admin-rank-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.admin-rank-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(244, 63, 94, 0.35) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.rank-pos-badge {
  font-size: 13px !important;
  font-weight: 800 !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  flex-shrink: 0 !important;
  letter-spacing: -0.5px !important;
}

.rank-pos-badge.gold {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4) !important;
}

.rank-pos-badge.silver {
  background: linear-gradient(135deg, #94a3b8, #64748b) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(148, 163, 184, 0.3) !important;
}

.rank-pos-badge.bronze {
  background: linear-gradient(135deg, #d97706, #92400e) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.3) !important;
}

.rank-thumb {
  width: 40px !important;
  height: 56px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.rank-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.rank-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 3px !important;
}

.rank-author {
  font-size: 12px !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.rank-metrics {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.metric-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 9px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.metric-pill.views {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
}

.metric-pill.rating {
  background: rgba(250, 204, 21, 0.12) !important;
  color: #facc15 !important;
  border: 1px solid rgba(250, 204, 21, 0.25) !important;
}


html.theme-light .admin-rank-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.theme-light .admin-rank-item:hover {
  background: #ffffff !important;
  border-color: #f43f5e !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

html.theme-light .rank-title {
  color: #0f172a !important;
}

html.theme-light .rank-author {
  color: #64748b !important;
}


.admin-catalog-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-bottom: 20px !important;
  flex-wrap: wrap !important;
}

.admin-search-wrap {
  position: relative !important;
  flex: 1 !important;
  min-width: 260px !important;
}

.admin-search-wrap i {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #64748b !important;
  font-size: 13px !important;
}

.admin-search-wrap input {
  width: 100% !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 10px 14px 10px 38px !important;
  font-size: 13.5px !important;
  color: #ffffff !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.admin-search-wrap input:focus {
  border-color: #f43f5e !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2) !important;
}

.admin-sort-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.admin-sort-lbl {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.admin-sort-select {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.admin-sort-select:focus,
.admin-sort-select:hover {
  border-color: #f43f5e !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15) !important;
}


.admin-table-wrapper {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  backdrop-filter: blur(10px) !important;
}

.admin-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 13.5px !important;
  text-align: left !important;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.03) !important;
  padding: 13px 18px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.admin-table td {
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  color: #e2e8f0 !important;
  vertical-align: middle !important;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02) !important;
}

.admin-perf-chips-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.admin-perf-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
}

.admin-perf-chip.views {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
  border-color: rgba(56, 189, 248, 0.18) !important;
}

.admin-perf-chip.rating {
  color: #facc15 !important;
  background: rgba(250, 204, 21, 0.08) !important;
  border-color: rgba(250, 204, 21, 0.18) !important;
}

.admin-perf-chip.vols {
  color: #c084fc !important;
  background: rgba(192, 132, 252, 0.08) !important;
  border-color: rgba(192, 132, 252, 0.18) !important;
}


html.theme-light .admin-module-container {
  background: transparent !important;
}

html.theme-light .admin-header-section {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html.theme-light .admin-main-title {
  color: #0f172a !important;
}

html.theme-light .admin-main-subtitle {
  color: #64748b !important;
}

html.theme-light .admin-tabs-bar {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

html.theme-light .admin-tab-btn {
  color: #64748b !important;
}

html.theme-light .admin-tab-btn:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

html.theme-light .admin-tab-btn.active {
  background: #f43f5e !important;
  color: #ffffff !important;
}

html.theme-light .admin-module-container .contrib-stat-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

html.theme-light .admin-module-container .stat-number {
  color: #0f172a !important;
}

html.theme-light .admin-module-container .stat-label {
  color: #64748b !important;
}

html.theme-light .admin-widget-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

html.theme-light .admin-widget-header {
  border-bottom-color: #f1f5f9 !important;
}

html.theme-light .admin-widget-header h3 {
  color: #0f172a !important;
}

html.theme-light .admin-top-novel-row {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.theme-light .admin-top-novel-title {
  color: #0f172a !important;
}

html.theme-light .admin-search-wrap input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.theme-light .admin-sort-select {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.theme-light .admin-table-wrapper {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

html.theme-light .admin-table th {
  background: #f8fafc !important;
  color: #64748b !important;
  border-bottom-color: #e2e8f0 !important;
}

html.theme-light .admin-table td {
  border-bottom-color: #f1f5f9 !important;
  color: #334155 !important;
}


@media (max-width: 768px) {
  .admin-module-container {
    padding: 12px 14px 60px 14px !important;
    margin-top: 0 !important;
  }

  .admin-header-section {
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
  }

  .admin-header-content {
    gap: 8px !important;
  }

  .admin-main-title {
    font-size: 22px !important;
  }

  .admin-main-subtitle {
    font-size: 13px !important;
    margin-top: 4px !important;
    line-height: 1.4 !important;
  }

  .admin-system-status-pill {
    padding: 4px 10px !important;
    font-size: 11px !important;
  }

  .admin-tabs-bar {
    margin-bottom: 16px !important;
    padding: 4px !important;
    gap: 4px !important;
    border-radius: 12px !important;
  }

  .admin-tab-btn {
    padding: 8px 12px !important;
    font-size: 12.5px !important;
  }

  .admin-module-container .contrib-stats-grid.admin {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .admin-module-container .contrib-stat-card {
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  .admin-module-container .contrib-stat-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
  }

  .admin-module-container .stat-number {
    font-size: 19px !important;
  }

  .admin-module-container .stat-label {
    font-size: 11.5px !important;
  }

  .admin-dashboard-widgets-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .admin-widget-card {
    padding: 16px !important;
  }

  .admin-catalog-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .admin-sort-wrap {
    justify-content: space-between !important;
  }
}



.completed-rating-card {
  margin: 22px 0 !important;
  padding: 20px 16px !important;
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid rgba(251, 191, 36, 0.28) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(12px) !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.completed-rating-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24, #f59e0b, transparent);
}

.completed-rating-header {
  margin-bottom: 12px !important;
}

.completed-rating-header .rating-sparkle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  background: rgba(251, 191, 36, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  margin-bottom: 8px !important;
}

.completed-rating-header h4 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 4px 0 !important;
}

.completed-rating-header .rating-instruction {
  font-size: 12.5px !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

.reader-star-rating-row {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 14px 0 8px 0 !important;
  padding: 6px 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.reader-star-btn {
  background: transparent !important;
  border: none !important;
  padding: 4px 6px !important;
  font-size: 26px !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease !important;
  outline: none !important;
  line-height: 1 !important;
}

.reader-star-btn:hover,
.reader-star-btn.hovered,
.reader-star-btn.selected {
  color: #fbbf24 !important;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.65) !important;
}

.reader-star-btn:hover,
.reader-star-btn.hovered {
  transform: scale(1.22) !important;
}

.reader-star-btn.selected {
  transform: scale(1.08) !important;
}

.reader-rating-status {
  font-size: 13px !important;
  color: #cbd5e1 !important;
  min-height: 22px !important;
  margin-top: 4px !important;
  transition: all 0.2s ease !important;
}

.rating-badge-success {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #34d399 !important;
  font-weight: 600 !important;
  background: rgba(52, 211, 153, 0.12) !important;
  padding: 3px 12px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
}

.rating-badge-saving {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #fbbf24 !important;
}

.reader-review-fold {
  margin-top: 14px !important;
  animation: fadeInReviewFold 0.25s ease-out forwards;
}

@keyframes fadeInReviewFold {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.reader-review-box {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  text-align: left !important;
}

.reader-review-textarea {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  resize: vertical !important;
  font-family: inherit !important;
  min-height: 52px !important;
}

.reader-review-textarea::placeholder {
  color: #64748b !important;
}

.reader-review-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 6px !important;
  padding-top: 6px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.reader-review-char-count {
  font-size: 11px !important;
  color: #64748b !important;
}

.reader-review-btns {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.btn-submit-review {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  background: linear-gradient(135deg, #fbbf24, #d97706) !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  border-radius: 9999px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-submit-review:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4) !important;
}

.btn-cancel-review {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
}

.btn-cancel-review:hover {
  color: #cbd5e1 !important;
}

.rating-feedback-box {
  margin-top: 12px !important;
  font-size: 13px !important;
  color: #f43f5e !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(244, 63, 94, 0.1) !important;
  padding: 5px 14px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(244, 63, 94, 0.25) !important;
}


html.theme-light .completed-rating-card,
#readerOverlay.theme-light .completed-rating-card {
  background: #ffffff !important;
  border-color: rgba(217, 119, 6, 0.3) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}
html.theme-light .completed-rating-header h4,
#readerOverlay.theme-light .completed-rating-header h4 {
  color: #0f172a !important;
}
html.theme-light .completed-rating-header .rating-instruction,
#readerOverlay.theme-light .completed-rating-header .rating-instruction {
  color: #64748b !important;
}
html.theme-light .reader-star-btn,
#readerOverlay.theme-light .reader-star-btn {
  color: #cbd5e1 !important;
}
html.theme-light .reader-rating-status,
#readerOverlay.theme-light .reader-rating-status {
  color: #475569 !important;
}
html.theme-light .reader-review-box,
#readerOverlay.theme-light .reader-review-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html.theme-light .reader-review-textarea,
#readerOverlay.theme-light .reader-review-textarea {
  color: #0f172a !important;
}

#readerOverlay.theme-sepia .completed-rating-card {
  background: #ede3ce !important;
  border-color: rgba(180, 83, 9, 0.3) !important;
}
#readerOverlay.theme-sepia .completed-rating-header h4 {
  color: #2b1f14 !important;
}
#readerOverlay.theme-sepia .completed-rating-header .rating-instruction {
  color: #78624f !important;
}
#readerOverlay.theme-sepia .reader-star-btn {
  color: #c4b59d !important;
}
#readerOverlay.theme-sepia .reader-rating-status {
  color: #5c4738 !important;
}
#readerOverlay.theme-sepia .reader-review-box {
  background: #f4ecdc !important;
  border-color: #d8c8b0 !important;
}
#readerOverlay.theme-sepia .reader-review-textarea {
  color: #2b1f14 !important;
}



.interactive-rating-chip {
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.interactive-rating-chip:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4) !important;
  border-color: rgba(251, 191, 36, 0.7) !important;
}

.rating-count-pill {
  font-size: 11px !important;
  opacity: 0.8 !important;
  margin-left: 2px !important;
}


.admin-ratings-modal-content {
  max-width: 680px !important;
  width: 92% !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
  padding: 24px !important;
}

.modal-badge-amber {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  background: rgba(251, 191, 36, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  margin-bottom: 6px !important;
}

.ratings-modal-summary {
  display: grid !important;
  grid-template-columns: 200px 1fr !important;
  gap: 20px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  margin: 18px 0 !important;
  align-items: center !important;
}

@media (max-width: 600px) {
  .ratings-modal-summary {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
}

.ratings-big-score-box {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  overflow: hidden !important;
  align-items: center !important;
  text-align: center !important;
}

.ratings-modal-cover {
  width: 58px !important;
  height: 84px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
  margin-bottom: 8px !important;
}

.ratings-score-digits {
  font-size: 38px !important;
  font-weight: 800 !important;
  color: #fbbf24 !important;
  line-height: 1 !important;
  margin-bottom: 4px !important;
}

.ratings-score-stars {
  display: flex !important;
  gap: 3px !important;
  margin-bottom: 4px !important;
}
.ratings-score-stars .star-filled {
  color: #fbbf24 !important;
}
.ratings-score-stars .star-empty {
  color: #334155 !important;
}

.ratings-score-sub {
  font-size: 12px !important;
  color: #94a3b8 !important;
}

.ratings-bars-breakdown {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.ratings-breakdown-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #cbd5e1 !important;
  margin-bottom: 4px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.rating-dist-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 12px !important;
}

.rating-dist-lbl {
  width: 32px !important;
  color: #e2e8f0 !important;
  font-weight: 600 !important;
}

.rating-dist-bar-track {
  flex: 1 !important;
  height: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
}

.rating-dist-bar-fill {
  height: 100% !important;
  border-radius: 9999px !important;
  transition: width 0.4s ease-out !important;
}
.rating-dist-bar-fill.star-5 { background: linear-gradient(90deg, #10b981, #059669) !important; }
.rating-dist-bar-fill.star-4 { background: linear-gradient(90deg, #34d399, #10b981) !important; }
.rating-dist-bar-fill.star-3 { background: linear-gradient(90deg, #fbbf24, #d97706) !important; }
.rating-dist-bar-fill.star-2 { background: linear-gradient(90deg, #fb923c, #ea580c) !important; }
.rating-dist-bar-fill.star-1 { background: linear-gradient(90deg, #f43f5e, #e11d48) !important; }

.rating-dist-count {
  width: 60px !important;
  text-align: right !important;
  color: #94a3b8 !important;
  font-size: 11.5px !important;
}


.ratings-modal-reviews-section {
  margin-top: 18px !important;
}

.ratings-section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
}
.ratings-section-header h4 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.ratings-section-tip {
  font-size: 11px !important;
  color: #94a3b8 !important;
}

.ratings-modal-reviews-list {
  max-height: 280px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding-right: 4px !important;
}

.admin-review-card-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  transition: all 0.2s ease !important;
}
.admin-review-card-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.admin-review-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
}

.admin-review-user-info {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.admin-review-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(251, 191, 36, 0.15) !important;
  color: #fbbf24 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
}

.admin-review-user-info strong {
  font-size: 13px !important;
  color: #f1f5f9 !important;
  display: block !important;
  line-height: 1.2 !important;
}

.admin-review-date {
  font-size: 11px !important;
  color: #64748b !important;
}

.admin-review-actions-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.admin-review-star-tag {
  background: rgba(251, 191, 36, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
}

.btn-delete-review-action {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  font-size: 13px !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}
.btn-delete-review-action:hover {
  color: #f43f5e !important;
  background: rgba(244, 63, 94, 0.12) !important;
}

.admin-review-card-body {
  font-size: 13px !important;
  color: #cbd5e1 !important;
  font-style: italic !important;
  line-height: 1.4 !important;
}


.admin-recent-reviews-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

.admin-recent-review-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.admin-recent-review-card:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
  transform: translateX(4px) !important;
}

.admin-review-thumb {
  width: 38px !important;
  height: 52px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}

.admin-review-main {
  flex: 1 !important;
  min-width: 0 !important;
}

.admin-review-topline {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.admin-review-novel-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.admin-review-score-pill {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #fbbf24 !important;
  background: rgba(251, 191, 36, 0.15) !important;
  padding: 1px 6px !important;
  border-radius: 9999px !important;
  flex-shrink: 0 !important;
}

.admin-review-quote {
  font-size: 12px !important;
  color: #94a3b8 !important;
  font-style: italic !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 2px 0 !important;
}

.admin-review-meta {
  font-size: 10.5px !important;
  color: #64748b !important;
}


.lnori-card-format-tag {
  display: none !important;
}



#newsModule.news-container:not(.hidden) {
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 36px 24px 90px 24px !important;
  box-sizing: border-box !important;
  display: block !important;
  animation: newsFadeIn 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes newsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.news-wrapper {
  width: 100%;
}


.news-page-header {
  text-align: center;
  margin-bottom: 38px;
  position: relative;
}

.news-page-title {
  font-size: 34px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.03em;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.news-page-subtitle {
  font-size: 15px;
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}


.news-categories-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.news-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  outline: none;
}

.news-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.news-filter-btn:active {
  transform: scale(0.97);
}

.news-filter-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  color: #ffffff;
  border-color: #818cf8;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.28);
}


.news-badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.news-cat-release {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.news-cat-announcement {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.news-cat-update {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.news-cat-community {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.news-badge-pinned {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}


.news-hero-container {
  margin-bottom: 46px;
}

.news-hero-banner-v2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 32px 38px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(22, 24, 38, 0.88) 0%, rgba(13, 14, 24, 0.96) 100%);
  border: 1px solid rgba(139, 92, 246, 0.22);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 35px rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.news-hero-banner-v2:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.75), 0 0 45px rgba(168, 85, 247, 0.18);
}


.news-hero-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-hero-book-wrap {
  position: relative;
  perspective: 900px;
}

.news-hero-book-cover {
  width: 145px;
  height: 215px;
  border-radius: 12px;
  object-fit: cover;
  transform: rotateY(-8deg) rotateX(4deg);
  box-shadow: -8px 14px 28px rgba(0, 0, 0, 0.65), 0 0 35px rgba(139, 92, 246, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease;
}

.news-hero-banner-v2:hover .news-hero-book-cover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-4px) scale(1.03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 45px rgba(168, 85, 247, 0.45);
}

.news-hero-book-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.news-hero-visual-abstract {
  width: 130px;
  height: 180px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.25) 0%, rgba(15, 16, 26, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-hero-abstract-icon {
  font-size: 42px;
  color: rgba(168, 85, 247, 0.7);
}


.news-hero-body-v2 {
  flex: 1;
  min-width: 0;
}

.news-meta-row-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.news-meta-dot {
  color: #475569;
  font-size: 11px;
}

.news-date-pill-v2,
.news-readtime-pill {
  font-size: 12.5px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-readtime-pill {
  color: #cbd5e1;
}

.news-hero-title-v2 {
  font-size: 27px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.news-hero-excerpt-v2 {
  font-size: 14.5px;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0 0 22px 0;
  max-width: 760px;
}

.news-hero-actions-v2 {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-news-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, filter 160ms ease-out;
}

.btn-news-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
  filter: brightness(1.08);
}

.btn-news-primary:active {
  transform: scale(0.97);
}

.btn-news-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn-news-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.news-hero-author-v2 {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
}

.news-author-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
}

.news-author-verified i {
  color: #818cf8;
}

.news-author-verified strong {
  color: #e2e8f0;
}


.news-grid-section {
  width: 100%;
}

.news-section-header {
  margin-bottom: 22px;
}

.news-section-title {
  font-size: 19px;
  font-weight: 700;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.news-section-title i {
  color: #818cf8;
}

.news-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 26px;
}


.news-card-v2 {
  background: rgba(18, 20, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 220ms ease;
  backdrop-filter: blur(14px);
  outline: none;
}

.news-card-v2:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.15);
}

.news-card-v2:active {
  transform: scale(0.98);
}

.news-card-thumb-v2 {
  position: relative;
  height: 190px;
  width: 100%;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-card-thumb-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 20, 32, 0.95) 0%, rgba(18, 20, 32, 0.3) 60%, transparent 100%);
}

.news-card-thumb-ambient {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.22) 0%, rgba(15, 16, 26, 0.9) 100%);
}

.news-thumb-icon {
  font-size: 40px;
  color: rgba(168, 85, 247, 0.55);
}

.news-card-floating-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.news-card-body-v2 {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
}

.news-card-title-v2 {
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.4;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt-v2 {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card-footer-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
}

.news-card-author-v2 {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-card-author-v2 i {
  color: #818cf8;
}

.news-card-link-v2 {
  color: #818cf8;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 160ms ease, color 160ms ease;
}

.news-card-v2:hover .news-card-link-v2 {
  transform: translateX(4px);
  color: #a855f7;
}


.news-reader-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  animation: newsModalFade 200ms ease-out;
}

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

.news-reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 12, 0.85);
  backdrop-filter: blur(12px);
}

.news-reader-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: #0d0e17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow-y: auto;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9);
  animation: newsPanelZoom 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes newsPanelZoom {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.news-reader-close-btn {
  position: sticky;
  top: 18px;
  float: right;
  margin-right: 18px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  backdrop-filter: blur(8px);
  transition: transform 160ms ease, background 160ms ease;
}

.news-reader-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.news-reader-top-banner {
  position: relative;
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-reader-top-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0d0e17 0%, rgba(13, 14, 23, 0.4) 100%);
}

.news-reader-inner-wrap {
  padding: 38px 42px;
}

.news-reader-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.news-reader-title {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 18px 0;
  letter-spacing: -0.02em;
}

.news-reader-author-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.news-reader-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.news-reader-author-name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
}

.news-reader-author-role {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}


.news-reader-series-banner {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 28px;
}

.news-reader-series-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-reader-series-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

.news-reader-series-cover {
  width: 64px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.news-reader-series-meta {
  flex: 1;
}

.news-reader-series-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.news-reader-series-author {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.btn-news-goto-series {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 10px;
  background: #6366f1;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.btn-news-goto-series:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}


.news-reader-content {
  font-size: 16px;
  line-height: 1.85;
  color: #cbd5e1;
}

.news-reader-p {
  margin: 0 0 18px 0;
}

.news-reader-subheading {
  font-size: 19px;
  font-weight: 700;
  color: #f8fafc;
  margin: 28px 0 12px 0;
  letter-spacing: -0.01em;
}


.news-empty-notice {
  text-align: center;
  padding: 64px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-empty-icon {
  font-size: 42px;
  color: #64748b;
  margin-bottom: 14px;
}

.news-empty-notice h3 {
  color: #f8fafc;
  font-size: 18px;
  margin: 0 0 6px 0;
}

.news-empty-notice p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0 0 20px 0;
}

.btn-news-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}


.news-skeleton-hero {
  height: 250px;
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 200% 100%;
  animation: newsSkeletonShimmer 1.5s infinite;
}

.news-skeleton-card {
  height: 330px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 200% 100%;
  animation: newsSkeletonShimmer 1.5s infinite;
}

@keyframes newsSkeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


@media (max-width: 768px) {
  #newsModule.news-container:not(.hidden) {
    padding: 22px 14px 60px 14px !important;
  }
  .news-page-title {
    font-size: 26px;
  }
  .news-hero-banner-v2 {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 20px;
  }
  .news-hero-visual {
    width: 100%;
    justify-content: flex-start;
  }
  .news-hero-book-cover {
    width: 110px;
    height: 165px;
    transform: none !important;
  }
  .news-hero-title-v2 {
    font-size: 21px;
  }
  .news-hero-excerpt-v2 {
    font-size: 13.5px;
  }
  .news-articles-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .news-reader-inner-wrap {
    padding: 24px 18px;
  }
  .news-reader-title {
    font-size: 23px;
  }
  .news-reader-panel {
    max-height: 94vh;
    border-radius: 18px;
  }
}





html.theme-light {
  --bg-deep: #f1f5f9;
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-hover: rgba(0, 0, 0, 0.06);
  --bg-main: #f8fafc;
  --surface-color: #ffffff;
  --surface-light: #f1f5f9;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-accent: rgba(99, 102, 241, 0.4);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #475569;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-active: #3730a3;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-subtle: rgba(99, 102, 241, 0.08);
  --accent-color: #6366f1;
  --primary-color: #6366f1;
  color-scheme: light;
}


html.theme-light body,
html.theme-light .app-container,
html.theme-light .main-content {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}


html.theme-light .topnav,
html.theme-light .topnav#mainHeader {
  --bg-deep: #05050a !important;
  --bg-app: #0a0a14 !important;
  --bg-sidebar: #07070f !important;
  --bg-card: #12121e !important;
  --bg-elevated: #1a1a2e !important;
  --bg-hover: #1f1f33 !important;
  --border-color: rgba(255, 255, 255, 0.08) !important;
  --text-primary: #f1f5f9 !important;
  --text-secondary: #94a3b8 !important;
  --text-tertiary: #64748b !important;
  --text-muted: #475569 !important;
  background: #090a10 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  color: #f1f5f9 !important;
}

html.theme-light .topnav-logo .logo-text {
  color: #ffffff !important;
}

html.theme-light .topnav-logo .logo-text strong {
  color: #fb7185 !important;
}

html.theme-light .topnav-nav-links .nav-item-btn {
  color: #94a3b8 !important;
  background: transparent !important;
  border-color: transparent !important;
  font-weight: 500 !important;
}

html.theme-light .topnav-nav-links .nav-item-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

html.theme-light .topnav-nav-links .nav-item-btn.active {
  color: #fb7185 !important;
  background: rgba(99, 102, 241, 0.15) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  font-weight: 600 !important;
}

html.theme-light .nav-search-wrapper.search-input-wrapper {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.theme-light .nav-search-wrapper:focus-within {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
}

html.theme-light .nav-search-input {
  color: #ffffff !important;
}

html.theme-light .nav-search-input::placeholder {
  color: #64748b !important;
}

html.theme-light .nav-search-icon {
  color: #64748b !important;
}

html.theme-light .filter-toggle-btn.nav-filter-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}

html.theme-light .filter-toggle-btn.nav-filter-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

html.theme-light .btn-nav-auth-pill {
  background: rgba(99, 102, 241, 0.15) !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  color: #fb7185 !important;
  box-shadow: none !important;
}

html.theme-light .nav-user-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html.theme-light .nav-user-email {
  color: #f1f5f9 !important;
}

html.theme-light .nav-dropdown-menu,
html.theme-light .nav-user-dropdown {
  background: rgba(10, 12, 20, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7) !important;
  color: #cbd5e1 !important;
}

html.theme-light .nav-dropdown-link,
html.theme-light .nav-dropdown-item {
  color: #cbd5e1 !important;
}

html.theme-light .nav-dropdown-link:hover,
html.theme-light .nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

html.theme-light .nav-link-title {
  color: #ffffff !important;
}

html.theme-light .nav-link-desc {
  color: #64748b !important;
}

html.theme-light .topnav-hamburger {
  color: #ffffff !important;
}
.nav-theme-toggle {
  display: inline-flex !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fbbf24 !important;
  font-size: 15px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
}

.nav-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  transform: scale(1.08) rotate(15deg) !important;
  color: #fde047 !important;
}


html.theme-light .home-hero-title {
  color: #ffffff !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.75) !important;
}

html.theme-light .home-hero-meta {
  color: #e2e8f0 !important;
}

html.theme-light .home-hero-meta .author {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

html.theme-light .home-hero-synopsis {
  color: #e2e8f0 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

html.theme-light .hero-genre-tag {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px) !important;
  font-weight: 600 !important;
}

html.theme-light .hero-genre-tag:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

html.theme-light .btn-hero-glass {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px) !important;
}

html.theme-light .btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

html.theme-light .home-hero-overlay {
  background: 
    radial-gradient(ellipse 90% 75% at 50% 25%, transparent 20%, rgba(9, 10, 16, 0.6) 70%, #090a10 100%),
    linear-gradient(to bottom, transparent 30%, rgba(9, 10, 16, 0.7) 70%, #f8fafc 100%),
    linear-gradient(to right, rgba(9, 10, 16, 0.8) 0%, transparent 40%, transparent 60%, rgba(9, 10, 16, 0.8) 100%) !important;
}


html.theme-light .home-resume-banner {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

html.theme-light .resume-label {
  color: #6366f1 !important;
}

html.theme-light .resume-title {
  color: #0f172a !important;
}

html.theme-light .resume-progress-track {
  background: #e2e8f0 !important;
}

html.theme-light .resume-percent {
  color: #475569 !important;
}


html.theme-light .home-section-title-wrap {
  border-bottom: 1px solid #e2e8f0 !important;
}

html.theme-light .home-section-title-wrap h2 {
  color: #0f172a !important;
}

html.theme-light .home-section-title-wrap p {
  color: #475569 !important;
}

html.theme-light .home-section-link {
  color: #334155 !important;
  font-weight: 600 !important;
}

html.theme-light .home-section-link:hover {
  color: #6366f1 !important;
}


html.theme-light .lnori-card-cover-box {
  background: #e2e8f0 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

html.theme-light .lnori-card:hover .lnori-card-cover-box {
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15) !important;
}

html.theme-light .lnori-card-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html.theme-light .lnori-card-sub {
  color: #475569 !important;
  font-weight: 500 !important;
}

html.theme-light .lnori-card-format-tag,
html.theme-light .lnori-card-vol-badge {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}


html.theme-light .lnori-card-popup {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

html.theme-light .lnori-card-popup .popup-title {
  color: #0f172a !important;
}

html.theme-light .lnori-card-popup .popup-synopsis {
  color: #334155 !important;
}

html.theme-light .lnori-card-popup .popup-meta-item {
  color: #475569 !important;
}


html.theme-light .catalog-lnori-header {
  border-bottom: 1px solid #e2e8f0 !important;
}

html.theme-light .catalog-lnori-search-box {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html.theme-light .catalog-lnori-search-box input {
  color: #0f172a !important;
}

html.theme-light .catalog-lnori-search-box input::placeholder {
  color: #64748b !important;
}

html.theme-light .cat-search-icon {
  color: #475569 !important;
}

html.theme-light .catalog-filter-toggle-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html.theme-light .catalog-tools-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06) !important;
}

html.theme-light .catalog-filter-pill {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 500 !important;
}

html.theme-light .catalog-filter-pill:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

html.theme-light .catalog-filter-pill.active {
  background: #6366f1 !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
}

html.theme-light .catalog-filter-select,
html.theme-light .catalog-pill-select {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

html.theme-light .catalog-count-pill {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}


html.theme-light .library-module-container h2 {
  color: #0f172a !important;
}

html.theme-light .library-tab-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

html.theme-light .library-tab-btn.active {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
}


html.theme-light .series-title-row h2#seriesTitle {
  color: #0f172a !important;
}

html.theme-light .series-subtitle-editorial {
  color: #475569 !important;
}

html.theme-light .series-meta-label {
  color: #64748b !important;
  font-weight: 600 !important;
}

html.theme-light .series-meta-val,
html.theme-light #seriesAuthor,
html.theme-light #seriesVolCount,
html.theme-light #seriesStatusText {
  color: #0f172a !important;
  font-weight: 600 !important;
}

html.theme-light .series-tag-pill {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}

html.theme-light .series-synopsis-section .series-section-header h3,
html.theme-light .series-volumes-section .series-section-header h3 {
  color: #0f172a !important;
}

html.theme-light .series-synopsis-wrapper {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

html.theme-light .series-synopsis-content p {
  color: #334155 !important;
  line-height: 1.7 !important;
}

html.theme-light .vol-filter-tab {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

html.theme-light .vol-filter-tab.active {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
}

html.theme-light .volume-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

html.theme-light .volume-card:hover {
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.12) !important;
}

html.theme-light .volume-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html.theme-light .volume-pill-tag {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}


html.theme-light .account-profile-header-card,
html.theme-light .account-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
}

html.theme-light .profile-display-name {
  color: #0f172a !important;
}

html.theme-light .profile-email-subtitle {
  color: #475569 !important;
}

html.theme-light .account-card-header-simple h3 {
  color: #0f172a !important;
}

html.theme-light .account-card-header-simple p {
  color: #475569 !important;
}

html.theme-light .setting-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html.theme-light .setting-label-group label,
html.theme-light .setting-item label {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html.theme-light .setting-item select,
html.theme-light .account-select {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

html.theme-light .account-shortcut-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html.theme-light .account-shortcut-box:hover {
  background: #f1f5f9 !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

html.theme-light .shortcut-text strong {
  color: #0f172a !important;
}

html.theme-light .shortcut-text span {
  color: #475569 !important;
}

html.theme-light .account-detail-item {
  border-bottom: 1px solid #e2e8f0 !important;
}

html.theme-light .account-detail-item .detail-label {
  color: #475569 !important;
}

html.theme-light .account-detail-item .detail-value {
  color: #0f172a !important;
  font-weight: 600 !important;
}

html.theme-light .guest-banner-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

html.theme-light .guest-banner-content h2 {
  color: #0f172a !important;
}

html.theme-light .guest-banner-content p {
  color: #334155 !important;
}


html.theme-light .modal-content,
html.theme-light .auth-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

html.theme-light .auth-input-group label {
  color: #334155 !important;
  font-weight: 600 !important;
}

html.theme-light .auth-input-group input {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

html.theme-light .download-sponsor-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

html.theme-light .download-sponsor-title {
  color: #0f172a !important;
}

html.theme-light .download-sponsor-subtitle {
  color: #475569 !important;
}


html.theme-light .nav-mobile-panel {
  background: #ffffff !important;
  border-left: 1px solid #e2e8f0 !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08) !important;
}

html.theme-light .nav-mobile-btn {
  color: #334155 !important;
  font-weight: 600 !important;
}

html.theme-light .nav-mobile-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

html.theme-light .nav-mobile-btn.active {
  background: rgba(99, 102, 241, 0.08) !important;
  color: #6366f1 !important;
}

html.theme-light .nav-mobile-label {
  color: #64748b !important;
}

html.theme-light .nav-mobile-header {
  border-bottom: 1px solid #e2e8f0 !important;
}

html.theme-light .nav-mobile-search-box {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

html.theme-light .nav-mobile-search-box input {
  color: #0f172a !important;
}





.theme-picker-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

@media (max-width: 500px) {
  .theme-picker-dual {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

.theme-mode-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.theme-mode-card .theme-mode-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.theme-mode-card .theme-mode-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theme-mode-card .theme-mode-title {
  font-size: 14px;
  font-weight: 700;
}

.theme-mode-card .theme-mode-desc {
  font-size: 11.5px;
  opacity: 0.75;
}


.theme-mode-card.mode-dark {
  background: #12121e;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.theme-mode-card.mode-dark .theme-mode-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #fb7185;
}


.theme-mode-card.mode-light {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

.theme-mode-card.mode-light .theme-mode-icon {
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
}

.theme-mode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.theme-mode-card.active {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 6px 20px rgba(99, 102, 241, 0.12) !important;
}


.nav-mobile-theme-group .theme-picker-dual {
  margin-top: 8px;
}

.nav-mobile-theme-group .theme-mode-card {
  padding: 10px 12px !important;
  gap: 10px !important;
}

.nav-mobile-theme-group .theme-mode-icon {
  width: 32px !important;
  height: 32px !important;
  font-size: 15px !important;
}

.nav-mobile-theme-group .theme-mode-title {
  font-size: 13px !important;
}

.nav-mobile-theme-group .theme-mode-desc {
  font-size: 10.5px !important;
}



/* ── RESPONSIVITÉ PARFAITE DE LA BARRE D'OUTILS SUR MOBILE ── */
@media (max-width: 600px) {
  /* Transformer le badge NEW en micro-point rouge néon discret */
  .reader-tool-badge-new {
    top: 3px !important;
    right: 3px !important;
    width: 7px !important;
    height: 7px !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    border-radius: 50% !important;
  }

  /* Compacter la barre d'outils du lecteur PDF / EPUB */
  .premium-reader-toolbar {
    padding: 6px 8px !important;
  }
  .toolbar-left, .toolbar-right {
    gap: 4px !important;
  }
  .toolbar-title {
    max-width: 100px !important;
    font-size: 12px !important;
  }
  #readerFullscreenBtn {
    display: none !important;
  }

  /* Compacter la barre d'outils Webnovel */
  .wn-toolbar {
    padding: 0 10px !important;
    height: 52px !important;
  }
  .wn-toolbar-left {
    gap: 8px !important;
  }
  .wn-toolbar-right {
    gap: 4px !important;
  }
  .wn-tool-btn {
    padding: 6px 8px !important;
    font-size: 0.95rem !important;
  }
  #wnTopPrevBtn, #wnTopNextBtn {
    display: none !important;
  }
  .wn-font-controls {
    display: none !important;
  }
}



/* ==========================================================================
   ONGLET MATURE (+18) DANS LA NAVBAR & LE DRAWER MOBILE
   ========================================================================== */
.nav-item-btn.mature-nav-link {
  color: #fb7185 !important;
  font-weight: 700;
  text-decoration: none;
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.28);
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 6px rgba(225, 29, 72, 0.15);
}

.nav-item-btn.mature-nav-link i {
  color: #f43f5e;
  font-size: 12px;
  transition: transform 0.25s ease;
}

.nav-item-btn.mature-nav-link:hover {
  background: rgba(225, 29, 72, 0.22) !important;
  color: #ffffff !important;
  border-color: rgba(225, 29, 72, 0.6) !important;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.35);
  transform: translateY(-1px);
}

.nav-item-btn.mature-nav-link:hover i {
  transform: scale(1.18);
  color: #ff4d6d;
}

.nav-mobile-btn.mature-mobile-link {
  color: #fb7185 !important;
  font-weight: 700;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.22);
  text-decoration: none;
  border-radius: 10px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.nav-mobile-btn.mature-mobile-link i {
  color: #f43f5e;
}

.nt-reader-search-widget {
  position: fixed;
  top: 60px;
  right: 24px;
  z-index: 100005;
  background: rgba(15, 17, 23, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.15);
  border-radius: 12px;
  padding: 6px 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.nt-reader-search-widget.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  display: none !important;
}

.nt-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nt-search-icon {
  color: #f59e0b;
  font-size: 13px;
  margin-left: 4px;
}

#ntReaderSearchInput {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  width: 210px;
  padding: 4px 6px;
}

#ntReaderSearchInput::placeholder {
  color: #71717a;
  font-size: 12.5px;
}

.nt-search-counter {
  font-size: 11.5px;
  font-weight: 700;
  color: #a1a1aa;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.nt-search-counter.has-results {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
}

.nt-search-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 6px;
}

.nt-search-nav-btn,
.nt-search-close-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.15s ease;
}

.nt-search-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nt-search-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Surlignage haute visibilité dans le texte */
.nt-search-highlight {
  background-color: rgba(245, 158, 11, 0.45) !important;
  color: inherit !important;
  border-radius: 3px;
  padding: 1px 3px;
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}

.nt-search-highlight.active {
  background-color: #f59e0b !important;
  color: #000000 !important;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.95);
  outline: 2px solid #fbbf24;
}

@media (max-width: 640px) {
  .nt-reader-search-widget {
    top: 54px;
    right: 12px;
    left: 12px;
  }
  #ntReaderSearchInput {
    width: 100%;
  }
}


/* =============================================================================
   REFONTE ESPACE COMMENTAIRES DU LECTEUR (WEBNOVEL & MANGADEX PRO STYLE)
   ============================================================================= */

/* 1. CONTENEUR PRINCIPAL DU MODULE */
.vol-comments-section {
  border-radius: 18px !important;
  background: #090d16 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 24px 20px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  color: #f1f5f9 !important;
  box-sizing: border-box !important;
}

/* 2. EN-TÊTE DU MODULE (HEADER) */
.vol-comments-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  margin-bottom: 20px !important;
}

.vol-comments-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.vol-comments-icon-badge {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.22), rgba(190, 18, 60, 0.08)) !important;
  border: 1px solid rgba(244, 63, 94, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 19px !important;
  color: #fb7185 !important;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.18) !important;
  flex-shrink: 0 !important;
}

.vol-comments-title-texts {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.vol-comments-headline-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.vol-comments-title {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
}

.vol-comments-subtitle {
  margin: 0 !important;
  font-size: 12.5px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.vol-comments-count-pill {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #fb7185 !important;
  background: rgba(244, 63, 94, 0.14) !important;
  border: 1px solid rgba(244, 63, 94, 0.3) !important;
  padding: 2px 9px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.4 !important;
}

/* ONGLETS DE TRI (SORT TABS) */
.vol-comments-sort-tabs {
  display: flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 3px !important;
  gap: 4px !important;
}

.vol-sort-tab {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.18s ease !important;
}

.vol-sort-tab:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.vol-sort-tab.active {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.28), rgba(225, 29, 72, 0.15)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(244, 63, 94, 0.45) !important;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.2) !important;
}

/* 3. FORMULAIRE DE SAISIE PRINCIPAL (COMPOSER) */
.vol-comment-input-box {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  margin-bottom: 24px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.vol-input-user-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.vol-user-profile-meta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.vol-user-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #1e293b !important;
  border: 1.5px solid rgba(244, 63, 94, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.vol-user-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.vol-user-identity {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.vol-user-name {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
}

.vol-guest-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.vol-guest-icon {
  position: absolute !important;
  left: 9px !important;
  font-size: 11px !important;
  color: #64748b !important;
  pointer-events: none !important;
}

.vol-guest-name-input {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  color: #f1f5f9 !important;
  font-size: 12px !important;
  padding: 5px 10px 5px 28px !important;
  outline: none !important;
  max-width: 170px !important;
  transition: all 0.2s ease !important;
}

.vol-guest-name-input:focus {
  border-color: #f43f5e !important;
  background: rgba(0, 0, 0, 0.6) !important;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25) !important;
}

.vol-input-meta-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.vol-char-counter {
  font-size: 11.5px !important;
  color: #64748b !important;
  font-family: monospace !important;
  font-weight: 600 !important;
}

.vol-char-counter.near-limit {
  color: #f59e0b !important;
  font-weight: 700 !important;
}

.vol-char-counter.at-limit {
  color: #ef4444 !important;
  font-weight: 700 !important;
}

.vol-login-link-btn {
  background: rgba(244, 63, 94, 0.12) !important;
  border: 1px solid rgba(244, 63, 94, 0.3) !important;
  color: #fb7185 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 0.15s ease !important;
}

.vol-login-link-btn:hover {
  background: rgba(244, 63, 94, 0.25) !important;
  color: #ffffff !important;
}

.vol-textarea-wrap {
  position: relative !important;
}

.vol-comment-textarea {
  width: 100% !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #f8fafc !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  resize: vertical !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.vol-comment-textarea:focus {
  border-color: #f43f5e !important;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.28) !important;
  background: rgba(0, 0, 0, 0.6) !important;
}

.vol-input-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 12px !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.vol-spoiler-toggle {
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
  user-select: none !important;
}

.vol-spoiler-toggle input[type="checkbox"] {
  display: none !important;
}

.vol-spoiler-pill {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 6px 12px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.vol-spoiler-toggle input[type="checkbox"]:checked + .vol-spoiler-pill {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #fca5a5 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25) !important;
}

.vol-submit-btn {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 9px 20px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease !important;
}

.vol-submit-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.5) !important;
}

.vol-submit-btn:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* 4. CARTES DE COMMENTAIRES (CARDS) */
.vol-comments-feed {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.vol-comment-card {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}

.vol-comment-card:hover {
  border-color: rgba(244, 63, 94, 0.25) !important;
}

.vol-comment-card.is-top-rank {
  border-color: rgba(245, 158, 11, 0.4) !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, rgba(15, 23, 42, 0.7) 100%) !important;
}

.vol-card-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
}

.vol-card-author-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.vol-card-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #1e293b !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.vol-card-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.vol-card-author-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.vol-card-name-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.vol-card-username {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
}

.vol-card-time {
  font-size: 11.5px !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.vol-badge-role {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 1px 7px !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

.vol-badge-role.admin {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(244, 63, 94, 0.2)) !important;
  border: 1px solid rgba(244, 63, 94, 0.45) !important;
  color: #fb7185 !important;
}

.vol-badge-role.vip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15)) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #fbbf24 !important;
}

.vol-badge-role.member {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

.vol-badge-top-rank {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
}

.vol-badge-top-rank.rank-1 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.15)) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #fbbf24 !important;
}

.vol-badge-top-rank.rank-2 {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.25), rgba(148, 163, 184, 0.1)) !important;
  border-color: rgba(203, 213, 225, 0.45) !important;
  color: #f1f5f9 !important;
}

.vol-badge-top-rank.rank-3 {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.25), rgba(180, 83, 9, 0.1)) !important;
  border-color: rgba(217, 119, 6, 0.45) !important;
  color: #fcd34d !important;
}

.vol-btn-delete {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  cursor: pointer !important;
  font-size: 13px !important;
  padding: 4px 6px !important;
  border-radius: 4px !important;
  transition: all 0.15s ease !important;
}

.vol-btn-delete:hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.15) !important;
}

.vol-card-body {
  margin-bottom: 12px !important;
}

.vol-comment-text {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #cbd5e1 !important;
  word-break: break-word !important;
  white-space: pre-line !important;
}

/* SPOILERS (SHIELD PRO) */
.vol-spoiler-shield {
  border-radius: 10px !important;
  overflow: hidden !important;
  border: 1px dashed rgba(239, 68, 68, 0.35) !important;
  background: rgba(239, 68, 68, 0.06) !important;
  padding: 10px 12px !important;
}

.vol-spoiler-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.vol-spoiler-banner-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12.5px !important;
  color: #fca5a5 !important;
  font-weight: 600 !important;
}

.vol-btn-reveal-spoiler {
  background: rgba(239, 68, 68, 0.25) !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: background 0.15s !important;
}

.vol-btn-reveal-spoiler:hover {
  background: rgba(239, 68, 68, 0.45) !important;
}

.vol-spoiler-content {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px dashed rgba(239, 68, 68, 0.25) !important;
}

.vol-spoiler-content.hidden {
  display: none !important;
}

/* PIED DE CARTE (ACTIONS : LIKE & RÉPONDRE) */
.vol-card-footer {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.vol-btn-like {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  padding: 5px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.vol-btn-like:hover {
  background: rgba(244, 63, 94, 0.15) !important;
  border-color: rgba(244, 63, 94, 0.35) !important;
  color: #fb7185 !important;
}

.vol-btn-like.has-likes {
  color: #cbd5e1 !important;
}

.vol-btn-like.liked {
  background: rgba(244, 63, 94, 0.2) !important;
  border-color: rgba(244, 63, 94, 0.5) !important;
  color: #f43f5e !important;
}

.vol-btn-like.liked i {
  color: #f43f5e !important;
  animation: volHeartPulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes volHeartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.vol-btn-reply,
.vol-btn-reply-nested {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  padding: 5px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.vol-btn-reply:hover,
.vol-btn-reply-nested:hover {
  background: rgba(244, 63, 94, 0.18) !important;
  border-color: rgba(244, 63, 94, 0.45) !important;
  color: #fb7185 !important;
  transform: translateY(-1px) !important;
}

.vol-reply-count-badge {
  background: rgba(244, 63, 94, 0.25) !important;
  color: #fb7185 !important;
  border-radius: 10px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 1px 6px !important;
}

/* 5. TIROIR DE RÉPONSE DIRECTE (INLINE REPLY COMPOSER) */
.vol-reply-drawer {
  margin-top: 14px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(244, 63, 94, 0.35) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  animation: volReplySlideIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes volReplySlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vol-reply-drawer.hidden {
  display: none !important;
}

.vol-reply-to-hint {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.vol-reply-textarea {
  width: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  color: #f8fafc !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
  resize: vertical !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.vol-reply-textarea:focus {
  border-color: #f43f5e !important;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.3) !important;
}

.vol-reply-actions-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.vol-btn-cancel-reply {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #94a3b8 !important;
  border-radius: 6px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
}

.vol-btn-cancel-reply:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

.vol-btn-send-reply {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 6px 16px !important;
  font-size: 12.5px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.35) !important;
  transition: all 0.15s ease !important;
}

.vol-btn-send-reply:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.5) !important;
}

/* 6. ACCORDÉON ET ARBORESCENCE DES RÉPONSES (THREAD TREE) */
.vol-thread-toggle-row {
  margin-top: 10px !important;
}

.vol-btn-toggle-thread {
  background: transparent !important;
  border: none !important;
  color: #fb7185 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 0 !important;
  transition: color 0.15s ease !important;
}

.vol-btn-toggle-thread:hover {
  color: #fda4af !important;
}

.vol-thread-chevron {
  font-size: 10px !important;
  transition: transform 0.2s ease !important;
}

.vol-replies-thread {
  margin-top: 12px !important;
  padding-left: 18px !important;
  border-left: 2px solid rgba(244, 63, 94, 0.35) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.vol-replies-thread.hidden {
  display: none !important;
}

.vol-replies-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.vol-reply-card {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
}

.vol-reply-card .vol-card-avatar {
  width: 30px !important;
  height: 30px !important;
  font-size: 12px !important;
}

.vol-reply-card .vol-card-username {
  font-size: 13px !important;
}

.vol-reply-card .vol-comment-text {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}

.vol-reply-to-pill {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #fb7185 !important;
  background: rgba(244, 63, 94, 0.15) !important;
  border: 1px solid rgba(244, 63, 94, 0.3) !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* 7. SPOTLIGHT TOP 3 (HALL OF FAME) */
.vol-top-spotlight {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.02)) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  margin-bottom: 24px !important;
}

.vol-top-spotlight-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #fbbf24 !important;
  margin-bottom: 12px !important;
}

.vol-top-spotlight-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

/* 8. ÉTATS VIDES ET CHARGEMENT */
.vol-feed-loading,
.vol-feed-empty {
  text-align: center !important;
  padding: 36px 20px !important;
  color: #94a3b8 !important;
}

.vol-feed-loading {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-size: 14px !important;
}

.vol-feed-empty h4 {
  margin: 12px 0 6px 0 !important;
  color: #f1f5f9 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.vol-feed-empty p {
  margin: 0 !important;
  font-size: 13.5px !important;
  color: #64748b !important;
  max-width: 420px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.empty-icon-wrap {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  color: #64748b !important;
  margin: 0 auto 12px auto !important;
}

/* =============================================================================
   ADAPTATION TIROIR LATÉRAL DU LECTEUR (VOL-COMMENTS-DRAWER)
   ============================================================================= */
.vol-comments-drawer {
  background: #080c14 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.85) !important;
}

.vol-drawer-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(13, 17, 26, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.vol-drawer-content-mount {
  padding: 16px !important;
}

.vol-drawer-content-mount .vol-comments-section {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* =============================================================================
   BANDEAU FLOTTANT "REPRENDRE LA LECTURE" (CROSS-DEVICE)
   ============================================================================= */
.nt-resume-banner {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  max-width: 420px !important;
  width: calc(100% - 48px) !important;
  z-index: 2147483640 !important;
  background: rgba(15, 23, 42, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 24px rgba(245, 158, 11, 0.2) !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  transform: translateY(30px) scale(0.96) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.nt-resume-banner.visible {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.nt-resume-inner {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
}

.nt-resume-cover-wrap {
  position: relative !important;
  width: 48px !important;
  height: 68px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  background: #181b24 !important;
}

.nt-resume-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.nt-resume-play-badge {
  position: absolute !important;
  bottom: 2px !important;
  right: 2px !important;
  background: #f59e0b !important;
  color: #000 !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 8px !important;
  font-weight: 800 !important;
}

.nt-resume-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.nt-resume-tag-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 2px !important;
}

.nt-resume-pulse-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  box-shadow: 0 0 8px #10b981 !important;
  animation: ntDotPulse 1.8s infinite !important;
}

@keyframes ntDotPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.nt-resume-tag {
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #10b981 !important;
  font-weight: 700 !important;
}

.nt-resume-time-pill {
  font-size: 10.5px !important;
  color: #94a3b8 !important;
}

.nt-resume-title {
  margin: 0 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.nt-resume-meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 3px !important;
}

.nt-resume-chapter-name {
  font-size: 12px !important;
  color: #cbd5e1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.nt-resume-chapter-name i {
  color: #f59e0b !important;
}

.nt-resume-pct-badge {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
}

.nt-resume-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.nt-btn-resume-action {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #000 !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-size: 12.5px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.nt-btn-resume-action:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5) !important;
}

.nt-btn-resume-dismiss {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 12px !important;
  transition: all 0.15s ease !important;
}

.nt-btn-resume-dismiss:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

@media (max-width: 640px) {
  .nt-resume-banner {
    bottom: 76px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
  }
}


.admin-novel-cell-title {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #f1f5f9 !important;
  max-width: 320px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  display: block !important;
}

.admin-novel-cell-sub {
  font-size: 12px !important;
  color: #94a3b8 !important;
  max-width: 320px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  display: block !important;
}

.admin-table-responsive {
  overflow-x: auto !important;
  max-width: 100% !important;
}
