
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px; 
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    background: var(--bg, #0b0c0d);
    color: var(--fg, #ffffff);
    font-family: var(--font-sans, 'Poppins', sans-serif);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
}
.logo {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: bold;
    color: white;
    text-decoration: none;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.logo:hover {
    transform: scale(1.05);
}
.dropdown {
    position: relative;
}
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dropdown-toggle .arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}
.dropdown.active .arrow {
    transform: rotate(180deg);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0,0,0,0.9);
    min-width: 200px;
    border-radius: 10px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    list-style: none;
}
.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
    border-radius: 0;
}
.dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
    transform: none;
}
.dropdown-menu hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0.5rem 0;
}
.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    border-radius: 10px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.search-result-item {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: background 0.3s ease;
}
.search-result-item:hover {
    background: rgba(255,255,255,0.1);
}
.search-result-item img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.search-result-info h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
.no-results {
    padding: 1rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
}
main {
    padding: 1rem 0;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}
.section {
    margin-bottom: 3rem;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-title {
    font-size: var(--fs-20);
    font-weight: 700;
    color: var(--fg);
    position: relative;
    letter-spacing: -0.02em;
}
.section-title::after {
    display: none !important;
}

.rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(5px);
}
.rating::before {
    content: '⭐';
    font-size: 0.7rem;
}
.manga-title {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.manga-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: center;
}
.tag {
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}
.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
}
.chapters-container {
    background: transparent;
    padding: 0;
    box-shadow: none;
}
.chapter-item {
    background: transparent;
    border-radius: 0;
}

.recommendations {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
@media (min-width: 768px) and (max-width: 1199px) {
    .recommendations {
        padding: 1.2rem;
    }
}
@media (max-width: 767px) {
    .recommendations {
        padding: 1rem;
        margin-top: 1rem;
    }
    .recommendations .section-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
}
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    color: white;
    padding: 1rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    width: 0%;
    transition: width 0.1s ease;
}
@media (max-width: 1023px) {
    nav {
        padding: 0 1rem;
    }
    .chapters-container {
        padding: 1rem;
    }
}
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    nav {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
}
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    .container {
        padding: 0 0.5rem;
    }
    nav {
        padding: 0 0.25rem;
    }
}
@media (max-width: 360px) {
    .section {
        margin-bottom: 2rem;
    }
}
@media print {
    header,
    footer,
    .cookie-notice,
    .notification-container {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    main {
        margin-top: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
@media (prefers-contrast: high) {
    .tag {
        border: 1px solid #333;
    }
}
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: rgba(255,255,255,0.7);
        --dark-bg: #0f0f0f;
        --dark-surface: #1a1a1a;
    }
}
@media (hover: none) and (pointer: coarse) {
    
    .chapter-item:hover {
        transform: none;
        background: rgba(0, 0, 0, 0.1); 
    }
}
.chapter-item.locked {
    opacity: 0.6;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}
.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 10001;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}
.stat-number {
    display: block;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: bold;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.stat-number.locked {
    color: #dc2626;
}
.stat-label {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: #64748b;
    font-weight: 600;
}
@keyframes lockPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}
@keyframes scheduledPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.chapter-item.scheduled {
    border-left: 4px solid #f59e0b;
    background: rgba(254, 243, 199, 0.1);
}
.chapter-item.draft {
    border-left: 4px solid #6b7280;
    background: rgba(229, 231, 235, 0.1);
    opacity: 0.8;
}
@media (max-width: 768px) {
    .modal-content {
        margin: 0.5rem;
        max-width: none;
        max-height: 95vh;
    }
    .modal-header {
        padding: 1rem;
    }
    .stat-number {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
    }
    .live-search-results {
        max-height: 300px;
    }
    .search-result-item {
        padding: 0.8rem;
    }
    .search-result-item img {
        width: 40px;
        height: 55px;
    }
}
@media (max-width: 360px) {
    .modal-header {
        padding: 0.8rem;
    }
    .chapter-item {
        border-radius: 8px;
    }
}
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 85vh;
    }
}
.manga-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: center;
}
.badge-icon {
    font-size: 0.8rem;
}
.episode-date {
    font-weight: 500;
    color: #555;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}
.episode-info {
    color: #4ecdc4;
    font-weight: 600;
}
.genre {
    background: #333;
    color: #ccc;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}
.rating {
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.notification-container {
    position: fixed;
    top: calc(var(--header-h, 60px) + 20px);
    right: 24px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100% - 48px);
}
@media (max-width: 767px) {
    .notification-container {
        top: calc(var(--header-h, 56px) + 12px);
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}
.notification {
    pointer-events: auto;
    position: relative;
    background: var(--surface-1, #131517);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
    border-radius: 14px;
    padding: 12px 16px;
    color: var(--fg, #ffffff);
    display: flex;
    align-items: center; 
    gap: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: toast-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
    transition: all 0.25s ease;
    min-height: 52px;
    box-sizing: border-box;
}
.notification.hiding {
    animation: toast-out 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.notification-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.notification-success .notification-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--brand, #10b981);
}
.notification-error .notification-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.notification-warning .notification-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.notification-info .notification-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}
.notification-content {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 20px; 
}
.notification-message {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4; 
    color: var(--fg, #ffffff);
    margin: 0;
    padding: 0;
}
.notification-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--fg-3, rgba(255, 255, 255, 0.4));
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notification-close:hover {
    color: var(--fg, #ffffff);
    background: var(--surface-2, rgba(255,255,255,0.08));
}
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.08);
    width: 100%;
}
.notification-progress-bar {
    height: 100%;
    width: 100%;
    border-radius: 0 2px 2px 0;
    transform-origin: left;
}
.notification-success .notification-progress-bar { background: var(--brand, #10b981); }
.notification-error .notification-progress-bar { background: #ef4444; }
.notification-warning .notification-progress-bar { background: #f59e0b; }
.notification-info .notification-progress-bar { background: #3b82f6; }

[data-theme="light"] .notification {
    background: #FFFFFF !important;
    border-color: #E5E5EA !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .notification-message {
    color: #1C1C1E !important;
}
[data-theme="light"] .notification-close {
    color: #8E8E93 !important;
}
[data-theme="light"] .notification-close:hover {
    color: #000000 !important;
    background: #F2F2F7 !important;
}
[data-theme="light"] .notification-progress {
    background: rgba(0, 0, 0, 0.06) !important;
}

@keyframes toast-in {
    from {
        transform: translateY(-16px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
@keyframes toast-out {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-12px) scale(0.95);
        opacity: 0;
    }
}
.admin-username {
    position: relative;
    display: inline-block;
    background-image: url('/wp-content/uploads/2025/10/flame-flicker.webp');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: flameFlicker 1.5s infinite alternate;
}
@keyframes flameFlicker {
    0% {
        background-position: center;
        filter: brightness(1);
    }
    100% {
        background-position: center;
        filter: brightness(1.2);
    }
}
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    .btn:not(.site-register-btn):not(.btn-pill):not(.site-actions .btn) {
        width: 100%;
        justify-content: center;
    }
    .site-register-btn {
        width: auto !important;
        flex: none !important;
    }
}
@media (max-width: 360px) {
    .section {
        margin-bottom: 2rem;
    }
}
img.avatar {
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
img.avatar.rounded-full {
    border-radius: 50% !important;
}
.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
}
.profile-avatar img.avatar {
    width: 100%;
    height: 100%;
}
.profile-avatar .avatar-upload-btn {
    position: absolute;
    right: 4px;
    bottom: 4px;
}
@media (max-width: 480px) {
    .profile-avatar { width: 96px; height: 96px; }
}
        .hero-embla__slide[img^="slide"] {
          padding-left: 0px !important;
        }
body.modal-open {
    overflow: hidden;
}
#main_header {
    top: 0;
    left: 0;
    z-index: 161;
    backdrop-filter: none;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo-link {
    display: flex;
    width: fit-content;
    justify-content: center;
    align-items: center;
    height: 2.75rem;
    aspect-ratio: 1;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 9999px;
}
.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}
.nav-button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2.75rem;
    padding: 0 1.25rem;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.nav-button.search-button {
    padding-left: 1rem;
}
.nav-button.icon-only {
    width: 2.75rem;
    aspect-ratio: 1;
    padding: 0;
}
.mobile-bottom-nav {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #121212;
    gap: 4vw;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 4vw;
    z-index: 1000;
}
.mobile-nav-button {
    display: flex;
    width: 50%;
    justify-content: center;
    align-items: center;
    height: 2.75rem;
    padding: 0 1.25rem;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
}
.mobile-nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
}
.search-container {
    position: relative;
}
.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 0.5rem;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}
.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}
.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-right: 0.75rem;
}
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    list-style: none;
}
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}
.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}
.dropdown-menu hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}
.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.login-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2.75rem;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0 1.25rem;
    white-space: nowrap;
}
.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 0.5rem;
}
.icon {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}
:root {
    --primary-color: #3b82f6;
    --background-dark: #121212;
    --content-dark: rgba(18, 18, 18, 0.9);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-hover-bg: rgba(255, 255, 255, 0.1);
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-placeholder: rgba(255, 255, 255, 0.5);
    --radius-md: 12px;
    --radius-lg: 14px;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: var(--content-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.22);
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    width: 100%;
    max-width: 28rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
}
.close-button {
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}
.close-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transform: scale(1.05);
}
.tab-switcher {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background-color: var(--input-bg);
    border-radius: var(--radius-md);
    position: relative;
    margin-bottom: 0.75rem;
}
.tab-indicator {
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0.25rem;
    width: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: left 0.3s ease, width 0.3s ease;
}
.tab-button {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    cursor: pointer;
}
.tab-button.active {
    color: var(--text-light);
}
.tab-button svg {
    width: 1rem;
    height: 1rem;
}
.form-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.form-content form {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}
.form-content form.active {
    display: flex;
}
#forgotPasswordContainer {
    flex-direction: column;
    gap: 1.25rem;
}
#forgotPasswordContainer form {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
}
#forgotPasswordContainer form.active {
    display: flex;
}
.input-group {
    position: relative;
}
.input-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    display: block;
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--input-bg);
    border-radius: var(--radius-md);
    height: 2.75rem;
    padding: 0 0.75rem;
    transition: background-color 0.2s ease;
    border: 1px solid transparent;
}
.input-wrapper:hover {
    background-color: var(--input-hover-bg);
}
.input-wrapper:focus-within {
    background-color: var(--input-bg);
    border-color: var(--primary-color);
}
.input-wrapper svg {
    color: var(--text-placeholder);
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}
.code-inputs-container {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 1rem 0;
}
.code-box {
    width: 32px;
    height: 44px;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    outline: none;
}
.code-box:focus {
    border-color: var(--primary-color);
    background: var(--input-hover-bg);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}
.code-box::placeholder {
    color: rgba(255, 255, 255, 0.2);
}
@media (max-width: 480px) {
    .code-box {
        width: 28px;
        height: 40px;
        font-size: 1rem;
        border-radius: 6px;
    }
    .code-inputs-container {
        gap: 3px;
    }
}
@media (max-width: 380px) {
    .code-box {
        width: 24px;
        height: 36px;
        font-size: 0.9rem;
    }
    .code-inputs-container {
        gap: 2px;
    }
}
.input-field {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-light);
    font-size: 0.875rem;
}
.input-field::placeholder {
    color: var(--text-placeholder);
}


input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.text-red-500 {
    color: #ef4444;
}
.password-toggle {
    background: none;
    border: none;
    color: var(--text-placeholder);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    transition: color 0.2s;
    z-index: 10;
    margin-left: 0.5rem;
}
.password-toggle:hover {
    color: var(--text-light);
}
.password-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
}
.submit-button {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
    margin-top: 0.25rem;
    cursor: pointer;
}
.submit-button:hover {
    opacity: 0.8;
}
.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.open-login-modal {
    cursor: pointer;
}
.complaint-reason-radio:checked + span .radio-dot {
    opacity: 1 !important;
    transform: scale(1) !important;
}
.complaint-reason-label:has(.complaint-reason-radio:checked) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2), 0 0 40px rgba(249, 115, 22, 0.1) !important;
}
@media (max-width: 640px) {
    .desktop-only {
        display: none !important;
    }

    .site-title {
        font-size: clamp(1.05rem, 4.4vw, 1.25rem) !important;
        font-weight: bold;
        white-space: nowrap;
    }
    .nav-button {
        padding: 0 4vw;
        gap: 4vw;
    }
    .auth-buttons {
        gap: 4vw;
    }
    .mobile-bottom-nav {
        display: none !important;
    }
    .ls-search-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 641px) {
    .mobile-only {
        display: none !important;
    }
    .mobile-bottom-nav {
        display: none !important;
    }
}
@keyframes skeleton-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.skeleton-shimmer {
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}
.skeleton-shimmer.fade-out {
    opacity: 0;
    visibility: hidden;
}
.skeleton-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 20%,
        rgba(255, 255, 255, 0.08) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: skeleton-shimmer 2s infinite;
}
.premium-cta-section {
    padding: 1rem 0 0.5rem 0;
    width: 100%;
}
.premium-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}
@media (max-width: 1024px) {
    .premium-cta-grid {
        grid-template-columns: 1fr;
    }
}
.premium-cta-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.premium-cta-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.premium-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 150px;
    height: 150px;
}
.premium-cta-card.share-card::before {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}
.premium-cta-card.discord-card::before {
    background: radial-gradient(circle, rgba(88, 101, 242, 0.15) 0%, transparent 70%);
}
.premium-cta-card .card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}
.premium-cta-icon-box {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}
.share-card .premium-cta-icon-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.discord-card .premium-cta-icon-box {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.05));
    border: 1px solid rgba(88, 101, 242, 0.2);
}
.premium-cta-content {
    flex: 1;
    min-width: 0;
}
.premium-cta-content h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 2px;
}
.premium-cta-content p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.card-right {
    display: flex;
    gap: 0.75rem;
    z-index: 1;
}
.twitter-share-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}
.twitter-share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}
.copy-link-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 1rem;
    height: 40px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.copy-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}
.join-btn-premium {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}
.join-btn-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.join-btn-premium.discord-btn {
    border-color: rgba(88, 101, 242, 0.3);
    background: rgba(88, 101, 242, 0.1);
}
.join-btn-premium.discord-btn:hover {
    background: rgba(88, 101, 242, 0.2);
}
.join-btn-premium.instagram-btn {
    border-color: rgba(214, 41, 118, 0.3);
    background: rgba(214, 41, 118, 0.1);
}
.join-btn-premium.instagram-btn:hover {
    background: rgba(214, 41, 118, 0.2);
}
.join-btn-premium.join-team-btn {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
}
.join-btn-premium.join-team-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}
.announcement-premium {
    margin-bottom: 2rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}
.announcement-premium h3 {
    color: #ef4444;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.announcement-premium p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}
@media (max-width: 1024px) {
    .premium-cta-content p {
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) {
    .premium-cta-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .premium-cta-card {
        padding: 0.85rem 1rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    .premium-cta-icon-box {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .premium-cta-icon-box svg {
        width: 20px;
        height: 20px;
    }
    .premium-cta-content h3 {
        font-size: 0.95rem;
    }
    .premium-cta-content p {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
    }
    .card-left {
        flex: 1;
        min-width: 0;
        gap: 0.75rem;
    }
    .card-right {
        margin-left: auto;
        justify-content: flex-end;
        flex-shrink: 0;
        gap: 0.5rem;
    }
    .join-btn-premium {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    .join-btn-premium svg {
        width: 16px;
        height: 16px;
    }
    .twitter-share-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    .copy-link-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 10px;
    }
    .copy-link-btn span {
        display: none;
    }
}
/* Adult Blur - Only target images / background layers, never blur the container itself */
.adult-blur {
    position: relative;
    overflow: hidden;
}
.adult-blur:not(.unblurred) > img,
.adult-blur:not(.unblurred) img,
img.adult-blur:not(.unblurred) {
    filter: blur(16px) !important;
    transform: scale(1.15) !important;
    transition: filter 0.4s ease, transform 0.4s ease !important;
}
.adult-blur.unblurred img,
img.adult-blur.unblurred {
    filter: none !important;
    transform: none !important;
}
.adult-bg-blur.unblurred {
    filter: blur(4px) !important; 
}
.adult-cover-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 0.75rem;
}

.unblur-action-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.unblur-action-btn::before {
    content: "Görseli görüntüle";
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.unblur-action-btn:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.unblur-action-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.75) !important;
}

.unblur-action-btn:active {
    transform: scale(0.95);
}



#mega-menu-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mega-menu-column h3 {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.mega-menu-column ul li a {
    position: relative;
    padding-left: 0;
}

.mega-menu-column ul li a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(-50%) scale(0);
    transition: all 0.3s ease;
}

.mega-menu-column ul li a:hover {
    padding-left: 12px;
    color: #fff;
}

.mega-menu-column ul li a:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

@media (max-width: 640px) {
    #mega-menu-content {
        top: 8vh;
        width: 95%;
        padding: 1.5rem 1rem;
        border-radius: 1.5rem;
    }
    
    .mega-menu-column h3 {
        margin-bottom: 0.75rem;
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }

    .mega-menu-column ul li a {
        font-size: 0.8rem;
        line-height: 1.25;
    }

    .mega-menu-column ul {
        gap: 0.75rem;
        display: flex;
        flex-direction: column;
    }
}


/* ========================================
   single-manga.php - Blok 1
======================================== */
.summary-container {
        max-height: 6rem;
        -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
        transition: max-height 0.5s ease-in-out;
        padding-bottom: 15px;
    }
    .summary-container.expanded {
        max-height: 1000px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    #manga-chapters-panel {
        max-height: 20rem;
        -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        padding-bottom: 40px;
        overflow: hidden;
    }
    #manga-chapters-panel.expanded {
        max-height: 20000px;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    #comments-blur-overlay {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    #comments-blur-overlay:hover {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }
    
    #comments-content {
        animation: fadeInUp 0.6s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }



/* ========================================
   single-episode.php - Blok 1
======================================== */
html.dark {
            margin: 0 !important;
        }
        
        .containerz {
            -webkit-mask-image: linear-gradient(to bottom,black 39%,transparent 100%);
            mask-image: linear-gradient(to bottom,black 39%,transparent 100%);
        }

        .ss-gate-container {
            position: relative;
            width: 100%;
            max-width: 1050px;
            margin: 1rem auto;
            min-height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4rem 2rem;
            overflow: hidden;
            border-radius: 2rem;
            background: rgba(13, 13, 13, 0.7) !important; 
            backdrop-filter: blur(25px) saturate(180%);
            -webkit-backdrop-filter: blur(25px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
            z-index: 10;
        }

        .ss-gate-mesh {
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
            z-index: 1;
            pointer-events: none;
        }

        .ss-gate-content {
            position: relative;
            z-index: 3;
            width: 100%;
            max-width: 650px;
            text-align: center;
        }

        .ss-gate-title {
            font-size: 2.5rem;
            font-weight: 800;
            color: #fff !important;
            margin-bottom: 1.25rem;
            letter-spacing: -0.03em;
        }

        .ss-gate-icon-wrapper {
            width: 90px;
            height: 90px;
            margin: 0 auto 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 2rem;
            position: relative;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .ss-gate-container:hover .ss-gate-icon-wrapper {
            transform: translateY(-5px) scale(1.05);
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.3);
        }

        .ss-gate-icon { color: #fff; opacity: 0.9; }

        .ss-gate-message {
            font-size: 1.125rem;
            line-height: 1.8;
            color: rgba(255,255,255,0.8) !important;
            margin-bottom: 2.5rem;
            max-width: 32rem;
            margin-left: auto;
            margin-right: auto;
        }

        .ss-gate-date-card {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            padding: 1.25rem 2.5rem;
            background: rgba(255, 255, 255, 0.04) !important;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            border-radius: 1.25rem;
            margin-bottom: 3rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .ss-gate-date-card:hover {
            background: rgba(255, 255, 255, 0.08) !important;
            border-color: rgba(255, 255, 255, 0.2) !important;
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
        }


        .user-select-none {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        body {
            background: var(--bg, #000000);
            min-height: 100vh;
            color: var(--fg, #f2f2f7);
        }

        #main_header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .logo-link {
            display: flex;
            width: fit-content;
            justify-content: center;
            align-items: center;
            height: 2.75rem;
            aspect-ratio: 1;
            gap: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            border-radius: 9999px;
        }

        .site-title {
            font-size: 1.5rem;
            font-weight: bold;
            color: white;
            text-decoration: none;
        }

        .nav-button {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 2.75rem;
            padding: 0 1.25rem;
            gap: 0.75rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 9999px;
            transition: all 0.3s;
            color: white;
            text-decoration: none;
            font-weight: 500;
        }

        .nav-button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
        }

        .nav-button.search-button {
            padding-left: 1rem;
        }

        .nav-button.icon-only {
            width: 2.75rem;
            aspect-ratio: 1;
            padding: 0;
        }

        .search-container {
            position: relative;
        }

        .live-search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #1a1a1a;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 0.5rem;
            max-height: 300px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
            margin-top: 0.5rem;
        }

        .search-result-item {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            cursor: pointer;
            transition: background 0.2s;
        }

        .search-result-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .search-result-item img {
            width: 40px;
            height: 40px;
            object-fit: cover;
            border-radius: 0.25rem;
            margin-right: 0.75rem;
        }

        .dropdown {
            position: relative;
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: #1a1a1a;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 0.5rem;
            min-width: 200px;
            padding: 0.5rem 0;
            margin-top: 0.5rem;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s;
            z-index: 1000;
        }

        .dropdown.active .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-menu li {
            list-style: none;
        }

        .dropdown-menu a {
            display: block;
            padding: 0.5rem 1rem;
            color: white;
            text-decoration: none;
            transition: background 0.2s;
        }

        .dropdown-menu a:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .dropdown-menu hr {
            border: none;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin: 0.5rem 0;
        }

        .auth-buttons {
            display: flex;
            gap: 0.75rem;
            align-items: center;
        }

        .login-btn {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 2.75rem;
            gap: 0.75rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 9999px;
            transition: all 0.3s;
            color: white;
            text-decoration: none;
            font-weight: 500;
            padding: 0 1.25rem;
        }

        .login-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .user-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            margin-right: 0.5rem;
        }

        .icon {
            width: 1.5rem;
            height: 1.5rem;
            color: white;
        }

        .end-of-chapter {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            margin: 2rem auto;
            max-width: 500px;
        }

        .end-of-chapter .icon {
            width: 3rem;
            height: 3rem;
            margin: 0 auto 1rem auto;
            opacity: 0.7;
        }

        .end-of-chapter h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: white;
        }

        .end-of-chapter p {
            opacity: 0.7;
            margin: 0;
            font-size: 0.9rem;
        }

        @media (max-width: 640px) {
            .desktop-only {
                display: none !important;
            }

            .site-title {
                font-size: clamp(1.05rem, 4.4vw, 1.25rem) !important;
                font-weight: bold;
                white-space: nowrap;
            }
        }

        @media (max-width: 390px) {
            .site-title {
                font-size: clamp(0.92rem, 3.9vw, 1.05rem) !important;
            }

            .nav-button {
                padding: 0 4vw;
                gap: 4vw;
            }

            .auth-buttons {
                gap: 4vw;
            }
            
        }
        #pages {
            cursor: url('https://api.iconify.design/uim:arrow-circle-down.svg?color=red&width=40'), auto;
        }


        @media (min-width: 641px) {
            .mobile-only {
                display: none !important;
            }
        }

        .chapters-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 1000;
            display: none; 
            align-items: center;
            justify-content: center;
        }
        .chapters-modal {
            background-color: #18181b;
            border-radius: 1rem;
            width: 90%;
            max-width: 600px; 
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .chapters-modal-header {
            padding: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .chapters-modal-body {
            padding: 1rem;
            overflow-y: auto;
        }
        .close-modal-btn {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
        }
        footer { position: relative; z-index: 60; }
        #comments-blur-overlay {
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }
        #comments-blur-overlay:hover {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }
        #comments-content { animation: fadeInUp 0.4s ease-out; }
        @keyframes fadeInUp { from { opacity:0; transform: translateY(10px);} to {opacity:1; transform: translateY(0);} }
        .comments-section-wrapper { display: block; }
        #comments-blur-overlay, #comments-content { width: 100%; margin: 0; }
        @media (max-width: 640px) {
            .full-bleed-mobile { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
            #comments-blur-overlay, #comments-content { width: 100% !important; }
            section.full-bleed-mobile { padding-left: 12px !important; padding-right: 12px !important; }
        }
        
        @keyframes slide-up {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }
        .animate-slide-up {
            animation: slide-up 0.3s ease-out;
        }
        .rounded-large { border-radius: 14px; }
        .shadow-small { box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.02), 0px 2px 10px 0px rgba(0, 0, 0, 0.06), 0px 0px 1px 0px rgba(0, 0, 0, 0.3); }
        .h-divider { height: 1px; }
        .toggle-track { background-color: rgba(255,255,255,0.2); transition: background-color .25s ease; }
        .toggle-thumb { transition: all .25s ease; }
        .toggle-track[data-selected="true"] { background-color: #3b82f6; }
        .toggle-track[data-selected="true"] .toggle-thumb { transform: translateX(16px); }
        .toggle-track[data-pressed="true"] .toggle-thumb { width: 1.25rem; }
        #auto-scroll-speed { touch-action: none; pointer-events: auto; position: relative; z-index: 10; -webkit-appearance: none; height: 6px; background: rgba(255,255,255,0.2); border-radius: 9999px; }
        #auto-scroll-speed::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 9999px; background: #fff; border: 2px solid #3b82f6; }
        #auto-scroll-speed::-moz-range-thumb { width: 18px; height: 18px; border-radius: 9999px; background: #fff; border: 2px solid #3b82f6; }
        :root {
            --panel-bg: #121212;
            --panel-border: rgba(255, 255, 255, 0.1);
            --date-text: rgba(255, 255, 255, 0.5);
            --chapter-num-bg: rgba(255, 255, 255, 0.1);
        }
        .chapter-panel-closed { bottom: -100% !important; opacity: 0 !important; }
        .chapter-panel-open { bottom: 82px !important; opacity: 1 !important; }
        @media (max-width: 639px) {
            .chapter-panel-open { bottom: 110px !important; opacity: 1 !important; }
        }
        .protected-image-container img {
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }
        .protected-image-container img.loaded {
            opacity: 1;
        }
        .fade-in {
            animation: fadeIn 0.5s ease-in-out forwards;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }



.comment-system {
    color: white;
}


.reaction-btn.selected {
    border-color: #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.reaction-btn.selected .text-slate-400 {
    color: #93c5fd !important;
}

.reaction-btn:disabled {
    cursor: not-allowed;
    transform: none !important;
}

.reaction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reaction-btn:active {
    transform: translateY(0);
}


@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-success {
    animation: pulse 0.5s ease-in-out;
}






.comment-system .avatar-container {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-system .avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.comment-system .comment-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    resize: none;
    transition: all 0.3s ease;
}

.comment-system .comment-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.comment-system .comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.comment-system .btn-primary {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-system .btn-primary:hover {
    background: #1d4ed8;
}

.comment-system .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.comment-system .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.comment-system .login-prompt {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.comment-system .animate-fade-in {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 640px) {
    .reaction-btn {
        min-height: 80px;
        padding: 12px;
    }
    
    .reaction-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .reaction-btn span {
        font-size: 10px;
    }
    
    .comment-system .comment-form .form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .comment-system .login-prompt .button-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}


.admin-tag-wrapper{background-color:rgba(168,85,247,0.3);padding:.15rem .6rem;border-radius:9999px;border:1px solid rgba(168,85,247,0.5);display:inline-flex;align-items:center;gap:.2rem;align-self:center;box-shadow:0 0 8px rgba(216,180,254,.5),0 0 15px rgba(168,85,247,.3)}
.admin-tag-text{font-weight:700;background-image:linear-gradient(to right,#C084FC,#F472B6,#FBCFE8);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:.6rem;line-height:1;display:block}
@media (min-width:640px){.admin-tag-text{font-size:.7rem}}
.crown-icon{width:.75rem;height:.75rem;color:#E9D5FF;fill:currentColor;flex-shrink:0}
.vip-tag-wrapper{background-color:rgba(245,158,11,.25);padding:.15rem .6rem;border-radius:9999px;border:1px solid rgba(245,158,11,.5);display:inline-flex;align-items:center;gap:.25rem;align-self:center;box-shadow:0 0 8px rgba(253,230,138,.5),0 0 15px rgba(245,158,11,.3)}
.vip-tag-text{font-weight:700;background-image:linear-gradient(to right,#FDE68A,#FBBF24,#F59E0B);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:.6rem;line-height:1;display:block}





.comment-section-container { width: 100%; margin: 0 auto; }


.reaction-btn {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(71, 85, 105, 0.3) !important;
}
.reaction-btn:hover {
    transform: translateY(-2px);
}


.reaction-btn[data-reaction="kawaii"]:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.5) !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}
.reaction-btn[data-reaction="kawaii"].selected {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(16, 185, 129, 0.3) 100%);
    border-color: rgba(34, 197, 94, 0.7) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5), 0 0 40px rgba(16, 185, 129, 0.3);
}
.reaction-btn[data-reaction="kawaii"].selected:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.4) 0%, rgba(16, 185, 129, 0.4) 100%);
    border-color: rgba(34, 197, 94, 0.9) !important;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.6), 0 0 50px rgba(16, 185, 129, 0.4);
}


.reaction-btn[data-reaction="sugoi"]:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}
.reaction-btn[data-reaction="sugoi"].selected {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.3) 100%);
    border-color: rgba(239, 68, 68, 0.7) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5), 0 0 40px rgba(220, 38, 38, 0.3);
}
.reaction-btn[data-reaction="sugoi"].selected:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4) 0%, rgba(220, 38, 38, 0.4) 100%);
    border-color: rgba(239, 68, 68, 0.9) !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6), 0 0 50px rgba(220, 38, 38, 0.4);
}


.reaction-btn[data-reaction="efsane"]:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.5) !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}
.reaction-btn[data-reaction="efsane"].selected {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(147, 51, 234, 0.3) 100%);
    border-color: rgba(168, 85, 247, 0.7) !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 40px rgba(147, 51, 234, 0.3);
}
.reaction-btn[data-reaction="efsane"].selected:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(147, 51, 234, 0.4) 100%);
    border-color: rgba(168, 85, 247, 0.9) !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6), 0 0 50px rgba(147, 51, 234, 0.4);
}


.reaction-btn[data-reaction="komik"]:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}
.reaction-btn[data-reaction="komik"].selected {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.3) 100%);
    border-color: rgba(59, 130, 246, 0.7) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(37, 99, 235, 0.3);
}
.reaction-btn[data-reaction="komik"].selected:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(37, 99, 235, 0.4) 100%);
    border-color: rgba(59, 130, 246, 0.9) !important;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6), 0 0 50px rgba(37, 99, 235, 0.4);
}


.reaction-btn[data-reaction="uzucu"]:hover {
    background: rgba(236, 72, 153, 0.3);
    border-color: rgba(236, 72, 153, 0.5) !important;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}
.reaction-btn[data-reaction="uzucu"].selected {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3) 0%, rgba(219, 39, 119, 0.3) 100%);
    border-color: rgba(236, 72, 153, 0.7) !important;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5), 0 0 40px rgba(219, 39, 119, 0.3);
}
.reaction-btn[data-reaction="uzucu"].selected:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.4) 0%, rgba(219, 39, 119, 0.4) 100%);
    border-color: rgba(236, 72, 153, 0.9) !important;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.6), 0 0 50px rgba(219, 39, 119, 0.4);
}


.reaction-btn[data-reaction="plot_twist"]:hover {
    background: rgba(234, 179, 8, 0.3);
    border-color: rgba(234, 179, 8, 0.5) !important;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}
.reaction-btn[data-reaction="plot_twist"].selected {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.3) 0%, rgba(202, 138, 4, 0.3) 100%);
    border-color: rgba(234, 179, 8, 0.7) !important;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.5), 0 0 40px rgba(202, 138, 4, 0.3);
}
.reaction-btn[data-reaction="plot_twist"].selected:hover {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.4) 0%, rgba(202, 138, 4, 0.4) 100%);
    border-color: rgba(234, 179, 8, 0.9) !important;
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.6), 0 0 50px rgba(202, 138, 4, 0.4);
}


.reaction-btn.selected .text-slate-400 {
    color: rgb(226, 232, 240) !important;
}
.reaction-btn.selected svg {
    filter: drop-shadow(0 0 8px currentColor);
}


.level-badge-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}
.level-badge {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}
.user-equipped-badges {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

.admin-tag-wrapper{
    background-color: rgba(168,85,247,0.3);
    padding: 0.15rem 0.6rem;
    border-radius:9999px;
    border:1px solid rgba(168,85,247,0.5);
    display:inline-flex;align-items:center;gap:0.2rem;align-self:center;vertical-align:middle;
    box-shadow:0 0 8px rgba(216,180,254,0.5),0 0 15px rgba(168,85,247,0.3);
}
.admin-tag-text{
    font-weight:700;background-image:linear-gradient(to right,#C084FC,#F472B6,#FBCFE8);
    -webkit-background-clip:text;background-clip:text;color:transparent;font-size:.6rem;line-height:1;display:block;
}
@media (min-width:640px){.admin-tag-text{font-size:.7rem;}}
.crown-icon{width:.75rem;height:.75rem;color:#E9D5FF;fill:currentColor;flex-shrink:0}

.vip-tag-wrapper{
    background-color: rgba(245, 158, 11, 0.25); 
    padding: 0.15rem 0.6rem;
    border-radius:9999px;
    border:1px solid rgba(245, 158, 11, 0.5);
    display:inline-flex;align-items:center;gap:0.25rem;align-self:center;
    box-shadow:0 0 8px rgba(253, 230, 138, 0.5), 0 0 15px rgba(245, 158, 11, 0.3);
}
.vip-tag-text{
    font-weight:700;
    background-image:linear-gradient(to right,#FDE68A,#FBBF24,#F59E0B); 
    -webkit-background-clip:text;background-clip:text;color:transparent;font-size:.6rem;line-height:1;display:block;
}
@media (min-width:640px){.vip-tag-text{font-size:.7rem;}}



.chapter-item.is-read {
    transition: all 0.2s ease;
}
.chapter-item.is-read:hover {
    background-color: var(--surface-2, rgba(255, 255, 255, 0.08));
}

/* Chapter item active/current state & Kaldığın Yer badge */
.chapter-item.is-current .chapter-number {
    background: rgba(var(--brand-rgb, 72, 189, 130), 0.15) !important;
    color: var(--brand, #48BD82) !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .chapter-item.is-current .chapter-number,
body.light-theme .chapter-item.is-current .chapter-number {
    background: rgba(var(--brand-rgb, 37, 99, 235), 0.12) !important;
    color: var(--brand, #2563eb) !important;
}
.last-read-badge,
.cover-badge--up.last-read-badge {
    background: var(--brand, #48BD82) !important;
    color: var(--on-brand, #ffffff) !important;
    font-weight: 700 !important;
}

/* Reading Progress Card (.series-reading) */
.series-reading {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-1, #16181a);
    border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}
.series-reading-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
}
.series-reading-ring > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.series-reading-ring circle {
    fill: none;
    stroke-width: 3.5;
}
.series-reading-ring-track {
    stroke: var(--surface-3, rgba(255, 255, 255, 0.1));
}
.series-reading-ring-fill {
    stroke: var(--brand, #48BD82);
    stroke-linecap: round;
    stroke-dasharray: var(--pct, 0) 100;
    transition: stroke-dasharray 0.4s ease;
}
.series-reading-ring-value {
    position: relative;
    color: var(--fg, #ffffff);
    font-size: 13px;
    font-weight: 700;
}
.series-reading-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.series-reading-title {
    color: var(--fg, #ffffff);
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}
.series-reading-meta {
    color: var(--fg-3, rgba(255, 255, 255, 0.5));
    font-size: 13px;
    margin: 0;
}

/* Light Theme Overrides for .series-reading */
html[data-theme="light"] .series-reading,
body.light-theme .series-reading {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}
html[data-theme="light"] .series-reading-ring-track,
body.light-theme .series-reading-ring-track {
    stroke: #E5E7EB !important;
}
html[data-theme="light"] .series-reading-ring-value,
body.light-theme .series-reading-ring-value,
html[data-theme="light"] .series-reading-title,
body.light-theme .series-reading-title {
    color: #111827 !important;
}
html[data-theme="light"] .series-reading-meta,
body.light-theme .series-reading-meta {
    color: #6B7280 !important;
}

/* Chapter List Container Styling (Dark & Light) */
.chapter-list {
    margin-top: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--surface-1, #16181a);
    border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}
html[data-theme="light"] .chapter-list,
body.light-theme .chapter-list {
    background: #F2F2F7 !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}


select, input {
    color-scheme: dark;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

select option {
    background-color: #1a1a1a;
    color: white;
}


input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

input[type="checkbox"]:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 641px) and (max-width: 714px) {
    .site-title {
        font-size: 1.1rem !important;
    }
    .nav-button, .login-btn {
        padding: 0 0.6rem !important;
        gap: 0.4rem !important;
        font-size: 0.85rem !important;
    }
}



#edit-profile-modal {
    --modal-bg: rgba(24, 24, 27, 0.75);
    --modal-border: rgba(255, 255, 255, 0.1);
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --text-muted: #9ca3af;
    --input-bg: rgba(255, 255, 255, 0.03);
}

#edit-profile-modal.modal-container { 
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
    backdrop-filter: blur(8px); 
    align-items: center; 
    justify-content: center; 
}

#edit-profile-modal.modal-container.active { 
    display: flex; 
}

#edit-profile-modal .modal-content { 
    background: var(--modal-bg); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin: auto; 
    padding: 0; 
    border: 1px solid var(--modal-border); 
    width: 90%; 
    max-width: 500px; 
    border-radius: 1.25rem; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: psm-modal-pop 0.3s ease-out; 
    max-height: 90vh; 
    overflow-y: auto; 
    color: white;
}

@keyframes psm-modal-pop { 
    0% { transform: translateY(20px); opacity: 0; } 
    100% { transform: translateY(0); opacity: 1; } 
}

#edit-profile-modal .modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1.25rem 1.5rem; 
    border-bottom: 1px solid var(--modal-border); 
}

#edit-profile-modal .modal-header h3 { 
    margin: 0; 
    font-size: 1.25rem; 
    font-weight: 700;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#edit-profile-modal .close-modal { 
    color: var(--text-muted); 
    font-size: 1.5rem; 
    cursor: pointer; 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--modal-border); 
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#edit-profile-modal .close-modal:hover { 
    color: white; 
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

#edit-profile-modal .edit-form { padding: 1.5rem; }

#edit-profile-modal .form-group { margin-bottom: 1.25rem; }

#edit-profile-modal .form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    color: #e5e7eb; 
    font-size: 0.875rem;
    font-weight: 600; 
}

#edit-profile-modal .form-group input, 
#edit-profile-modal .form-group textarea { 
    width: 100%; 
    background-color: var(--input-bg); 
    border: 1px solid var(--modal-border); 
    color: white; 
    padding: 0.75rem 1rem; 
    border-radius: 0.75rem; 
    transition: all 0.2s; 
    font-size: 0.9375rem;
}

#edit-profile-modal .form-group input:focus, 
#edit-profile-modal .form-group textarea:focus { 
    outline: none; 
    border-color: var(--accent-blue); 
    background-color: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

#edit-profile-modal .form-divider { 
    border: none; 
    border-top: 1px solid var(--modal-border); 
    margin: 1.75rem 0; 
}

#edit-profile-modal .section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#edit-profile-modal .section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--modal-border);
}

#edit-profile-modal .setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--modal-border);
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

#edit-profile-modal .setting-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

#edit-profile-modal .setting-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

#edit-profile-modal .setting-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#edit-profile-modal .setting-text span {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
}

#edit-profile-modal .setting-text small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

#edit-profile-modal .switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

#edit-profile-modal .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#edit-profile-modal .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border-radius: 24px;
}

#edit-profile-modal .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#edit-profile-modal .switch input:checked + .slider {
    background-color: var(--accent-blue);
}

#edit-profile-modal .switch input:focus + .slider {
    box-shadow: 0 0 1px var(--accent-blue);
}

#edit-profile-modal .switch input:checked + .slider:before {
    transform: translateX(20px);
}

#edit-profile-modal .form-actions { 
    display: flex; 
    justify-content: flex-end; 
    gap: 0.75rem; 
    margin-top: 2rem; 
}

#edit-profile-modal .cancel-btn, 
#edit-profile-modal .save-btn { 
    padding: 0.75rem 1.5rem; 
    border: none; 
    border-radius: 0.75rem; 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 0.875rem;
    transition: all 0.2s; 
}

#edit-profile-modal .cancel-btn { 
    background-color: rgba(255,255,255,0.05); 
    color: white; 
    border: 1px solid var(--modal-border);
}

#edit-profile-modal .save-btn { 
    background-color: var(--accent-blue); 
    color: white; 
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#edit-profile-modal .cancel-btn:hover { background-color: rgba(255,255,255,0.1); }

#edit-profile-modal .save-btn:hover { 
    background-color: var(--accent-blue-hover); 
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

#edit-profile-modal .save-btn:active { transform: translateY(0); }

#edit-profile-modal .password-section {
    background: rgba(59, 130, 246, 0.03);
    border: 1px dashed rgba(59, 130, 246, 0.2);
    padding: 1.25rem;
    border-radius: 1rem;
    margin-top: 1rem;
}

#edit-profile-modal .hint-box {
    background: rgba(245, 158, 11, 0.05);
    border-left: 3px solid #f59e0b;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: #fcd34d;
}


.badge-card-equipped,
.showcase-slot-box[data-badge-id]:not([data-badge-id="0"]) {
    border-color: #fbbf24 !important;
    background-color: rgba(245, 158, 11, 0.12) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.12) !important;
}
.badge-btn-remove {
    background-color: #fbbf24 !important;
    color: #09090b !important;
    font-weight: 700 !important;
}
.badge-btn-remove:hover {
    background-color: #fcd34d !important;
}
.badge-pill-vitrin {
    background-color: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}
