
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-red: #2f98af;
    --primary-red-hover: #2f98af;
    --bg-page: #14151b;          
    --text-main: #f0f2f5;       
    --text-muted: #8e95a5;       
    --chip-bg: #262837;          
    --chip-border: #35394d;     
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --accent-blue-title: #2f98af;
}

body {
    font-family: var(--font-main);
    background-color: #14151b;
    color: var(--text-main);
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.user-settings-container{
    margin-top: 50px;
}
.category-container{
    margin-top: 50px;
}

.top-search-dropdown {
    display: none;
    background: #191a24;
    border-bottom: 1px solid #2b2d3c;
    padding: 12px 0;
}
.top-search-inner {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}
.top-search-inner input {
    flex: 1;
    height: 42px;
    padding: 0 16px;
    font-size: 14px;
    border: 1px solid #323548;
    background: #232534;
    color: #ffffff;
    outline: none;
    border-radius: 3px 0 0 3px;
}
.top-search-inner input::placeholder {
    color: #7b8196;
}
.top-search-inner button {
    background: #2f98af;
    color: #fff;
    border: none;
    padding: 0 28px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    transition: background .2s;
}
.top-search-inner button:hover {
    background: #2f98af;
}

.main-header {
    background: #2f98af;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 100;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    user-select: none;
}
.brand-logo img {
    height: 20px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
}
.nav-menu a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: opacity .2s;
}
.nav-menu a:hover {
    opacity: 0.85;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-search-round {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: #2f98af;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform .15s;
}
.btn-search-round:hover {
    transform: scale(1.05);
}
.btn-search-round i{
    font-size: 20px;
}
.btn-advanced {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-left: 2px;
}

.mobile-header-btns {
    display: none;
    align-items: center;
    gap: 12px;
}
.btn-mobile-search {
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: #2f98af;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.btn-hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.btn-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}

.sub-bar {
    background: #1d1e28;
    border-bottom: 1px solid #2b2d3c;
    height: 60px;
    line-height: 60px;
    position: relative;
    z-index: 50;
}
.sub-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.sub-links {
    display: flex;
    gap: 26px;
}
.sub-links a {
    font-size: 13px;
    font-weight: 800;
    color: #a4abbd;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color .2s;
}
.sub-links a:hover {
    color: #2f98af;
}

.guest-auth-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1.5px solid #4a5065;
    font-size: 13px;
    font-weight: 700;
    color: #e2e5ec;
    background: transparent;
    cursor: pointer;
    transition: all .2s;
    text-transform: uppercase;
    line-height: 1;
}
.btn-pill:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #14151b;
}

.user-profile-menu-wrap {
    position: relative;
}
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 10px 4px 5px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.user-profile-btn:hover,
.user-profile-btn.active {
    background: #272a39;
    border-color: #3b3f55;
}
.user-avatar-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    line-height: 35px;
    color: white;
    font-weight: 600;
}
.user-display-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #eef1f6;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-chevron-arrow {
    width: 12px;
    height: 12px;
    fill: #8e95a5;
    transition: transform .25s ease;
}
.user-profile-btn.active .user-chevron-arrow {
    transform: rotate(180deg);
}
.user-profile-btn i{
    color: #8e95a5;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #1f212d;
    border: 1px solid #323547;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.55);
    overflow: hidden;
    z-index: 1000;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #c9cedb;
    transition: background .15s, color .15s;
    line-height: 1;
}
.dropdown-item:hover {
    background: #272a39;
    color: #2f98af;
}
.dropdown-item:hover svg {
    stroke: #2f98af;
}
.dropdown-divider {
    height: 1px;
    background: #2b2e3e;
    margin: 4px 0;
}
.dropdown-item.logout-item {
    color: #ff6b7b;
}
.dropdown-item.logout-item svg {
    stroke: #ff6b7b;
}
.dropdown-item.logout-item:hover {
    background: #331f24;
    color: #ff4d61;
}

.login-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.login-modal-card {
    background: #1e202c;
    width: 100%;
    max-width: 380px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid #34374a;
    overflow: hidden;
}
.login-modal-head {
    background: #2f98af;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.login-modal-head h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}
.login-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.login-modal-body {
    padding: 22px 20px;
}
.input-form-group {
    margin-bottom: 15px;
}
.input-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #a4abbd;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.input-form-group input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    background: #14151b;
    border: 1px solid #333649;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}
.input-form-group input:focus {
    border-color: #2f98af;
}
.btn-submit-login {
    width: 100%;
    height: 42px;
    background: #2f98af;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
}
.btn-submit-login:hover {
    background: #2f98af;
}

.badge-ribbon {
    display: inline-block;
    background: #2f98af;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 6px 14px;
    border-radius: 2px;
    position: relative;
    margin-bottom: 18px;
}
.badge-ribbon::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 14px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #2f98af;
}

.section-title-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: #ffffff;
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid #2b2d3c;
}
.sigle-page-title{
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 30px;
}
.section-title-line i{
    background: #2f98af;
    font-size: 18px;
    width: 30px;
    height: 30px;
    color: #fff;
    position: relative;
    margin-right: 5px;
    margin-bottom: -2px;
    vertical-align: middle;
    display: inline-block;
}
.section-title-line i::before{
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.section-title-line i::after{
    content: "";
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #2f98af;
    position: absolute;
    left: 100%;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
}
.star-heading-title{
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.square-indicator {
    width: 17px;
    height: 20px;
    background: #2f98af;
    border-radius: 2px;
}

.new-update-box {
    margin: 25px 0 30px;
}

.slider-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.slider-header-bar .badge-ribbon {
  margin-bottom: 0;
}

.slider-controls-top {
  display: flex;
  align-items: center;
  gap: 8px; 
}

.top-nav-btn {
  width: 32px;
  height: 32px;
  background: #1e2230;           
  border: 1px solid #2d3348;     
  border-radius: 4px;           
  color: #c4c9d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.top-nav-btn:hover {
  background: #2f98af;
  border-color: #2f98af;
  color: #ffffff;
  transform: translateY(-1px);
}

.top-nav-btn:active {
  transform: translateY(0);
}

.top-nav-btn:disabled,
.top-nav-btn[style*="opacity: 0.4"] {
  cursor: not-allowed;
  transform: none;
}

.smooth-slider-wrap {
    position: relative;
}

.slider-overflow-mask {
    overflow: hidden;
    width: calc(100% + 20px);
    user-select: none;
    cursor: grab;
    margin-left: -10px;
}
.slider-overflow-mask:active {
    cursor: grabbing;
}

.slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.slide-entry {
    flex: 0 0 25%;
    padding: 0 10px;
    box-sizing: border-box;
}

.slide-card-body {
    display: table;
    gap: 12px;
}

.slide-img-link {
    width: 102px;
    height: 142px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    background: #14151b;
    display: table-cell;
    vertical-align: top;
}
.slide-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.slide-img-link img:hover {
    transform: scale(1.05);
}

.slide-meta {
    min-width: 0;
    display: table-cell;
    vertical-align: middle;
    padding-left: 15px;
}
.slide-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #ffffff;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.slide-title:hover {
    color: #2f98af;
}

.chapter-pill-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.chapter-pill {
    display: inline-block;
    width: fit-content;
    padding: 2.5px 11px;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #cfd4e3;
    transition: all .2s;
    margin-bottom: 5px;
}
.chapter-pill:hover {
    background: #2f98af;
    color: #ffffff;
}

.main-grid-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 28px;
    margin-bottom: 50px;
}

.latest-manga-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.manga-item-card {
    display: flex;
    flex-direction: column;
}
.manga-cover-wrap {
    position: relative;
    width: 100%;
    padding-top: 138%;
    border-radius: 5px;
    overflow: hidden;
    background: #1a1b24;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: block;
}
.manga-cover-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.manga-item-card:hover .manga-cover-wrap img {
    transform: scale(1.05);
}

.manga-card-info {
    padding: 10px 2px 4px;
}
.manga-name {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.manga-name:hover {
    color: #2f98af;
}

.chapter-line-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.chapter-tag {
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    border-radius: 10px;
    padding: 2.5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #c9cedd;
    transition: all .2s;
    white-space: nowrap;
}
.chapter-tag:hover {
    background: #2f98af;
    color: #ffffff;
}
.chapter-rel-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 600;
    margin-left: 8px;
}

.sidebar-box {
    background: #1d1e28;
    border: 1px solid #2b2d3c;
    border-radius: 4px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hot-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid #282a39;
    padding-bottom: 14px;
}
.hot-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.hot-thumb {
    width: 65px;
    height: 86px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: block;
    background: #14151b;
}
.hot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hot-thumb img:hover {
    transform: scale(1.05);
    transition: transform .35s ease;
}
.hot-info {
    flex: 1;
    min-width: 0;
}
.hot-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.hot-name:hover {
    color: #2f98af;
}

.site-footer {
    background: transparent;
    padding: 50px 0 60px;
    text-align: center;
    border-top: 1px solid #2b2d3c;
    margin-top: 20px;
}
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.footer-links a {
    font-size: 14px;
    font-weight: 500;
    color: #d1d5e2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color .2s;
}
.footer-links a:hover {
    color: #2f98af;
}
.footer-links .separator {
    color: #555b70;
    font-weight: 400;
    font-size: 14px;
}
.footer-disclaimer {
    max-width: 860px;
    margin: 0 auto;
    font-size: 12.5px;
    line-height: 1.7;
    color: #7d8498;
    padding: 0 15px;
}

.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: #252837;
    border: 1px solid #3b4055;
    color: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top-btn:hover {
    background: #2f98af;
}

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-body {
    position: fixed;
    top: 0;
    left: 0;
    width: 78%;
    max-width: 320px;
    height: 100%;
    background: #2f98af;
    color: #ffffff;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 24px 20px;
    overflow-y: auto;
}
.mobile-drawer-body.active {
    transform: translateX(0);
}

.btn-close-drawer {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-bottom: 18px;
    line-height: 1;
}

.drawer-guest-auth {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.drawer-btn-pill {
    flex: 1;
    text-align: center;
    padding: 7px 0;
    border: 1.5px solid #ffffff;
    border-radius: 20px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.drawer-user-info-card {
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0,0,0,0.18);
    border-radius: 8px;
    margin-bottom: 20px;
    display: table;
    width: 100%;
}
.drawer-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: table-cell;
    vertical-align: top;
    text-align: center;
    line-height: 40px;
    font-weight: 600;
}
.drawer-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    display: table-cell;
    vertical-align: middle;
    padding-left: 10px;
}
.drawer-user-role {
    font-size: 12px;
    opacity: 0.85;
}

.drawer-nav a {
    display: block;
    padding: 13px 0;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.manga-hero-wrapper {
    position: relative;
    padding: 24px 0 36px;
    background: radial-gradient(circle at 50% -10%, rgba(30, 41, 70, 0.45) 0%, rgba(12, 13, 20, 0) 70%);
}

.breadcrumbs {
    font-size: 12px;
    color: #838b9e;
    margin-bottom: 20px;
    font-weight: 600;
}
.breadcrumbs a:hover {
    color: var(--accent-cyan);
}
.breadcrumbs span.current {
    color: #a4abbc;
}

.manga-hero-card {
    background: var(--bg-card-hero);
    border: 1px solid #212638;
    border-radius: 14px;
    padding: 28px;
    display: flex;
    gap: 32px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

.hero-poster-col {
    width: 210px;
    flex-shrink: 0;
}
.hero-poster-wrap {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    border: 1px solid #2a3047;
    position: relative;
}
.hero-poster-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-title {
    font-size: 22px;
    font-weight: 500;
    color: white;
    line-height: 1.3;
    margin-bottom: 12px;
}

.hero-rating-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.star-icons {
    color: #f59e0b;
    display: flex;
    gap: 2px;
    font-size: 16px;
}
.score-number {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-top: -4px;
}
.hero-rating-line .my-rating{
    float: left;
}
.jq-star {
    width: 100px;
    height: 100px;
    display: inline-block;
    cursor: pointer;
}
.jq-star-svg {
    padding-left: 3px;
    width: 100%;
    height: 100%;
}

.hero-meta-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.hero-meta-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.meta-row {
    font-size: 14px;
}
.meta-label {
    width: 110px;
    font-weight: 500;
    color: #ffffff;
    display: inline-block;
    text-align: left;
}
.meta-val {
    color: #b3b9c9;
}
.meta-val a {
    color: #d2d6e3;
    transition: color .2s;
    border-radius: 10px;
    display: inline-block;
    font-weight: 500;
}
.meta-val a:hover {
    color: #2f98af;
    border-color: #2f98af;
}
.meta-val a:first-child {
    margin-left: 0;
}

.hero-stats-box {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid #23283b;
    padding-left: 20px;
}
.stats-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}
.stat-line {
    display: flex;
    justify-content: space-between;
}
.stat-line strong {
    color: #ffffff;
    font-weight: 500;
}
.stat-line span {
    color: #b3b9c9;
}

.stats-widgets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
}
.bookmark-notice{
    color: #2f98af;
    text-align: center;
    font-size: 13px;
}
.stat-widget-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    cursor: pointer;
    width: 100%;
}
.stat-widget-item .book-mark{
    display: flex;
    flex-direction: column;
}
.stat-widget-item .book-mark i{
    margin-bottom: 10px;
}
.stat-widget-item i {
    font-size: 25px;
    color: #8b92a5;
}
.stat-widget-label {
    font-size: 13px;
    color: #8b92a5;
    line-height: 1.25;
}

.section-star-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #202538;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.about-manga-section {
    margin-bottom: 36px;
}
.summary-content {
    font-size: 15px;
    color: #9ea6ba;
    line-height: 1.65;
}
.single-content{
    font-size: 15px;
    color: #9ea6ba;
    line-height: 1.65;
}
.summary-content h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}
.summary-text-collapse {
    position: relative;
    max-height: 72px;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.summary-text-collapse.expanded {
    max-height: 1000px;
}

.releases-section {
    margin-bottom: 40px;
}
.chapter-rows-list {
    display: flex;
    flex-direction: column;
}
.chapter-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #1a1e2d;
    font-size: 14px;
    transition: background .15s;
}
.chapter-left-name {
    font-weight: 500;
    color: #ffffff;
    transition: color .2s;
}
.chapter-list-item:hover .chapter-left-name {
    color: #2f98af;
}
.chapter-right-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #7b8397;
}
.badge-new-tag {
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.discussion-section {
    margin-bottom: 45px;
}
.comments-card-box {
    color: white;
}

.comment-form-wrap {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #202538;
}

.form-group-textarea {
    margin-bottom: 14px;
}
.form-comment-textarea {
    width: 100%;
    height: 110px;
    min-height: 90px;
    padding: 14px 16px;
    border: 1.5px solid #2b2d3c;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #d2d6e3;
    background: #1d1e28;
    outline: none;
    resize: vertical;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-comment-textarea:focus {
    box-shadow: 0 0 0 3px rgba(235, 51, 73, 0.12);
}

.form-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-input-field {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid #2b2d3c;
    border-radius: 6px;
    font-size: 13.5px;
    font-family: inherit;
    color: #d2d6e3;
    background: #1d1e28;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-input-field:focus {
    box-shadow: 0 0 0 3px rgba(235, 51, 73, 0.12);
}

.form-action-row {
    display: flex;
    justify-content: flex-end;
}
.btn-submit-comment {
    background: #2f98af;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 3px 10px rgba(235, 51, 73, 0.25);
}
.btn-submit-comment:hover {
    background: #2f98af;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(235, 51, 73, 0.35);
}
.btn-submit-comment:active {
    transform: translateY(0);
}
.comments-count-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.comment-items-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.comment-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.ls-comment{
    border-bottom: 1px solid #202538;
    padding-bottom: 20px;
}
.child-comment{
    padding-top: 20px;
    border-top: 1px solid #202538;
    margin-top: 20px;
    padding-left: 20px;
}
.ls-comment:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2f98af;
    text-transform: uppercase;
}
.comment-message{
    color: #da3145;
    font-size: 13px;
    font-style: italic;
}

.comment-body {
    flex: 1;
}
.comment-top-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.comment-username {
    font-size: 14px;
    font-weight: 600;
    color: white;
}
.btn-log-reply {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color .2s;
    cursor: pointer;
}
.btn-log-reply:hover {
    color: #2f98af;
}
.comment-msg-text {
    font-size: 14px;
    color: #d2d6e3;
    line-height: 1.45;
    margin-bottom: 5px;
}
.comment-date-time {
    font-size: 11.5px;
    color: #9aa1af;
}
.replyBlock{
    margin-top: 20px;
}
.replyBlock .comment-reply-title{
    display: inline-block;
    font-size: 14px;
    padding-bottom: 10px;
}
.replyBlock .cancel-reply{
    float: right;
    font-size: 14px;
    font-weight: 600;
}

.recommended-section {
    margin-bottom: 50px;
}
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    width: calc(100% + 20px);
    margin-left: -10px;
}
.rec-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    transition: transform .2s, border-color .2s;
}
.rec-item-card:hover {
    transform: translateY(-2px);
}
.rec-thumb {
    width: 80px;
    height: 95px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1e2233;
}
.rec-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rec-title {
    font-size: 14px;
    font-weight: 500;
    color: #e5e9f2;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rec-title:hover {
    color: #2f98af;
}

.chapter-header-area {
    padding: 30px 0 16px;
}
.chapter-main-title {
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.3;
}

.chapter-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chapter-navigation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    position: relative;
}

.chapter-select-wrapper {
    position: relative;
}
.change-chapter{
    display: inline-block;
    width: 150px;
    height: 30px;
    line-height: 30px;
    border-radius: 5px;
    background: #222;
    color: #f5f5f5;
    position: relative;
    font-size: 15px;
    margin-right: 20px;
}
.change-chapter .change-page{
    text-align: center;
}
.change-chapter .change-page:hover{
    cursor: pointer;
}
.change-chapter ul{
    max-height: 210px;
    position: absolute;
    z-index: 999;
    width: 100%;
    background: #222;
    border-radius: 5px;
    overflow-y: scroll;
    display: none;
}
.change-chapter ul li{
    text-align: center;
}
.change-chapter ul li a{
    color: #f5f5f5;
}
.change-chapter ul li a:hover{
    color: #2f98af;
}
.change-chapter ul.top{
    margin-top: 5px;
}
.change-chapter ul.bottom{
    bottom: 43px;
}
.change-chapter ul::-webkit-scrollbar-track {
    display: none;
}
.change-chapter ul::-webkit-scrollbar {
    display: none;
}
.change-chapter ul::-webkit-scrollbar-thumb {
    display: none;
}

.chapter-nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-chapter-cyan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2f98af;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.btn-chapter-cyan:hover {
    transform: translateY(-1px);
}
.btn-chapter-cyan:active {
    transform: translateY(0);
}
.btn-chapter-cyan:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chapter-notice-box {
    font-size: 14px;
    color: white;
    line-height: 1.7;
    margin-bottom: 30px;
}
.chapter-notice-box strong {
    color: #e2e6f0;
    font-weight: 700;
}

.manga-reader-container {
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 5px 30px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}
.reader-page-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.bottom-reader-nav {
    margin: 30px 0;
}

.user-page-title {
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.user-settings-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
    align-items: flex-start;
}

.settings-sidebar {
    background: var(--sidebar-card-bg);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #b0bad0;
    cursor: pointer;
    position: relative;
    transition: background .2s, color .2s;
    user-select: none;
}

.sidebar-nav-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sidebar-nav-item:hover {
    background: #2f98af;
    color: #ffffff;
}

.sidebar-nav-item.active {
    background: #2f98af;
    color: #ffffff;
}
.sidebar-nav-item.active::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #2f98af;
}
.tab-content-panel {
    animation: fadeIn .25s ease;
}
.tab-content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.avatar-upload-block {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--divider-line);
    margin-bottom: 24px;
}
.user-avatar-frame {
    width: 135px;
    height: 135px;
    background: #000;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    flex-shrink: 0;
    overflow: hidden;
}
.user-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-form-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.file-format-hint {
    font-size: 13px;
    color: #4b586d;
}
.btn-choose-file {
    display: inline-block;
    background: #ffffff;
    color: #1a1e28;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    width: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#avatarFileInput {
    display: none;
}

.btn-teal-action {
    background: #2f98af;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 24px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    width: fit-content;
    transition: background .2s, transform .15s;
}
.btn-teal-action:hover {
    background: #2f98af;
    transform: translateY(-1px);
}

.settings-section-row {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--divider-line);
    margin-bottom: 22px;
}
.settings-section-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-field-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.form-row-line {
    display: grid;
    grid-template-columns: 190px 340px;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
}
.form-row-label {
    color: #929fb5;
    font-weight: 500;
}
.form-row-static {
    color: #ffffff;
    font-weight: 600;
}
.form-row-input {
    width: 100%;
    height: 38px;
    padding: 0 14px;
    background: #232534;
    border: 1px solid #232534;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}
.form-row-input:focus {
    border-color: #2f98af;
}

.btn-submit-indent {
    margin-left: 190px;
    margin-top: 6px;
}

.bookmarks-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.header-col-name {
    flex: 1;
}
.header-col-time {
    width: 150px;
    text-align: left;
}
.header-col-edit {
    width: 80px;
    text-align: right;
}

.bookmarks-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bookmark-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px;
    border-bottom: 1px solid var(--divider-line);
    transition: background 0.15s ease;
    position: relative;
}
.bookmark-card:hover {
    background: rgba(10, 22, 38, 0.45);
}

.bookmark-main-box {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0; 
}

.bookmark-cover {
    position: relative;
    width: 68px;
    height: 94px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}
.bookmark-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bookmark-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.bookmark-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bookmark-title:hover {
    color: var(--teal-accent);
}

.bookmark-chapters-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.chapter-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.chapter-tag-pill {
    background: #112034;
    border: 1px solid #1c2f4a;
    color: #cbd4e6;
    padding: 2.5px 10px;
    border-radius: 12px;
    font-weight: 500;
    width: fit-content;
    transition: all 0.15s ease;
}
.chapter-tag-pill:hover {
    color: #ffffff;
}
.badge-new-solid {
    background: #dc2626;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    padding: 1.5px 5px;
    border-radius: 2px;
    letter-spacing: 0.3px;
}
.chapter-release-date {
    color: #6d7b92;
    font-size: 11.5px;
}

.bookmark-side-box {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.bookmark-actions-group {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-right: 6px;
}

.btn-delete-bookmark {
    background: none;
    border: none;
    color: #728096;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, transform 0.15s ease;
}
.btn-delete-bookmark:hover {
    color: #ef4444;
    transform: scale(1.2);
}

.user-settings-container .message{
    color: #2f98af;
    font-size: 13px;
    font-style: italic;
    padding-left: 190px;
    padding-bottom: 10px;
}

.manga-pager{
    width: 100%;
    float: left;
    padding-top: 20px;
    text-align: right;
}
.manga-pager ul{
    list-style: none;
    padding: 0;
    margin: 0;
}
.manga-pager ul li{
    display: inline-block;
}
.manga-pager ul li.disabled{
    display: none;
}
.manga-pager ul li a{
    background: #262837;
    padding: 5px 10px;
    border: 1px solid #35394d;
    border-radius: 5px;
    margin: 0 2.5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.manga-pager ul li a:hover{
    background: #2f98af;
}
.manga-pager ul li.active a{
    background: #2f98af;
}
.error-404{
    text-align: center;
}
.error-404 img{
    max-width: 100%;
}
.error-404 h3{
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
}
.error-404 a{
    background: #2f98af;
    margin-top: 20px;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .user-settings-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .settings-sidebar {
        display: flex;
    }
    .sidebar-nav-item {
        flex: 1;
        justify-content: center;
    }
    .sidebar-nav-item.active::after {
        display: none;
    }
    .form-row-line {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .btn-submit-indent {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 20px 14px 40px;
    }
    .main-header .container, .sub-bar .container{
        padding: 0 15px;
    }
    .user-page-title {
        margin-bottom: 18px;
    }

    .bookmark-card {
        padding: 14px 4px;
        align-items: flex-start;
    }

    .bookmark-cover {
        width: 60px;
        height: 84px;
    }

    .bookmark-title {
        font-size: 13.5px;
    }

    .bookmark-side-box {
        flex-direction: column;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px;
        height: 100%;
        min-height: 84px;
    }

    .bookmark-actions-group {
        width: auto;
        padding-right: 0;
        gap: 14px;
    }

    .btn-delete-bookmark {
        font-size: 22px;
        padding: 2px;
    }
}

@media (max-width: 992px) {
    .nav-menu, .header-actions {
        display: none;
    }
    .mobile-header-btns {
        display: flex;
    }
    .slide-entry {
        flex: 0 0 50%;
    }
    .main-grid-layout {
        grid-template-columns: 1fr;
    }
    .latest-manga-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .manga-hero-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .hero-poster-col {
        width: 170px;
    }
    .hero-rating-line {
        justify-content: center;
    }
    .hero-meta-layout {
        flex-direction: column;
        gap: 18px;
    }
    .hero-stats-box {
        width: 100%;
        border-left: none;
        border-top: 1px solid #23283b;
        padding-left: 0;
        padding-top: 16px;
    }
    .stats-widgets {
        justify-content: center;
    }
    .hero-buttons-row {
        justify-content: center;
    }
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .chapter-main-title {
        font-size: 20px;
    }
    .chapter-navigation-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .chapter-nav-buttons {
        justify-content: space-between;
    }
    .btn-chapter-cyan {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 12.5px;
    }
    .bottom-reader-nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .header-content {
        height: 58px;
    }
    .guest-auth-wrap {
        display: none !important;
    }
    .user-profile-menu-wrap {
        display: none !important;
    }

    .slide-entry {
        flex: 0 0 100%;
        padding: 0 4px;
    }
    .slide-card-body {
        gap: 14px;
    }
    .slide-img-link {
        width: 110px;
        height: 155px;
    }

    .latest-manga-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .section-title-line {
        font-size: 15px;
    }
    .footer-disclaimer {
        font-size: 11.5px;
    }
    .back-to-top-btn {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    .manga-hero-card {
        padding: 18px 14px;
    }
    .hero-title {
        font-size: 19px;
    }
    .meta-row {
        text-align: left;
    }
    .meta-label {
        width: 90px;
    }
    .recommended-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 550px){
    .form-fields-row{
        grid-template-columns: 1fr;
    }
}

@media(max-width: 450px){
    .brand-logo img{
        height: 17px;
    }
}

@media(max-width: 370px){
    .brand-logo img{
        height: 15px;
    }
}

