.sm-wrap {
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(7, 14, 23, 0.82);
    overflow: hidden;
}

.sm-hero {
    position: relative;
    min-height: 220px;
    background-size: cover;
    background-position: center;
}

.sm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 9, 16, 0.45), rgba(3, 9, 16, 0.92));
}

.sm-hero__content {
    position: relative;
    z-index: 1;
    padding: 16px;
    display: grid;
    gap: 8px;
}

.sm-hero__title {
    color: #fff;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    margin: 0;
}

.sm-hero__meta {
    color: #cae2ff;
    font-size: 0.83rem;
}

.sm-hero__overview {
    color: #e6f2ff;
    margin: 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.sm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sm-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 6px 12px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
}

.sm-btn--primary {
    border-color: rgba(0, 194, 185, 0.65);
    background: rgba(0, 194, 185, 0.24);
}

.sm-seasons {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(168px, 168px);
    gap: 10px;
    overflow-x: auto;
    padding: 12px;
    scroll-snap-type: x mandatory;
}

.sm-season-card {
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    scroll-snap-align: start;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sm-season-card:hover {
    transform: translateY(-2px);
}

.sm-season-card.is-active {
    border-color: rgba(0, 194, 185, 0.72);
    box-shadow: 0 0 0 2px rgba(0, 194, 185, 0.15), 0 16px 22px rgba(0, 0, 0, 0.25);
}

.sm-season-card img {
    width: 100%;
    height: 224px;
    object-fit: cover;
    display: block;
}

.sm-season-card__body {
    padding: 9px;
    display: grid;
    gap: 3px;
}

.sm-season-card__title {
    font-size: 0.88rem;
    font-weight: 700;
}

.sm-season-card__meta {
    color: #d2e4ff;
    font-size: 0.75rem;
}

.sm-episodes {
    padding: 10px 12px 14px;
    display: grid;
    gap: 10px;
}

.sm-episode-card {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 10px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.sm-episode-card img {
    width: 156px;
    height: 92px;
    object-fit: cover;
    display: block;
}

.sm-episode-card__body {
    padding: 10px 10px 8px;
    display: grid;
    gap: 5px;
}

.sm-episode-card__title {
    margin: 0;
    font-size: 0.92rem;
}

.sm-episode-card__meta {
    font-size: 0.77rem;
    color: #cde3ff;
}

.sm-episode-card__desc {
    font-size: 0.82rem;
    color: #dceafe;
    line-height: 1.6;
}

.sm-episode-card.is-active {
    border-color: rgba(0, 194, 185, 0.72);
}

.sm-episode-thumb-fallback {
    width: 156px;
    height: 92px;
    background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06));
    background-size: 220% 100%;
    animation: smPulse 1.2s linear infinite;
}

@keyframes smPulse {
    0% { background-position: 220% 0; }
    100% { background-position: -220% 0; }
}

@media (max-width: 768px) {
    .sm-hero {
        min-height: 188px;
    }
    .sm-season-card img {
        height: 206px;
    }
    .sm-episode-card {
        grid-template-columns: 1fr;
    }
    .sm-episode-card img,
    .sm-episode-thumb-fallback {
        width: 100%;
        height: 174px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-season-card,
    .sm-episode-thumb-fallback {
        transition: none !important;
        animation: none !important;
    }
}
