/* Stream */

#video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}
.server-buttons {
    margin: 0.75rem 0;
    text-align: center;
}
.server-button {
    margin: 0 5px;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.server-button:hover {
    filter: brightness(150%);
}
.comic-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 20px 0 #0000001f;
    border-radius: 0;
    padding: 0;
    background-color: var(--fs-color-alert);
}
.comic-image-container {
    height: unset !important;
    max-width: 200px;
    max-height: 300px;
}

/* Profile Information */


.person-profile {
    background: var(--fs-color-alert);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.person-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.person-avatar {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-names {
    flex-grow: 1;
    padding-top: 8px;
}

.person-display-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.person-stage-name {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.person-bio {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 8px;
}

.person-bio h3 {
    font-size: 1.25rem;
    margin: 0 0 12px 0;
}

.bio-content {
    line-height: 1.6;
}

.person-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #444;
}

.info-item i {
    width: 20px;
}

.person-social {
    padding: 20px;
    border-radius: 8px;
}

.person-social h3 {
    font-size: 1.25rem;
    margin: 0 0 12px 0;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .person-profile {
        background: #1a1a1a;
    }

    .person-display-name {
        color: #fff;
    }

    .person-stage-name {
        color: #bbb;
    }

    .person-bio,
    .person-info,
    .person-social {
        background: #2d2d2d;
    }

    .person-bio h3,
    .person-social h3 {
        color: #fff;
    }

    .bio-content,
    .info-item {
        color: #bbb;
    }

    .social-link {
        background: #3d3d3d;
        color: #bbb;
    }

    .social-link:hover {
        background: #3498db;
        color: #fff;
    }
}

/* Form tìm kiếm đơn giản */
.search-form-container {
    margin: 20px auto;
}

.search-form-container form {
    display: flex;
    gap: 8px;
}

.search-form-container input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 0;
}

.search-form-container input[type="search"]:focus {
    border-color: var(--fs-color-secondary);
    box-shadow: 0 0 5px rgba(68, 96, 132, 0.2);
    background-color: white;
}

.search-form-container button {
    background-color: var(--fs-color-secondary);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form-container button:hover {
    background-color: #344e6c; /* Darker shade of primary */
}

/* Placeholder styling */
.search-form-container input::placeholder {
    color: #9aa0a7;
}

.pagination-container {
    margin-bottom: 1rem;
    text-align: center;
}

/* comic Archive */

.comics-grid {
    gap: 20px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr)
}
  
  /* XL: max-width 1024px */
    .column-xl-0 { display: grid; grid-template-columns: repeat(0, 1fr); }
    .column-xl-1 { display: grid; grid-template-columns: repeat(1, 1fr); }
    .column-xl-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
    .column-xl-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
    .column-xl-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
    .column-xl-5 { display: grid; grid-template-columns: repeat(5, 1fr); }
    .column-xl-6 { display: grid; grid-template-columns: repeat(6, 1fr); }
    .column-xl-7 { display: grid; grid-template-columns: repeat(7, 1fr); }
    .column-xl-8 { display: grid; grid-template-columns: repeat(8, 1fr); }
    .column-xl-9 { display: grid; grid-template-columns: repeat(9, 1fr); }
    .column-xl-10 { display: grid; grid-template-columns: repeat(10, 1fr); }

  
.comic-item {
    background: var(--fs-color-alert);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.comics-grid .comic-link {
    display: inline-block;
}
.comic-item-banner {
    background: var(--fs-color-alert);
    overflow: hidden;
}

.thumbnail {
    aspect-ratio: 2/3;
    width: 100%;
    background-color: #888;
    border-radius: var(--border-radius);
}

.comic-item:hover {
    transform: translateY(-5px);
}

.comic-poster {
    position: relative;
}

.comic-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tow-line {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quality-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.comic-meta {
    padding: 0.5rem;
}
.comic-meta-banner {
    padding: 5px;
    position: absolute;
    bottom: 0;
   background-color: #ffffffd3;
    width: 100%;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .current {
    background: var(--primary-color);   
    color: #fff;
 }

.comic-title {
    display: flex;
    align-items: start;
    text-align: left;
    gap: 10px;
}
.comic-item  .comic-tag {
    margin: 0 0 5px 0;
    font-size: 1rem;
    line-height: 1.4;
    background-color: var(--fs-color-success);
    padding: 2px 4px;
    color: var(--fs-color-alert);
}
.comic-item .item-2-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    /* z-index: 1; */
    border-radius: 4px;

}
.comic-title {
    margin-bottom: 0;
}
.comic-title a {
    /*  cố định 2 hàng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    min-height: 2.8rem ;
    font-size: 1rem;
    line-height: 1.4;
}

/* item 3 */
.item-3 {
    .comic-meta {
        padding-left: 0;
        padding-right: 0;
    }
    .comic-title {
        margin-bottom: 0;
        line-height: 1.2;
        min-height: 2.4rem;
    }
    .comic-tag {
        position: absolute;
			  top: 0;
			  right: 0;
				left: unset;
				border-radius: 0 4px 0 4px;
    }

    .rating {
        position: absolute;
				top: 0;
			  left:0;
			  background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple);
			  border-radius: 4px 0px 4px 0px;
				padding: 2px 4px;
			
    }
}
/* item 4 */
.item-4 {
	display: flex;
	gap: 0.25rem;
	background: var(--fs-color-alert);
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: none;
	.comic-poster {
		flex: 0 0 25%;
		max-width: 200px;
	}

	.rating-box { 
		display: flex;
	}

	.comic-meta {
	 	display: flex;
		flex-direction: column;
		gap: 0.5rem;
		padding: 0;
		flex: 1;
	}

	.comic-title {
		margin-bottom: 0;
		a {
			.comic-tag { 
				margin-right: 0.25rem;
				border-radius: 0.125rem;
			}
		}
	}

	.comic-chapter-last {
		a {
			display: flex;
			justify-content: space-between;
			transition: all linear 0.3s;
		}
		
		a:hover {
			background: var(--primary-color);
			border-radius: 1rem;
			padding: 0 1rem;
			color: white;
		}
	}
}

/* item 5 */


.item-5 {
	display: flex;
	gap: 0.25rem;
	background: var(--fs-color-alert);
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: none;

	.comic-poster {
		flex: 0 0 25%;
		max-width: 200px;
        min-width: 60px;
	}

	.metric-box { 
		display: flex;
		gap: 0.25rem;
		.views-count-icon{ 
			padding-left: 1.25rem;
		}
	}
	.rating {
    flex-direction: row-reverse;
	}

	.comic-meta {
	 	padding: 0;
        flex: 1;
	}

	.comic-title {
		margin-bottom: 0rem;
		a {
    min-height: unset;
    font-size: 0.85rem;
    line-height: 1rem;
		}
		
	}

	.comic-chapter-last {
        width: 100%;
		a {
			display: flex;
            flex-wrap: wrap;
			justify-content: space-between;
			transition: all linear 0.3s;
		}
		
		a:hover {
			background: var(--primary-color);
			border-radius: 1rem;
			padding: 0 1rem;
			color: white;
		}
	}
}


.pagination {
    margin-top: 30px; 
}
/* Container pagination */
.navigation.pagination {
    text-align: center;
    margin: 30px 0;
}

/* Ẩn heading nhưng vẫn giữ cho screen reader */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Style cho các nút phân trang */
.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Style chung cho các nút */
.page-numbers {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

/* Hover effect */
.page-numbers:hover:not(.current) {
    background: #f0f0f0;
    color: #333;
}

/* Trang hiện tại */
.page-numbers.current {
    background: var(--primary-color);
    /* Màu xanh đẹp */
    color: white;
    font-weight: 600;
}

/* Nút Next/Prev */




/* Episodes List */

.episodes-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.episodes-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.episodes-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.total-episodes {
    color: #666;
    font-size: 14px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    max-height: 600px;
    overflow-y: auto;
}


.episode-item {
    display: block;
    background: var(--fs-color-secondary);
    padding: 8px 5px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.episode-item:hover {
    filter: brightness(150%);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.episode-item.active {
    filter: brightness(150%);
}

.episode-item.active .episode-number {
    color: white;
}

.episode-number {
    color: #333;
    font-weight: 600;
    font-size: 13px;
}

/* Scrollbar style */
.episodes-grid::-webkit-scrollbar {
    width: 6px;
}

.episodes-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.episodes-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.episodes-grid::-webkit-scrollbar-thumb:hover {
    background: #999;
}


/* comic infomation */
.comic-title-detail {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comic-title-banner {
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 700;
	display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    min-height: 2.4rem;
}


.comic-info__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-label {
    font-weight: 600;
}
.post-meta .post-views {
    font-size: 0.75rem;
    color: #666;
}

.status-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}
.comic-info {
    flex: 1;
    padding: 1rem;
}

.comic-info__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat-item {
    display: flex;
    align-items: center;
    gap:  0.5rem;
}



.comic-info__rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius:  0.5rem;
    padding: 6px 0px;
}

.rating-box {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}
.rating{
    display: flex;
    align-items: center;

}

.rating {
    display: inline-block;         /* Để quản lý kích cỡ dễ hơn */
    font-size: 1rem;               /* Tuỳ chỉnh cỡ chữ = cỡ icon */
    position: relative;            /* Nếu cần canh chỉnh icon */
  }
  
  /* Thêm 1 ngôi sao SVG sau nội dung rating */
  .rating::after {
    content: "";
    display: inline-block;
    vertical-align: middle;        /* Giúp icon nằm ngang hàng text */
    width: 1em;                    /* 1em = bằng font-size */
    height: 1em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  
    /* Sử dụng data URI chứa SVG fill="gold" */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='gold' viewBox='0 0 24 24'><path d='M12 .587l3.668 7.431L24 9.753l-6 5.828L19.336 24 12 19.879 4.664 24 6 15.581 0 9.753l8.332-1.735z'/></svg>");
  }
  
.rating-stars {
    color: #ffc107;
}

.rating-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-score {
    font-weight: 700;
}

.rating-votes {
    font-size: 14px;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 8px;
}


.views-count-icon {
    display: inline-flex;
    align-items: center;
    padding-left: 1.5rem; /* Adjust space between the icon and text */
    font-size: 1rem;
    background-image: url('data:image/svg+xml,%3Csvg%20fill%3D%22%23000000%22%20viewBox%3D%22-3.5%200%2032%2032%22%20version%3D%221.1%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cg%20id%3D%22SVGRepo_bgCarrier%22%20stroke-width%3D%220%22%3E%3C/g%3E%3Cg%20id%3D%22SVGRepo_tracerCarrier%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C/g%3E%3Cg%20id%3D%22SVGRepo_iconCarrier%22%3E%3Ctitle%3Eview%3C/title%3E%3Cpath%20d%3D%22M12.406%2013.844c1.188%200%202.156%200.969%202.156%202.156s-0.969%202.125-2.156%202.125-2.125-0.938-2.125-2.125%200.938-2.156%202.125-2.156zM12.406%208.531c7.063%200%2012.156%206.625%2012.156%206.625%200.344%200.438%200.344%201.219%200%201.656%200%200-5.094%206.625-12.156%206.625s-12.156-6.625-12.156-6.625c-0.344-0.438-0.344-1.219%200-1.656%200%200%205.094-6.625%2012.156-6.625zM12.406%2021.344c2.938%200%205.344-2.406%205.344-5.344s-2.406-5.344-5.344-5.344-5.344%202.406-5.344%205.344%202.406%205.344%205.344%205.344z%22%3E%3C/path%3E%3C/g%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 1rem 1rem; /* Adjust size of the icon */
  }


.cast-section {
}

.cast-section h3 {
    font-size: 18px;
}

.cast-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cast-item {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
}


.tag-section {
    display: flex;
    gap: 8px;
}

.tag-section h3 {
    width: fit-content;
    font-size: 16px;
    white-space: nowrap;
}

.tag-list {
    font-size: 14px;
}



.tag-list a:hover {
    text-decoration: underline;
}

.comic-info__showtimes {
    border-radius: 8px;
}

.comic-info__showtimes h3 {
    font-size: 18px;
}



/* Category List */

.my-taxonomy-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.my-taxonomy-list ul li {
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0;
    margin-left: 0 !important;
}

.my-taxonomy-list ul li a {
    display: inline-block;
    background: var(--fs-color-secondary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}




/* Banner comic */

/* Banner container */
.comic-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    text-align: center;
}

/* Background image */
.comic-banner .comic-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

/* Link around the title */
.comic-banner .comic-title-link {
    text-decoration: none;
}

/* Title style */
.comic-banner .comic-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Not found message */
.comic-banner .comic-not-found {
    text-align: center;
    font-size: 1.2em;
    margin-top: 20px;
}

.comic-reader-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    gap: 20px;
    padding: 20px;
}

/* Chapter List Toggle Button (Hidden by default on desktop) */
.chapter-list-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    align-items: center;
    gap: 8px;
}

.toggle-icon {
    width: 20px;
    height: 2px;
    background: white;
    position: relative;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    left: 0;
}

.toggle-icon::before {
    top: -6px;
}

.toggle-icon::after {
    bottom: -6px;
}

/* Sidebar Styles */
.chapter-list-sidebar {
    width: 280px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 40px);
    position: sticky;
    top: 20px;
    overflow-y: auto;
}

.chapter-list-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.chapter-list-header h3 {
    margin: 0;
    color: #2c3e50;
}

.chapter-list {
    padding: 10px;
}

.chapter-list-item {
    display: block;
    padding: 12px 15px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    margin: 5px 0;
    transition: all 0.3s ease;
}



.chapter-list-item.active {
    filter: brightness(150%);
}

/* Chapter Reader Styles */
.chapter-reader {
    flex: 1;
    min-width: 0;
    /* Prevents flex item from overflowing */
}

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background:  #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
	margin-top:10px;
}
.rating {
    color: #ffc107;
    display: flex
;
    align-items: center;
    gap: 5px;
}


.nav-button {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-button:hover {
   filter: brightness(1.2);
}

.current-chapter {
    font-weight: bold;
    color: #2c3e50;
}

.chapter-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.chapter-image {
    margin: 0 auto;
    text-align: center;
}

.chapter-image img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 5px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .comic-reader-container {
        flex-direction: column;
        padding: 10px;
    }

    .chapter-list-toggle {
        display: flex;
    }

    .chapter-list-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: all 0.3s ease;
        background: white;
    }

    .chapter-list-sidebar.active {
        left: 0;
    }

    .chapter-navigation {
        padding: 10px;
    }

    .nav-button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .chapter-content {
        padding: 10px;
    }

    .chapter-image img {
        margin: 5px 0;
    }
}


/* Add these new styles */
.chapter-list-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chapter-list-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-chapter-list {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-chapter-list:hover {
    background: #f5f5f5;
    color: #333;
}

.chapter-list-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Update mobile styles */
@media (max-width: 768px) {
    .chapter-list-overlay {
        display: block;
    }

    .chapter-list-overlay.active+.chapter-list-toggle {
        z-index: 998;
    }

    .chapter-list-sidebar.active+.chapter-list-overlay {
        opacity: 1;
        visibility: visible;
    }
}
/* General styles for the tag container */

.post-tags a {
    text-decoration: none;
    margin: 5px 10px; /* Padding for tags */
}



.wp-block-categories {
    box-sizing: border-box;
    display: flex
;
    gap: 10px;
    flex-wrap: wrap;
}
.my-taxonomy-list ul {
	    display: flex;
    overflow-x: auto;
}
.my-taxonomy-list li{
	flex-shrink: 0;
    display: flex
;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
/* scrollbar*/
/* Custom scrollbar styling */
::-webkit-scrollbar {
  width: 12px;  /* Set width of scrollbar */
  height: 6px; /* Set height of horizontal scrollbar */
}

::-webkit-scrollbar-thumb {
  background: #888;  /* Default thumb color */
  border-radius: 10px;
}

/* Flashing effect */
@keyframes flash {
  0% {
    background: #888; /* Default color */
  }
  50% {
    background: #ff0000; /* Flashing color */
  }
  100% {
    background: #888; /* Default color */
  }
}

::-webkit-scrollbar-thumb:hover {
  animation: flash 1s infinite; /* Apply flashing animation on hover */
}

::-webkit-scrollbar-track {
  background: #f1f1f1;  /* Track color */
  border-radius: 10px;
}

.comic-original-title {
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
	display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.view-more {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 15px;
    transition: background-color 0.3s;
	width:100%
}
ul.story-detail-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: left;
    gap: 20px;
    margin-top: 10px;
}

ul.story-detail-menu li {
    margin: 0;
    text-align: center;
    margin-left: 0 !important;
    min-width: 100px;
}

ul.story-detail-menu a {
	color:white;
    display: inline-block;
    padding: 4px 8px;
    text-decoration: none;
    font-size: 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center;
    width: 100%;
}


ul.story-detail-menu .btn-start {
    background-color: var(--primary-color);
}

ul.story-detail-menu .btn-end {
    background-color:  var(--fs-color-secondary);
}
.left-item-thumb {
    width: 25%;

}
.item-comic-sidebar {
	list-style: none;
	margin-left:0 !important;
}
.item-comic-sidebar .post-chapter {
    display: inline-block;
    font-size: 0.75rem;    
}
.item-comic-sidebar .recent-blog-posts a {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.post-populars .nav-line{
	display: flex;
	justify-content: space-between;
}
.post-populars .nav-line>li.active a:before,.post-populars .nav-line>li a:before{
	display: none;
}
.post-populars .nav-line>li.active {
	border-bottom: 3px solid var(--primary-color);
}
.post-populars .nav-line>li:hover{
		border-bottom: 3px solid var(--primary-color);
}

.swiper-slide.comic-item-banner {
    height: 100%;
    & > div {
        height: 100%;
    }
}
.swiper-button-next, .swiper-button-prev {
    color: var(--fs-color-alert);
}
.badge {
	height:4.8em;
	width:3.8em
}
.comic-chapter-last a {
    font-size: 14px;
}


/* breadcrumb */
.rank-math-breadcrumb {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.rank-math-breadcrumb a {
    color: var(--fs-experimental-link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.rank-math-breadcrumb a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.rank-math-breadcrumb .separator {
    margin: 0 5px;
    color: #aaa;
}

.rank-math-breadcrumb .last {
    color: #222;
    font-weight: bold;
}

.rank-math-breadcrumb p {
    margin-bottom: 0;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.badge {
	height:4.8em;
	width:3.8em
}



.archive-tab {
    position: relative;
}
.archive-tab .filter-form {
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 8px; /* Rounded corners for the form */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    z-index: 10;
    border-radius: 0.25rem;
}

.filter-form .form-select {
    margin-bottom: 0;
    border-radius: 0.25rem;

}

.filter-form .form-select:focus {
    outline: none; /* Remove outline on focus */
}

.filter-form .form-select option {
    padding: 10px; 
}
