html,
body {
	height: 100%;
	font-family: "Mulish", sans-serif;
	-webkit-font-smoothing: antialiased;
	background: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	color: #111111;
	font-weight: 400;
	font-family: "Mulish", sans-serif;
}

h1 {
	font-size: 70px;
}

h2 {
	font-size: 36px;
}

h3 {
	font-size: 30px;
}

h4 {
	font-size: 24px;
}

h5 {
	font-size: 18px;
}

h6 {
	font-size: 16px;
}

p {
	font-size: 15px;
	font-family: "Mulish", sans-serif;
	color: #3d3d3d;
	font-weight: 400;
	line-height: 25px;
	margin: 0 0 15px 0;
}

img {
	max-width: 100%;
}

img.lazy-load {
	width: 100%;
	height: auto;
	opacity: 0;
	transition: opacity 0.3s ease;
}

img.lazy-load.loaded {
	opacity: 1;
}

input:focus,
select:focus,
button:focus,
textarea:focus {
	outline: none;
}

a:hover,
a:focus {
	text-decoration: none;
	outline: none;
	color: #000000;
}

ul,
ol {
	padding: 0;
	margin: 0;
}

/*---------------------
  Helper CSS
-----------------------*/

.section-title {
	margin-bottom: 30px;
}

.section-title h4,
.section-title h5 {
	color: #000000;
	font-weight: 600;
	line-height: 21px;
	text-transform: uppercase;
	padding-left: 20px;
	position: relative;
	font-family: "Oswald", sans-serif;
}

.section-title h4:after,
.section-title h5:after {
	position: absolute;
	left: 0;
	top: -6px;
	height: 32px;
	width: 4px;
	background: #28a745;
	content: "";
}

.set-bg {
	background-repeat: no-repeat;
	background-size: cover;
	background-position: top center;
}

.spad {
	padding-top: 100px;
	padding-bottom: 100px;
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white p,
.text-white span,
.text-white li,
.text-white a {
	color: #fff;
}

/* buttons */

.primary-btn {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.5);
	letter-spacing: 2px;
}

.primary-btn span {
	font-size: 18px;
	margin-left: 5px;
	position: relative;
	top: 3px;
}

.site-btn {
	font-size: 13px;
	color: #ffffff;
	background: #e53637;
	font-weight: 700;
	border: none;
	border-radius: 2px;
	letter-spacing: 2px;
	text-transform: uppercase;
	display: inline-block;
	padding: 12px 30px;
}

/* Preloder */

#preloder {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 999999;
	background: #000;
}

.loader {
	width: 40px;
	height: 40px;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -13px;
	margin-left: -13px;
	border-radius: 60px;
	animation: loader 0.8s linear infinite;
	-webkit-animation: loader 0.8s linear infinite;
}

@keyframes loader {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
		border: 4px solid #f44336;
		border-left-color: transparent;
	}
	50% {
		-webkit-transform: rotate(180deg);
		transform: rotate(180deg);
		border: 4px solid #673ab7;
		border-left-color: transparent;
	}
	100% {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
		border: 4px solid #f44336;
		border-left-color: transparent;
	}
}

@-webkit-keyframes loader {
	0% {
		-webkit-transform: rotate(0deg);
		border: 4px solid #f44336;
		border-left-color: transparent;
	}
	50% {
		-webkit-transform: rotate(180deg);
		border: 4px solid #673ab7;
		border-left-color: transparent;
	}
	100% {
		-webkit-transform: rotate(360deg);
		border: 4px solid #f44336;
		border-left-color: transparent;
	}
}

.spacial-controls {
	position: fixed;
	width: 111px;
	height: 91px;
	top: 0;
	right: 0;
	z-index: 999;
}

.spacial-controls .search-switch {
	display: block;
	height: 100%;
	padding-top: 30px;
	background: #323232;
	text-align: center;
	cursor: pointer;
}

.search-model {
	display: none;
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background: #000;
	z-index: 99999;
}

.search-close-switch {
	position: absolute;
	width: 50px;
	height: 50px;
	background: #333;
	color: #fff;
	text-align: center;
	border-radius: 50%;
	font-size: 28px;
	line-height: 28px;
	top: 30px;
	cursor: pointer;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

/*---------------------
  Header
-----------------------*/

.header {
	background: #E7FFCE;
}

.header__logo {

}

.header__logo a {
	display: inline-block;
}

.header__menu {
	text-align: center;
}

.header__menu ul li {
	list-style: none;
	display: inline-block;
	position: relative;
	margin-right: 16px;
}

.header__menu ul li.active a {
	background: #28a745;
	color: #ffffff;
	border-radius: 16px;
}

.header__menu ul li:hover a {
	color: rgba(0, 0, 0, 0.5);
}

.header__menu ul li:hover span {
    color: rgba(0, 0, 0, 0.5);
}

.header__menu ul li:hover .dropdown {
	top: 62px;
	opacity: 1;
	visibility: visible;
}

.header__menu ul li:hover .dropdown li a {
	background: transparent;
}

.header__menu ul li:hover .dropdown li a:hover {
    background-color: #00b3ff;
}

.header__menu ul li:last-child {
	margin-right: 0;
}

.header__menu ul li .dropdown {
	position: absolute;
	left: 0;
	top: 82px;
	width: 200px;
	background: #ffffff;
	text-align: left;
	padding: 5px 0;
	z-index: 9;
	opacity: 0;
	visibility: hidden;
	-webkit-transition: all, 0.3s;
	-o-transition: all, 0.3s;
	transition: all, 0.3s;
}

.header__menu ul li .dropdown li {
	display: block;
	margin-right: 0;
}

.header__menu ul li .dropdown li a {
	font-size: 14px;
	color: #111111;
	font-weight: 500;
	padding: 5px 20px;
}

.header__menu ul li a {
	font-size: 15px;
	color: #000000;
	display: block;
	font-weight: 700;
	-webkit-transition: all, 0.5s;
	-o-transition: all, 0.5s;
	transition: all, 0.5s;
	padding: 20px;
}

.header__menu ul li span {
    font-size: 15px;
    color: #000000;
    display: block;
    font-weight: 700;
    -webkit-transition: all, 0.5s;
    -o-transition: all, 0.5s;
    transition: all, 0.5s;
    padding: 20px;
}

.header__menu ul li span:hover {
    cursor: pointer;
}

.header__menu ul li a span {
	position: relative;
	font-size: 17px;
	top: 2px;
}

.header__right {
	text-align: right;
	padding: 20px 0 15px;
}

.header__right input {
    width: 100%;
}

.header__right a {
	display: inline-block;
	font-size: 18px;
	color: #ffffff;
	margin-right: 30px;
}

.header__right a:last-child {
	margin-right: 0;
}

.slicknav_menu {
	display: none;
}

/*---------------------
  Hero
-----------------------*/

.hero {
	padding-top: 50px;
    width: 400px;
}

.hero__items {
	padding: 250px 0 42px 50px;
	border-radius: 5px;
}

.hero__text {
	position: relative;
	z-index: 9;
}

.hero__text .label {
	font-size: 13px;
	color: #e53637;
	background: #ffffff;
	padding: 5px 14px 3px;
	display: inline-block;
	position: relative;
	top: -100px;
	opacity: 0;
	-webkit-transition: all, 0.2s;
	-o-transition: all, 0.2s;
	transition: all, 0.2s;
}

.hero__text h2 {
	color: #ffffff;
	font-size: 42px;
	font-family: "Oswald", sans-serif;
	font-weight: 700;
	line-height: 52px;
	margin-top: 35px;
	margin-bottom: 8px;
	position: relative;
	top: -100px;
	opacity: 0;
	-webkit-transition: all, 0.4s;
	-o-transition: all, 0.4s;
	transition: all, 0.4s;
}

.hero__text p {
	color: #ffffff;
	font-size: 16px;
	margin-bottom: 40px;
	position: relative;
	top: -100px;
	opacity: 0;
	-webkit-transition: all, 0.6s;
	-o-transition: all, 0.6s;
	transition: all, 0.6s;
}

.hero__text a {
	position: relative;
	top: -100px;
	opacity: 0;
	-webkit-transition: all, 0.8s;
	-o-transition: all, 0.8s;
	transition: all, 0.8s;
}

.hero__text a span {
	font-size: 13px;
	color: #ffffff;
	background: #e53637;
	display: inline-block;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 14px 20px;
	border-radius: 4px 0 0 4px;
	margin-right: 1px;
}

.hero__text a i {
	font-size: 20px;
	display: inline-block;
	background: #e53637;
	padding: 11px 5px 16px 8px;
	color: #ffffff;
	border-radius: 0 4px 4px 0;
}

.hero__slider.owl-carousel .owl-item.active .hero__text .label {
	top: 0;
	opacity: 1;
}

.hero__slider.owl-carousel .owl-item.active .hero__text h2 {
	top: 0;
	opacity: 1;
}

.hero__slider.owl-carousel .owl-item.active .hero__text p {
	top: 0;
	opacity: 1;
}

.hero__slider.owl-carousel .owl-item.active .hero__text a {
	top: 0;
	opacity: 1;
}

.hero__slider.owl-carousel .owl-dots {
	position: absolute;
	left: 0;
	bottom: 10px;
	width: 100%;
	text-align: center;
}

.hero__slider.owl-carousel .owl-dots button {
	height: 8px;
	width: 8px;
	background: #b7b7b7;
	border-radius: 50%;
	margin-right: 10px;
}

.hero__slider.owl-carousel .owl-dots button.active {
	background: #ffffff;
}

.hero__slider.owl-carousel .owl-dots button:last-child {
	margin-right: 0;
}

.hero__slider.owl-carousel .owl-nav button {
	font-size: 36px;
	height: 66px;
	width: 66px;
	background: #0b0c2a;
	line-height: 66px;
	text-align: center;
	color: #ffffff;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
	position: relative;
	z-index: 1;
	position: absolute;
	left: -33px;
	top: 50%;
	margin-top: -47px;
}

.hero__slider.owl-carousel .owl-nav button.owl-next {
	left: auto;
	right: -33px;
}

.hero__slider.owl-carousel .owl-nav button:after {
	position: absolute;
	top: 6px;
	left: 0;
	right: 0;
	height: 54px;
	width: 54px;
	background: rgba(255, 255, 255, 0.1);
	content: "";
	z-index: -1;
	margin: 0 auto;
}

.hero__slider.owl-carousel .owl-nav button span {
	-webkit-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	transform: rotate(-45deg);
	display: block;
	z-index: 1;
}

/*---------------------
  Product
-----------------------*/

.product {
	padding-bottom: 60px;
	padding-top: 80px;
}

.product-page {
	padding-top: 60px;
}

.btn__all {
	text-align: right;
	margin-bottom: 30px;
}

.banner {
	margin-top: 50px;
}

.popular__product {
	margin-bottom: 50px;
}

.recent__product {
	margin-bottom: 50px;
}

.product__item {
	margin-bottom: 30px;
}

.product__item__pic {
	height: 300px;
	position: relative;
	border-radius: 5px;
}

.product__item__pic .link {
    position: absolute;
    height: 100%;
    width: 100%;
}

.product__item__pic .ep {
	font-size: 13px;
	color: #000000;
	background: #fffb00;
	display: inline-block;
	padding: 2px 12px;
	border-radius: 4px;
	position: absolute;
	left: 10px;
	top: 10px;
}

.product__item__pic .comment {
	font-size: 13px;
	color: #000000;
	background: #ff0000;
	display: inline-block;
	padding: 2px 10px;
	border-radius: 4px;
	position: absolute;
    left: 10px;
    top: 10px;
}

.product__item__pic .view {
	font-size: 13px;
	color: #000000;
	background: #00ffe8;
	display: inline-block;
	padding: 2px 10px;
	border-radius: 4px;
	position: absolute;
    left: 10px;
    top: 40px;
}

.product__item__text {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.product__item__text ul {
	margin-bottom: 10px;
}

.product__item__text ul li {
	list-style: none;
	font-size: 10px;
	color: #ffffff;
	font-weight: 700;
	padding: 8px 10px;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 50px;
	display: inline-block;
}

.product__item__text a {
	color: #ffffff;
    padding-block: 4px;
    padding-inline: 8px;
    font-size: 15px;
    text-align: center;
	font-weight: 700;
	line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product__sidebar .section-title h5 {
	color: #000000;
	font-weight: 600;
	font-family: "Oswald", sans-serif;
	line-height: 21px;
	text-transform: uppercase;
	padding-left: 20px;
	position: relative;
}

.product__sidebar .section-title h5:after {
	position: absolute;
	left: 0;
	top: -6px;
	height: 32px;
	width: 4px;
	background: #28a745;
	content: "";
}

.product__sidebar__view {
	position: relative;
	margin-bottom: 80px;
}

.product__sidebar__view .filter__controls {
	position: absolute;
	right: 0;
	top: -5px;
}

.product__sidebar__view .filter__controls li {
	list-style: none;
	font-size: 13px;
	color: rgba(0, 0, 0, 0.47);
	display: inline-block;
	margin-right: 7px;
	cursor: pointer;
}

.product__sidebar__view .filter__controls li.active {
	color: #ff0000;
}

.product__sidebar__view .filter__controls li:last-child {
	margin-right: 0;
}

.product__sidebar__view__item {
	height: 190px;
	position: relative;
	border-radius: 5px;
	margin-bottom: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.product__sidebar__view__item .ep {
	font-size: 13px;
	color: #000000;
	background: #fffa00;
	display: inline-block;
	padding: 2px 12px;
	border-radius: 4px;
	position: absolute;
	left: 10px;
	top: 10px;
}

.product__sidebar__view__item .view {
	font-size: 13px;
	color: #ffffff;
	background: #3d3d3d;
	display: inline-block;
	padding: 2px 10px;
	border-radius: 4px;
	position: absolute;
	right: 10px;
	top: 10px;
}

.product__sidebar__view__item h5 {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	padding: 20px 30px 10px 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 125))
}

.product__sidebar__view__item h5 a {
	color: #000000;
	font-weight: 700;
	line-height: 26px;
}

.product__sidebar__comment {
	margin-bottom: 35px;
}

.product__sidebar__comment__item {
	margin-bottom: 20px;
	overflow: hidden;
}

.product__sidebar__comment__item__pic {
	float: left;
	margin-right: 15px;
}

.product__sidebar__comment__item__text {
	overflow: hidden;
}

.product__sidebar__comment__item__text ul {
	margin-bottom: 10px;
}

.product__sidebar__comment__item__text ul li {
	list-style: none;
	font-size: 10px;
	color: #000000;
	font-weight: 700;
	padding: 1px 10px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50px;
	display: inline-block;
}

.product__sidebar__comment__item__text h5 {
	margin-bottom: 10px;
}

.product__sidebar__comment__item__text h5 a {
    color: rgba(0, 0, 0);
	font-weight: 700;
	line-height: 26px;
}

.product__sidebar__comment__item__text span {
	display: block;
	font-size: 13px;
    color: rgba(0, 0, 0, 0.5);
}

.product__page__title {
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 10px;
	margin-bottom: 30px;
}

.product__page__title .section-title {
	margin-bottom: 0;
}

.product__page__title .product__page__filter {
	text-align: right;
}

.product__page__title .product__page__filter p {
	color: #ffffff;
	display: inline-block;
	margin-bottom: 0;
	margin-right: 16px;
}

.product__page__title .product__page__filter .nice-select {
	float: none;
	display: inline-block;
	font-size: 15px;
	color: #3d3d3d;
	font-weight: 700;
	border-radius: 0;
	padding-left: 15px;
	padding-right: 40px;
	height: 32px;
	line-height: 32px;
}

.product__page__title .product__page__filter .nice-select:after {
	border-bottom: 2px solid #111;
	border-right: 2px solid #111;
	height: 8px;
	top: 47%;
	width: 8px;
	right: 15px;
}

.product__page__title .product__page__filter .nice-select .list {
	margin-top: 0;
	border-radius: 0;
}

.product__pagination {
	padding-top: 15px;
}

.product__pagination a {
	display: inline-block;
	font-size: 15px;
	color: #b7b7b7;
	font-weight: 600;
	height: 50px;
	width: 50px;
	border: 1px solid transparent;
	border-radius: 50%;
	line-height: 48px;
	text-align: center;
	-webkit-transition: all, 0.3s;
	-o-transition: all, 0.3s;
	transition: all, 0.3s;
}

.product__pagination a:hover {
	color: #ffffff;
}

.product__pagination a.current-page {
	border: 1px solid #ffffff;
}

.product__pagination a i {
	color: #b7b7b7;
	font-size: 15px;
}

/*---------------------
  Anime Details
-----------------------*/

.anime-details {
	padding-top: 60px;
}

.anime__details__content {
	margin-bottom: 65px;
}

.anime__details__text {
	position: relative;
}

.anime__details__text p {
	color: rgba(0, 0, 0, 0.8);
    margin-bottom: 0;
	font-size: 16px;
	line-height: 30px;
}

.anime__details__pic {
	height: 440px;
	border-radius: 5px;
	position: relative;
}

.anime__details__pic .comment {
	font-size: 13px;
	color: #ffffff;
	background: #3d3d3d;
	display: inline-block;
	padding: 2px 10px;
	border-radius: 4px;
	position: absolute;
	left: 10px;
	bottom: 25px;
}

.anime__details__pic .view {
	font-size: 13px;
	color: #ffffff;
	background: #3d3d3d;
	display: inline-block;
	padding: 2px 10px;
	border-radius: 4px;
	position: absolute;
	right: 10px;
	bottom: 25px;
}

.anime__details__title {
	margin-bottom: 20px;
}

.anime__details__title h3 {
	color: #000000;
	font-weight: 700;
	margin-bottom: 13px;
}

.anime__details__title .anime__details__title--category {
    display: inline-block;
    margin-right: 8px;
	font-size: 15px;
	color: #000000;
    /*background: rgb(231, 255, 206);*/
    padding: 5px 10px;
    border-radius: 20px;
}

.anime__details__rating {
	text-align: center;
	position: absolute;
	right: 0;
	top: 0;
}

.anime__details__rating .rating i {
	font-size: 24px;
	color: #e89f12;
	display: inline-block;
}

.anime__details__rating span {
	display: block;
	font-size: 18px;
	color: #000000;
}

.anime__details__widget {
	margin-bottom: 15px;
}

.anime__details__widget ul {
	margin-bottom: 20px;
}

.anime__details__widget ul li {
	list-style: none;
	font-size: 15px;
	color: #000000;
	line-height: 30px;
	position: relative;
	padding-left: 18px;
}

.anime__details__widget ul li:before {
	position: absolute;
	left: 0;
	top: 12px;
	height: 6px;
	width: 6px;
	background: #000000;
	content: "";
}

.anime__details__widget ul li span {
	color: #000000;
	width: 115px;
	display: inline-block;
}
.anime__details__btn button {
	font-size: 13px;
	color: #ffffff;
	background: #28a745;
	display: inline-block;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 7px 10px;
    border-radius: 5px;
	margin-right: 1px;
    margin-bottom: 11px;
	border: 0;
}

.anime__details__btn .follow-btn {
	font-size: 13px;
	color: #ffffff;
	background: #28a745;
	display: inline-block;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
    padding: 7px 10px;
	border-radius: 4px;
	margin-right: 11px;
    margin-bottom: 100px;
}

.anime__details__btn .watch-btn span {
	font-size: 13px;
	color: #ffffff;
	background: #28a745;
	display: inline-block;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 7px 10px;
    border-radius: 5px;
	margin-right: 1px;
    margin-bottom: 11px;
}

.anime__details__btn .watch-btn i {
	font-size: 20px;
	display: inline-block;
	background: #28a745;
	padding: 11px 5px 16px 8px;
	color: #ffffff;
	border-radius: 0 4px 4px 0;
}

.anime__details__review {
	margin-bottom: 55px;
}

.anime__details__review .chaps:visited {
    background-color: #797979;
}

.anime__review__item {
	overflow: hidden;
	margin-bottom: 15px;
}

.anime__review__item__pic {
	float: left;
	margin-right: 20px;
	position: relative;
}

.anime__review__item__pic:before {
	position: absolute;
	right: -30px;
	top: 15px;
	border-top: 15px solid transparent;
	border-left: 15px solid #1d1e39;
	content: "";
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}

.anime__review__item__pic img {
	height: 50px;
	width: 50px;
	border-radius: 50%;
}

.anime__review__item__text {
	overflow: hidden;
	background: #1d1e39;
	padding: 18px 30px 16px 20px;
	border-radius: 10px;
}

.anime__review__item__text h6 {
	color: #ffffff;
	font-weight: 700;
	margin-bottom: 10px;
}

.anime__review__item__text h6 span {
	color: #b7b7b7;
	font-weight: 400;
}

.anime__review__item__text p {
	color: #b7b7b7;
	line-height: 23px;
	margin-bottom: 0;
}

.anime__details__form form textarea {
	width: 100%;
	font-size: 15px;
	color: #000000;
	padding-left: 20px;
	padding-top: 12px;
	height: 110px;
	border: solid #000000 1px;
	border-radius: 5px;
	resize: none;
	margin-bottom: 24px;
}

.anime__details__form form button {
	font-size: 11px;
	color: #ffffff;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	background: #e53637;
	border: none;
	padding: 10px 15px;
	border-radius: 2px;
}

/*---------------------
  Anime Watching
-----------------------*/

.anime__video__player {
	margin-bottom: 70px;
}

.anime__video__player .plyr--video {
	border-radius: 5px;
	background: transparent;
}

.anime__video__player .plyr audio,
.anime__video__player .plyr iframe,
.anime__video__player .plyr video {
	width: 102%;
}

.anime__video__player .plyr--full-ui.plyr--video .plyr__control--overlaid {
	display: block;
}

.anime__video__player .plyr--video .plyr__control.plyr__tab-focus,
.anime__video__player .plyr--video .plyr__control:hover,
.anime__video__player .plyr--video .plyr__control[aria-expanded=true] {
	background: transparent;
}

.anime__video__player .plyr--video .plyr__controls {
	background: transparent;
}

.anime__video__player .plyr--video .plyr__progress__buffer {
	color: transparent;
}

.anime__video__player .plyr--full-ui input[type=range] {
	color: #ffffff;
}

.anime__video__player .plyr__controls .plyr__controls__item.plyr__progress__container {
	position: absolute;
	left: 26px;
	bottom: 45px;
	width: calc(100% - 60px);
}

.anime__video__player .plyr__menu {
	margin-right: 70px;
}

.anime__video__player .plyr__controls .plyr__controls__item:first-child {
	position: absolute;
	left: 32px;
	bottom: 8px;
}

.anime__video__player .plyr__controls .plyr__controls__item:last-child {
	position: absolute;
	right: 32px;
	bottom: 8px;
}

.anime__video__player .plyr__volume {
	position: absolute;
	width: auto;
	left: 76px;
	bottom: 8px;
}

.anime__video__player .plyr__controls .plyr__controls__item.plyr__time {
	position: absolute;
	left: 106px;
	bottom: 12px;
}

.anime__video__player .plyr__control--overlaid {
	background: transparent;
	background: var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, transparent)));
}

.anime__video__player .plyr__control--overlaid svg {
	height: 60px;
	width: 50px;
}

.anime__details__episodes {
	margin-bottom: 35px;
}

.anime__details__episodes a {
	display: inline-block;
	font-size: 15px;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.2);
	padding: 10px 20px;
	border-radius: 4px;
	margin-right: 15px;
	margin-bottom: 20px;
	-webkit-transition: all, 0.3s;
	-o-transition: all, 0.3s;
	transition: all, 0.3s;
}

.anime__details__episodes a:hover {
	color: #000000;
	background: #ffffff;
}

/*---------------------
  Breadcrumb
-----------------------*/

.breadcrumb-option {
	padding-top: 35px;
}

.breadcrumb__links a {
	font-size: 15px;
	color: #ffffff;
	margin-right: 18px;
	display: inline-block;
	position: relative;
}

.breadcrumb__links a i {
	margin-right: 5px;
	color: #e53637;
}

.breadcrumb__links a:after {
	position: absolute;
	right: -14px;
	top: 0;
	content: "";
	font-family: "FontAwesome";
}

.breadcrumb__links span {
	font-size: 15px;
	color: #b7b7b7;
	display: inline-block;
}

/*---------------------
    Normal Breadcrumb
-----------------------*/

.normal-breadcrumb {
	height: 300px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.normal__breadcrumb__text h2 {
	color: #ffffff;
	font-size: 48px;
	font-family: "Oswald", sans-serif;
	font-weight: 700;
	margin-bottom: 22px;
}

.normal__breadcrumb__text p {
	color: #ffffff;
	font-size: 24px;
	margin-bottom: 0;
}

/*---------------------
    Blog
-----------------------*/

.blog {
	padding-top: 70px;
	padding-bottom: 90px;
}

.blog__item {
	height: 580px;
	position: relative;
	margin-left: -10px;
	margin-right: -10px;
	margin-bottom: 10px;
}

.blog__item.small__item {
	height: 285px;
}

.blog__item.small__item .blog__item__text {
	padding: 0 30px;
}

.blog__item.small__item .blog__item__text p {
	margin-bottom: 5px;
}

.blog__item.small__item .blog__item__text h4 a {
	font-size: 20px;
	line-height: 30px;
}

.blog__item__text {
	position: absolute;
	left: 0;
	bottom: 25px;
	text-align: center;
	width: 100%;
	padding: 0 105px;
}

.blog__item__text p {
	color: #ffffff;
	margin-bottom: 12px;
}

.blog__item__text p span {
	color: #e53637;
	margin-right: 5px;
}

.blog__item__text h4 a {
	color: #ffffff;
	line-height: 34px;
}

/*---------------------
  Blog Details
-----------------------*/

.blog-details {
	padding-top: 70px;
}

.blog__details__title {
	text-align: center;
	margin-bottom: 70px;
}

.blog__details__title h6 {
	font-size: 15px;
	color: #ffffff;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 30px;
}

.blog__details__title h6 span {
	color: #b7b7b7;
	font-weight: 400;
	text-transform: none;
}

.blog__details__title h2 {
	color: #ffffff;
	font-size: 48px;
	font-weight: 700;
	line-height: 60px;
	margin-bottom: 38px;
}

.blog__details__title .blog__details__social a {
	display: inline-block;
	font-size: 15px;
	color: #ffffff;
	padding: 16px 35px 14px 20px;
	border-radius: 2px;
	margin-right: 6px;
}

.blog__details__title .blog__details__social a:last-child {
	margin-right: 0;
}

.blog__details__title .blog__details__social a.facebook {
	background: #3b5998;
}

.blog__details__title .blog__details__social a.pinterest {
	background: #ca2027;
}

.blog__details__title .blog__details__social a.linkedin {
	background: #0372b1;
}

.blog__details__title .blog__details__social a.twitter {
	background: #39a1f2;
}

.blog__details__title .blog__details__social a i {
	margin-right: 6px;
}

.blog__details__pic {
	margin-bottom: 30px;
}

.blog__details__pic img {
	min-width: 100%;
}

.blog__details__text {
	margin-bottom: 40px;
}

.blog__details__text p {
	color: #ffffff;
	font-size: 17px;
	line-height: 30px;
}

.blog__details__item__text {
	margin-bottom: 42px;
}

.blog__details__item__text h4 {
	color: #ffffff;
	font-weight: 700;
	margin-bottom: 35px;
}

.blog__details__item__text img {
	min-width: 100%;
	margin-bottom: 26px;
}

.blog__details__item__text p {
	color: #ffffff;
	font-size: 17px;
	line-height: 30px;
	margin-bottom: 0;
}

.blog__details__tags {
	margin-bottom: 60px;
}

.blog__details__tags a {
	display: inline-block;
	color: #b7b7b7;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	margin-right: 6px;
	padding: 6px 15px;
	margin-bottom: 10px;
}

.blog__details__tags a:last-child {
	margin-right: 0;
}

.blog__details__btns {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding: 20px 0 15px;
	margin-bottom: 65px;
}

.blog__details__btns__item {
	margin-bottom: 20px;
}

.blog__details__btns__item.next__btn {
	text-align: right;
}

.blog__details__btns__item h5 a {
	font-size: 17px;
	letter-spacing: 2px;
	color: #ffffff;
}

.blog__details__btns__item h5 a span {
	font-size: 30px;
	color: #b7b7b7;
	position: relative;
	top: 8px;
}

.blog__details__comment {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-bottom: 30px;
}

.blog__details__comment h4 {
	color: #ffffff;
	font-weight: 700;
	margin-bottom: 26px;
}

.blog__details__comment__item {
	margin-bottom: 40px;
	overflow: hidden;
}

.blog__details__comment__item.blog__details__comment__item--reply {
	padding-left: 112px;
}

.blog__details__comment__item__pic {
	float: left;
	margin-right: 40px;
}

.blog__details__comment__item__text {
	overflow: hidden;
}

.blog__details__comment__item__text span {
	font-size: 14px;
	color: #b7b7b7;
	display: block;
	margin-bottom: 10px;
}

.blog__details__comment__item__text h5 {
	color: #ffffff;
	font-weight: 700;
	margin-bottom: 10px;
}

.blog__details__comment__item__text p {
	color: #b7b7b7;
	font-size: 14px;
	line-height: 22px;
	margin-bottom: 25px;
}

.blog__details__comment__item__text a {
	display: inline-block;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
	padding: 6px 20px;
	letter-spacing: 2px;
	border-radius: 2px;
	margin-right: 14px;
	-webkit-transition: all, 0.3s;
	-o-transition: all, 0.3s;
	transition: all, 0.3s;
}

.blog__details__comment__item__text a:hover {
	background: #e53637;
}

.blog__details__form {
	padding-top: 50px;
}

.blog__details__form h4 {
	color: #ffffff;
	font-weight: 700;
	margin-bottom: 26px;
}

.blog__details__form form input {
	height: 50px;
	width: 100%;
	background: #ffffff;
	font-size: 15px;
	color: #a6a6a6;
	padding-left: 20px;
	border-radius: 2px;
	border: none;
	margin-bottom: 30px;
}

.blog__details__form form input::-webkit-input-placeholder {
	color: #a6a6a6;
}

.blog__details__form form input::-moz-placeholder {
	color: #a6a6a6;
}

.blog__details__form form input:-ms-input-placeholder {
	color: #a6a6a6;
}

.blog__details__form form input::-ms-input-placeholder {
	color: #a6a6a6;
}

.blog__details__form form input::placeholder {
	color: #a6a6a6;
}

.blog__details__form form textarea {
	height: 115px;
	width: 100%;
	background: #ffffff;
	font-size: 15px;
	color: #a6a6a6;
	padding-left: 20px;
	border-radius: 2px;
	padding-top: 12px;
	resize: none;
	border: none;
	margin-bottom: 34px;
}

.blog__details__form form textarea::-webkit-input-placeholder {
	color: #a6a6a6;
}

.blog__details__form form textarea::-moz-placeholder {
	color: #a6a6a6;
}

.blog__details__form form textarea:-ms-input-placeholder {
	color: #a6a6a6;
}

.blog__details__form form textarea::-ms-input-placeholder {
	color: #a6a6a6;
}

.blog__details__form form textarea::placeholder {
	color: #a6a6a6;
}

/*---------------------
  Login
-----------------------*/

.login {
	padding-top: 130px;
	padding-bottom: 120px;
}

.login__form {
	position: relative;
	padding-left: 145px;
}

.login__form:after {
	position: absolute;
	right: -14px;
	top: -40px;
	height: 330px;
	width: 1px;
	background: rgba(0, 0, 0, 0.2);
	content: "";
}

.login__form h3 {
	color: #000000;
	font-weight: 700;
	font-family: "Oswald", sans-serif;
	margin-bottom: 30px;
}

.login__form form .input__item {
	position: relative;
	width: 370px;
	margin-bottom: 20px;
}

.login__form form .input__item:before {
	position: absolute;
	left: 50px;
	top: 10px;
	height: 30px;
	width: 1px;
	background: #000000;
	content: "";
}

.login__form form .input__item input {
	height: 50px;
	width: 100%;
	font-size: 15px;
	color: rgba(0, 0, 0, 0.5);
	background: #ffffff;
	border: none;
	padding-left: 76px;
}

.login__form form .input__item input::-webkit-input-placeholder {
	color: rgba(0, 0, 0, 0.5);
}

.login__form form .input__item input::-moz-placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.login__form form .input__item input:-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.login__form form .input__item input::-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.login__form form .input__item input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.login__form form .input__item span {
    color: rgba(0, 0, 0, 0.5);
	font-size: 20px;
	position: absolute;
	left: 15px;
	top: 13px;
}

.login__form form button {
	border-radius: 0;
	margin-top: 10px;
}

.login__form .forget_pass {
	font-size: 15px;
	color: #000000;
	display: inline-block;
	position: absolute;
	right: 60px;
	bottom: 12px;
}

.login__register {
	padding-left: 30px;
}

.login__register h3 {
	color: #000000;
	font-weight: 700;
	font-family: "Oswald", sans-serif;
	margin-bottom: 30px;
}

.login__register .primary-btn {
	background: #e53637;
	padding: 12px 42px;
}

.login__social {
	padding-top: 52px;
}

.login__social__links {
	text-align: center;
}

.login__social__links span {
	color: #000000;
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 30px;
}

.login__social__links ul li {
	list-style: none;
	margin-bottom: 15px;
}

.login__social__links ul li:last-child {
	margin-bottom: 0;
}

.login__social__links ul li a {
	color: #000000;
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	width: 460px;
	padding: 14px 0;
	position: relative;
	margin: 0 auto;
}

.login__social__links ul li a.facebook {
	background: #4267b2;
}

.login__social__links ul li a.google {
	background: #ff4343;
}

.login__social__links ul li a.twitter {
	background: #1da1f2;
}

.login__social__links ul li a i {
	font-size: 20px;
	position: absolute;
	left: 32px;
	top: 14px;
}

/*---------------------
  Sign Up
-----------------------*/

.signup {
	padding-top: 130px;
	padding-bottom: 150px;
}

.signup .login__form:after {
	height: 450px;
}

.signup .login__form h5 {
	font-size: 15px;
	color: #000000;
	margin-top: 36px;
}

.signup .login__form h5 a {
	color: #e53637;
	font-weight: 700;
}

.signup .login__social__links {
	text-align: left;
	padding-left: 40px;
}

.signup .login__social__links h3 {
	color: #000000;
	font-weight: 700;
	font-family: "Oswald", sans-serif;
	margin-bottom: 30px;
}

.signup .login__social__links ul li a {
	margin: 0;
	text-align: center;
}

/*---------------------
  Chapter
-----------------------*/

.chapter__header a {
    color: #000000;
}

.chapter__header span {
    color: rgba(0, 0, 0, 0.44);
    padding-inline: 8px;
}

.chapter__content {
    padding-block: 32px;
    padding-inline: 16px;
    margin-bottom: 32px;
    border-radius: 8px;
}

.chapter__content h3 {
    font-weight: bolder;
    margin-bottom: 36px;
    padding-block: 8px;
    background-color: #E7FFCE;
}

.chapter__content p {
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.5;
    text-align: justify;
}

.chapter__content--info {
    border-radius: 6px;
    padding-block: 4px;
    margin-bottom: 16px;
}

.chapter__content--info p {
    font-weight: 600;
}
/*---------------------
  Footer
-----------------------*/

.footer {
	background: #E7FFCE;
	padding-top: 60px;
	padding-bottom: 40px;
	position: relative;
}

.page-up {
	position: absolute;
	left: 50%;
	top: -25px;
	margin-left: -25px;
}

.page-up a {
	display: inline-block;
	font-size: 36px;
	color: #ffffff;
	height: 50px;
	width: 50px;
	background: #28a745;
	line-height: 50px;
	text-align: center;
	border-radius: 50%;
}

.page-up a span {
	position: relative;
	top: 2px;
	left: -1px;
}

.footer__nav {
	text-align: center;
}

.footer__nav ul li {
	list-style: none;
	display: inline-block;
	position: relative;
	margin-right: 40px;
}

.footer__nav ul li:last-child {
	margin-right: 0;
}

.footer__nav ul li a {
	font-size: 15px;
	color: rgba(0, 0, 0, 0.5);
	display: block;
	font-weight: 700;
}

.footer__copyright__text {
    color: rgba(0, 0, 0, 0.5);
	margin-bottom: 0;
	text-align: right;
}

.footer__copyright__text a {
	color: #e53637;
}

#searchForm {
	display: flex;
}

#openSearchBtn {
	display: none;
}

/*--------------------------------- Responsive Media Quaries -----------------------------*/

@media only screen and (min-width: 1200px) and (max-width: 1300px) {
	.hero {
		overflow: hidden;
	}
}

@media only screen and (min-width: 1200px) {
	.container {
		max-width: 1170px;
	}
}

/* Medium Device = 1200px */

@media only screen and (min-width: 992px) and (max-width: 1199px) {
	.hero {
		overflow: hidden;
	}
	.login__form {
		position: relative;
		padding-left: 32px;
	}
	.login__social__links ul li a {
		width: 380px;
	}
	.blog__item__text {
		padding: 0 50px;
	}
}

/* Tablet Device = 768px */

@media only screen and (min-width: 768px) and (max-width: 991px) {
	.hero {
		overflow: hidden;
	}
	.header {
		position: relative;
	}
	.header .container {
		position: relative;
	}
	.header__right {
		position: absolute;
		right: 120px;
		top: -63px;
		padding: 0;
	}
	.header__menu {
		display: none;
	}
	.slicknav_menu {
		background: transparent;
		padding: 0;
		display: block;
	}
	.slicknav_nav {
		position: absolute;
		left: 0;
		top: 120px;
		width: 100%;
		background: #E7FFCE;
		padding: 15px 30px;
        border: #E7FFCE solid 1px;
		z-index: 9;
	}
	.slicknav_nav ul {
		margin: 0;
	}
	.slicknav_nav .slicknav_row,
	.slicknav_nav a {
		padding: 7px 0;
		margin: 0;
		color: #111111;
		font-weight: 600;
	}
	.slicknav_btn {
		border-radius: 0;
		background-color: #28a745;
		position: absolute;
		right: 0;
		top: 28px;
		z-index: 2;
	}
	.slicknav_nav .slicknav_arrow {
		color: #111111;
	}
	.slicknav_nav .slicknav_row:hover {
		border-radius: 0;
		background: transparent;
		color: #111111;
	}
	.slicknav_nav a:hover {
		border-radius: 0;
		background: transparent;
		color: #111111;
	}
	.product__sidebar {
		padding-top: 50px;
	}
	.footer__logo {
		text-align: center;
		margin-bottom: 20px;
	}
	.footer__nav {
		margin-bottom: 15px;
	}
	.footer__copyright__text {
		text-align: center;
	}
	.anime__details__widget ul li span {
		width: 90px;
	}
	.anime__details__pic {
		margin-bottom: 40px;
	}
	.anime__details__sidebar {
		padding-top: 50px;
	}
	.login__form {
		padding-left: 0;
		margin-bottom: 40px;
	}
	.login__form:after {
		display: none;
	}
	.login__form form .input__item {
		width: auto;
	}
	.login__register {
		padding-left: 0;
	}
	.signup .login__social__links {
		padding-left: 0;
	}
}

/* Wide Mobile = 480px */

@media only screen and (max-width: 767px) {
	.hero {
		overflow: hidden;
	}
	.header {
		position: relative;
	}
	.header .container {
		position: relative;
	}
	.header__right {
		position: absolute;
		right: 0;
		top: -63px;
		padding: 0;
        width: 70%;
	}
    .header__right input {
        width: 50%;
    }
	.header__menu {
		display: none;
	}
	.slicknav_menu {
		background: transparent;
		padding: 0;
		display: block;
	}
	.slicknav_nav {
		position: absolute;
		left: 0;
		top: 175px;
		width: 100%;
		background: #E7FFCE;
		padding: 15px 30px;
        /*border: #000 solid 1px;*/
		z-index: 9;
	}
	.slicknav_nav ul {
		margin: 0;
	}
	.slicknav_nav .slicknav_row,
	.slicknav_nav a {
		padding: 7px 0;
		margin: 0;
		color: #111111;
		font-weight: 600;
	}
	.slicknav_btn {
		border-radius: 0;
		background-color: #28a745;
		position: absolute;
		right: 0;
		top: 136px;
		z-index: 2;
	}
	.slicknav_nav .slicknav_arrow {
		color: #111111;
	}
	.slicknav_nav .slicknav_row:hover {
		border-radius: 0;
		background: transparent;
		color: #111111;
	}
	.slicknav_nav a:hover {
		border-radius: 0;
		background: transparent;
		color: #111111;
	}
	.banner .col:nth-child(n+4) {
		display: none;
	}
	.product__sidebar {
		padding-top: 50px;
	}
	.footer__logo {
		text-align: center;
		margin-bottom: 20px;
	}
	.footer__nav {
		margin-bottom: 15px;
	}
	.footer__copyright__text {
		text-align: center;
	}
	.blog__details__title h2 {
		font-size: 34px;
		line-height: normal;
	}
	.anime__details__pic {
		margin-bottom: 40px;
	}
	.anime__details__sidebar {
		padding-top: 50px;
	}
	.btn__all {
		text-align: left;
	}
	.product__page__title .section-title {
		margin-bottom: 30px;
	}
	.product__page__title .product__page__filter {
		text-align: left;
	}
	.anime__details__rating {
		text-align: left;
		position: relative;
		margin-bottom: 20px;
	}
	.blog__details__social {
		overflow: hidden;
	}
	.blog__details__title .blog__details__social a {
		margin-right: 10px;
		margin-bottom: 10px;
		width: calc(50% - 10px);
		float: left;
	}
	.login__form {
		padding-left: 0;
		margin-bottom: 40px;
	}
	.login__form:after {
		display: none;
	}
	.login__form form .input__item {
		width: auto;
	}
	.signup .login__social__links {
		padding-left: 0;
	}
	.login__social__links ul li a {
		width: auto;
	}
	.blog__item__text {
		padding: 0 30px;
	}
	.login__register {
		padding-left: 0;
	}
	.product__sidebar__view .filter__controls li {
		margin-right: 2px;
	}
}

/* Small Device = 320px */

@media only screen and (max-width: 479px) {
	.hero__slider.owl-carousel .owl-nav {
		display: none;
	}
	.hero__items {
		padding: 250px 0 42px 15px;
	}
	.hero__text h2 {
		font-size: 32px;
	}
	.footer__nav ul li {
		margin-right: 10px;
	}
	.anime__details__btn .follow-btn {
		padding: 7px 10px;
		margin-right: 11px;
		margin-bottom: 25px;
	}
	.anime__details__widget ul li span {
		width: 85px;
	}
	.anime__video__player .plyr__volume {
		left: 65px;
	}
	.anime__video__player .plyr__controls .plyr__controls__item.plyr__time {
		left: 95px;
	}
	.anime__video__player .plyr__menu {
		margin-right: 60px;
	}
	.blog__details__title h2 {
		font-size: 30px;
		line-height: normal;
	}
	.blog__details__title .blog__details__social a {
		padding: 16px 25px 14px 20px;
	}
	.blog__details__comment__item.blog__details__comment__item--reply {
		padding-left: 0;
	}
	.blog__details__comment__item__pic {
		margin-right: 25px;
	}
	.blog__details__comment__item__text a {
		margin-right: 6px;
	}
	.login__social__links ul li a i {
		left: 20px;
	}
	.login__form .forget_pass {
		position: relative;
		left: 0;
		bottom: 0;
		margin-top: 25px;
	}
	.header__right a {
		margin-right: 10px;
	}
	.anime__review__item__text h6 span {
		font-size: 12px;
	}
	.anime__review__item__text {
		padding: 18px 20px 20px;
	}
	#openSearchBtn {
		display: block;
		cursor: pointer;
	}
	#searchFormRelative {
		position: relative;
	}
	#searchForm {
		opacity: 0;
		visibility: hidden;
		width: 200px;
		position: absolute;
		top: 60px;
		left: -120px;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}
	#searchForm.show {
		opacity: 1;
		visibility: visible;
	}
}


/* ==========================================================================
   TIỂU SƠN THẦN — MODERN UI/UX UPGRADE (PC & MOBILE, BANANA-GREEN #E7FFCE)
   ========================================================================== */

:root {
    --tst-banana: #E7FFCE;
    --tst-banana-soft: #f4ffe8;
    --tst-banana-border: #c5e8a0;
    --tst-green: #28a745;
    --tst-green-dark: #1e7e34;
    --tst-forest: #1b4332;
    --tst-text: #1f2937;
    --tst-muted: #6b7280;
    --tst-card-bg: #ffffff;
    --tst-page-bg: #f8fbf4;
}

body {
    background-color: var(--tst-page-bg);
    color: var(--tst-text);
}

.tst-section {
    padding-top: 36px !important;
    padding-bottom: 56px !important;
}

/* --- 1. HEADER & NAVIGATION (PC + MOBILE) --- */
.tst-header {
    background: var(--tst-banana);
    border-bottom: 1px solid var(--tst-banana-border);
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tst-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    min-height: 72px;
    padding: 8px 0;
}

.tst-header-brand {
    flex-shrink: 0;
    white-space: nowrap;
}

.tst-header-brand a {
    text-decoration: none;
}

.tst-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
    flex-shrink: 0;
}

.tst-brand-title {
    display: block;
    font-family: "Oswald", sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--tst-forest);
    line-height: 1.15;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.tst-brand-sub {
    font-size: 11.5px;
    color: #3b6e52;
    font-weight: 600;
    white-space: nowrap;
}

.tst-desktop-nav {
    flex-shrink: 0;
}

.tst-nav-list {
    list-style: none;
    gap: 4px;
    flex-wrap: nowrap;
}

.tst-nav-list > li {
    position: relative;
    flex-shrink: 0;
}

.tst-nav-list > li > a,
.tst-nav-list > li > .tst-nav-trigger {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--tst-forest);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.tst-nav-list > li > a:hover,
.tst-nav-list > li > .tst-nav-trigger:hover {
    background: rgba(40, 167, 69, 0.14);
    color: var(--tst-green-dark);
}

.tst-nav-list > li.active > a {
    background: var(--tst-green);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.28);
}

/* Dropdown Thể loại 2-3 cột trên PC */
.tst-has-dropdown {
    position: relative;
}

.tst-category-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 420px;
    max-height: 380px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--tst-banana-border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.22s ease;
    z-index: 1050;
}

.tst-has-dropdown:hover .tst-category-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tst-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.tst-category-item {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tst-text);
    border-radius: 8px;
    background: var(--tst-banana-soft);
    transition: all 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tst-category-item:hover {
    background: var(--tst-green);
    color: #ffffff !important;
}

/* Ô tìm kiếm PC */
.tst-header-actions {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1440px) {
    .tst-header .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
    .tst-header-inner {
        gap: 8px;
    }
    .tst-logo-img {
        width: 44px;
        height: 44px;
    }
    .tst-brand-title {
        font-size: 18.5px;
    }
    .tst-brand-sub {
        font-size: 10.5px;
    }
    .tst-nav-list {
        gap: 2px;
    }
    .tst-nav-list > li > a,
    .tst-nav-list > li > .tst-nav-trigger {
        padding: 7px 9px;
        font-size: 13.5px;
    }
    .tst-search-desktop {
        width: 156px !important;
    }
    .tst-btn-primary {
        padding: 7px 12px !important;
        font-size: 13px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

.tst-search-desktop {
    position: relative;
    background: #ffffff;
    border: 1.5px solid var(--tst-banana-border);
    border-radius: 999px;
    padding: 3px 4px 3px 12px;
    width: 190px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.tst-search-desktop:focus-within {
    border-color: var(--tst-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.18);
    width: 215px;
}

.tst-search-input {
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--tst-text);
    width: 100%;
}

.tst-search-submit {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--tst-green);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.tst-search-submit:hover {
    background: var(--tst-green-dark);
}

/* Nút bấm trên Header */
.tst-btn-primary {
    background: var(--tst-green);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 999px;
    padding: 8px 16px;
    border: none;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.22);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tst-btn-primary:hover {
    background: var(--tst-green-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.tst-user-pill {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tst-btn-studio {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    border-radius: 999px;
    padding: 7px 13px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.28);
}

/* Điều khiển trên Mobile */
.tst-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--tst-banana-border);
    background: #ffffff;
    color: var(--tst-forest);
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tst-hamburger-btn {
    background: var(--tst-green);
    color: #ffffff;
    border-color: var(--tst-green);
}

.tst-mobile-search-bar {
    display: none;
    padding: 8px 0 12px;
    border-top: 1px dashed var(--tst-banana-border);
}

.tst-mobile-search-bar.show {
    display: block;
}

.tst-mobile-search-input {
    width: 100%;
    height: 40px;
    border-radius: 999px;
    border: 1.5px solid var(--tst-banana-border);
    padding: 0 16px;
    font-size: 14px;
    background: #ffffff;
}

/* Ẩn menu slicknav cũ bị lỗi đè chữ trên mobile */
.slicknav_menu,
#mobile-menu-wrap {
    display: none !important;
}

/* Ngăn kéo Menu Mobile (Slide-out Drawer) */
.tst-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.tst-drawer-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.tst-mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 86vw;
    height: 100vh;
    background: #ffffff;
    z-index: 2000;
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    transition: right 0.28s ease;
}

.tst-mobile-drawer.open {
    right: 0;
}

.tst-drawer-header {
    background: var(--tst-banana);
    padding: 14px 18px;
    border-bottom: 1px solid var(--tst-banana-border);
    color: var(--tst-forest);
    font-size: 18px;
}

.tst-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: var(--tst-forest);
    font-size: 16px;
}

.tst-drawer-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.tst-drawer-links {
    list-style: none;
    border-top: 1px solid #eef2e6;
    border-bottom: 1px solid #eef2e6;
    padding: 8px 0;
}

.tst-drawer-links li a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--tst-text);
    border-radius: 10px;
}

.tst-drawer-links li a:hover {
    background: var(--tst-banana);
    color: var(--tst-forest);
}

.tst-drawer-section-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tst-forest);
    letter-spacing: 0.5px;
}

.tst-drawer-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tst-drawer-cat-pill {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    background: var(--tst-banana);
    color: var(--tst-forest);
    border-radius: 999px;
    border: 1px solid var(--tst-banana-border);
}

/* --- 2. KHU VỰC TRUYỆN ĐỀ CỬ & THẺ TRUYỆN (MANGA CARD) --- */
.tst-featured-box {
    background: linear-gradient(180deg, var(--tst-banana) 0%, #f4ffe8 100%);
    border: 1px solid var(--tst-banana-border);
    border-radius: 18px;
    padding: 20px 20px 8px;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.08);
}

.tst-featured-heading h4 {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    color: var(--tst-forest);
    font-size: 22px;
    text-transform: uppercase;
}

.tst-featured-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--tst-green);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tst-swipe-hint {
    font-size: 12px;
    font-weight: 700;
    color: var(--tst-green-dark);
}

.tst-manga-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(197, 232, 160, 0.6);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.tst-manga-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(40, 167, 69, 0.18);
}

.tst-card-cover {
    width: 100%;
    aspect-ratio: 440 / 600;
    height: auto !important;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e9f5db;
    background-size: 100% 100% !important;
    background-position: top right !important;
    background-repeat: no-repeat !important;
}

.tst-card-cover .link {
    z-index: 4;
}

.tst-badge-full,
.tst-badge-ongoing {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tst-badge-full {
    background: var(--tst-banana);
    color: var(--tst-forest);
    border: 1px solid var(--tst-green);
}

.tst-badge-ongoing {
    background: rgba(27, 67, 50, 0.85);
    color: var(--tst-banana);
}

.tst-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 38px 8px 10px;
    background: linear-gradient(to top, rgba(10, 24, 17, 0.96) 0%, rgba(10, 24, 17, 0.76) 58%, rgba(10, 24, 17, 0) 100%);
    z-index: 2;
}

.tst-card-title {
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.tst-manga-card:hover .tst-card-title {
    color: var(--tst-banana) !important;
}

.tst-card-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5px;
    margin-top: 6px;
}

.tst-card-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    color: #e7ffce;
    background: rgba(27, 67, 50, 0.88);
    border: 1px solid rgba(183, 228, 199, 0.38);
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
}

.tst-card-stat-pill i {
    font-size: 10.5px;
    color: #86efac;
}

.tst-view-all-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tst-forest);
    background: var(--tst-banana);
    border: 1px solid var(--tst-banana-border);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.tst-view-all-btn:hover {
    background: var(--tst-green);
    color: #ffffff !important;
    border-color: var(--tst-green);
}

/* --- 3. CỘT BẢNG ĐỀ CỬ / SIDEBAR --- */
.tst-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--tst-banana-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.tst-sidebar-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--tst-banana);
    color: var(--tst-forest);
}

.tst-rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tst-rank-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: var(--tst-banana-soft);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tst-rank-item:hover {
    background: var(--tst-banana);
    border-color: var(--tst-banana-border);
    transform: translateX(4px);
}

.tst-rank-number {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #e2efd3;
    color: var(--tst-forest);
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.tst-rank-number.top-rank {
    background: var(--tst-green);
    color: #ffffff;
}

.tst-rank-thumb {
    width: 54px;
    height: 74px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #dcebc9;
    flex-shrink: 0;
    margin-right: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.tst-rank-info {
    flex: 1;
    min-width: 0;
}

.tst-rank-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tst-text);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tst-mini-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

.tst-mini-badge.full {
    background: var(--tst-green);
    color: #ffffff;
}

.tst-mini-badge.ongoing {
    background: #e2efd3;
    color: var(--tst-forest);
}

.tst-rank-author {
    font-size: 12px;
    color: var(--tst-muted);
    max-width: 120px;
}

/* --- 4. TRANG CHI TIẾT TRUYỆN (MANGA DETAILS) --- */
.tst-breadcrumb {
    font-size: 14px;
    font-weight: 600;
    color: var(--tst-muted);
    background: var(--tst-banana);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--tst-banana-border);
}

.tst-breadcrumb a {
    color: var(--tst-forest);
    font-weight: 700;
}

.tst-breadcrumb-current {
    color: var(--tst-green-dark);
    font-weight: 700;
}

.tst-detail-card {
    background: #ffffff;
    border: 1px solid var(--tst-banana-border);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 8px 26px rgba(27, 67, 50, 0.06);
}

.tst-detail-cover-wrap {
    overflow: hidden;
    border-radius: 14px;
}

.tst-detail-cover {
    width: 100%;
    aspect-ratio: 440 / 600;
    height: auto !important;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    border: 3px solid var(--tst-banana);
    position: relative;
    overflow: hidden;
    background-color: #e9f5db;
    background-size: 100% 100% !important;
    background-position: top right !important;
    background-repeat: no-repeat !important;
}

.tst-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--tst-forest);
    line-height: 1.3;
}

.tst-meta-item {
    font-size: 15px;
    color: var(--tst-text);
    background: var(--tst-banana-soft);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e2f2ce;
}

.tst-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tst-cat-pill {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    background: var(--tst-banana);
    color: var(--tst-forest);
    border: 1px solid var(--tst-banana-border);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.tst-cat-pill:hover {
    background: var(--tst-green);
    color: #ffffff !important;
    border-color: var(--tst-green);
}

.tst-detail-desc {
    background: #fafdf7;
    border: 1px solid #e4f0d5;
    border-radius: 12px;
    padding: 16px;
}

.tst-desc-label {
    font-weight: 800;
    font-size: 14px;
    color: var(--tst-forest);
    text-transform: uppercase;
}

.tst-desc-body,
.tst-desc-body p {
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #374151 !important;
    margin-bottom: 8px;
}

.tst-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    transition: all 0.2s ease;
    border: none;
}

.tst-action-btn.primary {
    background: var(--tst-green);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.3);
}

.tst-action-btn.primary:hover {
    background: var(--tst-green-dark);
    transform: translateY(-2px);
}

.tst-action-btn.secondary {
    background: var(--tst-banana);
    color: var(--tst-forest) !important;
    border: 1px solid var(--tst-banana-border);
}

.tst-action-btn.secondary:hover {
    background: #d8f8b5;
}

.tst-action-btn.outline {
    background: #ffffff;
    color: var(--tst-forest) !important;
    border: 1.5px solid var(--tst-banana-border);
}

.tst-action-btn.outline.liked,
.tst-action-btn.outline:hover {
    background: #ffe8ec;
    color: #e11d48 !important;
    border-color: #fda4af;
}

.tst-action-btn.donate {
    background: #fef3c7;
    color: #92400e !important;
    border: 1px solid #fde68a;
}

.tst-action-btn.donate:hover {
    background: #fde68a;
}

/* Danh sách chương 2 cột + Ô tìm nhanh chương */
.tst-chapter-box {
    background: #ffffff;
    border: 1px solid var(--tst-banana-border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.tst-chap-search-input {
    height: 38px;
    border-radius: 999px;
    border: 1.5px solid var(--tst-banana-border);
    padding: 0 16px;
    font-size: 14px;
    width: 240px;
    background: var(--tst-banana-soft);
}

.tst-chap-search-input:focus {
    border-color: var(--tst-green);
    background: #ffffff;
}

.tst-chapter-grid {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.tst-chapter-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    background: var(--tst-banana-soft);
    border: 1px solid #e1f0d0;
    border-radius: 10px;
    color: var(--tst-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.tst-chapter-item-btn:hover {
    background: var(--tst-banana);
    border-color: var(--tst-green);
    color: var(--tst-forest);
    transform: translateY(-1px);
}

.tst-chap-icon {
    color: var(--tst-green);
    margin-right: 8px;
    flex-shrink: 0;
}

.tst-chap-name {
    flex: 1;
}

.tst-chap-arrow {
    color: var(--tst-muted);
    margin-left: 8px;
}

/* --- 5. TRANG ĐỌC CHƯƠNG TRUYỆN (READER) --- */
.tst-reader-header {
    background: #ffffff;
    border: 1px solid var(--tst-banana-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.tst-reader-manga-title a {
    font-size: 15px;
    font-weight: 700;
    color: var(--tst-green-dark);
}

.tst-reader-chap-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--tst-forest);
    background: var(--tst-banana);
    display: inline-block;
    padding: 8px 22px;
    border-radius: 999px;
}

.tst-reader-toolbar {
    background: var(--tst-banana-soft);
    border: 1px solid var(--tst-banana-border);
    border-radius: 12px;
    padding: 10px 14px;
}

.tst-toolbar-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--tst-forest);
}

.tst-theme-btn,
.tst-font-btn {
    border: 1px solid var(--tst-banana-border);
    background: #ffffff;
    color: var(--tst-text);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    margin-right: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.tst-theme-btn.active,
.tst-font-btn:hover {
    background: var(--tst-green);
    color: #ffffff;
    border-color: var(--tst-green);
}

.tst-font-size-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--tst-forest);
    min-width: 38px;
    display: inline-block;
}

.tst-chap-nav-btn {
    background: var(--tst-green);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
}

.tst-chap-nav-btn:hover:not(.disabled) {
    background: var(--tst-green-dark);
}

.tst-chap-nav-btn.disabled {
    background: #cbd5e1;
    color: #64748b !important;
    cursor: not-allowed;
}

.tst-chap-select {
    height: 40px !important;
    border-radius: 999px !important;
    border: 1.5px solid var(--tst-banana-border) !important;
    padding: 0 18px !important;
    font-weight: 700;
    color: var(--tst-forest);
    background-color: var(--tst-banana-soft);
    min-width: 210px;
}

.tst-reader-paper {
    background: #ffffff;
    border: 1px solid var(--tst-banana-border);
    border-radius: 16px;
    padding: 36px 48px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.tst-reader-body,
.tst-reader-body p {
    font-family: "Mulish", sans-serif;
    font-weight: 400 !important;
    font-size: 20px;
    line-height: 1.85 !important;
    color: #1f2937;
    text-align: justify;
    margin-bottom: 18px;
}

#tstReaderBody.tst-protected-flex {
    display: flex;
    flex-direction: column;
}
#tstReaderBody.tst-protected-flex > p {
    margin-top: 0;
    width: 100%;
}
.tst-chap-stream-skeleton {
    padding: 28px 18px;
    border-radius: 12px;
    background: #f3f9ee;
    border: 1px dashed #a7d7b8;
    color: #1b4332;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
}
#tstReaderWrap[data-reader-theme="dark"] .tst-chap-stream-skeleton,
html.tst-dark-mode .tst-chap-stream-skeleton {
    background: #14261c;
    border-color: #2f6b47;
    color: #bbf7d0;
}

/* Chế độ màu nền đọc truyện */
#tstReaderWrap[data-reader-theme="green"] .tst-reader-paper {
    background: #ecfcd8;
    border-color: #bde691;
}
#tstReaderWrap[data-reader-theme="green"] .tst-reader-body,
#tstReaderWrap[data-reader-theme="green"] .tst-reader-body p {
    color: #163020;
}

#tstReaderWrap[data-reader-theme="sepia"] .tst-reader-paper {
    background: #f9f1de;
    border-color: #e6d5b8;
}
#tstReaderWrap[data-reader-theme="sepia"] .tst-reader-body,
#tstReaderWrap[data-reader-theme="sepia"] .tst-reader-body p {
    color: #3d2c1e;
}

#tstReaderWrap[data-reader-theme="dark"] {
    background: #111827;
}
#tstReaderWrap[data-reader-theme="dark"] .tst-reader-paper,
#tstReaderWrap[data-reader-theme="dark"] .tst-reader-header {
    background: #1f2937;
    border-color: #374151;
}
#tstReaderWrap[data-reader-theme="dark"] .tst-reader-manga-title a {
    color: #86efac !important;
}
#tstReaderWrap[data-reader-theme="dark"] .tst-reader-chap-title {
    background: #374151 !important;
    color: #f9fafb !important;
    border: 1px solid #4b5563;
}
#tstReaderWrap[data-reader-theme="dark"] .tst-reader-toolbar {
    background: #111827 !important;
    border-color: #374151 !important;
}
#tstReaderWrap[data-reader-theme="dark"] .tst-theme-btn:not(.active),
#tstReaderWrap[data-reader-theme="dark"] .tst-font-btn {
    background: #1f2937;
    color: #e5e7eb;
    border-color: #4b5563;
}
#tstReaderWrap[data-reader-theme="dark"] .tst-toolbar-label,
#tstReaderWrap[data-reader-theme="dark"] .tst-font-size-val {
    color: #e5e7eb !important;
}
#tstReaderWrap[data-reader-theme="dark"] .tst-chap-team-pill {
    background: #143622 !important;
    color: #86efac !important;
    border-color: #22c55e !important;
}
#tstReaderWrap[data-reader-theme="dark"] .tst-chap-tip-pill {
    background: #14261c !important;
    color: #bbf7d0 !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
}
#tstReaderWrap[data-reader-theme="dark"] .tst-reader-body,
#tstReaderWrap[data-reader-theme="dark"] .tst-reader-body p {
    color: #e5e7eb;
}

/* --- 6. FOOTER & NÚT LÊN ĐẦU TRANG --- */
.tst-footer {
    background: var(--tst-banana);
    border-top: 1px solid var(--tst-banana-border);
    padding: 36px 0 32px;
}

.tst-footer-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--tst-forest);
}

.tst-footer-link:hover {
    color: var(--tst-green);
}

.tst-footer-disclaimer {
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
}

.tst-floating-up {
    position: fixed !important;
    left: auto !important;
    top: auto !important;
    right: 20px !important;
    bottom: 24px !important;
    margin: 0 !important;
    z-index: 990;
}

.tst-floating-up a {
    width: 46px;
    height: 46px;
    line-height: 46px;
    font-size: 28px;
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.35);
}

.tst-back-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--tst-forest);
    background: var(--tst-banana);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--tst-banana-border);
}

/* --- 7. TỐI ƯU HIỂN THỊ TRÊN ĐIỆN THOẠI (MOBILE RESPONSIVE) --- */
@media only screen and (max-width: 767px) {
    .tst-section {
        padding-top: 20px !important;
        padding-bottom: 36px !important;
    }

    .tst-header-inner {
        min-height: 60px;
    }

    .tst-logo-img {
        width: 42px;
        height: 42px;
    }

    .tst-brand-title {
        font-size: 19px;
    }

    /* Hàng truyện đề cử vuốt ngang mượt trên điện thoại */
    .tst-featured-box {
        padding: 14px 12px 6px;
    }

    .tst-featured-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-left: -6px;
        margin-right: -6px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .tst-featured-col {
        flex: 0 0 44%;
        max-width: 44%;
        padding-left: 6px;
        padding-right: 6px;
        scroll-snap-align: start;
        display: block !important;
    }

    .tst-card-cover {
        aspect-ratio: 440 / 600;
        height: auto !important;
    }

    .tst-card-title {
        font-size: 13.5px;
    }

    .tst-detail-card {
        padding: 16px;
    }

    .tst-detail-cover {
        aspect-ratio: 440 / 600;
        height: auto !important;
        max-width: 220px;
        margin: 0 auto;
    }

    .tst-detail-title {
        font-size: 22px;
        text-align: center;
    }

    .tst-detail-meta,
    .tst-category-pills,
    .tst-detail-actions {
        justify-content: center;
    }

    .tst-chap-search-wrap,
    .tst-chap-search-input {
        width: 100%;
    }

    .tst-reader-paper {
        padding: 24px 26px !important;
    }

    .tst-reader-chap-title {
        font-size: 19px;
        padding: 6px 16px;
    }

    .tst-chap-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px;
        justify-content: space-between;
    }

    .tst-chap-nav .tst-chap-nav-btn {
        font-size: 12.5px !important;
        padding: 0 10px !important;
        height: 38px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .tst-chap-nav .tst-chap-select-form {
        flex: 1 1 auto;
        min-width: 0;
    }

    .tst-chap-select {
        min-width: 0 !important;
        width: 100% !important;
        height: 38px !important;
        font-size: 13px !important;
        padding: 0 22px 0 10px !important;
    }
}

/* =========================================================
   8. KHU VỰC QUẢN TRỊ & ĐĂNG TRUYỆN (ADMIN & PROFILE STUDIO)
   ========================================================= */
.tst-admin-shell {
    background: #f6fbf2;
    min-height: calc(100vh - 200px);
    padding: 28px 0 60px;
}

.tst-admin-hero {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    border-radius: 18px;
    padding: 22px 26px;
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(27, 67, 50, 0.14);
    margin-bottom: 18px;
}

.tst-admin-hero-title {
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.tst-admin-hero-sub {
    color: rgba(231, 255, 206, 0.9) !important;
    font-size: 14px;
    margin-bottom: 0;
}

.tst-admin-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tst-banana);
    color: var(--tst-forest);
    font-weight: 800;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tst-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 10px;
}

.tst-admin-stat-item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(231, 255, 206, 0.25);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
}

.tst-admin-stat-num {
    display: block;
    font-family: "Oswald", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--tst-banana);
    line-height: 1.1;
}

.tst-admin-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

/* Thanh Tab Điều Hướng Quản Trị */
.tst-admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--tst-banana-border);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 4px 14px rgba(27, 67, 50, 0.05);
    margin-bottom: 22px;
}

.tst-admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tst-forest) !important;
    background: transparent;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    text-decoration: none !important;
    cursor: pointer;
}

.tst-admin-tab:hover {
    background: var(--tst-banana);
    border-color: var(--tst-banana-border);
    color: var(--tst-forest) !important;
}

.tst-admin-tab.active {
    background: var(--tst-green);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.tst-admin-tab.studio-tab {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25);
}

.tst-admin-tab.studio-tab:hover {
    opacity: 0.94;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.tst-admin-tab.logout-tab {
    color: #dc2626 !important;
    background: #fef2f2;
    border-color: #fecaca;
}

.tst-admin-tab.logout-tab:hover {
    background: #fee2e2;
    color: #b91c1c !important;
}

/* Khung Nội Dung Chính Quản Trị */
.tst-admin-surface {
    background: #ffffff;
    border: 1px solid var(--tst-banana-border);
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: 0 6px 22px rgba(27, 67, 50, 0.06);
}

.tst-admin-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5f2d6;
}

.tst-admin-page-title {
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--tst-forest);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tst-admin-page-desc {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 0;
}

.tst-admin-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tst-green);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.28);
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
    text-decoration: none !important;
}

.tst-admin-primary-btn:hover {
    background: var(--tst-green-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.tst-admin-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--tst-banana-soft);
    color: var(--tst-forest) !important;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: 12px;
    border: 1px solid var(--tst-banana-border);
    cursor: pointer;
    transition: background-color 0.18s ease;
    text-decoration: none !important;
}

.tst-admin-secondary-btn:hover {
    background: var(--tst-banana);
    color: var(--tst-forest) !important;
}

/* Bảng Dữ Liệu (DataTables) trong Admin */
.tst-admin-table-wrap {
    overflow-x: auto;
}

#tableCrud {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #e5f0d8;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px !important;
}

#tableCrud thead th {
    background: var(--tst-banana-soft) !important;
    color: var(--tst-forest) !important;
    font-weight: 800 !important;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 13px 12px !important;
    border-bottom: 2px solid var(--tst-banana-border) !important;
    vertical-align: middle;
    text-align: center !important;
}

#tableCrud tbody td {
    padding: 12px 12px !important;
    vertical-align: middle !important;
    font-size: 14px;
    color: #1f2937;
    border-bottom: 1px solid #f0f6e8 !important;
}

#tableCrud tbody tr:hover {
    background-color: #fafef6 !important;
}

/* Nút thao tác trong bảng (Chương / Sửa / Xoá) */
.tst-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.tst-row-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.tst-row-btn:hover {
    transform: translateY(-1px);
}

.tst-row-btn.chap-btn {
    background: #eff6ff;
    color: #1d4ed8 !important;
    border-color: #bfdbfe;
}

.tst-row-btn.chap-btn:hover {
    background: #1d4ed8;
    color: #ffffff !important;
}

.tst-row-btn.edit-btn {
    background: #ecfdf5;
    color: #15803d !important;
    border-color: #bbf7d0;
}

.tst-row-btn.edit-btn:hover {
    background: #16a34a;
    color: #ffffff !important;
}

.tst-row-btn.delete-btn {
    background: #fef2f2;
    color: #dc2626 !important;
    border-color: #fecaca;
}

.tst-row-btn.delete-btn:hover {
    background: #dc2626;
    color: #ffffff !important;
}

/* Ảnh bìa thu nhỏ & Nhãn trạng thái trong bảng Truyện */
.tst-admin-cover-thumb {
    width: 64px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
    border: 1.5px solid #cfe4b8;
    background: #f3f9ec;
}

.tst-admin-cover-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tst-story-cell {
    text-align: left;
    padding: 4px 2px;
}

.tst-story-title-link {
    display: inline-block;
    font-size: 16px;
    font-weight: 800;
    color: #1b4332 !important;
    line-height: 1.35;
    margin-bottom: 6px;
}

.tst-story-title-link:hover {
    color: #28a745 !important;
}

.tst-story-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 6px;
}

.tst-story-sub-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
}

.tst-story-chap-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe;
    font-weight: 700;
    font-size: 12px;
}

.tst-story-chap-pill:hover {
    background: #1d4ed8;
    color: #ffffff !important;
}

.tst-table-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.tst-table-cat-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.tst-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.tst-status-pill.ongoing {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

.tst-status-pill.completed {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

/* Cửa sổ Đăng / Sửa Truyện Độc Lập */
.tst-custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.tst-custom-modal.tst-open {
    display: flex;
}

.tst-custom-modal-dialog {
    width: 100%;
    max-width: 1080px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
}

.tst-custom-modal-header {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.tst-custom-modal-body {
    padding: 22px 24px;
    background: #f8fbf4;
    overflow-y: auto;
    flex: 1;
}

.tst-custom-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid #dcebc9;
}

.tst-studio-panel {
    background: #ffffff;
    border: 1px solid #d8ebc2;
    border-radius: 14px;
    padding: 16px 18px;
}

.tst-form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--tst-forest);
    margin-bottom: 6px;
}

.tst-form-hint {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.tst-form-control {
    border-radius: 10px !important;
    border: 1.5px solid #cbe0b4 !important;
    padding: 9px 13px !important;
    font-size: 14px !important;
    color: #111827 !important;
    background-color: #fcfefa !important;
    height: auto !important;
}

.tst-form-control:focus {
    border-color: var(--tst-green) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.16) !important;
}

/* Khung chọn Thể loại trong Modal Truyện */
.tst-cat-selector-box {
    background: #f8fcf4;
    border: 1px solid #d7e8c5;
    border-radius: 12px;
    padding: 12px;
}

.tst-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    max-height: 195px;
    overflow-y: auto;
    padding-right: 4px;
}

.tst-cat-check-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ffffff;
    border: 1.5px solid #dcebc9;
    cursor: pointer;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    transition: all 0.15s ease;
    user-select: none;
}

.tst-cat-check-item.is-checked {
    background: var(--tst-green);
    border-color: var(--tst-green);
    color: #ffffff;
}

/* Khung Đăng Nhanh Nhiều Chương Bằng Văn Bản */
.tst-bulk-upload-card {
    background: #fafdf7;
    border: 1.5px solid var(--tst-banana-border);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.tst-bulk-example {
    background: #ffffff;
    border: 1px dashed #b7db96;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #374151;
    line-height: 1.55;
}

.ck-editor__editable_inline {
    min-height: 240px !important;
    max-height: 420px !important;
}

@media only screen and (max-width: 767px) {
    .tst-admin-shell {
        padding: 16px 0 40px;
    }

    .tst-admin-hero {
        padding: 16px;
    }

    .tst-admin-stats {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 12px;
    }

    .tst-admin-surface {
        padding: 16px 14px;
    }

    .tst-admin-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 8px;
    }

    .tst-admin-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Thanh công cụ nhập Link Shopee Tổng trên trang chủ Admin & khu vực Quản trị */
.tst-global-shopee-toolbar {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1.5px solid #fdba74;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.08);
}

.tst-global-shopee-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tst-global-shopee-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ea580c;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 999px;
}

.tst-global-shopee-desc {
    font-size: 13px;
    font-weight: 700;
    color: #9a3412;
}

.tst-global-shopee-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tst-global-shopee-input {
    flex: 1 1 280px;
    height: 38px;
    border-radius: 999px;
    border: 1.5px solid #fb923c;
    background: #ffffff;
    padding: 0 15px;
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
    outline: none;
}

.tst-global-shopee-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.tst-global-shopee-save-btn {
    height: 38px;
    border: none;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 0 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.tst-global-shopee-save-btn:hover {
    background: #15803d;
}

.tst-global-shopee-test-btn {
    height: 38px;
    border-radius: 999px;
    border: 1.5px solid #fdba74;
    background: #ffffff;
    color: #c2410c !important;
    font-size: 13px;
    font-weight: 800;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
}

.tst-global-shopee-test-btn:hover {
    background: #ea580c;
    color: #ffffff !important;
    border-color: #ea580c;
}

.tst-global-shopee-status {
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 800;
    color: #15803d;
}

/* Thanh công cụ Shopee Tổng cho Admin ngay đầu Trang chủ */
.tst-home-admin-shopee-bar {
    background: linear-gradient(90deg, #fff7ed 0%, #f0fdf4 100%);
    border-bottom: 1.5px solid #fdba74;
    padding: 8px 0;
}

.tst-home-admin-shopee-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tst-home-admin-shopee-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tst-home-admin-badge {
    background: #ea580c;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
}

.tst-home-admin-hint {
    font-size: 12.5px;
    font-weight: 700;
    color: #9a3412;
}

.tst-home-admin-shopee-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1 1 360px;
    justify-content: flex-end;
}

.tst-home-admin-shopee-input {
    flex: 1 1 220px;
    max-width: 380px;
    height: 34px;
    border-radius: 999px;
    border: 1.5px solid #fb923c;
    background: #ffffff;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    outline: none;
}

.tst-home-admin-shopee-btn {
    height: 34px;
    border: none;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    padding: 0 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tst-home-admin-shopee-btn:hover {
    background: #15803d;
}

.tst-home-admin-shopee-manage {
    height: 34px;
    border-radius: 999px;
    border: 1.5px solid #28a745;
    background: #E7FFCE;
    color: #1b4332 !important;
    font-size: 12.5px;
    font-weight: 800;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
}

.tst-home-admin-shopee-status {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 800;
    color: #15803d;
}

/* Hộp nhập Link Shopee Tổng trong Menu Điện thoại (Mobile Drawer) */
.tst-drawer-shopee-box {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1.5px solid #fdba74;
    border-radius: 12px;
    padding: 10px 12px;
}

.tst-drawer-shopee-title {
    font-size: 13px;
    font-weight: 800;
    color: #c2410c;
    margin-bottom: 2px;
}

.tst-drawer-shopee-sub {
    font-size: 11.5px;
    font-weight: 600;
    color: #9a3412;
    margin-bottom: 7px;
    line-height: 1.35;
}

.tst-drawer-shopee-input {
    width: 100%;
    height: 38px;
    border-radius: 999px;
    border: 1.5px solid #fb923c;
    background: #ffffff;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 7px;
    outline: none;
}

.tst-drawer-shopee-btn {
    width: 100%;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.tst-drawer-shopee-status {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #15803d;
    text-align: center;
}

@media only screen and (max-width: 767px) {
    .tst-home-admin-shopee-bar {
        padding: 10px 0;
    }

    .tst-home-admin-shopee-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
    }

    .tst-home-admin-shopee-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .tst-home-admin-hint {
        font-size: 11.5px;
    }

    .tst-home-admin-shopee-actions {
        flex: 1 1 auto;
        width: 100%;
        justify-content: stretch;
        gap: 6px;
    }

    .tst-home-admin-shopee-input {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        height: 40px;
        font-size: 16px;
    }

    .tst-home-admin-shopee-btn,
    .tst-home-admin-shopee-manage {
        flex: 1 1 calc(50% - 4px);
        height: 38px;
        justify-content: center;
        font-size: 12.5px;
    }

    .tst-global-shopee-toolbar {
        padding: 12px;
    }

    .tst-global-shopee-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .tst-global-shopee-input {
        flex: 1 1 auto;
        width: 100%;
        height: 42px;
        font-size: 16px;
    }

    .tst-global-shopee-save-btn,
    .tst-global-shopee-test-btn {
        width: 100%;
        height: 40px;
        justify-content: center;
        font-size: 13.5px;
    }
}

/* ==========================================================================
   NÚT CHUYỂN ĐỔI GIAO DIỆN SÁNG / TỐI (MẶT TRỜI / MẶT TRĂNG CUTE) & DARK MODE
   ========================================================================== */
.tst-cute-theme-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.22);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    outline: none !important;
}

.tst-cute-theme-btn.mobile {
    width: 38px;
    height: 38px;
}

.tst-cute-theme-btn:hover {
    transform: translateY(-2px) scale(1.07);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.34);
}

.tst-cute-theme-btn:hover .tst-sun-rays {
    transform-origin: 20px 20px;
    animation: tstCuteSunSpin 6s linear infinite;
}

.tst-cute-theme-btn.is-bouncing {
    animation: tstCutePopBounce 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tstCuteSunSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes tstCutePopBounce {
    0% { transform: scale(0.72) rotate(-18deg); }
    60% { transform: scale(1.16) rotate(8deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.tst-cute-theme-btn .tst-cute-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tst-cute-theme-btn .tst-icon-sun {
    display: inline-flex;
}

.tst-cute-theme-btn .tst-icon-moon {
    display: none;
}

html.tst-dark-mode .tst-cute-theme-btn {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #fde047;
    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.28);
}

html.tst-dark-mode .tst-cute-theme-btn .tst-icon-sun {
    display: none;
}

html.tst-dark-mode .tst-cute-theme-btn .tst-icon-moon {
    display: inline-flex;
}

/* Giao diện Tối (Dark Mode) toàn trang web */
html.tst-dark-mode {
    --tst-green: #22c55e;
    --tst-green-dark: #4ade80;
    --tst-forest: #ecfdf5;
    --tst-banana: #1a3326;
    --tst-banana-soft: #15291f;
    --tst-banana-border: #2b543d;
    --tst-text: #e2f2e8;
    --tst-muted: #94a3b8;
}

html.tst-dark-mode,
html.tst-dark-mode body {
    background-color: #0d1812 !important;
    color: #e2f2e8 !important;
}

html.tst-dark-mode .section-title h4,
html.tst-dark-mode .section-title h5,
html.tst-dark-mode .tst-featured-heading h4 {
    color: #ecfdf5 !important;
}

html.tst-dark-mode p {
    color: #d1fae5;
}

/* Header & Thanh điều hướng ở chế độ Tối */
html.tst-dark-mode .tst-header {
    background: linear-gradient(135deg, #112219 0%, #152b20 100%) !important;
    border-bottom-color: #244734 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

html.tst-dark-mode .tst-brand-title {
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-brand-sub {
    color: #86efac !important;
}

html.tst-dark-mode .tst-nav-list > li > a,
html.tst-dark-mode .tst-nav-trigger {
    color: #d1fae5 !important;
}

html.tst-dark-mode .tst-nav-list > li.active > a,
html.tst-dark-mode .tst-nav-list > li > a:hover,
html.tst-dark-mode .tst-has-dropdown:hover .tst-nav-trigger {
    background: #1d3a2b !important;
    color: #4ade80 !important;
}

html.tst-dark-mode .tst-category-dropdown {
    background: #14261c !important;
    border-color: #284d38 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55) !important;
}

html.tst-dark-mode .tst-category-item {
    background: #1a3225 !important;
    color: #d1fae5 !important;
    border-color: #284d38 !important;
}

html.tst-dark-mode .tst-category-item:hover {
    background: #28a745 !important;
    color: #ffffff !important;
}

html.tst-dark-mode .tst-search-desktop,
html.tst-dark-mode .tst-mobile-search-input {
    background: #162b20 !important;
    border-color: #2b543d !important;
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-search-input {
    background: transparent !important;
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-search-input::placeholder,
html.tst-dark-mode .tst-mobile-search-input::placeholder {
    color: #94a3b8 !important;
}

html.tst-dark-mode .tst-icon-btn {
    background: #183024 !important;
    border-color: #2b543d !important;
    color: #d1fae5 !important;
}

/* Menu ngăn kéo trên Điện thoại (Mobile Drawer) ở chế độ Tối */
html.tst-dark-mode .tst-mobile-drawer {
    background: #112219 !important;
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-drawer-header {
    background: #152b20 !important;
    border-bottom-color: #244734 !important;
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-drawer-close {
    background: #1e3a2b !important;
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-drawer-links li a {
    color: #d1fae5 !important;
    border-bottom-color: #1e382a !important;
}

html.tst-dark-mode .tst-drawer-links li a:hover {
    background: #183024 !important;
    color: #4ade80 !important;
}

html.tst-dark-mode .tst-drawer-section-title {
    color: #86efac !important;
}

html.tst-dark-mode .tst-drawer-cat-pill {
    background: #183024 !important;
    border-color: #2b543d !important;
    color: #d1fae5 !important;
}

/* Các khối nội dung, Thẻ truyện, Trang chi tiết, Trang cá nhân Team, Tìm kiếm */
html.tst-dark-mode .tst-section,
html.tst-dark-mode .product,
html.tst-dark-mode .product-page,
html.tst-dark-mode .anime-details {
    background-color: transparent !important;
}

html.tst-dark-mode .tst-manga-card {
    background: #14261c !important;
    border-color: #264734 !important;
}

html.tst-dark-mode .tst-featured-box,
html.tst-dark-mode .tst-home-section-card,
html.tst-dark-mode .tst-detail-card,
html.tst-dark-mode .tst-chapter-box,
html.tst-dark-mode .tst-chap-list-card,
html.tst-dark-mode .tst-smart-search-box,
html.tst-dark-mode .tst-team-filter-bar,
html.tst-dark-mode .tst-team-directory-bar,
html.tst-dark-mode .tst-sidebar-card,
html.tst-dark-mode .tst-desc-box {
    background: #14261c !important;
    border-color: #284f3a !important;
    color: #ecfdf5 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

html.tst-dark-mode .tst-view-all-btn,
html.tst-dark-mode .tst-back-link,
html.tst-dark-mode .tst-sidebar-tag {
    background: #1e3a2b !important;
    color: #86efac !important;
    border-color: #2e5c42 !important;
}

html.tst-dark-mode .tst-swipe-hint {
    color: #86efac !important;
}

html.tst-dark-mode .tst-rank-item {
    background: #183024 !important;
    border-color: #264734 !important;
}

html.tst-dark-mode .tst-rank-item:hover {
    background: #1f3d2d !important;
    border-color: #4ade80 !important;
}

html.tst-dark-mode .tst-rank-title {
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-rank-author {
    color: #a7f3d0 !important;
}

html.tst-dark-mode .tst-rank-number {
    background: #234734 !important;
    color: #86efac !important;
}

html.tst-dark-mode .tst-rank-number.top-rank {
    background: #16a34a !important;
    color: #ffffff !important;
}

html.tst-dark-mode .tst-mini-badge.ongoing {
    background: #234734 !important;
    color: #86efac !important;
}

html.tst-dark-mode .tst-rank-item .tst-rank-meta-chaps {
    color: #86efac !important;
}

html.tst-dark-mode .tst-rank-item .tst-rank-meta-views {
    color: #bbf7d0 !important;
}

html.tst-dark-mode .tst-empty-state h5 {
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-empty-state p {
    color: #bbf7d0 !important;
}

html.tst-dark-mode .tst-search-kw-sub {
    color: #86efac !important;
}

html.tst-dark-mode .tst-confirm18-wrap .chapter__header a {
    color: #86efac !important;
}

html.tst-dark-mode .tst-confirm18-wrap .chapter__header span {
    color: #6ee7b7 !important;
}

html.tst-dark-mode .tst-confirm18-wrap .chapter__content h2,
html.tst-dark-mode .tst-confirm18-wrap .chapter__content h3 {
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-confirm18-wrap .chapter__content--info p {
    color: #a7f3d0 !important;
}

html.tst-dark-mode .tst-confirm18-wrap .chapter__content a[onclick*="handleClick"] {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    background: #16a34a !important;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none;
}

html.tst-dark-mode .tst-confirm18-wrap select.form-control {
    background: #14261c !important;
    color: #ecfdf5 !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
}

/* Trang Chi Tiết Truyện & Văn Án ở chế độ Tối */
html.tst-dark-mode .tst-team-hero {
    background: linear-gradient(135deg, #13281d 0%, #183325 55%, #1d3c2b 100%) !important;
    border-color: #2e5c42 !important;
}

html.tst-dark-mode .tst-team-name,
html.tst-dark-mode .tst-detail-title,
html.tst-dark-mode .tst-smart-search-label,
html.tst-dark-mode .tst-page-header h4 {
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-team-bio {
    color: #d1fae5 !important;
}

html.tst-dark-mode .tst-team-story-count-line {
    color: #4ade80 !important;
}

html.tst-dark-mode .tst-meta-item {
    background: #183024 !important;
    border-color: #2b543d !important;
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-meta-item span,
html.tst-dark-mode .tst-meta-item strong {
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-meta-item a strong {
    color: #86efac !important;
}

html.tst-dark-mode .tst-meta-item .tst-meta-team-pill {
    background: #142b1f !important;
    color: #86efac !important;
    border-color: #2f6b47 !important;
}

html.tst-dark-mode .tst-meta-item .tst-meta-team-pill i {
    color: #86efac !important;
}

html.tst-dark-mode .tst-card-cover {
    background-color: #102017 !important;
}

html.tst-dark-mode .tst-manga-card:hover .tst-card-title {
    color: #86efac !important;
}

html.tst-dark-mode .tst-cat-pill {
    background: #1a3326 !important;
    border-color: #2d5940 !important;
    color: #86efac !important;
}

html.tst-dark-mode .tst-detail-desc {
    background: #183024 !important;
    border-color: #2b543d !important;
}

html.tst-dark-mode .tst-desc-label {
    color: #86efac !important;
}

html.tst-dark-mode .tst-desc-body,
html.tst-dark-mode .tst-desc-body p,
html.tst-dark-mode .tst-desc-body span,
html.tst-dark-mode .tst-desc-body div {
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-desc-fade-mask {
    background: linear-gradient(180deg, rgba(24, 48, 36, 0) 0%, rgba(24, 48, 36, 0.95) 80%, #183024 100%) !important;
}

html.tst-dark-mode .tst-desc-toggle-btn {
    background: #234734 !important;
    color: #86efac !important;
    border-color: #34694d !important;
}

html.tst-dark-mode .tst-action-btn.outline {
    background: #183024 !important;
    color: #86efac !important;
    border-color: #2d5940 !important;
}

/* Danh sách chương trong trang Chi tiết truyện */
html.tst-dark-mode .tst-chap-search-input {
    background: #183024 !important;
    border-color: #2d5940 !important;
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-chap-search-input::placeholder {
    color: #94a3b8 !important;
}

html.tst-dark-mode .tst-chapter-item-btn,
html.tst-dark-mode .tst-chap-item {
    background: #183024 !important;
    border-color: #284f3a !important;
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-chapter-item-btn .tst-chap-name {
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-chapter-item-btn:hover,
html.tst-dark-mode .tst-chap-item:hover {
    background: #214231 !important;
    border-color: #4ade80 !important;
    color: #4ade80 !important;
}

html.tst-dark-mode .tst-breadcrumb {
    background: #14261c !important;
    border-color: #264734 !important;
    color: #a7f3d0 !important;
}

html.tst-dark-mode .tst-breadcrumb a {
    color: #86efac !important;
}

html.tst-dark-mode .tst-breadcrumb-current {
    color: #ffffff !important;
}

html.tst-dark-mode .form-control,
html.tst-dark-mode .tst-smart-search-input,
html.tst-dark-mode .tst-chap-select {
    background-color: #162b20 !important;
    border-color: #2b543d !important;
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-smart-search-hint {
    color: #a7f3d0 !important;
}

html.tst-dark-mode .tst-snippet-card {
    background: #183024 !important;
    border-color: #2b543d !important;
    color: #ecfdf5 !important;
}

/* Trang đọc chương truyện khi bật chế độ Tối */
html.tst-dark-mode .tst-reader-page {
    background-color: #0b140f !important;
}

html.tst-dark-mode .tst-reader-header {
    background: #14261c !important;
    border-color: #264734 !important;
}

html.tst-dark-mode .tst-reader-manga-title a {
    color: #86efac !important;
}

html.tst-dark-mode .tst-reader-chap-title {
    background: #1e3a2b !important;
    color: #ecfdf5 !important;
    border: 1px solid #2e5c42;
}

html.tst-dark-mode .tst-reader-toolbar {
    background: #183024 !important;
    border-color: #2b543d !important;
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-toolbar-label,
html.tst-dark-mode .tst-font-size-val {
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-theme-btn,
html.tst-dark-mode .tst-font-btn {
    background: #14261c !important;
    border-color: #2d5940 !important;
    color: #d1fae5 !important;
}

html.tst-dark-mode .tst-theme-btn.active {
    background: #22c55e !important;
    color: #ffffff !important;
}

html.tst-dark-mode #tstReaderWrap:not([data-reader-theme="green"]):not([data-reader-theme="sepia"]) .tst-reader-paper {
    background: #14241b !important;
    border-color: #264734 !important;
}

html.tst-dark-mode #tstReaderWrap:not([data-reader-theme="green"]):not([data-reader-theme="sepia"]) .tst-reader-body,
html.tst-dark-mode #tstReaderWrap:not([data-reader-theme="green"]):not([data-reader-theme="sepia"]) .tst-reader-body p,
html.tst-dark-mode #tstReaderWrap:not([data-reader-theme="green"]):not([data-reader-theme="sepia"]) .tst-reader-body span {
    color: #e2f2e8 !important;
}

/* Khu vực Quản trị / Hồ sơ cá nhân & Ủng hộ (Donate) ở chế độ Tối */
html.tst-dark-mode .tst-donate-card,
html.tst-dark-mode .tst-qr-box {
    background: #14261c !important;
    border-color: #284f3a !important;
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-mode-switch-bar {
    background: #183024 !important;
    border-bottom-color: #284f3a !important;
}

html.tst-dark-mode .tst-admin-shell {
    background: #0d1812 !important;
}

html.tst-dark-mode .tst-admin-card,
html.tst-dark-mode .tst-admin-table-wrap,
html.tst-dark-mode .tst-studio-panel {
    background: #14261c !important;
    border-color: #284f3a !important;
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-admin-page-title,
html.tst-dark-mode .tst-admin-card-title,
html.tst-dark-mode .tst-studio-panel-title,
html.tst-dark-mode .tst-form-label,
html.tst-dark-mode .tst-story-title-link,
html.tst-dark-mode #tableCrud td,
html.tst-dark-mode #tableCrud th {
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-admin-page-desc,
html.tst-dark-mode .tst-story-meta-row,
html.tst-dark-mode .tst-story-poster {
    color: #a7f3d0 !important;
}

/* Chân trang (Footer) ở chế độ Tối */
html.tst-dark-mode .tst-footer {
    background: linear-gradient(135deg, #0f1f17 0%, #14281e 100%) !important;
    border-top-color: #244734 !important;
    color: #cbd5e1 !important;
}

html.tst-dark-mode .tst-footer h5,
html.tst-dark-mode .tst-footer strong,
html.tst-dark-mode .tst-footer-link {
    color: #86efac !important;
}

html.tst-dark-mode .tst-footer-disclaimer,
html.tst-dark-mode .tst-footer p,
html.tst-dark-mode .tst-footer small {
    color: #a7f3d0 !important;
}

/* ==========================================================================
   MENU TÀI KHOẢN & QUẢN TRỊ THU GỌN TRÊN THANH ĐẦU TRANG + NÚT ĐẢO THỨ TỰ CHƯƠNG
   ========================================================================== */
.tst-user-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tst-user-menu-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    max-width: 195px;
    padding: 8px 14px;
    cursor: pointer;
}

.tst-user-pill-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tst-user-caret {
    font-size: 13px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.tst-user-menu-wrap.is-open .tst-user-caret {
    transform: rotate(180deg);
}

.tst-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 245px;
    background: #ffffff;
    border: 1.5px solid #b7e4c7;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 16px 38px rgba(15, 45, 28, 0.18);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.tst-user-menu-wrap:hover .tst-user-dropdown-menu,
.tst-user-dropdown-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tst-user-dropdown-head {
    padding: 8px 10px 10px;
    margin-bottom: 6px;
    border-bottom: 1px dashed #d8f3dc;
}

.tst-user-dropdown-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #1b4332;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tst-user-dropdown-role {
    font-size: 11.5px;
    font-weight: 700;
    color: #2d6a4f;
    margin-top: 2px;
}

.tst-user-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tst-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937 !important;
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.16s ease;
}

.tst-user-dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: #28a745;
    flex-shrink: 0;
}

.tst-user-dropdown-item:hover {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #14532d !important;
}

.tst-user-dropdown-item.highlight-green {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #14532d !important;
    font-weight: 800;
}

.tst-user-dropdown-item.highlight-green:hover {
    background: #28a745;
    border-color: #28a745;
    color: #ffffff !important;
}

.tst-user-dropdown-item.highlight-green:hover i {
    color: #ffffff;
}

.tst-user-dropdown-item.highlight-blue {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1 !important;
    font-weight: 800;
}

.tst-user-dropdown-item.highlight-blue i {
    color: #0284c7;
}

.tst-user-dropdown-item.highlight-blue:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff !important;
}

.tst-user-dropdown-item.highlight-blue:hover i {
    color: #ffffff;
}

.tst-user-dropdown-item.logout-item {
    color: #dc2626 !important;
    margin-top: 2px;
}

.tst-user-dropdown-item.logout-item i {
    color: #dc2626;
}

.tst-user-dropdown-item.logout-item:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c !important;
}

/* Nút Đảo thứ tự chương (Mới nhất lên đầu / Chương 1 lên đầu) */
.tst-chap-sort-btn {
    height: 38px;
    border-radius: 999px;
    border: 1.5px solid var(--tst-banana-border);
    background: var(--tst-banana-soft);
    color: var(--tst-forest);
    font-size: 13px;
    font-weight: 800;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.tst-chap-sort-btn:hover,
.tst-chap-sort-btn.is-desc {
    background: var(--tst-banana);
    border-color: var(--tst-green);
    color: var(--tst-forest);
}

.tst-chap-sort-btn.is-desc {
    background: #28a745;
    border-color: #28a745;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.25);
}

@media only screen and (max-width: 575px) {
    .tst-chap-sort-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* Chế độ Tối cho Menu tài khoản & Nút đảo thứ tự chương */
html.tst-dark-mode .tst-user-dropdown-menu {
    background: #14261c !important;
    border-color: #2b543d !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55) !important;
}

html.tst-dark-mode .tst-user-dropdown-head {
    border-bottom-color: #244734 !important;
}

html.tst-dark-mode .tst-user-dropdown-name {
    color: #ecfdf5 !important;
}

html.tst-dark-mode .tst-user-dropdown-role {
    color: #86efac !important;
}

html.tst-dark-mode .tst-user-dropdown-item {
    color: #d1fae5 !important;
}

html.tst-dark-mode .tst-user-dropdown-item:hover,
html.tst-dark-mode .tst-user-dropdown-item.highlight-green {
    background: #1d3a2b !important;
    border-color: #2e5c42 !important;
    color: #86efac !important;
}

html.tst-dark-mode .tst-user-dropdown-item.highlight-blue {
    background: #0f293a !important;
    border-color: #1e4e6e !important;
    color: #7dd3fc !important;
}

html.tst-dark-mode .tst-user-dropdown-item.logout-item {
    color: #fca5a5 !important;
}

html.tst-dark-mode .tst-user-dropdown-item.logout-item:hover {
    background: #3b181d !important;
    border-color: #7f1d1d !important;
}

html.tst-dark-mode .tst-chap-sort-btn {
    background: #183024 !important;
    border-color: #2d5940 !important;
    color: #d1fae5 !important;
}

html.tst-dark-mode .tst-chap-sort-btn:hover,
html.tst-dark-mode .tst-chap-sort-btn.is-desc {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
}

