.manga-carousel-section {
padding: 40px 0;
background-color: #0a0a1a;
margin-bottom: 30px;
position: relative;
overflow: hidden;
}
.manga-carousel-section::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, rgba(12, 255, 138, 0) 0%, rgba(12, 255, 138, 0.5) 50%, rgba(12, 255, 138, 0) 100%);
}
.manga-carousel-section::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, rgba(12, 255, 138, 0) 0%, rgba(12, 255, 138, 0.5) 50%, rgba(12, 255, 138, 0) 100%);
}
.manga-carousel-section .section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding: 0 15px;
}
.manga-carousel-section .section-title {
font-size: 1.5rem;
font-weight: 700;
color: #fff;
margin: 0;
position: relative;
padding-left: 15px;
}
.manga-carousel-section .section-title::before {
content: "";
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 4px;
height: 20px;
background-color: #0cff8a;
border-radius: 2px;
}
.carousel-navigation {
display: flex;
gap: 10px;
}
.carousel-prev,
.carousel-next {
width: 36px;
height: 36px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
color: #fff;
}
.carousel-prev:hover,
.carousel-next:hover {
background-color: rgba(12, 255, 138, 0.2);
color: #0cff8a;
}
.carousel-prev:focus,
.carousel-next:focus {
outline: none;
box-shadow: 0 0 0 2px rgba(12, 255, 138, 0.5);
}
.carousel-prev.disabled,
.carousel-next.disabled {
opacity: 0.5;
cursor: not-allowed;
}
.manga-carousel-container {
position: relative;
overflow: hidden;
padding: 10px 0;
}
.manga-carousel {
display: flex;
transition: transform 0.5s ease;
gap: 20px;
}
.manga-carousel-item {
flex: 0 0 auto;
width: calc(20% - 16px);
min-width: 160px;
} .manga-carousel-item .manga-card {
background-color: #121225;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
height: 100%;
display: flex;
flex-direction: column;
}
.manga-carousel-item .manga-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.manga-carousel-item .manga-card-image {
position: relative;
padding-top: 140%;
overflow: hidden;
}
.manga-carousel-item .manga-cover {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.manga-carousel-item .manga-card:hover .manga-cover {
transform: scale(1.05);
}
.manga-carousel-item .manga-card-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 10px;
background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
opacity: 0;
transition: opacity 0.3s ease;
}
.manga-carousel-item .manga-card:hover .manga-card-overlay {
opacity: 1;
}
.manga-carousel-item .manga-card-stats {
display: flex;
justify-content: space-between;
color: #fff;
font-size: 0.75rem;
}
.manga-carousel-item .manga-views,
.manga-carousel-item .manga-rating {
display: flex;
align-items: center;
gap: 5px;
}
.manga-carousel-item .manga-views svg,
.manga-carousel-item .manga-rating svg {
color: #0cff8a;
}
.manga-carousel-item .manga-card-content {
padding: 12px;
flex-grow: 1;
display: flex;
flex-direction: column;
}
.manga-carousel-item .manga-title {
font-size: 0.9rem;
font-weight: 600;
margin: 0 0 8px 0;
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.manga-carousel-item .manga-title a {
color: #fff;
text-decoration: none;
transition: color 0.2s ease;
}
.manga-carousel-item .manga-title a:hover {
color: #0cff8a;
}
.manga-carousel-item .manga-genres {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin-top: auto;
}
.manga-carousel-item .manga-genre {
font-size: 0.7rem;
padding: 2px 6px;
border-radius: 4px;
background-color: rgba(255, 255, 255, 0.1);
color: #a0a0b8;
text-decoration: none;
transition: all 0.2s ease;
}
.manga-carousel-item .manga-genre:hover {
background-color: rgba(12, 255, 138, 0.2);
color: #0cff8a;
} @media (max-width: 1200px) {
.manga-carousel-item {
width: calc(25% - 15px);
}
}
@media (max-width: 992px) {
.manga-carousel-item {
width: calc(33.333% - 14px);
}
}
@media (max-width: 768px) {
.manga-carousel-item {
width: calc(50% - 10px);
}
.manga-carousel-section {
padding: 30px 0;
}
.manga-carousel-section .section-title {
font-size: 1.3rem;
}
}
@media (max-width: 480px) {
.manga-carousel-section {
padding: 25px 0;
}
.manga-carousel-section .section-header {
flex-direction: column;
align-items: flex-start;
gap: 15px;
margin-bottom: 15px;
}
.manga-carousel-section .section-title {
font-size: 1.2rem;
}
.carousel-navigation {
align-self: center;
} .manga-carousel-item {
width: 42vw; margin-right: 10px;
}
.manga-carousel {
gap: 0;
padding-left: 15px;
} .manga-carousel-item .manga-title {
font-size: 0.8rem;
}
.manga-carousel-item .manga-genre {
font-size: 0.65rem;
padding: 1px 5px;
} .manga-carousel-item .manga-card-image {
padding-top: 140%; }
.manga-carousel-item .manga-card-content {
padding: 8px;
}
} @media (max-width: 360px) {
.manga-carousel-section {
padding: 20px 0;
}
.manga-carousel-section .section-title {
font-size: 1.1rem;
}
.carousel-prev,
.carousel-next {
width: 32px;
height: 32px;
}
.manga-carousel-item {
width: 42vw; }
.manga-carousel-item .manga-card-content {
padding: 6px;
}
.manga-carousel-item .manga-title {
font-size: 0.75rem;
margin-bottom: 4px;
}
.manga-carousel-item .manga-genre {
font-size: 0.6rem;
padding: 1px 4px;
}
}