/* ==========================================================================
   OriginRealm Series Page Stylesheet
   Route Scope: /series/{identifier} (series/show.blade.php and its partials)
   Moved from originrealm.bundle.css and light-theme.css so other pages no
   longer download it. Layout and dark theme base styles stay in
   public/css/series-details.css.
   Architecture: Zero monolithic dependency, colocated dark/light theming.
   ========================================================================== */

.community-rating-qualified {
    color: #fbbf24 !important;
}

.community-rating-unqualified {
    color: #94a3b8 !important;
}

[data-theme="light"] .alt-title-primary,
[data-theme="light"] #alt-title-primary {
    color: #475569 !important;
}

[data-theme="light"] .alt-title-primary:hover,
[data-theme="light"] #alt-title-primary:hover {
    color: #3730a3 !important;
}

[data-theme="light"] .alt-title-toggle {
    background: rgba(79, 70, 229, 0.10) !important;
    border-color: rgba(79, 70, 229, 0.22) !important;
    color: #3730a3 !important;
}

[data-theme="light"] .alt-title-toggle:hover {
    background: rgba(79, 70, 229, 0.20) !important;
    border-color: rgba(79, 70, 229, 0.4) !important;
    color: #1e293b !important;
}

[data-theme="light"] .alt-title-menu,
[data-theme="light"] #alt-title-menu {
    background: #edf2f7 !important;
    border: 1px solid rgba(79, 70, 229, 0.25) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14) !important;
}

[data-theme="light"] .alt-title-menu-item,
[data-theme="light"] #alt-title-menu button {
    color: #334155 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .alt-title-menu-item:hover,
[data-theme="light"] #alt-title-menu button:hover {
    background: rgba(79, 70, 229, 0.08) !important;
    color: #1e293b !important;
}

[data-theme="light"] .series-info-grid {
    border-top-color: rgba(15, 23, 42, 0.10) !important;
    border-bottom-color: rgba(15, 23, 42, 0.10) !important;
}

[data-theme="light"] .series-info-grid > div > span:first-child,
[data-theme="light"] .info-item-label {
    color: #475569 !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
}

[data-theme="light"] .series-info-grid > div > span:last-child,
[data-theme="light"] .info-item-value,
[data-theme="light"] .community-rating-count {
    color: #334155 !important;
    font-weight: 700 !important;
}

[data-theme="light"] #community-rating {
    color: #b45309 !important;
}

[data-theme="light"] .series-info-grid a,
[data-theme="light"] .series-info-link {
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .series-info-grid > div > span:not(:first-child):not(.status-dot),
[data-theme="light"] .series-info-grid > div > div > span:last-child {
    color: #1e293b !important;
}

[data-theme="light"] .series-info-grid a:hover,
[data-theme="light"] .series-info-link:hover {
    color: #1e3a8a !important;
}

[data-theme="light"] .series-chapter-count-btn {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #4338ca !important;
    padding: 0 !important;
    box-shadow: none !important;
}

[data-theme="light"] .series-words-count-btn {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #4338ca !important;
    padding: 0 !important;
    box-shadow: none !important;
}

[data-theme="light"] .series-info-report-btn,
[data-theme="light"] .series-info-report-link {
    background: #edf2f7 !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    color: #4338ca !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .series-chapter-count-btn:hover,
[data-theme="light"] .series-words-count-btn:hover {
    background: transparent !important;
    border-color: rgba(79, 70, 229, 0.32) !important;
}

[data-theme="light"] .series-chapter-count-btn:hover {
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.10) !important;
}

[data-theme="light"] .series-words-count-btn:hover {
    color: #312e81 !important;
    box-shadow: none !important;
}

[data-theme="light"] .series-info-report-btn:hover,
[data-theme="light"] .series-info-report-link:hover {
    background: #dbe4ed !important;
    border-color: rgba(79, 70, 229, 0.28) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.10) !important;
}

[data-theme="light"] .series-chapter-menu,
[data-theme="light"] .series-words-menu {
    background: #edf2f7 !important;
    border: 1px solid rgba(79, 70, 229, 0.25) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14) !important;
}

[data-theme="light"] .series-chapter-menu-row,
[data-theme="light"] .series-words-menu-row {
    color: #1e293b !important;
    border-bottom-color: rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .series-chapter-menu-label,
[data-theme="light"] .series-words-menu-label {
    color: #64748b !important;
}

[data-theme="light"] .series-chapter-menu-value,
[data-theme="light"] .series-words-menu-value {
    color: #4338ca !important;
}

[data-theme="light"] .series-summary-block h2,
[data-theme="light"] .series-detail-meta-col h2,
[data-theme="light"] .summary-heading {
    color: #1e293b !important;
    font-weight: 800 !important;
}

[data-theme="light"] .details-source-badge {
    background: #dbe4ed !important;
    color: #1f2937 !important;
    border: 1px solid rgba(15, 23, 42, 0.16) !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06) !important;
    font-weight: 800 !important;
}

[data-theme="light"] .details-source-badge-official {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #047857 !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

[data-theme="light"] .details-source-badge-translated {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #1d4ed8 !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}

[data-theme="light"] .details-source-badge-mtl {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #b45309 !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}

[data-theme="light"] .details-source-badge-raw {
    background: rgba(139, 92, 246, 0.12) !important;
    color: #6d28d9 !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
}

[data-theme="light"] .details-source-badge-user {
    background: transparent !important;
    color: #475569 !important;
    border-color: #c7cfda !important;
    box-shadow: none !important;
}

[data-theme="light"] .description-container {
    background: transparent !important;
    border: none !important;
}

[data-theme="light"] .description-overlay {
    background: linear-gradient(transparent, rgba(237, 242, 247, 0.95)) !important;
}

[data-theme="light"] .read-more-btn {
    background: #4f46e5 !important;
    border: 1px solid #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35) !important;
}

[data-theme="light"] .series-genre-pills {
    gap: 0.55rem !important;
}

[data-theme="light"] .series-genre-pill {
    background: #e0e7ff !important;
    color: #312e81 !important;
    border: 1px solid rgba(79, 70, 229, 0.22) !important;
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.08) !important;
}

[data-theme="light"] .series-genre-pill:hover {
    background: #c7d2fe !important;
    color: #1e1b4b !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.12) !important;
}

[data-theme="light"] .cover-credit-text,
[data-theme="light"] .series-detail-cover-col p {
    color: #334155 !important;
}

[data-theme="light"] .series-rate-label,
[data-theme="light"] #rating-stars .rating-star {
    color: #d97706 !important;
    text-shadow: 0 1px 2px rgba(180, 83, 9, 0.18) !important;
}

[data-theme="light"] #rating-value {
    color: #475569 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .favorite-btn-add {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
}

[data-theme="light"] .favorite-btn-remove {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="light"] .lib-status-badge {
    background: #dde3ea !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    color: #1e293b !important;
    font-weight: 700 !important;
}

[data-theme="light"] .lib-dropdown {
    background: #edf2f7 !important;
    border: 1px solid rgba(79, 70, 229, 0.25) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14) !important;
}

[data-theme="light"] .lib-dropdown-item {
    color: #334155 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    font-weight: 700 !important;
}

[data-theme="light"] .lib-dropdown-item.lib-status-reading {
    background: rgba(59, 130, 246, 0.10) !important;
    color: #1d4ed8 !important;
}

[data-theme="light"] .lib-dropdown-item.lib-status-completed {
    background: rgba(16, 185, 129, 0.10) !important;
    color: #047857 !important;
}

[data-theme="light"] .lib-dropdown-item.lib-status-plan {
    background: rgba(139, 92, 246, 0.10) !important;
    color: #6d28d9 !important;
}

[data-theme="light"] .lib-dropdown-item.lib-status-hold {
    background: rgba(245, 158, 11, 0.10) !important;
    color: #b45309 !important;
}

[data-theme="light"] .lib-dropdown-item.lib-status-dropped {
    background: rgba(239, 68, 68, 0.10) !important;
    color: #b91c1c !important;
}

[data-theme="light"] .lib-dropdown-item:hover {
    background: rgba(79, 70, 229, 0.08) !important;
    color: #1e293b !important;
}

[data-theme="light"] .lib-chapter-row {
    background: #dde3ea !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
}

[data-theme="light"] .lib-ch-btn {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #334155 !important;
}

[data-theme="light"] .lib-ch-btn:hover {
    background: rgba(79, 70, 229, 0.14) !important;
    color: #1e293b !important;
}

[data-theme="light"] .lib-ch-label {
    color: #64748b !important;
}

[data-theme="light"] .lib-ch-input {
    color: #1e293b !important;
}

[data-theme="light"] #share-menu {
    background: #edf2f7 !important;
    border: 1px solid rgba(79, 70, 229, 0.25) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14) !important;
}

[data-theme="light"] #share-menu a,
[data-theme="light"] #share-menu button {
    color: #334155 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] #share-menu a:hover,
[data-theme="light"] #share-menu button:hover {
    background: rgba(79, 70, 229, 0.08) !important;
    color: #1e293b !important;
}

[data-theme="light"] .series-chapters-shell {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

[data-theme="light"] .chapters-header-controls h2 {
    color: #1e293b !important;
}

[data-theme="light"] .chapters-header-controls p {
    color: #64748b !important;
}

[data-theme="light"] .series-owner-banner {
    background: #ecfdf5 !important;
    border-color: rgba(16, 185, 129, 0.24) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.08) !important;
}

[data-theme="light"] .series-owner-banner-text {
    color: #14532d !important;
}

[data-theme="light"] .series-owner-banner-label {
    color: #047857 !important;
}

[data-theme="light"] .lang-stream-tab {
    background: #dde3ea !important;
    color: #64748b !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .lang-stream-tab:hover {
    background: #dbe4ed !important;
    color: #1e293b !important;
    border-color: rgba(79, 70, 229, 0.3) !important;
}

[data-theme="light"] .lang-stream-tab .lang-tab-badge {
    background: rgba(15, 23, 42, 0.08) !important;
    color: inherit !important;
}

[data-theme="light"] .chapters-count-badge {
    background: #e0e7ff !important;
    color: #312e81 !important;
    border-color: rgba(79, 70, 229, 0.22) !important;
}

[data-theme="light"] .chapters-studio-btn {
    background: #e0e7ff !important;
    color: #312e81 !important;
    border-color: rgba(79, 70, 229, 0.24) !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.10) !important;
}

[data-theme="light"] .chapters-studio-btn:hover {
    background: #c7d2fe !important;
    color: #1e1b4b !important;
    border-color: rgba(79, 70, 229, 0.35) !important;
}

[data-theme="light"] .chapters-upload-btn {
    color: #ffffff !important;
}

[data-theme="light"] .chapter-notice {
    color: #334155 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .chapter-notice-classic {
    background: rgba(254, 243, 199, 0.75) !important;
    border-color: rgba(217, 119, 6, 0.24) !important;
}

[data-theme="light"] .chapter-notice-creator {
    background: rgba(224, 231, 255, 0.75) !important;
    border-color: rgba(79, 70, 229, 0.22) !important;
}

[data-theme="light"] .chapter-notice-tracking {
    background: rgba(219, 234, 254, 0.75) !important;
    border-color: rgba(37, 99, 235, 0.22) !important;
}

[data-theme="light"] .chapter-notice-text,
[data-theme="light"] .chapter-notice-owner {
    color: #334155 !important;
}

[data-theme="light"] .chapter-notice-label {
    color: #1e3a8a !important;
}

[data-theme="light"] .chapters-filter-search {
    background: #dde3ea !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
}

[data-theme="light"] #chapterSearchInput {
    color: #1e293b !important;
}

[data-theme="light"] #chapterSearchInput::placeholder {
    color: #64748b !important;
}

[data-theme="light"] #chapterSortToggleBtn {
    background: #dde3ea !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    color: #334155 !important;
}

[data-theme="light"] #chapterSortToggleBtn:hover {
    background: #d8e2ed !important;
    color: #1e293b !important;
}

[data-theme="light"] .ch-row-item {
    background: #dde3ea !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .ch-row-item:hover {
    background: #d8e2ed !important;
    border-color: rgba(79, 70, 229, 0.4) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .ch-main-content,
[data-theme="light"] .ch-title-row {
    color: #1e293b !important;
}

[data-theme="light"] .ch-title-text,
[data-theme="light"] .ch-row-item .ch-title,
[data-theme="light"] .ch-row-item a:not(.ch-btn-read) {
    color: #1e293b !important;
}

[data-theme="light"] .ch-title-text {
    font-weight: 700 !important;
}

[data-theme="light"] .ch-date,
[data-theme="light"] .ch-date-text {
    color: #475569 !important;
}

[data-theme="light"] .ch-badge-num {
    background: #dbeafe !important;
    color: #1e3a8a !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
}

[data-theme="light"] .chapters-empty-state {
    background: rgba(226, 232, 240, 0.65) !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
}

[data-theme="light"] .chapters-empty-text {
    color: #475569 !important;
}

[data-theme="light"] .similar-series-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

[data-theme="light"] .similar-series-heading {
    color: #1e293b !important;
}

[data-theme="light"] .similar-series-arrow {
    background: transparent !important;
    border-color: #c7cfda !important;
    color: #475569 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .similar-series-arrow:hover:not(:disabled) {
    background: rgba(79, 70, 229, 0.06) !important;
    border-color: rgba(79, 70, 229, 0.3) !important;
    color: #312e81 !important;
}

[data-theme="light"] .sim-card {
    background: #dde3ea !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .sim-card:hover {
    border-color: rgba(79, 70, 229, 0.4) !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10) !important;
}

[data-theme="light"] .sim-card-title {
    color: #1e293b !important;
}

[data-theme="light"] .sim-card-type,
[data-theme="light"] .sim-card-meta {
    color: #475569 !important;
}

[data-theme="light"] .sim-card-img-wrap {
    background: #d0dbe6 !important;
}
