/* Carrossel infinito estilo Mangotoons */
.infinite-scroll {
    overflow: hidden;
    padding: 20px 0;
}

.scroll-content {
    display: flex;
    gap: 1rem;
    animation: scroll-left 30s linear infinite;
    width: fit-content;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.manga-card-scroll {
    position: relative;
    height: 12rem;
    width: 8rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    border: 1px solid #27272a;
    background-color: #18181b;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.manga-card-scroll:hover {
    transform: scale(1.1);
    border-color: #d37231;
    z-index: 50;
}

.manga-card-scroll img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manga-card-scroll .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.manga-card-scroll .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Seção Recentemente Atualizadas */
.recent-updates {
    margin-top: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-outfit);
}

.see-more-link {
    color: #d37231;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-outfit);
    transition: opacity 0.3s;
}

.see-more-link:hover {
    opacity: 0.8;
}

/* Grid de mangás atualizados */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.update-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #27272a;
    cursor: pointer;
    transition: all 0.3s;
}

.update-card:hover {
    border-color: #d37231;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(211, 114, 49, 0.2);
}

.update-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 0.75rem;
}

.update-title {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: var(--font-outfit);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.update-meta {
    color: #a1a1aa;
    font-size: 0.75rem;
    font-family: var(--font-outfit);
}

/* Últimas Atualizações Cards (Layout Verdinha - Horizontal) */
.ua-card {
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.ua-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d37231, #14b8a6, #d37231);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ua-card:nth-child(4n+1)::before {
    background: linear-gradient(90deg, #d37231, #f59e0b, #d37231);
}

.ua-card:nth-child(4n+2)::before {
    background: linear-gradient(90deg, #14b8a6, #06b6d4, #14b8a6);
}

.ua-card:nth-child(4n+3)::before {
    background: linear-gradient(90deg, #a855f7, #ec4899, #a855f7);
}

.ua-card:nth-child(4n+4)::before {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
}

/* Gradiente de fundo para VIP/GRÁTIS em Últimas Atualizações */
.ua-card.vip-border {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.03), rgba(234, 179, 8, 0.15), rgba(249, 115, 22, 0.2));
}

.ua-card.free-border {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.03), rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.2));
}

.ua-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(211, 114, 49, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.ua-cover {
    width: 120px;
    height: auto;
    min-height: 180px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: stretch;
}

.ua-img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

.ua-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.ua-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    margin: 0;
    font-family: var(--font-outfit);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ua-chapters {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ua-chapter-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-outfit);
    font-size: 0.8125rem;
    line-height: 1.4;
    transition: all 0.2s;
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 0.375rem;
    cursor: pointer;
    background: rgba(211, 114, 49, 0.1);
    border: 1px solid rgba(211, 114, 49, 0.2);
}

.ua-chapter-link:hover {
    background: rgba(211, 114, 49, 0.2);
    border-color: #d37231;
    transform: translateX(4px);
}

.ua-chapter-number {
    color: #d37231;
    font-weight: 600;
}

.ua-chapter-link:hover .ua-chapter-number {
    color: #f59e0b;
}

.ua-chapter-name {
    color: #e4e4e7;
    font-weight: 400;
}

.ua-chapter-time {
    display: inline-block;
    font-size: 0.6875rem;
    color: #a1a1aa;
    font-weight: 400;
    margin-left: auto;
    white-space: nowrap;
}

/* Banners */
.banners-section {
    margin-bottom: 3rem;
}

.banners-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid #27272a;
    background-color: #18181b;
}

.banners-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-item {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/9;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: var(--font-outfit);
}

.banner-description {
    color: #a1a1aa;
    font-size: 0.875rem;
    line-height: 1.6;
    font-family: var(--font-outfit);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #27272a;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.banner-nav:hover {
    background-color: rgba(211, 114, 49, 0.5);
    border-color: #d37231;
}

.banner-nav.prev {
    left: 1rem;
}

.banner-nav.next {
    right: 1rem;
}

.banner-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background-color: #d37231;
    width: 24px;
    border-radius: 4px;
}

/* Hero Carousel (Primeira seção) */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(211, 114, 49, 0.9);
    border: 2px solid #d37231;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d1017;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(211, 114, 49, 0.4);
    opacity: 0.9;
    margin-top: 0;
}

.hero-nav:hover {
    background: #d37231;
    color: #0d1017;
    transform: translateY(-50%) scale(1.15);
    opacity: 1;
    box-shadow: 0 6px 16px rgba(211, 114, 49, 0.6);
}

.hero-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-nav-prev {
    left: -60px;
}

.hero-nav-next {
    right: -60px;
}

@media (max-width: 768px) {
    .hero-carousel-container {
        padding: 2rem 60px;
    }
    
    .hero-nav-prev {
        left: -40px;
    }
    
    .hero-nav-next {
        right: -40px;
    }
}

@media (max-width: 768px) {
    .hero-nav {
        width: 44px;
        height: 44px;
        font-size: 18px;
        background: rgba(211, 114, 49, 0.95);
        opacity: 1;
    }
    
    .hero-nav-prev {
        left: 8px;
    }
    
    .hero-nav-next {
        right: 8px;
    }
}

.hero-carousel-container {
    position: relative;
    overflow: visible;
    padding: 2rem 100px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-carousel {
    position: relative;
    cursor: grab;
    user-select: none;
    width: 100%;
    z-index: 1;
}

.hero-carousel:active {
    cursor: grabbing;
}

.hero-item {
    display: none;
}

.hero-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.hero-image {
    width: 100%;
    max-width: 370px;
    height: 554px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-image {
        max-width: 100%;
        height: auto;
        max-height: 400px;
        aspect-ratio: 2/3;
    }
}

/* Swiper Coverflow 3D para Obras */
.obras-coverflow-swiper {
    width: 100%;
    padding: 40px 0 60px 0;
    overflow: visible;
}

.obras-coverflow-swiper .swiper-slide {
    width: 240px;
    height: auto;
    transition: all 0.3s ease;
}

.obras-coverflow-swiper .swiper-slide-active {
    z-index: 10;
}

.coverflow-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.coverflow-card:hover {
    box-shadow: 0 15px 40px rgba(211, 114, 49, 0.4);
}

.obras-coverflow-swiper .swiper-button-next,
.obras-coverflow-swiper .swiper-button-prev {
    color: #d37231;
    background: rgba(211, 114, 49, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.obras-coverflow-swiper .swiper-button-next:hover,
.obras-coverflow-swiper .swiper-button-prev:hover {
    background: rgba(211, 114, 49, 0.4);
    transform: scale(1.1);
}

.obras-coverflow-swiper .swiper-button-next::after,
.obras-coverflow-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.obras-coverflow-swiper .swiper-pagination-bullet {
    background: #d37231;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.obras-coverflow-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .obras-coverflow-swiper {
        padding: 30px 0 50px 0;
    }
    
    .obras-coverflow-swiper .swiper-slide {
        width: 180px;
    }
    
    .obras-coverflow-swiper .swiper-button-next,
    .obras-coverflow-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .obras-coverflow-swiper .swiper-button-next::after,
    .obras-coverflow-swiper .swiper-button-prev::after {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .obras-coverflow-swiper {
        padding: 20px 0 40px 0;
    }
    
    .obras-coverflow-swiper .swiper-slide {
        width: 160px;
    }
}


/* Sinopses com altura fixa e LER MAIS */
.hero-synopsis {
    max-height: 120px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    transition: max-height 0.3s ease;
}

.hero-synopsis.expanded {
    max-height: none;
    -webkit-line-clamp: unset;
}

.synopsis-container {
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.synopsis-container.expanded {
    max-height: none;
}

.synopsis-text {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.synopsis-container.expanded .synopsis-text {
    -webkit-line-clamp: unset;
    display: block;
}

.synopsis-toggle,
.synopsis-toggle-manga {
    transition: all 0.2s ease;
}

.synopsis-toggle:hover,
.synopsis-toggle-manga:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-synopsis {
        max-height: 100px;
        -webkit-line-clamp: 3;
    }
    
    .synopsis-container {
        max-height: 120px;
    }
    
    .synopsis-text {
        -webkit-line-clamp: 5;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.5rem 0;
    width: 100%;
    position: relative;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.hero-dot.active {
    background-color: #d37231;
    width: 20px;
    border-radius: 10px;
}

/* Grid de Lançamentos */
.launchments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    width: 100%;
    align-items: start;
}

.manga-card-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 0;
}

.manga-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.manga-card-item > div:first-child {
    width: 100%;
    flex-shrink: 0;
}

.manga-card-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.manga-card-item > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

@media (min-width: 640px) {
    .launchments-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .launchments-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .launchments-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

.launchments-grid-old {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.launchment-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.launchment-card:hover {
    transform: translateY(-8px);
}

.launchment-cover {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.launchment-card:hover .launchment-cover {
    border-color: #d37231;
    box-shadow: 0 8px 24px rgba(211, 114, 49, 0.3);
}

.launchment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.launchment-card:hover .launchment-img {
    transform: scale(1.1);
}

.launchment-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.launchment-card:hover .launchment-overlay {
    transform: translateY(0);
}

.launchment-info {
    color: white;
}

.launchment-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-outfit);
}

.launchment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #a1a1aa;
    font-family: var(--font-outfit);
}

/* Rank Tabs */
.rank-tab {
    transition: all 0.2s;
}

.rank-tab.active {
    background-color: rgba(211, 114, 49, 0.2);
    color: #d37231;
}

.rank-tab:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05);
}

