/* Styles pour la section Dernières Sorties */
.latest-releases-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
    width: 100vw;
    position: relative;
    overflow: hidden;
    text-align: center;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.latest-releases-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

.latest-releases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    padding: 1rem 0;
    width: 100%;
    justify-content: center;
}

.release-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    height: 196px;
    min-width: 350px;
}

.release-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.4);
}

.release-cover {
    position: relative;
    width: 130px;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.cover-link {
    display: block;
    width: 100%;
    height: 100%;
}

.release-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.release-card:hover .release-cover img {
    transform: scale(1.1);
}

.manga-type {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 8px;
    font-size: 0.8rem;
    z-index: 2;
}

.release-content {
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.release-title-container {
    padding: 0.8rem 0.8rem 0.4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.title-link {
    text-decoration: none;
    color: inherit;
}

.release-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
    text-align: left;
}

.release-title:hover {
    color: #ffd700;
}

.release-chapters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem 0.8rem;
    justify-content: center;
}

.chapter-item {
    display: flex;
    align-items: flex-start;
    border-radius: 6px;
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 230px;
    position: relative;
    padding: 4px;
}

.chapter-link, .chapter-name.locked {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    width: 100%;
}

.chapter-link:hover, .chapter-name.locked:hover {
    color: #ffd700;
}

.chapter-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateX(5px);
}

.chapter-link.visited {
    color: #607d8b;
}

.chapter-thumbnail {
    flex-shrink: 0;
    width: 68px;
    height: 50px;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
}

.chapter-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s ease;
}

.chapter-item:hover .chapter-thumbnail::before {
    left: 100%;
}

.chapter-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chapter-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.chapter-name-container {
    display: flex;
    align-items: center;
    min-height: 24px;
}

.chapter-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter-item:hover .chapter-name {
    color: #ffd700;
}

.chapter-meta {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.chapter-date {
    opacity: 0.7;
}

.chapter-date i {
    margin-right: 5px;
    color: #ffd700;
}

.new-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.8rem;
    color: #ffd700;
    animation: sparkle-gold 1.8s infinite;
}
.title-link,
.title-link:visited,
.title-link:hover,
.title-link:active,
.title-link:focus {
    text-decoration: none;         /* retire le soulignement par défaut */
    color: inherit;                /* couleur du texte normale */
    outline: none;                 /* retire le contour lors du focus */
}

.release-title:hover,
.title-link:hover .release-title {
    color: #ffd700;                /* doré au survol */
    text-decoration: underline;    /* ajoute soulignement custom */
    text-decoration-color: #ffd700;/* blanc: mets #fff si tu veux blanc */
    text-underline-offset: 3px;    /* espace le soulignement du texte */
}

.release-title,
.title-link .release-title {
    text-decoration: none;         /* jamais de soulignement bleu */
}

@keyframes sparkle-gold {
    0% { opacity: 1; transform: scale(1); }
    20% { opacity: 0.8; transform: scale(1.2); }
    40% { opacity: 1; transform: scale(1); }
    60% { opacity: 0.8; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1400px) {
    .latest-releases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .latest-releases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .release-cover {
        width: 110px;
    }
    .release-title {
        font-size: 0.9rem;
    }
    .chapter-name {
        font-size: 0.85rem;
    }
    .chapter-meta {
        font-size: 0.75rem;
    }
    .new-indicator {
        font-size: 0.7rem;
        top: 4px;
        right: 4px;
    }
}

@media (max-width: 576px) {
    .latest-releases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .chapter-item {
        padding: 6px;
    }
    .chapter-name {
        font-size: 0.8rem;
    }
    .new-indicator {
        font-size: 0.65rem;
        top: 4px;
        right: 4px;
    }
}

.chapter-item:not(:has(.chapter-thumbnail)) .chapter-info {
    margin-left: 0;
}