/* Cinema SV — Front-end Styles */

/* Grid */
.cinema-sv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card */
.cinema-sv-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cinema-sv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cinema-sv-card__poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    flex-shrink: 0;
}

.cinema-sv-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cinema-sv-card__content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cinema-sv-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.cinema-sv-card__schedule {
    margin-bottom: 12px;
    flex: 1;
}

.cinema-sv-card__day {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.cinema-sv-card__day-label {
    font-weight: 600;
    color: #333;
}

.cinema-sv-card__times {
    color: #666;
}

.cinema-sv-card__btn {
    display: inline-block;
    padding: 10px 20px;
    background: #e50914;
    color: #fff;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    margin-top: auto;
}

.cinema-sv-card__btn:hover {
    background: #b2070f;
    color: #fff;
}

.cinema-sv-card__btn--sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* Rating Badges (ANCINE) */
.cinema-sv-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.cinema-sv-rating--L,
.cinema-sv-rating--l,
.cinema-sv-rating--livre {
    background: #00a651;
}

.cinema-sv-rating--10 {
    background: #00aeef;
}

.cinema-sv-rating--12 {
    background: #fff200;
    color: #000;
}

.cinema-sv-rating--14 {
    background: #f58220;
}

.cinema-sv-rating--16 {
    background: #ed1c24;
}

.cinema-sv-rating--18 {
    background: #000;
}

/* Featured */
.cinema-sv-featured {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cinema-sv-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
}

.cinema-sv-featured--vertical {
    flex-direction: column;
    align-items: stretch;
}

.cinema-sv-featured--vertical .cinema-sv-featured__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 40%, transparent 100%);
}

.cinema-sv-featured--vertical .cinema-sv-featured__content {
    margin-top: auto;
}

.cinema-sv-featured__content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 600px;
}

.cinema-sv-featured__title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 12px 0 16px;
}

.cinema-sv-featured__schedule {
    color: #e0e0e0;
    margin-bottom: 20px;
}

.cinema-sv-featured__day {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.cinema-sv-featured__day strong {
    display: inline-block;
    min-width: 140px;
}

.cinema-sv-featured__btn {
    display: inline-block;
    padding: 14px 28px;
    background: #e50914;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.cinema-sv-featured__btn:hover {
    background: #b2070f;
    color: #fff;
}

/* Schedule */
.cinema-sv-schedule__tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.cinema-sv-schedule__tab {
    padding: 8px 16px;
    border: none;
    background: #f0f0f0;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-radius: 4px 4px 0 0;
}

.cinema-sv-schedule__tab:hover {
    background: #e0e0e0;
}

.cinema-sv-schedule__tab.active {
    border-bottom-color: #e50914;
    color: #e50914;
    background: #fff;
}

.cinema-sv-schedule__dropdown-wrap {
    margin-bottom: 20px;
}

.cinema-sv-schedule__dropdown {
    padding: 8px 16px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
}

.cinema-sv-schedule__panel {
    display: none;
}

.cinema-sv-schedule__panel.active {
    display: block;
}

.cinema-sv-schedule__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.cinema-sv-schedule__row:last-child {
    border-bottom: none;
}

.cinema-sv-schedule--striped .cinema-sv-schedule__row:nth-child(even) {
    background: #f9f9f9;
}

.cinema-sv-schedule--bordered .cinema-sv-schedule__row {
    border: 1px solid #ddd;
    margin-bottom: -1px;
}

.cinema-sv-schedule__poster {
    width: 50px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.cinema-sv-schedule__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cinema-sv-schedule__info {
    flex: 1;
}

.cinema-sv-schedule__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.cinema-sv-schedule__header .cinema-sv-rating {
    position: static;
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.cinema-sv-schedule__movie-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.cinema-sv-schedule__times {
    font-size: 0.85rem;
    color: #666;
}

.cinema-sv-schedule__action {
    flex-shrink: 0;
}

/* Carousel */
.cinema-sv-carousel {
    position: relative;
    overflow: hidden;
}

.cinema-sv-carousel__track {
    display: flex;
    transition: transform 0.4s ease;
}

.cinema-sv-carousel__slide {
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
}

.cinema-sv-carousel__slide .cinema-sv-card {
    width: 100%;
}

.cinema-sv-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
}

.cinema-sv-carousel__arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.cinema-sv-carousel__arrow--prev {
    left: 10px;
}

.cinema-sv-carousel__arrow--next {
    right: 10px;
}

.cinema-sv-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.cinema-sv-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cinema-sv-carousel__dot.active {
    background: #e50914;
}

/* iframe */
.cinema-sv-iframe {
    border-radius: 8px;
    overflow: hidden;
}

.cinema-sv-iframe__frame {
    width: 100%;
    height: 700px;
    border: none;
}

/* Empty state */
.cinema-sv-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .cinema-sv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .cinema-sv-grid {
        grid-template-columns: 1fr;
    }

    .cinema-sv-featured__content {
        padding: 20px;
    }

    .cinema-sv-featured__title {
        font-size: 1.4rem;
    }

    .cinema-sv-schedule__row {
        flex-wrap: wrap;
    }

    .cinema-sv-schedule__action {
        width: 100%;
        margin-top: 8px;
    }

    .cinema-sv-carousel__arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}
