/* NHentai.porn Frontend CSS */

@charset "UTF-8";
@import"https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Shippori+Mincho+B1:wght@400;500;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap";
@font-face {
    font-family: 'Noto Sans';
    font-style: italic;
    font-weight: 400;
    font-stretch: 100%;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/notosans/v42/o-0kIpQlx3QUlC5A4PNr4C5OaxRsfNNlKbCePevHtVtX57DGjDU1QDce2V3SyFtY.woff2) format('woff2');
    unicode-range: U +0460 -052F, U +1C80 -1C8A, U +20B4, U +2DE0 -2DFF, U + A640-A69F, U + FE2E-FE2F;
}

html:has(.nhentaiporn-fire) {
    background-color: #0d0d0d;
}
body, html {
    font-family: Noto Sans, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    height: 100%;
    margin: 0;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html {
    box-sizing: border-box;
}
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
}
html[Attributes Style] {
    -webkit-locale: "en";
}

html {
    display: block;
}

h1 {
    font-size: 2em;
    margin: .67em 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}


button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}


button, input {
    overflow: visible;
}


input, button, textarea {
    font-family: Noto Sans, sans-serif;
}

input, input:focus {
    -webkit-transition: none;
    -moz-transition: none;
    transition: none;
    border: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    outline: none;
}

button, select {
    text-transform: none;
}

button, [type=button], [type=reset], [type=submit] {
    -webkit-appearance: button;
}

time {
    font-variant-numeric: tabular-nums;
}

time span {
	opacity: 0.6;
}

.nhentaiporn-fire {
    --bg-page: hsl(0, 0%, 5%);
    --bg-primary: hsl(0, 0%, 10%);
    --bg-raised: hsl(0, 0%, 12%);
    --bg-elevated: hsl(0, 0%, 22%);
    --bg-input: hsl(0, 0%, 30%);
    --bg-hover: hsl(0, 0%, 38%);
    --bg-highlight: hsl(0, 0%, 15%);
    --text-primary: #d9d9d9;
    --text-secondary: hsl(0, 0%, 60%);
    --text-muted: hsl(0, 0%, 50%);
    --text-bright: white;
    --border: hsl(0, 0%, 20%);
    --border-strong: hsl(0, 0%, 25%);
    --input-border: none;
    --accent: #FF8C00;
    --accent-hover: #fcaa47;
    --accent-dark: #e07c02;
    --error: #f87171;
    --success: #4ade80;
    --warning: #facc15;
    --nav-bg: hsl(0, 0%, 12%);
    --nav-text: #d9d9d9;
    --nav-hover: hsl(0, 0%, 22%);
    --overlay: rgba(0, 0, 0, .7);
    --shadow: rgba(0, 0, 0, .5);
}

#nhentai-content {
    min-height: 100vh;
    color: var(--text-primary);
    background-color: var(--bg-page);
}

#site-welcome-text-and-info {
	float: left;
	text-align: left;
	width: 100%;
	padding: 0px 20px;
}

#site-welcome-text-and-info a {
	text-decoration: underline;
}

#site-welcome-text-and-info a:hover {
	color: var(--accent-dark);
	text-decoration: none;
}
a {
    background-color: transparent;
}

a {
    text-decoration: none;
    color: var(--text-primary);
}

a:hover {
    text-decoration: none;
}

a .count {
    color: var(--text-muted);
}

img {
    border-style: none;
}

input:not([type=file]):not([type=checkbox]), #favorites-search input, textarea, select {
    background: var(--bg-input);
    border: var(--input-border);
    color: var(--text-primary);
}

input:not([type=file]):not([type=checkbox]):hover, #favorites-search input:hover, textarea:hover, select:hover {
    background: var(--bg-hover);
}

.btn {
    display: inline-block;
    vertical-align: middle;
    font-weight: 700;
    cursor: pointer;
    padding: 0 12px;
    color: var(--text-bright);
    border: 0;
    border-radius: 3px;
    outline: 0;
    font-size: 100%;
    height: 40px;
    line-height: 40px;
    margin: 3px;
    -webkit-font-smoothing: antialiased;
}

.btn:hover {
    color: var(--text-bright);
    background: var(--accent-hover);
}

.tooltip:hover {
    opacity: 1;
}

.btn.btn-square {
    width: 40px;
    height: 40px;
    margin: 5px;
    vertical-align: middle;
}

.search-doujin .btn.btn-square {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-right: -40px;
    margin-left: 0;
	float: right;
}

.btn.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus {
    color: #fff;
    background: var(--accent-hover);
}

.btn.btn-primary.disabled, .btn.btn-primary:disabled, .fave-btn:disabled {
    cursor: default;
    opacity: .6;
}


.btn.btn-secondary {
    background-color: var(--bg-elevated);
}

.btn.btn-secondary:hover, .btn.btn-secondary:active, .btn.btn-secondary:focus {
    background: var(--bg-input);
}

.color-icon {
    color: var(--accent);
}

nav {
    position: relative;
    min-height: 50px;
    background: var(--nav-bg);
    padding-left: 76px;
	z-index: 999;
}

header .logo {
    float: left;
    display: inline-block;
    height: 50px;
    padding: 10px;
    z-index: 9999999;
    position: relative;
}

nav #hamburger {
    float: right;
    margin-right: -56px;
}

nav #hamburger .line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    margin-top: 5px;
    margin-bottom: 5px;
}

nav .btn {
    margin: 5px;
}

nav .menu {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
	text-transform: uppercase;
}

nav .menu li {
    display: inline-block;
}

nav .menu li a {
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    height: 50px;
    line-height: 50px;
	font-size: 12.5px;
}

nav a {
    color: var(--nav-text);
}

nav a:hover {
    color: var(--accent);
}
nav .menu.left {
    float: left;
}

nav .menu.right {
    float: right;
}

nav .search-doujin {
    float: left;
    display: inline-block;
}

.search-doujin {
    padding-right: 40px;
    position: relative;
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

.search-doujin input[type=search] {
    padding-right: 26px;
}

.search-doujin input {
    -webkit-appearance: none;
    display: inline-block;
    border-radius: 3px;
    padding: 0 .1em 0 1em;
    font-size: 1em;
    height: 40px;
    border: 0;
    vertical-align: top;
}

.search-doujin input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    width: 100%;
    height: 40px;
    border: 0;
    vertical-align: top;
    margin-top: 5px;
}


.register-btn, .search-btn, .current, .fave-btn, .btn-nav {
  align-items: center;
  appearance: none;
  background-image: radial-gradient(100% 100% at 100% 0, #ffe85a 0, #e6681b 100%);
  border: 0;
  border-radius: 6px;
  box-shadow: rgba(45, 35, 66, .4) 0 2px 4px,rgba(45, 35, 66, .3) 0 7px 13px -3px,rgba(58, 65, 111, .5) 0 -3px 0 inset;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  font-family: "JetBrains Mono",monospace;
  justify-content: center;
  list-style: none;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: box-shadow .15s,transform .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow,transform;
  margin: 5px 5px 0px 5px;
}


.register-btn:focus, .fave-btn:focus, .search-btn, .btn-nav:focus {
  box-shadow: #965e03 0 0 0 1.5px inset, rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #965e03 0 -3px 0 inset;
}

.register-btn:hover, .fave-btn:hover, .btn-nav:hover {
  box-shadow: rgba(45, 35, 66, .4) 0 4px 8px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #965e03 0 -3px 0 inset;
  transform: translateY(-2px);  
}

.register-btn:active, .fave-btn:active, .btn-nav:active {
  box-shadow: #965e03 0 3px 7px inset;
  transform: translateY(2px);
}

nav li.register-btn a, button.fave-btn, a.btn-nav {
	color: #fff;
	height: 42px;
	line-height: 42px;  
	width: 95px;
}

a.btn-nav {
	max-height:42px;
	width: 120px
}

a.btn-finish {
	width: fit-content;
}

.sign-in-btn, .download-btn, .page-selector {
  align-items: center;
  appearance: none;
  background-color: #FCFCFD;
  border-radius: 4px;
  border-width: 0;
  box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  font-family: "JetBrains Mono",monospace;
  justify-content: center;
  list-style: none;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: box-shadow .15s,transform .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow,transform;
  margin-top: 5px;
}

.page-selector {
	appearance: base-select;
}

.sign-in-btn:focus, .download-btn:focus, .page-selector:focus {
  box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

.sign-in-btn:hover, .download-btn:hover {
  box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
  transform: translateY(-2px);
  background-color: var(--nav-text);
}

.page-selector:hover {
	box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
	background-color: var(--nav-text);
}

.sign-in-btn:active, .download-btn:active {
  box-shadow: #D6D6E7 0 3px 7px inset;
  transform: translateY(2px);
}

.page-selector:active {
	box-shadow: #D6D6E7 0 3px 7px inset;
}

nav li.sign-in-btn a, button.download-btn, select.page-selector {
	color: #36395A;
	height: 42px;
	line-height: 42px; 
	width: 85px;	
}

button.fave-btn, button.download-btn {
	width: 43%;
	text-align: center;
	overflow: visible;
}

.contain-manga-boxes {
    display: block;
    clear: both;
    margin: 30px auto;
    padding: 10px;
	float: left;
}

.contain-manga-boxes, .contain2 {
    border-radius: 5px;
    background-color: var(--bg-raised);
}

.contain-manga-boxes {
    width: 100%;
    min-width: 400px; 
}

.contain {
	width: 100%;
	max-width: 1200px;
	margin: 10px auto;
}

.contain2 {
    display: block;
    clear: both;
    margin: 10px auto;
    padding: 10px;
}

.lazyload {
    background-color: var(--bg-highlight);
}

#thumbnail-container {
    margin-bottom: 25px;
    padding: 15px;
    text-align: left;
    background-color: var(--bg-raised);
}

.thumb-container img {
    margin-top: 2px;
    margin-right: 2px;
    margin-left: 2px;
}

#cover img, .gallerythumb img {
    border-radius: .3em;
    background-color: #1f1f1f;
    color: transparent;
}

#bigcontainer {
    margin-bottom: 15px;
    padding: 30px 20px;
}

#bigcontainer #cover img, #bigcontainer #info-block img {
    max-width: 100%;
}

#related-container {
    margin-bottom: 25px;
    padding-bottom: 20px;
}

#nhentai-title {
	font-size: 32px;
}

#thumbnail-container.contain2 .thumbs {
    overflow: hidden;
    position: relative;
}

#thumbnail-container .gallerythumb {
    display: inline-block;
    margin-bottom: 3px;
    vertical-align: middle;
}

.hpTitle {
	font-size: 30px;
	color: #fff;
	text-transform: uppercase;
	text-align: left;
	line-height: 30px;
	margin: 5px 0px;
}

.hpLabel {
	text-align: left;
}

.contain-extra {
    overflow: hidden;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 15px;
    text-align: center;
    min-height: 100px;
	width: 100%;
}

.thumb-container {
    text-align: center;
}

.gallery, .thumb-container, .gallery-favorite {
    display: inline-block;
    vertical-align: top;
}

.gallery a, .gallery-favorite a {
    display: block;
}
/*
.gallery a {
	padding: 0 0 148% 0;
}*/

.gallery img, .thumb-container img, .gallery-favorite img {
    display: block;
    border-top-left-radius: .3em;
    border-top-right-radius: .3em;
    max-width: 100%;
    height: auto;
    background-color: #1f1f1f;
    color: transparent;
	float: left;	
	transition: transform .6s cubic-bezier(.25, .8, .25, 1);
	min-height: 80px;
}


#thumbnail-container .lazyload {
	background-color: var(--bg-highlight);
}

#bigcontainer #cover img:hover, #thumbnail-container .gallerythumb img:hover {
	-webkit-filter: brightness(110%);
    -moz-filter: brightness(110%);
	transform: scale(1.05);
}

#bigcontainer #cover img {
	transition: transform .6s cubic-bezier(.25, .8, .25, 1);
}

#bigcontainer #cover {
	padding:10px;
	margin-top: 0.67em;	
}

.caption {
    line-height: 15px;
    z-index: 10;
    overflow: hidden;
    width: 100%;
    max-height: 65px;
    padding: 3px;
    background-color: var(--bg-elevated);
    font-weight: 700;
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom-left-radius: .3em;
    border-bottom-right-radius: .3em;
	float: left;	
}

.gallery.lang-jp .caption:before, .gallery.lang-gb .caption:before, .gallery.lang-cn .caption:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    float: left;
    z-index: 2;
    background-size: contain;
    background-repeat: no-repeat;
    width: 24px;
    height: 16px;
}

.gallery.lang-cn .caption:before {
    background-image: url(img/flags/cn.svg);
}

.gallery.lang-gb .caption:before {
    background-image: url(img/flags/gb.svg);
}

.gallery.lang-jp .caption:before {
    background-image: url(img/flags/jp.svg);
}

#alphabet {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

#alphabet li {
    display: inline-block;
}

#alphabet li a, #alphabet li span {
    display: inline-block;
    font-size: 1em;
    line-height: 2.4em;
    height: 2.4em;
    min-width: 2.4em;
    margin-right: .3em;
    text-align: center;
}

.pagination {
    font-size: 1.3em;
    margin-bottom: 2em;
    float: left;
    width: 100%;
}

.next, .first, .last, .previous, .current {
    display: inline-table;
    min-width: 35px;
    padding: 5px;
	height: 35px;
    line-height: 25px;
	font-family: "JetBrains Mono",monospace;
}

.company-info {
	width: 100%;
	float: left;
}

footer a {
	text-decoration: underline;
}

.footer {
	width:100%;
	float: left;
	display: flex;
	flex-wrap: wrap;
    gap: 20px;
    position: relative;
    margin: 0px auto;
}

.footer-tpc {
	width: 30%;
	padding-left: 20px;
}

.footer-tpc ul {
	list-style-type: none;
	padding-left: 29px;
}
.footer-tpc ul li {
	display: block;
	margin: 0;
	padding: 0;
	height: 35px;
	text-align: left;
}

.footer-tpc ul li a {
	color: var(--text-secondary);
}

.footer-tpc ul li a:hover, .copyright a:hover { 
	color: var(--accent);
	text-decoration: none;	
}

.footer-tpc-title {
	font-size: 1.3em;
	color: var(--text-bright);
	margin-bottom: 0px;
	text-align: left;
}

.nhen-pages {
	float: right;
	text-transform: uppercase;
}
.copyright {
	width: 100%;
}

#info {
    height: auto;
    padding: 10px;
    text-align: left;
}

#info h1 {
    font-size: 20px;
}

#info h2 {
    font-size: 17px;
    margin-top: 10px;
    margin-bottom: 20px;
}

#info #gallery_id {
    font-size: 15px;
    cursor: pointer;
}

#info #gallery_id .hash {
    color: var(--text-secondary);
}

#info .title .pretty {
    color: var(--text-bright);
}

#info h2.title {
	color: var(--text-secondary);
}

#info .title .before, #info .title .after {
    color: var(--bg-hover);
}

.btn-group {
    font-size: 0;
}

.btn-group>.btn, .btn-group>a, .btn-group>button, .btn-group>input, .btn-group>form {
    font-size: 1rem;
}

.btn-disabled {
    opacity: .5;
}

.tooltip {
    display: inline-block;
    position: relative;
    border-bottom: 1px dotted var(--text-muted);
    text-align: left;
}

#info .buttons {
    margin-top: 30px;
}

#info .buttons .btn {
    min-width: 120px;
    text-align: center;
    margin-left: 0;
    margin-right: 5px;
    margin-bottom: 10px;
}

#info .field-name {
    font-weight: 700;
}

#info a {
    font-weight: 700;
}

.btn.btn-secondary.disabled, .btn.btn-secondary:disabled, .download-btn:disabled {
    cursor: default;
    opacity: .6;
}

.sort {
    margin-top: -15px;
}

.sort {
    font-size: 20px;
}

.sort .sort-type {
    overflow: hidden;
    display: inline-block;
    border-radius: 5px;
    margin: 10px;
    background-color: var(--bg-primary);
}

.sort-type span {
	text-decoration: none;
    color: var(--text-primary);
	background-color: transparent;
}
.sort .sort-type>span, .sort .sort-type>.sort-name {
    display: table-cell;
    padding: .5em;
}

.sort .sort-type>span.current {
    font-weight: 700;
    background-color: var(--bg-highlight);
}

.sort+.contain2 {
    margin-top: 0;
}

.sort .sort-type>span:hover {
    background-color: var(--border);
	cursor: pointer;
}

.tag-container {
    padding-bottom: 5px;
    -webkit-columns: 170px;
    -moz-columns: 170px;
    -ms-columns: 170px;
    -o-columns: 170px;
    columns: 170px;
    column-rule: 1px solid var(--border);
}

.tag-container section {
    border: 1px solid transparent;
    border-radius: 5px;
}

.tag-container section:first-of-type h2 {
    margin-top: 0;
}

.tag {
    color: var(--accent-dark);
    font-size: 1em;
    vertical-align: middle;
    display: inline-flex;
    margin: .13em;
    flex-direction: row;
    justify-content: center;
}

.tag:hover {
    filter: brightness(1.3);
}

.tag>:first-child {
    border-top-left-radius: .3em;
    border-bottom-left-radius: .3em;
}

.tag>:last-child {
    border-top-right-radius: .3em;
    border-bottom-right-radius: .3em;
}

.tag .name, .tag .count {
    display: flex;
    padding: .13em .39em;
    align-items: center;
}

.tag .name {
    background: var(--bg-input);
}

.tagchip.variant-pill {
    flex: 0 0 auto;
    display: inline-flex;
    vertical-align: middle;
    margin: .13em;
    max-width: 100%;
    text-decoration: none;
    color: var(--accent-dark);
    font-size: 1em;
}

a.tagchip.variant-pill:hover {
    filter: brightness(1.3);
}

.tagchip.variant-pill .type, .tagchip.variant-pill .name, .tagchip.variant-pill .count {
    display: flex;
    align-items: center;
    padding: .13em .39em;
}

.tagchip.variant-pill>:first-child {
    border-top-left-radius: .3em;
    border-bottom-left-radius: .3em;
}

.tagchip.variant-pill>:last-child {
    border-top-right-radius: .3em;
    border-bottom-right-radius: .3em;
}

.tagchip.variant-pill .name {
    background: var(--bg-input);
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.tagchip.variant-pill .count {
    font-size: .9em;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    padding: .13em .26em;
    background: var(--border);
    color: var(--text-primary);
}

.cm-wrap {
    display: inline-flex;
    align-items: center;
    margin-right: .35em;
    font-size: .75em;
}

.pop-root {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.pop-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
}

.cm-wrap .pop-trigger {
    opacity: .7;
    transition: opacity .12s;
}

.cm-wrap:hover .pop-trigger {
    opacity: 1;
}

.nobold {
    font-weight: 400;
}

.tooltip .top {
    min-width: 150px;
    top: -20px;
    left: 50%;
    transform: translate(-50%, -100%);
    padding: 8px;
    color: var(--text-primary);
    background-color: var(--bg-elevated);
    font-weight: 400;
    font-size: 13px;
    border-radius: 8px;
    position: absolute;
    z-index: 99999999;
    box-sizing: border-box;
    box-shadow: 0 1px 8px var(--shadow);
    display: none;
    line-height: 17px;
}

.tooltip:hover .top {
    display: block;
}

.tooltip .top i {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -12px;
    width: 24px;
    height: 12px;
    overflow: hidden;
}

.text {
    color: #888989;
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 0;
}

.gallery-title-jp {
	font-size: 1.2rem; 
	color: #888; 
	margin-bottom: 25px;
}
.reader-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.reader-nav-top h1 {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
    color: #efedec;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    text-align: center;
}

.reader-top-title h1 {
	font-size:130%;
	margin:0;
	font-weight:bold;
	color:var(--text-bright);
	white-space:unset;
	overflow:unset;
}

.reader-page-info {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
    min-width: 150px;
    display: contents;
}

.reader-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0px;
    padding-top: 15px;
    border-top: 1px solid #222;
}


.reader-main-content {
    padding: 20px 0;
}

.reader-single-image {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.main-reader-img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
    cursor: pointer;
}

.reader-images.scroll-mode {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.reader-image-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reader-image-item img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.reader-thumbnails-nav {
    background: #0a0a0a;
    padding: 15px 0;
    margin-top: 0px;
    border-top: 1px solid #1a1a1a;
}

.reader-thumbnails-nav h3 {
    text-align: center;
    color: var(--primary-purple);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.reader-thumbs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.thumb-link {
    width: 100px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumb-link img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    opacity: 0.6;
}

.thumb-link span {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
}

.thumb-link:hover img, .thumb-link.active img {
    opacity: 1;
}

.thumb-link.active {
    border-color: var(--primary-purple);
}

@media screen and (orientation: landscape) {
    .contain-manga-boxes {
        padding-left: calc(5px + constant(safe-area-inset-left));
        padding-right: calc(5px + constant(safe-area-inset-right));
    }
}

@media screen and (max-width: 1600px) {
	nav .menu .dropdown {
        display: none;
		float: left;
    }
	
	nav .menu.right.other li a {
        font-size: 11.5px;
    }
}

@media screen and (max-width: 1200px) {
	.contain-manga-boxes {
        border-radius: 0;
    }	
	
	nav .search-doujin {
        width: 25%;
    }	
}

@media screen and (min-width: 980px) {
    .gallery, .thumb-container, .gallery-favorite {
        width: 15.50%;
        margin: 3px;		
    }
	
}

@media screen and (max-width: 1150px) {
    nav .collapse .menu.left, nav .collapse .menu.right {
		font-size: 12px;
	}
}

@media screen and (max-width: 1050px) {
    nav .collapse .menu.left, nav .collapse .menu.right {
		font-size: 11px;
	}
}

@media screen and (max-width: 979px) {
    .gallery, .thumb-container, .gallery-favorite {
        width: 20.50%;
        margin: 2px;
		border-width: 16px;
    }
	
	.gallery.lang-jp .caption:before, .gallery.lang-gb .caption:before, .gallery.lang-cn .caption:before {
		width: 22px;
		height: 14px;
	}	
	
	.gallery img, .thumb-container img, .gallery-favorite img {
		min-height: unset;
	}
	nav .menu .desktop {
        display: none;
    }
	nav .collapse .menu.right {
		font-size: 14px;
	}
	
	nav .menu .dropdown {
		display: block;
		position: relative;
	}
	
	nav .search-doujin {
        width: 30%;
    }
}

@media screen and (max-width: 772px) {
    .gallery, .thumb-container, .gallery-favorite {
        width: 28.50%;
        margin: 1.5px;
		border-width: 14px;
    }
	
	.gallery.lang-jp .caption:before, .gallery.lang-gb .caption:before, .gallery.lang-cn .caption:before {
		width: 20px;
		height: 12px;
	}
	
	.footer-tpc {
		width: 44%;
	}
	
	.reader-nav-top h1 { font-size: 14px; }
    
    .btn-nav { padding: 8px 12px; font-size: 12px; }
    .thumb-link { width: 70px; }
    .thumb-link img { height: 100px; }
}

@media screen and (max-width: 550px) {
    .sort {
        font-size: 16px;
    }
}

@media (min-width: 1430px) {
   
	nav #hamburger {
        display: none;
    }
}

@media (min-width: 1475px) {
    nav .search-doujin {
        margin-right: 10px;
        width: 25%;
    }	
}

@media screen and (min-width: 768px) {
    #bigcontainer #cover, #bigcontainer #info-block {
        display: inline-block;
        width: 48%;
        vertical-align: top;
    }
}

@media (min-width: 645px) and (not (min-width: 1430px)) {
	
	nav .search-doujin {
        margin-right: 10px;        
    }
	
	nav #hamburger {
        display: none;
    }
	
	nav .dropdown .dropdown-menu.open {
        display: inline-block;
        position: absolute;
        left: 0;
        top: 100%;
        border-radius: 3px;
        padding-left: 0;
        text-align: left;
        background-color: var(--nav-hover);
        z-index: 3;
        box-shadow: 0 0 30px var(--shadow);
    }
	
	nav .dropdown .dropdown-menu.open:before {
        position: absolute;
        content: "";
        pointer-events: none;
        bottom: 100%;
        left: 15px;
        border-color: transparent transparent var(--nav-hover) transparent;
        border-style: solid;
        border-width: 10px 10px 10px 10px;
        height: 0px;
        width: 0px;
    }
	
	nav .menu .dropdown-menu {
        display: none;
    }
	
	nav .dropdown .dropdown-menu.open li {
        width: 100%;
    }
	
	nav .dropdown .dropdown-menu.open li a {
        line-height: 2;
        height: auto;
        width: 100%;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
	nav .dropdown .dropdown-menu.open li a:hover {
        filter: brightness(1.3);
    }
	
	nav .dropdown .dropdown-menu.open li:first-of-type a {
        border-top-right-radius: 3px;
        border-top-left-radius: 3px;
    }
}

@media (max-width: 644px) {
    
	nav {
        padding-right: 76px;
    }
	
	nav .search-doujin {
        width: 100%;
    }
	
	nav .collapse {
        display: block;
        width: 100%;
        overflow: hidden;
        max-height: 0px;
        transition: max-height .5s;
    }
	
	nav .collapse .menu .dropdown {
        display: none;
    }
	
	nav .collapse .menu.left, nav .collapse .menu.right {
        float: none;
    }
	
	nav .menu.right.other {
        float: none;
    }
	
	nav .collapse .menu li {
        display: block;
		margin-right: unset;
        margin-left: unset;
    }
	
	nav .collapse .menu li a {
        width: 100%;
        height: 48px;
        line-height: 48px;
    }
	
	nav .collapse.open {
        max-height: 800px;
    }
	
	.sign-in-btn, .register-btn {
		width: 100%;
	}
	
	.gallery, .thumb-container, .gallery-favorite {
        width: 46.50%;
        margin: 1px;
    }
}

.gallery {
    position: relative;
    margin-bottom: 10px;
	border: 20px solid #fff;
    border-radius: 5px;
	transition: all .3s cubic-bezier(.25, .8, .25, 1);	
	max-height: 410px;
}


.gallery:hover img {
	transform: scale(1.1);
}

.gallery:hover .caption {
	max-height: 100%;
	transform: scale(1.1);
	font-size: 12px;
}