/**
 * Movie Page V4 Styles
 *
 * Modern styling for movie detail page
 *
 * @package Kvikmyndir
 * @since 4.0.0
 */

/* ============================================
   CSS Variables - Kvikmyndir Theme
   ============================================ */
:root {
    /* Movie page specific */
    --mp-hero-height: 60vh;
    --mp-hero-height-mobile: 45vh;
    --mp-poster-width: 280px;
    --mp-poster-width-mobile: 160px;
    --mp-section-gap: 2.5rem;
    --mp-content-max-width: 1400px;

    /* Kvikmyndir brand colors */
    --mp-primary: #62b0ba;
    --mp-primary-dark: #60aeb8;
    --mp-accent: #f1633b;
    --mp-dark: #383d40;
    --mp-text: #424444;
    --mp-text-light: #a3a3a3;
    --mp-grey: #f2f2f2;
    --mp-grey-light: #e9e9e9;
}

/* ============================================
   Global Link Styles - Remove underlines
   ============================================ */
.mp-page a {
    text-decoration: none;
}

.mp-page a:hover {
    text-decoration: none;
    --mp-border: #cecece;

    /* Rating colors */
    --rating-good: #21d07a;
    --rating-mixed: #d2d531;
    --rating-bad: #db2360;

    /* Certificate colors */
    --cert-l: #4caf50;
    --cert-6: #8bc34a;
    --cert-9: #ffeb3b;
    --cert-12: #ff9800;
    --cert-16: #ff5722;
    --cert-18: #f44336;
}

/* ============================================
   Page Container
   ============================================ */
.mp-page {
    background: var(--mp-grey, #f2f2f2);
    min-height: 100vh;
}

/* ============================================
   Error State
   ============================================ */
.mp-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
    text-align: center;
}

.mp-error__content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--mp-dark, #383d40);
}

.mp-error__content p {
    color: var(--mp-text-light, #a3a3a3);
    margin-bottom: 2rem;
}

.mp-error__btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--mp-primary, #62b0ba);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.mp-error__btn:hover {
    background: var(--mp-primary-dark, #60aeb8);
}

/* ============================================
   Hero Section
   ============================================ */
.mp-hero {
    position: relative;
    min-height: var(--mp-hero-height);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Fallback when no backdrop */
.mp-hero--no-backdrop {
    background: linear-gradient(135deg, var(--mp-dark) 0%, #2c3e50 100%);
}

.mp-hero__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center top;
    z-index: 1;
}

.mp-hero__backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 1) 100%
    );
}

.mp-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
    padding-bottom: 3rem;
}

.mp-hero__wrapper {
    max-width: var(--mp-content-max-width);
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: flex-end;
}

/* Poster */
.mp-hero__poster {
    flex-shrink: 0;
    width: var(--mp-poster-width);
    position: relative;
}

.mp-hero__poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Rating badge on poster removed - ratings now shown in info section with external links */

/* Info */
.mp-hero__info {
    flex: 1;
    min-width: 0;
}

.mp-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    color: #fff;
}

.mp-hero__year {
    font-weight: 400;
    opacity: 0.7;
}

.mp-hero__original-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary, #999);
    margin: 0 0 1rem;
}

/* Meta pills */
.mp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.mp-hero__runtime,
.mp-hero__year-mobile {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--text-secondary, #ccc);
}

.mp-hero__year-mobile {
    display: none;
}

/* Premiere date badge */
.mp-hero__premiere-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ff6b35, #f72585);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
    animation: premierePulse 2s ease-in-out infinite;
}

.mp-hero__premiere-label {
    opacity: 0.9;
}

.mp-hero__premiere-date {
    font-weight: 700;
}

@keyframes premierePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(247, 37, 133, 0.4);
    }
}

/* Genres */
.mp-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mp-genres__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(98, 176, 186, 0.15);
    border: 1px solid rgba(98, 176, 186, 0.4);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.mp-genres__tag:hover {
    background: var(--mp-primary, #62b0ba);
    color: #fff;
}

/* Certificate badges */
.mp-cert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
}

.mp-cert--l { background: var(--cert-l); }
.mp-cert--6 { background: var(--cert-6); }
.mp-cert--9 { background: var(--cert-9); }
.mp-cert--12 { background: var(--cert-12); }
.mp-cert--16 { background: var(--cert-16); color: #fff; }
.mp-cert--18 { background: var(--cert-18); color: #fff; }

/* Short tagline/plot */
.mp-hero__tagline {
    max-width: 550px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
}

/* Hero ratings row */
.mp-hero__ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.mp-hero__rating-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.4rem 0.65rem;
    border-radius: 4px;
}

.mp-hero__rating-item a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.mp-hero__rating-item:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* For ratings without links - no extra margin needed now */

.mp-hero__rating-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mp-hero__rating-score {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

/* Action buttons */
.mp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.mp-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.mp-hero__btn svg {
    width: 20px;
    height: 20px;
}

.mp-hero__btn--primary {
    background: var(--mp-accent, #f1633b);
    color: #fff;
}

.mp-hero__btn--primary:hover {
    background: #e04e27;
    transform: scale(1.02);
}

.mp-hero__btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mp-hero__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   Content Area
   ============================================ */
.mp-content {
    padding: 2rem;
    background: #fff;
}

.mp-content__wrapper {
    max-width: var(--mp-content-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

.mp-content__wrapper--with-showtimes {
    grid-template-columns: 1fr 500px;
}

.mp-main {
    min-width: 0;
    overflow: hidden;
}

/* ============================================
   Sections
   ============================================ */
.mp-section {
    margin-bottom: var(--mp-section-gap);
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mp-section__title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: var(--mp-dark, #383d40);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--mp-primary, #62b0ba);
}

/* ============================================
   Ratings Component
   ============================================ */
.mp-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.mp-ratings__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.mp-ratings__item:hover {
    transform: scale(1.05);
}

.mp-ratings__circle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(
        var(--rating-color) calc(var(--rating-percent) * 3.6deg),
        rgba(255, 255, 255, 0.1) 0
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-ratings__circle::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: #fff;
    border-radius: 50%;
}

.mp-ratings__value {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mp-dark, #383d40);
}

.mp-ratings__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.mp-ratings__logo {
    height: 16px;
    width: auto;
}

.mp-ratings__votes,
.mp-ratings__sublabel {
    font-size: 0.7rem;
    color: var(--mp-text-light, #a3a3a3);
}

/* ============================================
   Streaming Component
   ============================================ */
.mp-streaming__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--mp-dark, #383d40);
}

.mp-streaming__group {
    margin-bottom: 1rem;
}

.mp-streaming__group-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mp-text-light, #a3a3a3);
    margin-bottom: 0.5rem;
}

.mp-streaming__providers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mp-streaming__provider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.2s;
}

.mp-streaming__provider:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mp-streaming__provider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mp-streaming__empty {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
    color: var(--text-secondary, #999);
}

.mp-streaming__justwatch {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mp-streaming__justwatch-link {
    font-size: 0.7rem;
    color: var(--text-muted, #666);
    text-decoration: none;
}

/* ============================================
   Plot Section
   ============================================ */
.mp-plot {
    background: #f7f7f7;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--mp-primary, #62b0ba);
}

.mp-plot p {
    color: var(--mp-text, #424444);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   Cast Section (duplicate - remove later)
   ============================================ */
.mp-cast__carousel {
    overflow: visible;
}

/* ============================================
   Sidebar
   ============================================ */
.mp-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* ============================================
   Mobile Streaming & Showtimes Sections
   ============================================ */
/* Hide mobile sections on desktop */
.mp-section--streaming-mobile,
.mp-section--showtimes-mobile {
    display: none;
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 1024px) {
    .mp-content__wrapper {
        grid-template-columns: 1fr;
    }

    .mp-sidebar {
        position: static;
    }

    /* Show mobile sections on mobile */
    .mp-section--streaming-mobile,
    .mp-section--showtimes-mobile {
        display: block;
    }

    /* Hide streaming and showtimes sections in sidebar on mobile (avoid duplication) */
    .mp-sidebar__section--streaming,
    .mp-sidebar__section--showtimes {
        display: none;
    }
}

@media (max-width: 768px) {
    .mp-hero {
        min-height: var(--mp-hero-height-mobile);
    }

    .mp-hero__content {
        padding: 1rem;
        padding-bottom: 2rem;
    }

    .mp-hero__wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mp-hero__poster {
        width: var(--mp-poster-width-mobile);
        margin-bottom: 1rem;
    }

    .mp-hero__info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mp-genres {
        justify-content: center;
    }

    .mp-hero__title {
        font-size: 1.75rem;
    }

    .mp-hero__year {
        display: none;
    }

    .mp-hero__year-mobile {
        display: inline-flex;
    }

    .mp-hero__meta {
        justify-content: center;
    }

    .mp-hero__tagline {
        text-align: center;
        font-size: 0.9rem;
    }

    .mp-hero__ratings {
        justify-content: center;
    }

    .mp-hero__rating-item {
        padding: 0.4rem 0.6rem;
    }

    .mp-hero__rating-score {
        font-size: 0.95rem;
    }

    .mp-hero__actions {
        justify-content: center;
    }

    .mp-content {
        padding: 0 1rem;
    }

    .mp-section__title {
        font-size: 1.25rem;
    }

    .mp-ratings {
        justify-content: center;
    }

    .mp-ratings__circle {
        width: 50px;
        height: 50px;
    }

    .mp-ratings__value {
        font-size: 0.8rem;
    }
}

/* ============================================
   Cast Component
   ============================================ */
.mp-cast {
    position: relative;
}

.mp-cast__carousel {
    overflow: visible;
    padding: 0 0 1rem;
}

.mp-cast__carousel .swiper-wrapper {
    display: flex;
    flex-direction: row !important;
}

.mp-cast__carousel .swiper-slide {
    width: 120px;
    flex-shrink: 0;
}

.mp-cast__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.mp-person {
    width: 120px;
    text-align: center;
    flex-shrink: 0;
}

.mp-person__link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.mp-person__link:hover {
    opacity: 0.85;
}

.mp-person__img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-size: cover;
    background-position: center top;
    margin: 0 auto 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 3px solid var(--mp-grey-light, #e9e9e9);
    background-color: var(--mp-grey, #f2f2f2);
}

.mp-person:hover .mp-person__img {
    transform: scale(1.05);
    border-color: var(--mp-primary, #62b0ba);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mp-person__info {
    padding: 0 0.25rem;
}

.mp-person__name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mp-text, #424444);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-person__character {
    display: block;
    font-size: 0.75rem;
    color: var(--mp-text-light, #a3a3a3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-person--compact {
    width: auto;
}

.mp-person--compact .mp-person__name {
    font-size: 0.9rem;
    white-space: normal;
}

/* Swiper navigation */
.mp-cast__carousel .swiper-button-prev,
.mp-cast__carousel .swiper-button-next {
    color: var(--mp-primary, #62b0ba);
    background: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    top: 45px;
}

.mp-cast__carousel .swiper-button-prev::after,
.mp-cast__carousel .swiper-button-next::after {
    font-size: 14px;
    font-weight: bold;
}

.mp-cast__carousel .swiper-button-prev {
    left: -18px;
}

.mp-cast__carousel .swiper-button-next {
    right: -18px;
}

/* Crew */
.mp-crew {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--mp-border, #cecece);
}

.mp-crew__section {
    min-width: 0;
}

.mp-crew__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--mp-dark, #383d40);
}

.mp-crew__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mp-crew__list .mp-person--compact .mp-person__link {
    padding: 0.35rem 0.75rem;
    background: var(--mp-grey, #f2f2f2);
    border-radius: 4px;
    transition: background 0.2s;
}

.mp-crew__list .mp-person--compact .mp-person__link:hover {
    background: var(--mp-primary, #62b0ba);
}

.mp-crew__list .mp-person--compact .mp-person__link:hover .mp-person__name {
    color: #fff;
}

/* ============================================
   Episodes Component
   ============================================ */
.mp-episodes__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mp-episodes__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--mp-dark, #383d40);
}

.mp-episodes__season-select {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid var(--mp-border, #cecece);
    border-radius: 4px;
    color: var(--mp-text, #424444);
    font-size: 0.9rem;
    cursor: pointer;
}

.mp-episode {
    background: var(--mp-grey-light, #e9e9e9);
    border-radius: 8px;
    overflow: hidden;
}

.mp-episode__img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.mp-episode__content {
    padding: 1rem;
}

.mp-episode__name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--mp-dark, #383d40);
}

.mp-episode__plot {
    font-size: 0.8rem;
    color: var(--mp-text-light, #a3a3a3);
    line-height: 1.5;
    margin: 0 0 0.5rem;
}

.mp-episode__date {
    font-size: 0.75rem;
    color: var(--mp-text-light, #a3a3a3);
}

/* ============================================
   Similar Movies Component
   ============================================ */
.mp-movie-card {
    text-align: center;
}

.mp-movie-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mp-movie-card__poster {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.mp-movie-card__poster img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.mp-movie-card:hover .mp-movie-card__poster img {
    transform: scale(1.05);
}

.mp-movie-card__rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #f5c518;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Current movie badge */
.mp-movie-card--current {
    position: relative;
}

.mp-movie-card--current .mp-movie-card__poster {
    border: 2px solid var(--mp-primary, #13ac8f);
}

.mp-movie-card__current-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mp-primary, #13ac8f);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.mp-movie-card__title {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mp-dark, #383d40);
}

.mp-movie-card__year {
    font-size: 0.75rem;
    color: var(--mp-text-light, #a3a3a3);
}

/* ============================================
   Similar Movies Wrapper (full width)
   ============================================ */
.mp-similar-wrapper {
    max-width: var(--mp-content-max-width);
    margin: 0 auto;
    padding: 2rem;
}

.mp-similar-wrapper .mp-section--similar,
.mp-similar-wrapper .mp-section--franchise,
.mp-similar-wrapper .mp-section--tmdb-recommendations {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.mp-similar__carousel,
.mp-franchise__carousel {
    overflow: hidden;
    position: relative;
    padding: 0 40px;
}

.mp-similar__carousel .swiper-slide,
.mp-franchise__carousel .swiper-slide,
.mp-section--tmdb-recommendations .swiper-slide {
    width: 140px;
}

.mp-similar__carousel .swiper-wrapper,
.mp-franchise__carousel .swiper-wrapper {
    display: flex;
    flex-direction: row;
}

/* Navigation buttons for similar/franchise sliders */
.mp-similar__carousel .swiper-button-prev,
.mp-similar__carousel .swiper-button-next,
.mp-franchise__carousel .swiper-button-prev,
.mp-franchise__carousel .swiper-button-next {
    color: var(--mp-primary, #62b0ba);
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mp-similar__carousel .swiper-button-prev::after,
.mp-similar__carousel .swiper-button-next::after,
.mp-franchise__carousel .swiper-button-prev::after,
.mp-franchise__carousel .swiper-button-next::after {
    font-size: 14px;
    font-weight: bold;
}

.mp-similar__carousel .swiper-button-prev,
.mp-franchise__carousel .swiper-button-prev {
    left: 0;
}

.mp-similar__carousel .swiper-button-next,
.mp-franchise__carousel .swiper-button-next {
    right: 0;
}

/* ============================================
   Sidebar Component
   ============================================ */
.mp-sidebar__inner {
    position: sticky;
    top: 100px;
}

.mp-sidebar__section {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mp-sidebar__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--mp-dark, #383d40);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mp-primary, #62b0ba);
}

.mp-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    margin: 0;
}

.mp-details dt {
    font-size: 0.85rem;
    color: var(--mp-text-light, #a3a3a3);
}

.mp-details dd {
    font-size: 0.85rem;
    color: var(--mp-text, #424444);
    margin: 0;
}

.mp-details dd a {
    color: var(--mp-primary, #62b0ba);
    text-decoration: none;
}

.mp-details dd a:hover {
    text-decoration: underline;
    color: var(--mp-primary-dark, #60aeb8);
}

.mp-details__logo {
    height: 24px;
    width: auto;
}

/* External links */
.mp-external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mp-external-links__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--mp-grey-light, #e9e9e9);
    border-radius: 4px;
    text-decoration: none;
    color: var(--mp-text, #424444);
    font-size: 0.8rem;
    transition: all 0.2s;
}

.mp-external-links__item:hover {
    background: var(--mp-primary, #62b0ba);
    color: #fff;
}

.mp-external-links__icon {
    height: 16px;
    width: auto;
}

/* Social media links */
.mp-social-links {
    display: flex;
    gap: 0.5rem;
}

.mp-social-links__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mp-grey-light, #e9e9e9);
    color: var(--mp-text, #424444);
    transition: all 0.2s ease;
}

.mp-social-links__item svg {
    width: 20px;
    height: 20px;
}

.mp-social-links__item:hover {
    transform: translateY(-2px);
}

.mp-social-links__item--facebook:hover {
    background: #1877f2;
    color: #fff;
}

.mp-social-links__item--twitter:hover {
    background: #000;
    color: #fff;
}

.mp-social-links__item--instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.mp-social-links__item--wikidata:hover {
    background: #339966;
    color: #fff;
}

/* TMDB Watch Providers */
.mp-tmdb-providers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mp-tmdb-providers__category {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mp-tmdb-providers__label {
    font-size: 0.75rem;
    color: var(--mp-text-muted, #666);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mp-tmdb-providers__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mp-tmdb-providers__item {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--mp-grey-light, #e9e9e9);
    transition: transform 0.2s ease;
}

.mp-tmdb-providers__item:hover {
    transform: scale(1.1);
}

.mp-tmdb-providers__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-tmdb-providers__attribution {
    display: block;
    font-size: 0.7rem;
    color: var(--mp-text-muted, #666);
    text-decoration: none;
    margin-top: 0.5rem;
}

.mp-tmdb-providers__attribution:hover {
    color: var(--mp-primary, #62b0ba);
    text-decoration: underline;
}

/* Unified Streaming Section */
.mp-unified-streaming {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mp-unified-streaming__category {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.mp-unified-streaming__label {
    font-size: 0.7rem;
    color: var(--mp-text-muted, #666);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    min-width: 50px;
    flex-shrink: 0;
}

.mp-unified-streaming__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.mp-unified-streaming__item {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.mp-unified-streaming__item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mp-unified-streaming__item--linked {
    cursor: pointer;
    display: block;
    width: 44px;
    height: 44px;
}

.mp-unified-streaming__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Brand-specific backgrounds - logos fill the entire space */
.mp-unified-streaming__item[data-provider="netflix"] {
    background: #000;
}
.mp-unified-streaming__item[data-provider="disney+"],
.mp-unified-streaming__item[data-provider="disney"] {
    background: #0c1633;
}
.mp-unified-streaming__item[data-provider="viaplay"] {
    background: #fff;
}
.mp-unified-streaming__item[data-provider="rúv"],
.mp-unified-streaming__item[data-provider="ruv"] {
    background: #fff;
}
.mp-unified-streaming__item[data-provider="síminn"],
.mp-unified-streaming__item[data-provider="siminn"] {
    background: #fff;
}
.mp-unified-streaming__item[data-provider="stöð 2"],
.mp-unified-streaming__item[data-provider="stod2"],
.mp-unified-streaming__item[data-provider="stöð 2 maraþon"],
.mp-unified-streaming__item[data-provider="sýn"],
.mp-unified-streaming__item[data-provider="syn"] {
    background: #fff;
}
.mp-unified-streaming__item[data-provider="amazon prime video"],
.mp-unified-streaming__item[data-provider="prime video"] {
    background: #00050d;
}
.mp-unified-streaming__item[data-provider="apple tv"],
.mp-unified-streaming__item[data-provider="apple tv+"] {
    background: #000;
}
.mp-unified-streaming__item[data-provider="hbo max"],
.mp-unified-streaming__item[data-provider="max"] {
    background: #002be7;
}
.mp-unified-streaming__item[data-provider="paramount+"],
.mp-unified-streaming__item[data-provider="paramount plus"] {
    background: #0064ff;
}
.mp-unified-streaming__item[data-provider="skyshowtime"] {
    background: linear-gradient(135deg, #6b2c91 0%, #00a0d2 100%);
}

.mp-unified-streaming__attribution {
    display: block;
    font-size: 0.7rem;
    color: var(--mp-text-muted, #666);
    text-decoration: none;
    margin-top: 0.5rem;
}

.mp-unified-streaming__attribution:hover {
    color: var(--mp-primary, #62b0ba);
    text-decoration: underline;
}

/* Box Office Performance */
.mp-box-office {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.75rem 0;
}

.mp-box-office__title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mp-text-muted, #666);
    margin-bottom: 0.75rem;
}

.mp-box-office__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.mp-box-office__label {
    font-size: 0.85rem;
    color: var(--mp-text-muted, #666);
}

.mp-box-office__value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mp-text, #424444);
}

.mp-box-office__value--revenue {
    color: var(--mp-primary, #62b0ba);
}

.mp-box-office__result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mp-box-office__icon {
    font-size: 1rem;
    font-weight: 700;
}

.mp-box-office__profit-value {
    font-size: 0.95rem;
    font-weight: 700;
}

.mp-box-office__roi {
    font-size: 0.8rem;
    opacity: 0.8;
}

.mp-box-office__result--profit {
    color: #22c55e;
}

.mp-box-office__result--loss {
    color: #ef4444;
}

/* JustWatch widget in sidebar */
.mp-sidebar__section--justwatch {
    background: #fff;
}

.mp-justwatch-widget {
    min-height: 60px;
}

.mp-justwatch-widget [data-jw-widget] {
    background: transparent !important;
}

/* ============================================
   Mobile Responsive - Additional
   ============================================ */
@media (max-width: 768px) {
    .mp-cast__carousel .swiper-slide {
        width: 100px;
    }

    .mp-person {
        width: 100px;
    }

    .mp-person__img {
        width: 70px;
        height: 70px;
    }

    .mp-person__name {
        font-size: 0.75rem;
    }

    .mp-person__character {
        font-size: 0.65rem;
    }

    .mp-cast__carousel .swiper-button-prev,
    .mp-cast__carousel .swiper-button-next {
        display: none;
    }

    .mp-crew {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mp-episodes__header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .mp-sidebar__inner {
        position: static;
    }

    .mp-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   Gallery Component
   ============================================ */
.mp-gallery {
    margin-bottom: 2rem;
}

.mp-gallery__subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mp-text, #424444);
    margin: 0 0 1rem;
}

.mp-gallery__carousel {
    overflow: visible;
    padding: 0 0 1rem;
}

.mp-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.mp-gallery__grid--posters {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.mp-gallery__item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.mp-gallery__item--backdrop {
    width: 280px;
    flex-shrink: 0;
}

.mp-gallery__item--poster {
    width: 140px;
    flex-shrink: 0;
}

.mp-gallery__link {
    display: block;
    position: relative;
}

.mp-gallery__img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.mp-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.mp-gallery__link:hover .mp-gallery__overlay {
    opacity: 1;
}

.mp-gallery__link:hover .mp-gallery__img {
    transform: scale(1.05);
}

.mp-gallery__zoom {
    font-size: 1.5rem;
}

.mp-gallery__carousel .swiper-button-prev,
.mp-gallery__carousel .swiper-button-next {
    color: var(--mp-primary, #62b0ba);
    background: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mp-gallery__carousel .swiper-button-prev::after,
.mp-gallery__carousel .swiper-button-next::after {
    font-size: 14px;
    font-weight: bold;
}

/* ============================================
   Production Component
   ============================================ */
.mp-production {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mp-border, #cecece);
}

.mp-production__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mp-text, #424444);
    margin: 0 0 1rem;
}

.mp-production__list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.mp-production__company {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f7f7f7;
    border-radius: 8px;
    min-width: 180px;
}

.mp-production__logo {
    width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mp-production__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mp-production__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mp-production__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mp-text, #424444);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-production__country {
    font-size: 0.75rem;
    color: var(--mp-text-light, #a3a3a3);
}

@media (max-width: 768px) {
    .mp-gallery__item--backdrop {
        width: 220px;
    }

    .mp-gallery__item--poster {
        width: 100px;
    }

    .mp-gallery__carousel .swiper-button-prev,
    .mp-gallery__carousel .swiper-button-next {
        display: none;
    }

    .mp-production__list {
        gap: 1rem;
    }

    .mp-production__company {
        min-width: 140px;
        padding: 0.5rem 0.75rem;
    }
}

/* ============================================
   Showtimes Section
   ============================================ */
.mp-showtimes {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mp-showtimes__tabs {
    display: flex;
    gap: 0;
    background: var(--mp-grey, #f2f2f2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mp-showtimes__tabs::-webkit-scrollbar {
    display: none;
}

.mp-showtimes__tab {
    flex: 1;
    min-width: 70px;
    padding: 0.5rem 0.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    min-height: 52px;
}

.mp-showtimes__tab:hover {
    background: rgba(98, 176, 186, 0.1);
}

.mp-showtimes__tab--active {
    background: #fff;
    border-bottom-color: var(--mp-primary, #62b0ba);
}

.mp-showtimes__tab-day {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mp-text, #424444);
    line-height: 1.2;
    text-align: center;
}

.mp-showtimes__tab-date {
    font-size: 0.7rem;
    color: var(--mp-text-light, #a3a3a3);
    margin-top: 2px;
}

.mp-showtimes__content {
    padding: 1rem;
}

.mp-showtimes__day {
    display: none;
}

.mp-showtimes__day--active {
    display: block;
}

.mp-showtimes__cinema {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mp-grey-light, #e9e9e9);
}

.mp-showtimes__cinema:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mp-showtimes__cinema-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.mp-showtimes__cinema-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.mp-showtimes__cinema-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--mp-text-light, #a3a3a3);
    text-align: right;
}

.mp-showtimes__times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mp-showtimes__time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: var(--mp-grey, #f2f2f2);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mp-text, #424444);
    transition: all 0.2s ease;
    text-decoration: none;
}

.mp-showtimes__time:hover {
    background: var(--mp-primary, #62b0ba);
    color: #fff;
    text-decoration: none;
}

.mp-showtimes__time-value {
    font-weight: 600;
}

.mp-showtimes__time-type {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 4px;
    background: var(--mp-accent, #f1633b);
    color: #fff;
    border-radius: 3px;
    text-transform: uppercase;
}

.mp-showtimes__time-lang {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* Icelandic language badge - uses page primary color */
.mp-showtimes__time-lang--is {
    background: var(--mp-primary, #62b0ba);
    color: #fff;
}

/* English language badge - subtle grey */
.mp-showtimes__time-lang--en {
    background: #6b7280;
    color: #fff;
}

.mp-showtimes__time:hover .mp-showtimes__time-type {
    background: rgba(255, 255, 255, 0.3);
}

.mp-showtimes__time:hover .mp-showtimes__time-lang--is,
.mp-showtimes__time:hover .mp-showtimes__time-lang--en {
    opacity: 0.8;
}

.mp-showtimes__all-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--mp-grey, #f2f2f2);
    color: var(--mp-primary, #62b0ba);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mp-showtimes__all-link:hover {
    background: var(--mp-primary, #62b0ba);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .mp-showtimes__tab {
        min-width: 60px;
        padding: 0.5rem 0.4rem;
    }

    .mp-showtimes__tab-day {
        font-size: 0.75rem;
    }

    .mp-showtimes__tab-date {
        font-size: 0.65rem;
    }

    .mp-showtimes__content {
        padding: 0.75rem;
    }

    .mp-showtimes__time {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   TRIVIA / VISSIR ÞÚ SECTION
   ======================================== */

.mp-section--trivia {
    background: var(--mp-card-bg, #fff);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mp-trivia {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mp-trivia__item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--mp-grey, #f2f2f2);
    border-radius: 8px;
    align-items: flex-start;
}

.mp-trivia__icon {
    flex-shrink: 0;
    color: var(--mp-primary, #62b0ba);
    opacity: 0.8;
}

.mp-trivia__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--mp-text, #333);
}

.mp-trivia__empty {
    color: var(--mp-text-muted, #6b7280);
    font-style: italic;
    margin-bottom: 1rem;
}

.mp-trivia__add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--mp-primary, #62b0ba);
    color: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mp-trivia__add-btn:hover {
    background: var(--mp-primary-dark, #4a9aa3);
    color: #fff;
}



/* ========================================
   TAGLINE / MOTTO IN HERO
   ======================================== */

.mp-hero__motto {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .mp-hero__motto {
        font-size: 0.95rem;
    }
}

/* ========================================
   CERTIFICATE DETAILED SECTION
   ======================================== */

.mp-section--certificate {
    background: var(--mp-card-bg, #fff);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.mp-certificate-detailed {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.mp-certificate-detailed__badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mp-certificate-detailed__badge img {
    height: 36px;
    width: auto;
}

.mp-certificate-detailed__text {
    font-weight: 500;
    color: var(--mp-text, #424444);
}

.mp-certificate-detailed__reasons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--mp-grey-light, #e9e9e9);
}

.mp-certificate-detailed__reasons-label {
    font-size: 0.85rem;
    color: var(--mp-text-light, #a3a3a3);
    margin-right: 0.25rem;
}

.mp-certificate-detailed__reason-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: help;
    padding: 0.25rem 0.5rem 0.25rem 0.35rem;
    background: var(--mp-grey-light, #f5f5f5);
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mp-certificate-detailed__reason-item:hover {
    background: var(--mp-grey, #e9e9e9);
}

.mp-certificate-detailed__reason-item img {
    height: 20px;
    width: auto;
}

.mp-certificate-detailed__reason-text {
    font-size: 0.8rem;
    color: var(--mp-text, #424444);
    font-weight: 500;
}

@media (max-width: 576px) {
    .mp-certificate-detailed {
        flex-direction: column;
        align-items: flex-start;
    }

    .mp-certificate-detailed__reasons {
        padding-left: 0;
        border-left: none;
        padding-top: 0.5rem;
        border-top: 1px solid var(--mp-grey-light, #e9e9e9);
        width: 100%;
        flex-wrap: wrap;
    }

    .mp-certificate-detailed__reason-item {
        font-size: 0.75rem;
    }
}

/* ========================================
   AWARDS SECTION
   ======================================== */

.mp-section--awards {
    background: linear-gradient(135deg, #fef9e7 0%, #fff8e1 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.mp-awards {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.mp-awards__icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.mp-awards__text {
    color: var(--mp-text, #424444);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   MOVIE SERIES SECTION
   ======================================== */

.mp-series-wrapper {
    max-width: var(--mp-content-max-width, 1400px);
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.mp-section--series {
    background: var(--mp-card-bg, #fff);
    border-radius: 12px;
    padding: 1.5rem 2rem;
}

.mp-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.mp-series-grid__item {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: var(--mp-grey-light, #f8f8f8);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mp-series-grid__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.mp-series-grid__item--current {
    box-shadow: 0 0 0 3px var(--mp-primary, #62b0ba);
}

.mp-series-grid__poster {
    position: relative;
    overflow: hidden;
}

.mp-series-grid__item img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.mp-series-grid__info {
    padding: 0.75rem;
    text-align: center;
    background: var(--mp-card-bg, #fff);
}

.mp-series-grid__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mp-text, #424444);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp-series-grid__year {
    font-size: 0.75rem;
    color: var(--mp-text-light, #888);
    margin-top: 0.25rem;
}

.mp-series-grid__rating {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.mp-series-grid__current-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mp-primary, #62b0ba);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .mp-series-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }

    .mp-series-grid__info {
        padding: 0.5rem;
    }

    .mp-series-grid__title {
        font-size: 0.75rem;
    }
}

/* ========================================
   QUOTES SECTION
   ======================================== */

.mp-section--quotes {
    background: var(--mp-card-bg, #fff);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mp-quotes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mp-quotes__item {
    margin: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-left: 4px solid var(--mp-primary, #62b0ba);
    border-radius: 0 8px 8px 0;
}

.mp-quotes__text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--mp-text, #424444);
    margin: 0;
}

/* ========================================
   USER REVIEWS SECTION (Subtle/Compact)
   ======================================== */

.mp-section--user-reviews {
    background: var(--mp-card-bg, #fff);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.mp-section--user-reviews .mp-section__title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.mp-section--user-reviews .mp-section__count {
    font-weight: 400;
    color: var(--mp-text-muted, #888);
    font-size: 0.9rem;
}

.mp-user-reviews {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mp-user-reviews__item {
    padding: 0.75rem 1rem;
    background: var(--mp-grey, #f2f2f2);
    border-radius: 8px;
    border-left: 3px solid var(--mp-primary, #62b0ba);
}

.mp-user-reviews__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mp-user-reviews__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mp-text, #424444);
    margin: 0;
}

.mp-user-reviews__rating {
    color: var(--mp-accent, #f1633b);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.mp-user-reviews__text {
    color: var(--mp-text-muted, #666);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

.mp-user-reviews__author {
    font-size: 0.8rem;
    text-align: right;
}

.mp-user-reviews__author a {
    color: var(--mp-primary-dark, #60aeb8);
    text-decoration: none;
}

.mp-user-reviews__author a:hover {
    text-decoration: underline;
}

.mp-user-reviews__item--hidden {
    display: none;
}

.mp-user-reviews--expanded .mp-user-reviews__item--hidden {
    display: block;
}

.mp-user-reviews__show-more {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--mp-primary, #62b0ba);
    border-radius: 6px;
    color: var(--mp-primary, #62b0ba);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mp-user-reviews__show-more:hover {
    background: var(--mp-primary, #62b0ba);
    color: #fff;
}

.mp-user-reviews--expanded + .mp-user-reviews__show-more {
    display: none;
}

/* ========================================
   EXTERNAL REVIEWS SECTION
   ======================================== */

.mp-section--external-reviews {
    background: var(--mp-card-bg, #fff);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mp-external-reviews {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mp-external-reviews__item {
    padding: 1rem;
    background: var(--mp-grey, #f2f2f2);
    border-radius: 8px;
}

.mp-external-reviews__source {
    font-weight: 600;
    color: var(--mp-primary-dark, #60aeb8);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mp-external-reviews__text {
    color: var(--mp-text, #424444);
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.mp-external-reviews__link {
    display: inline-block;
    color: var(--mp-primary, #62b0ba);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.mp-external-reviews__link:hover {
    color: var(--mp-accent, #f1633b);
}

/* ========================================
   FILMED IN ICELAND BADGE
   ======================================== */

.mp-sidebar__section--iceland {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4edda 100%);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.mp-sidebar__item--iceland {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mp-filmed-iceland-link {
    color: var(--mp-primary-dark, #60aeb8);
    font-weight: 600;
    transition: color 0.2s;
}

.mp-filmed-iceland-link:hover {
    color: var(--mp-accent, #f1633b);
}

/* ========================================
   SHARE BUTTONS
   ======================================== */

.mp-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.mp-share__label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.mp-share__buttons {
    display: flex;
    gap: 0.5rem;
}

.mp-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.mp-share__btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.mp-share__btn--facebook:hover {
    background: #1877f2;
}

.mp-share__btn--twitter:hover {
    background: #000;
}

.mp-share__btn--copy:hover {
    background: var(--mp-primary, #62b0ba);
}

.mp-share__btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mp-share__copied-text {
    display: none;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.mp-share__btn--copy.copied .mp-share__copied-text {
    display: block;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(5px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-5px); }
}

@media (max-width: 576px) {
    .mp-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* ========================================
   RELATED NEWS SECTION
   ======================================== */

.mp-related-news-wrapper {
    background: var(--mp-card-bg, #fff);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mp-related-news__heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mp-text, #424444);
    margin: 0 0 1rem 0;
}

.mp-related-news {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mp-related-news__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s;
    color: inherit;
    border: 1px solid var(--mp-grey-light, #eee);
}

.mp-related-news__item:hover {
    background: var(--mp-grey-light, #f8f8f8);
    border-color: var(--mp-grey, #ddd);
}

.mp-related-news__thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    min-width: 60px;
    max-width: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--mp-grey, #f2f2f2);
}

.mp-related-news__thumb img {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    object-fit: cover;
    display: block;
}

.mp-related-news__content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.mp-related-news__date {
    font-size: 0.75rem;
    color: var(--mp-text-light, #888);
}

.mp-related-news__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mp-text, #424444);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Behind The Scenes / Aukaefni Section
   ============================================ */
.mp-section--bts {
    margin-top: 2rem;
}

.mp-bts {
    position: relative;
}

.mp-bts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mp-bts__carousel {
    overflow: hidden;
    padding: 0.5rem 0;
}

.mp-bts__carousel .swiper-wrapper {
    display: flex;
}

.mp-bts__carousel .swiper-slide {
    width: 300px;
    flex-shrink: 0;
}

.mp-bts__item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mp-bts__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.mp-bts__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mp-bts__thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--mp-dark, #1a1a1a);
    overflow: hidden;
}

.mp-bts__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, opacity 0.3s;
}

.mp-bts__item:hover .mp-bts__thumb img {
    transform: scale(1.05);
    opacity: 0.8;
}

.mp-bts__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.mp-bts__play svg {
    width: 28px;
    height: 28px;
    color: #fff;
    margin-left: 3px;
}

.mp-bts__item:hover .mp-bts__play {
    background: var(--mp-accent, #f1633b);
    transform: translate(-50%, -50%) scale(1.1);
}

.mp-bts__info {
    padding: 1rem;
}

.mp-bts__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mp-text, #424444);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* BTS Carousel Navigation */
.mp-bts__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.mp-bts__nav::after {
    font-size: 14px;
    color: var(--mp-dark, #383d40);
}

.mp-bts__nav:hover {
    background: var(--mp-primary, #62b0ba);
}

.mp-bts__nav:hover::after {
    color: #fff;
}

.mp-bts__nav--prev {
    left: -10px;
}

.mp-bts__nav--next {
    right: -10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mp-bts__grid {
        grid-template-columns: 1fr;
    }

    .mp-bts__carousel .swiper-slide {
        width: 260px;
    }

    .mp-bts__nav {
        display: none;
    }

    .mp-bts__play {
        width: 48px;
        height: 48px;
    }

    .mp-bts__play svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   Filmmakers Spotlight Section
   ============================================ */
.mp-section--filmmakers {
    margin-top: 2rem;
}

.mp-filmmakers {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mp-filmmaker {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mp-filmmaker__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mp-filmmaker__photo-link {
    flex-shrink: 0;
}

.mp-filmmaker__photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--mp-grey, #f2f2f2);
    border: 2px solid var(--mp-border, #e0e0e0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mp-filmmaker__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mp-filmmaker__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mp-text, #424444);
    text-decoration: none;
}

.mp-filmmaker__name:hover {
    color: var(--mp-primary, #62b0ba);
}

.mp-filmmaker__role {
    font-size: 0.85rem;
    color: var(--mp-primary, #62b0ba);
    font-weight: 500;
}

.mp-filmmaker__meta {
    font-size: 0.8rem;
    color: var(--mp-text-light, #888);
}

.mp-filmmaker__filmography {
    border-top: 1px solid var(--mp-grey-light, #eee);
    padding-top: 1rem;
}

.mp-filmmaker__filmography-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mp-text-light, #888);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mp-filmmaker__movies {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--mp-grey, #ddd) transparent;
}

.mp-filmmaker__movies::-webkit-scrollbar {
    height: 4px;
}

.mp-filmmaker__movies::-webkit-scrollbar-thumb {
    background: var(--mp-grey, #ddd);
    border-radius: 4px;
}

.mp-filmmaker__movie {
    flex-shrink: 0;
    width: 80px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mp-filmmaker__movie img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--mp-grey, #f2f2f2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mp-filmmaker__movie:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mp-filmmaker__movie-info {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.mp-filmmaker__movie-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--mp-text, #424444);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp-filmmaker__movie-year {
    font-size: 0.7rem;
    color: var(--mp-text-light, #888);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mp-filmmaker__photo {
        width: 60px;
        height: 60px;
    }

    .mp-filmmaker__name {
        font-size: 1rem;
    }

    .mp-filmmaker__movie {
        width: 70px;
    }

    .mp-filmmaker__movie img {
        width: 70px;
        height: 105px;
    }
}

/* ============================================
   Soundtrack Section
   ============================================ */
.mp-section--soundtrack {
    margin-top: 2rem;
}

.mp-section--soundtrack .mp-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mp-section__icon {
    color: var(--mp-primary, #62b0ba);
}

.mp-soundtrack {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mp-soundtrack__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mp-soundtrack__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--mp-grey, #f8f8f8);
    border-radius: 8px;
    transition: background 0.2s;
}

.mp-soundtrack__item:hover {
    background: var(--mp-grey-light, #eee);
}

.mp-soundtrack__track-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.mp-soundtrack__track-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--mp-text, #424444);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-soundtrack__track-artist {
    font-size: 0.8rem;
    color: var(--mp-text-light, #888);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-soundtrack__play {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mp-primary, #62b0ba);
    color: #fff;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
    margin-left: 0.75rem;
}

.mp-soundtrack__play:hover {
    background: #1DB954; /* Spotify green */
    transform: scale(1.1);
}

.mp-soundtrack__play svg {
    margin-left: 2px;
}

.mp-soundtrack__more {
    margin-top: 0.75rem;
    text-align: center;
}

.mp-soundtrack__more-link {
    font-size: 0.85rem;
    color: var(--mp-primary, #62b0ba);
    text-decoration: none;
}

.mp-soundtrack__more-link:hover {
    text-decoration: underline;
}

.mp-soundtrack__spotify {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mp-grey-light, #eee);
    text-align: center;
}

.mp-soundtrack__spotify-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #1DB954;
    color: #fff;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.mp-soundtrack__spotify-btn:hover {
    background: #1ed760;
    transform: scale(1.02);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mp-soundtrack {
        padding: 1rem;
    }

    .mp-soundtrack__item {
        padding: 0.6rem 0.75rem;
    }

    .mp-soundtrack__track-title {
        font-size: 0.9rem;
    }
}

/* ============================================
   Lazy Loading & Skeleton Animations
   ============================================ */

/* Shimmer keyframe animation */
@keyframes mp-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Fade in animation for loaded images */
@keyframes mp-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Base lazy loading class for images */
.mp-lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mp-lazy.mp-loaded {
    opacity: 1;
}

/* Skeleton placeholder */
.mp-skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg,
        var(--mp-grey, #f2f2f2) 0%,
        var(--mp-grey-light, #e9e9e9) 50%,
        var(--mp-grey, #f2f2f2) 100%);
    background-size: 200% 100%;
    animation: mp-shimmer 1.5s infinite ease-in-out;
}

/* Poster skeleton with aspect ratio */
.mp-poster-skeleton {
    aspect-ratio: 2/3;
    background: linear-gradient(90deg,
        #e0e0e0 0%,
        #f5f5f5 50%,
        #e0e0e0 100%);
    background-size: 200% 100%;
    animation: mp-shimmer 1.5s infinite ease-in-out;
    border-radius: 8px;
}

/* Person/avatar skeleton */
.mp-avatar-skeleton {
    border-radius: 50%;
    background: linear-gradient(90deg,
        #e0e0e0 0%,
        #f5f5f5 50%,
        #e0e0e0 100%);
    background-size: 200% 100%;
    animation: mp-shimmer 1.5s infinite ease-in-out;
}

/* Text skeleton */
.mp-text-skeleton {
    height: 1em;
    border-radius: 4px;
    background: linear-gradient(90deg,
        #e0e0e0 0%,
        #f5f5f5 50%,
        #e0e0e0 100%);
    background-size: 200% 100%;
    animation: mp-shimmer 1.5s infinite ease-in-out;
}

/* Lazy image container (blur-up technique) */
.mp-lazy-container {
    position: relative;
    overflow: hidden;
}

.mp-lazy-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.mp-lazy-container img.mp-loading {
    filter: blur(10px);
    opacity: 0.6;
}

.mp-lazy-container img.mp-loaded {
    filter: blur(0);
    opacity: 1;
}

/* Apply skeleton to movie card posters while loading */
.mp-movie-card__poster--loading {
    position: relative;
}

.mp-movie-card__poster--loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        #e0e0e0 0%,
        #f0f0f0 50%,
        #e0e0e0 100%);
    background-size: 200% 100%;
    animation: mp-shimmer 1.5s infinite ease-in-out;
    z-index: 1;
}

.mp-movie-card__poster--loaded::before {
    display: none;
}

/* Person image skeleton while loading */
.mp-person__img--loading {
    position: relative;
}

.mp-person__img--loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(90deg,
        #e0e0e0 0%,
        #f0f0f0 50%,
        #e0e0e0 100%);
    background-size: 200% 100%;
    animation: mp-shimmer 1.5s infinite ease-in-out;
}

.mp-person__img--loaded::before {
    display: none;
}

/* BTS thumb skeleton */
.mp-bts__thumb--loading {
    position: relative;
}

.mp-bts__thumb--loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        #1a1a2e 0%,
        #2a2a4e 50%,
        #1a1a2e 100%);
    background-size: 200% 100%;
    animation: mp-shimmer 1.5s infinite ease-in-out;
    z-index: 1;
}

.mp-bts__thumb--loaded::before {
    display: none;
}

/* Filmmaker photo skeleton */
.mp-filmmaker__photo--loading {
    position: relative;
}

.mp-filmmaker__photo--loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(90deg,
        #e0e0e0 0%,
        #f0f0f0 50%,
        #e0e0e0 100%);
    background-size: 200% 100%;
    animation: mp-shimmer 1.5s infinite ease-in-out;
}

.mp-filmmaker__photo--loaded::before {
    display: none;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .mp-skeleton,
    .mp-poster-skeleton,
    .mp-avatar-skeleton,
    .mp-text-skeleton,
    .mp-movie-card__poster--loading::before,
    .mp-person__img--loading::before,
    .mp-bts__thumb--loading::before,
    .mp-filmmaker__photo--loading::before {
        animation: none;
        background: #e0e0e0;
    }

    .mp-lazy-container img,
    .mp-lazy {
        transition: none;
    }
}