/**
 * Frontpage V2 Styles
 * Modern redesign with Swiper and improved UI/UX
 * Matching kvikmyndir.is design language
 */

/* =========================================
   CSS Variables - Matching site theme
   ========================================= */
:root {
    --fp-primary: #f1633b;
    --fp-primary-dark: #d94f2a;
    --fp-primary-light: #ff8a65;
    --fp-bg-main: #f5f5f5;
    --fp-bg-section: #ffffff;
    --fp-bg-section-alt: #e8e8e8;
    --fp-bg-card: #ffffff;
    --fp-bg-dark: #2c3e50;
    --fp-text: #333333;
    --fp-text-light: #ffffff;
    --fp-text-muted: #666666;
    --fp-text-link: #1a5276;
    --fp-rating-gold: #f1c40f;
    --fp-rating-bg: #2c3e50;
    --fp-border: rgba(0,0,0,0.1);
    --fp-shadow: 0 2px 8px rgba(0,0,0,0.12);
    --fp-shadow-hover: 0 4px 16px rgba(0,0,0,0.18);
    --fp-radius: 4px;
    --fp-radius-lg: 8px;
    --fp-transition: 0.25s ease;
    --fp-container-max: 1200px;
    --fp-gap: 15px;
}

/* =========================================
   Base Layout
   ========================================= */
.frontpage-v2 {
    background: var(--fp-bg-main);
    color: var(--fp-text);
    min-height: 100vh;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Remove underlines from all links */
.frontpage-v2 a,
.frontpage-v2 a:hover,
.frontpage-v2 a:focus,
.frontpage-v2 a:visited {
    text-decoration: none;
}

/* Screen reader only - visually hidden but accessible */
.fp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fp-container {
    max-width: var(--fp-container-max);
    margin: 0 auto;
    padding: 0 var(--fp-gap);
}

.fp-section {
    padding: 25px 0;
}

.fp-section--alt {
    background: var(--fp-bg-section);
}

.fp-section--icelandic {
    background: linear-gradient(135deg, #00529b 0%, #dc1e35 100%);
    position: relative;
}

.fp-section--icelandic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.fp-section--icelandic .fp-container {
    position: relative;
    z-index: 1;
}

.fp-section--icelandic .fp-section__title {
    color: #fff;
}

.fp-section--icelandic .fp-section__link {
    color: rgba(255, 255, 255, 0.8);
}

.fp-section--icelandic .fp-section__link:hover {
    color: #fff;
}

.fp-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fp-border);
}

.fp-section__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fp-text);
}

.fp-section__title-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.fp-section__link {
    color: var(--fp-text-link);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: color var(--fp-transition);
}

.fp-section__link:hover {
    color: var(--fp-primary);
}

/* =========================================
   Ad Banner
   ========================================= */
.fp-ad-banner {
    text-align: center;
    padding: 20px 0;
}

.fp-ad-banner iframe {
    max-width: 100%;
}

/* =========================================
   Showtimes Quick Access
   ========================================= */

/* Mobile bar - shown above hero on mobile */
.fp-showtimes-bar--mobile {
    display: none;
    background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-dark) 100%);
    padding: 0;
}

.fp-showtimes-bar__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.fp-showtimes-bar__icon {
    font-size: 1.1rem;
}

.fp-showtimes-bar__arrow {
    font-size: 1rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .fp-showtimes-bar--mobile {
        display: block;
    }
}

/* Desktop button - positioned in hero top-right */
.fp-showtimes-btn--desktop {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-dark) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--fp-transition);
    box-shadow: 0 4px 20px rgba(241, 99, 59, 0.4), 0 0 0 0 rgba(241, 99, 59, 0.4);
    animation: showtimes-pulse 2s ease-in-out infinite;
}

@keyframes showtimes-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(241, 99, 59, 0.4), 0 0 0 0 rgba(241, 99, 59, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(241, 99, 59, 0.6), 0 0 0 8px rgba(241, 99, 59, 0);
    }
}

.fp-showtimes-btn--desktop:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(241, 99, 59, 0.5);
    animation: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.fp-showtimes-btn__icon {
    font-size: 1.2rem;
}

.fp-showtimes-btn__text {
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .fp-showtimes-btn--desktop {
        display: none;
    }
}

/* =========================================
   Hero Section
   ========================================= */
.fp-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 0;
    background: #1a1a2e;
}

.fp-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: brightness(0.7);
}

.fp-hero__gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.fp-hero__content {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 2;
    color: var(--fp-text-light);
}

.fp-hero__tag {
    display: inline-block;
    background: var(--fp-primary);
    color: white;
    padding: 5px 14px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.fp-hero__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    max-width: 550px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.fp-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.fp-hero__rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8e8e8;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #222;
}

.fp-hero__rating-logo {
    height: 14px;
    width: auto;
    object-fit: contain;
}

.fp-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fp-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--fp-radius);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--fp-transition);
    border: none;
    cursor: pointer;
}

.fp-hero__btn--primary {
    background: var(--fp-primary);
    color: white;
}

.fp-hero__btn--primary:hover {
    background: var(--fp-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

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

/* Mobile Hero */
@media (max-width: 768px) {
    .fp-hero {
        height: 45vh;
        min-height: 280px;
    }
    .fp-hero__title {
        font-size: 1.5rem;
    }
    .fp-hero__btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* =========================================
   Genre Quick Filters
   ========================================= */
.fp-genres {
    background: var(--fp-bg-section);
    padding: 10px 0;
    border-bottom: 1px solid var(--fp-border);
}

.fp-genres__scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.fp-genres__scroll::-webkit-scrollbar {
    height: 4px;
}

.fp-genres__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.fp-genres__scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
}

.fp-genres__scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.25);
}

.fp-genre-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--fp-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--fp-transition);
}

.fp-genre-pill:hover {
    background: var(--fp-primary);
    color: white;
    border-color: var(--fp-primary);
}

.fp-genre-pill__name {
    font-weight: 500;
}

@media (max-width: 768px) {
    .fp-genres {
        padding: 10px 0;
    }

    .fp-genre-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* =========================================
   Movie Card Component (fp-movie-card to avoid conflicts)
   ========================================= */
.fp-movie-card {
    position: relative;
    border-radius: var(--fp-radius);
    overflow: hidden;
    background: var(--fp-bg-card);
    transition: transform var(--fp-transition), box-shadow var(--fp-transition);
    box-shadow: var(--fp-shadow);
}

.fp-movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fp-shadow-hover);
}

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

.fp-movie-card__poster {
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    overflow: hidden;
    border-radius: var(--fp-radius) var(--fp-radius) 0 0;
    transition: background-image 0.3s ease;
}

/* Lazy loading states */
.fp-movie-card__poster--lazy {
    background-image: none !important;
}

.fp-movie-card__poster--lazy::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: shimmer 1.5s infinite;
}

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

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.fp-movie-card__ratio {
    display: block;
    width: 100%;
    height: auto;
}

.fp-movie-card__play {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity var(--fp-transition);
    pointer-events: none; /* Allow clicks to pass through when hidden */
}

.fp-movie-card:hover .fp-movie-card__play {
    opacity: 1;
    pointer-events: auto; /* Re-enable clicks when visible on hover */
}

.fp-movie-card__play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--fp-primary);
    border-radius: 50%;
    color: white;
    transition: transform var(--fp-transition), background var(--fp-transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.fp-movie-card__play-btn:hover {
    transform: scale(1.1);
    background: var(--fp-primary-dark);
}

.fp-movie-card__play-icon {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

/* Mobile: Show compact play button in corner instead of full overlay */
@media (max-width: 768px), (hover: none) {
    .fp-movie-card__play {
        /* Reset to corner positioning instead of full overlay */
        top: auto;
        left: auto;
        right: 8px;
        bottom: 8px;
        width: auto;
        height: auto;
        background: none;
        opacity: 1;
        pointer-events: auto;
    }

    .fp-movie-card__play-btn {
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.7);
        border: 2px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }

    .fp-movie-card__play-btn:active {
        transform: scale(0.95);
        background: var(--fp-primary);
    }

    .fp-movie-card__play-icon {
        width: 14px;
        height: 14px;
    }
}

.fp-movie-card__info {
    padding: 10px;
    background: var(--fp-bg-card);
}

.fp-movie-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8e8e8;
    color: #222;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.fp-movie-card__rating-logo {
    height: 12px;
    width: auto;
    object-fit: contain;
}

.fp-movie-card__rating-value {
    color: inherit;
    font-weight: 700;
}

.fp-movie-card__title {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--fp-text);
}

.fp-movie-card__title:hover {
    color: var(--fp-primary);
}

.fp-movie-card__date,
.fp-movie-card__showings {
    font-size: 0.7rem;
    color: var(--fp-text-muted);
    margin-top: 3px;
}

/* Small card variant */
.fp-movie-card--small .fp-movie-card__info {
    padding: 6px;
}

.fp-movie-card--small .fp-movie-card__title {
    font-size: 0.75rem;
}

/* Large card variant */
.fp-movie-card--large .fp-movie-card__play-btn {
    width: 60px;
    height: 60px;
}

.fp-movie-card--large .fp-movie-card__play-icon {
    width: 28px;
    height: 28px;
}

/* Skeleton loading */
.fp-movie-card--skeleton .fp-movie-card__poster {
    aspect-ratio: 2/3;
    background: #e0e0e0;
}

.fp-movie-card--skeleton .fp-movie-card__title {
    height: 1.2em;
    width: 80%;
    border-radius: 3px;
    background: #e0e0e0;
}

.skeleton-shimmer {
    background: linear-gradient(
        90deg,
        #e0e0e0 0%,
        #f0f0f0 50%,
        #e0e0e0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================================
   Movie Card Badges (Nýtt, Vinsælt, etc.)
   ========================================= */
.fp-movie-card__badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.fp-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.fp-badge--new {
    background: linear-gradient(135deg, #62b0ba 0%, #4a9aa5 100%);
}

.fp-badge--popular {
    background: linear-gradient(135deg, #f1633b 0%, #d94e28 100%);
}

.fp-badge--leaving {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.fp-badge--recommended {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

@media (max-width: 768px) {
    .fp-movie-card__badges {
        top: 5px;
        left: 5px;
    }

    .fp-badge {
        padding: 2px 6px;
        font-size: 0.6rem;
    }
}

/* Hover Preview Overlay */
.fp-movie-card__hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    z-index: 5;
}

.fp-movie-card--has-hover:hover .fp-movie-card__hover {
    opacity: 1;
    visibility: visible;
}

/* Hide play button when hover overlay is shown */
.fp-movie-card--has-hover:hover .fp-movie-card__play {
    opacity: 0;
}

.fp-movie-card__hover-content {
    color: white;
    text-align: left;
}

.fp-movie-card__year {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 6px;
}

.fp-movie-card__hover-rating {
    display: inline-block;
    color: #f5c518;
    font-size: 0.75rem;
    font-weight: 700;
}

.fp-movie-card__plot {
    font-size: 0.7rem;
    line-height: 1.4;
    margin: 8px 0;
    color: rgba(255,255,255,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fp-movie-card__hover-cta {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--fp-primary);
    margin-top: 5px;
}

/* Hide hover on mobile/touch devices */
@media (hover: none) {
    .fp-movie-card__hover {
        display: none;
    }

    .fp-movie-card--has-hover:hover .fp-movie-card__play {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .fp-movie-card__hover {
        display: none;
    }
}


/* =========================================
   News Card Component
   ========================================= */
.fp-news-card {
    position: relative;
    border-radius: var(--fp-radius);
    overflow: hidden;
    background: var(--fp-bg-card);
    box-shadow: var(--fp-shadow);
    transition: transform var(--fp-transition), box-shadow var(--fp-transition);
}

.fp-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fp-shadow-hover);
}

.fp-news-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fp-news-card__image {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
}

.fp-news-card__content {
    padding: 15px;
}

.fp-news-card__date {
    display: block;
    font-size: 0.75rem;
    color: var(--fp-text-muted);
    margin-bottom: 5px;
}

.fp-news-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: var(--fp-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fp-news-card:hover .fp-news-card__title {
    color: var(--fp-primary);
}

.fp-news-card__excerpt {
    font-size: 0.85rem;
    color: var(--fp-text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured variant */
.fp-news-card--featured .fp-news-card__image {
    padding-bottom: 50%;
}

.fp-news-card--featured .fp-news-card__title {
    font-size: 1.25rem;
    -webkit-line-clamp: 3;
}

.fp-news-card--featured .fp-news-card__excerpt {
    -webkit-line-clamp: 4;
}

/* Small variant (for list) */
.fp-news-card--small {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.fp-news-card--small .fp-news-card__image {
    width: 120px;
    min-width: 120px;
    padding-bottom: 0;
    height: 80px;
}

.fp-news-card--small .fp-news-card__content {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fp-news-card--small .fp-news-card__title {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.fp-news-card--small .fp-news-card__date {
    margin-bottom: 3px;
    font-size: 0.7rem;
}

.fp-news-card--small .fp-news-card__excerpt {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    margin: 0;
    color: var(--fp-text-muted);
}

/* News Grid Layout */
/* Default news grid - 4 columns for Áhugavert */
.fp-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Hidden news cards for load more */
.fp-news-card--hidden {
    display: none;
}

.fp-news-card--visible {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Load more button container */
.fp-news-load-more {
    text-align: center;
    margin-top: 25px;
}

.fp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--fp-transition);
    border: none;
}

.fp-btn--outline {
    background: transparent;
    color: var(--fp-text);
    border: 2px solid var(--fp-border);
}

.fp-btn--outline:hover {
    background: var(--fp-primary);
    color: white;
    border-color: var(--fp-primary);
}

.fp-news-count {
    font-weight: 400;
    opacity: 0.7;
}

@media (max-width: 992px) {
    .fp-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .fp-news-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Featured news layout - 1 big + list of small */
.fp-news-grid--featured {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Featured (first) article - horizontal with large image */
.fp-news-grid__featured {
    display: block;
}

.fp-news-grid__featured .fp-news-card {
    display: flex;
    flex-direction: row;
}

.fp-news-grid__featured .fp-news-card__link {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.fp-news-grid__featured .fp-news-card__image {
    width: 45%;
    min-width: 300px;
    padding-bottom: 0;
    min-height: 220px;
    flex-shrink: 0;
}

.fp-news-grid__featured .fp-news-card__content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fp-news-grid__featured .fp-news-card__title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    -webkit-line-clamp: 3;
}

.fp-news-grid__featured .fp-news-card__excerpt {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
}

/* List of smaller articles */
.fp-news-grid__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Small cards - horizontal layout */
.fp-news-grid__list .fp-news-card--small {
    display: flex;
    flex-direction: row;
}

.fp-news-grid__list .fp-news-card--small .fp-news-card__link {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.fp-news-grid__list .fp-news-card--small .fp-news-card__image {
    width: 140px;
    min-width: 140px;
    height: auto;
    min-height: 100px;
    padding-bottom: 0;
}

.fp-news-grid__list .fp-news-card--small .fp-news-card__content {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fp-news-grid__list .fp-news-card--small .fp-news-card__title {
    font-size: 0.95rem;
    margin-bottom: 5px;
    -webkit-line-clamp: 2;
}

.fp-news-grid__list .fp-news-card--small .fp-news-card__excerpt {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
}

@media (max-width: 992px) {
    .fp-news-grid__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fp-news-grid__featured .fp-news-card__link {
        flex-direction: column;
    }

    .fp-news-grid__featured .fp-news-card__image {
        width: 100%;
        min-width: 100%;
        min-height: 180px;
    }

    .fp-news-card--small .fp-news-card__image {
        width: 100px;
        min-width: 100px;
        height: 70px;
    }
}


/* =========================================
   Movie Slider Component
   ========================================= */
.movie-slider {
    position: relative;
    margin-bottom: 30px;
}

.movie-slider__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.movie-slider__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--fp-text);
}

.movie-slider__link {
    color: var(--fp-text-link);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
}

.movie-slider__link:hover {
    color: var(--fp-primary);
}

.movie-slider__swiper {
    overflow: hidden;
    padding: 5px 0;
}

.movie-slider__nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border);
    border-radius: 50%;
    color: var(--fp-text);
    z-index: 10;
    cursor: pointer;
    transition: all var(--fp-transition);
    box-shadow: var(--fp-shadow);
}

.movie-slider__nav:hover {
    background: var(--fp-primary);
    border-color: var(--fp-primary);
    color: white;
}

.movie-slider__nav--prev {
    left: -18px;
}

.movie-slider__nav--next {
    right: -18px;
}

.movie-slider__nav::after {
    font-size: 12px;
    font-weight: bold;
}

.movie-slider__pagination {
    position: relative;
    margin-top: 15px;
    text-align: center;
}

.movie-slider__pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #ccc;
    opacity: 1;
}

.movie-slider__pagination .swiper-pagination-bullet-active {
    background: var(--fp-primary);
    width: 18px;
    border-radius: 3px;
}

/* Tab navigation for sliders */
.movie-slider-tabs__nav {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--fp-border);
    padding-bottom: 0;
}

.movie-slider-tabs__tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--fp-text-muted);
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all var(--fp-transition);
    position: relative;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
}

.movie-slider-tabs__tab:hover {
    color: var(--fp-primary);
    border-bottom-color: var(--fp-primary);
}

.movie-slider-tabs__tab--active {
    color: var(--fp-primary);
    border-bottom-color: var(--fp-primary);
    background: transparent;
}

.movie-slider-tabs__content {
    display: none;
}

.movie-slider-tabs__content--active {
    display: block;
}

/* =========================================
   Popularity Lists
   ========================================= */
.fp-lists {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .fp-lists {
        grid-template-columns: 1fr;
    }
}

.fp-list {
    background: var(--fp-bg-card);
    border-radius: var(--fp-radius);
    padding: 15px;
    box-shadow: var(--fp-shadow);
}

.fp-list__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fp-border);
    color: var(--fp-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fp-list__items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fp-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--fp-border);
}

.fp-list__item:last-child {
    border-bottom: none;
}

.fp-list__rank {
    width: 22px;
    height: 22px;
    background: var(--fp-bg-section-alt);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--fp-text);
}

.fp-list__item:nth-child(1) .fp-list__rank { background: #ffd700; color: #000; }
.fp-list__item:nth-child(2) .fp-list__rank { background: #c0c0c0; color: #000; }
.fp-list__item:nth-child(3) .fp-list__rank { background: #cd7f32; color: #fff; }

.fp-list__poster {
    width: 35px;
    height: 52px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.fp-list__info {
    flex: 1;
    min-width: 0;
}

.fp-list__movie-title {
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--fp-text);
}

.fp-list__movie-link {
    color: inherit;
    text-decoration: none;
}

.fp-list__movie-link:hover {
    color: var(--fp-primary);
}

.fp-list__rating {
    font-size: 0.7rem;
    color: var(--fp-rating-gold);
    background: var(--fp-rating-bg);
    padding: 2px 5px;
    border-radius: 2px;
}

/* =========================================
   Trailers Section
   ========================================= */
.fp-trailers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .fp-trailers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .fp-trailers-grid {
        grid-template-columns: 1fr;
    }
}

.fp-trailer-card {
    background: var(--fp-bg-card);
    border-radius: var(--fp-radius);
    overflow: hidden;
    box-shadow: var(--fp-shadow);
    transition: transform var(--fp-transition), box-shadow var(--fp-transition);
}

.fp-trailer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fp-shadow-hover);
}

.fp-trailer-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fp-trailer-card__image {
    position: relative;
    padding-bottom: 56.25%;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
}

.fp-trailer-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(198, 40, 40, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--fp-transition), background var(--fp-transition);
}

.fp-trailer-card__play svg {
    width: 24px;
    height: 24px;
    color: white;
    margin-left: 3px;
}

.fp-trailer-card:hover .fp-trailer-card__play {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--fp-primary);
}

.fp-trailer-card__content {
    padding: 12px;
}

.fp-trailer-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--fp-text);
    line-height: 1.4;
}

.fp-trailer-card:hover .fp-trailer-card__title {
    color: var(--fp-primary);
}

/* =========================================
   Streaming Services Section
   ========================================= */
.fp-section--dark {
    background: var(--fp-bg-dark);
    padding: 30px 0;
}

.fp-section__title--light {
    color: var(--fp-text-light);
}

.fp-streaming-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.fp-streaming-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--fp-radius);
    transition: background var(--fp-transition), transform var(--fp-transition);
}

.fp-streaming-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.fp-streaming-logo img {
    height: 30px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity var(--fp-transition);
}

.fp-streaming-logo:hover img {
    opacity: 1;
}

@media (max-width: 768px) {
    .fp-streaming-logos {
        gap: 15px;
    }

    .fp-streaming-logo {
        padding: 10px 15px;
    }

    .fp-streaming-logo img {
        height: 22px;
        max-width: 70px;
    }
}

/* =========================================
   Most Viewed Section
   ========================================= */
.fp-most-viewed {
    background: var(--fp-bg-card);
    border-radius: var(--fp-radius);
    padding: 20px;
    box-shadow: var(--fp-shadow);
}

.fp-most-viewed .tabs-toplist {
    margin: 0;
}

.fp-most-viewed #tabs {
    margin: 0;
}

.fp-most-viewed #tabs ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    gap: 5px;
    border-bottom: 2px solid var(--fp-border);
}

.fp-most-viewed #tabs ul li {
    margin: 0;
}

.fp-most-viewed #tabs ul li a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fp-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--fp-transition), border-color var(--fp-transition);
}

.fp-most-viewed #tabs ul li a:hover,
.fp-most-viewed #tabs ul li.ui-tabs-active a,
.fp-most-viewed #tabs ul li.ui-state-active a {
    color: var(--fp-primary);
    border-bottom-color: var(--fp-primary);
}

.fp-most-viewed .tab-content {
    padding: 0;
}

.fp-most-viewed .mest_lesid_text {
    padding: 8px 0;
    border-bottom: 1px solid var(--fp-border);
    font-size: 0.85rem;
}

.fp-most-viewed .mest_lesid_text:last-child {
    border-bottom: none;
}

.fp-most-viewed .mest_lesid_text a {
    color: var(--fp-text);
    text-decoration: none;
    transition: color var(--fp-transition);
}

.fp-most-viewed .mest_lesid_text a:hover {
    color: var(--fp-primary);
}

/* =========================================
   Section Subtitle
   ========================================= */
.fp-section__subtitle {
    font-size: 0.9rem;
    color: var(--fp-text-muted);
    margin: 5px 0 0 0;
    font-weight: 400;
}

/* =========================================
   Sidebar Grid (3 column layout)
   ========================================= */
.fp-sidebar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .fp-sidebar-grid {
        grid-template-columns: 1fr;
    }
}

.fp-sidebar-box {
    background: var(--fp-bg-card);
    border-radius: var(--fp-radius);
    padding: 20px;
    box-shadow: var(--fp-shadow);
    display: flex;
    flex-direction: column;
}

.fp-sidebar-box__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fp-border);
    color: var(--fp-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fp-sidebar-box__content {
    flex: 1;
}

.fp-sidebar-box__content--list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fp-sidebar-box__more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--fp-primary);
    text-decoration: none;
    font-weight: 600;
}

.fp-sidebar-box__more:hover {
    opacity: 0.8;
}

.fp-sidebar-box__credit {
    font-size: 0.7rem;
    color: var(--fp-text-muted);
    margin: 12px 0 0 0;
    opacity: 0.7;
}

.fp-sidebar-box__empty {
    font-size: 0.85rem;
    color: var(--fp-text-muted);
    margin: 0;
}

/* Sidebar Items (for Innlent and Trending) */
.fp-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--fp-border);
}

.fp-sidebar-item:last-child {
    border-bottom: none;
}

.fp-sidebar-item__num {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: var(--fp-bg-section-alt);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--fp-text);
}

.fp-sidebar-item:nth-child(1) .fp-sidebar-item__num { background: #ffd700; color: #000; }
.fp-sidebar-item:nth-child(2) .fp-sidebar-item__num { background: #c0c0c0; color: #000; }
.fp-sidebar-item:nth-child(3) .fp-sidebar-item__num { background: #cd7f32; color: #fff; }

.fp-sidebar-item__link {
    font-size: 0.85rem;
    color: var(--fp-text);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fp-sidebar-item__link:hover {
    color: var(--fp-primary);
}

.fp-sidebar-item--movie {
    align-items: center;
}

.fp-sidebar-item__info {
    flex: 1;
    min-width: 0;
}

.fp-sidebar-item__meta {
    display: block;
    font-size: 0.75rem;
    color: var(--fp-text-muted);
    margin-top: 2px;
}

.fp-sidebar-item__rating {
    color: var(--fp-rating-gold);
}

.fp-sidebar-item__rating--tmdb {
    background: linear-gradient(135deg, #90cea1 0%, #01b4e4 100%);
    color: #081c24;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Override styles for mest_lesid inside sidebar box */
.fp-sidebar-box .tabs-toplist,
.fp-sidebar-box #tabs {
    margin: 0;
}

.fp-sidebar-box #tabs ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    gap: 3px;
    border-bottom: 2px solid var(--fp-border);
}

.fp-sidebar-box #tabs ul li {
    margin: 0;
}

.fp-sidebar-box #tabs ul li a {
    display: block;
    padding: 6px 10px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fp-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--fp-transition), border-color var(--fp-transition);
    white-space: nowrap;
}

.fp-sidebar-box #tabs ul li a:hover,
.fp-sidebar-box #tabs ul li.ui-tabs-active a,
.fp-sidebar-box #tabs ul li.ui-state-active a {
    color: var(--fp-primary);
    border-bottom-color: var(--fp-primary);
}

.fp-sidebar-box .tab-content {
    padding: 0;
}

.fp-sidebar-box .mest_lesid_text {
    padding: 8px 0;
    border-bottom: 1px solid var(--fp-border);
    font-size: 0.8rem;
}

.fp-sidebar-box .mest_lesid_text:last-child {
    border-bottom: none;
}

.fp-sidebar-box .mest_lesid_text a {
    color: var(--fp-text);
    text-decoration: none;
    transition: color var(--fp-transition);
}

.fp-sidebar-box .mest_lesid_text a:hover {
    color: var(--fp-primary);
}

/* =========================================
   Swiper Navigation Improvements
   ========================================= */
.swiper-button-prev,
.swiper-button-next {
    color: var(--fp-text);
    background: var(--fp-bg-card);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: var(--fp-shadow);
}

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

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--fp-primary);
    color: white;
}

.swiper-button-disabled {
    opacity: 0.3 !important;
}

/* =========================================
   General Responsive Adjustments
   ========================================= */
@media (max-width: 1200px) {
    .fp-container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .fp-section {
        padding: 20px 0;
    }

    .fp-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .fp-section__title {
        font-size: 1rem;
    }

    .fp-lists {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .fp-list {
        padding: 12px;
    }

    .fp-movie-card__info {
        padding: 8px;
    }

    .fp-movie-card__title {
        font-size: 0.75rem;
    }

    .movie-slider__nav {
        display: none;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .fp-hero__title {
        font-size: 1.25rem;
    }

    .fp-hero__tag {
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    .fp-hero__btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .fp-news-grid {
        gap: 10px;
    }

    .fp-news-card__content {
        padding: 8px;
    }

    .fp-news-card__title {
        font-size: 0.8rem;
    }
}

/* Hide pagination dots when too many */
.swiper-pagination-bullet:nth-child(n+8) {
    display: none;
}

/* Ensure frontpage doesn't inherit dark background from body */
.frontpage-v2 * {
    box-sizing: border-box;
}

/* =========================================
   Value Proposition Section
   ========================================= */
.fp-value-prop {
    background: var(--fp-bg-card);
    border-bottom: 1px solid var(--fp-border);
    padding: 12px 0;
    text-align: center;
}

.fp-value-prop__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--fp-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.fp-value-prop__icon {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .fp-value-prop {
        padding: 10px 0;
    }

    .fp-value-prop__text {
        font-size: 0.85rem;
    }
}

/* =========================================
   "Fyrir þig" Personalized Section
   ========================================= */
.fp-section--foryou {
    background: linear-gradient(135deg, rgba(98, 176, 186, 0.08) 0%, rgba(98, 176, 186, 0.02) 100%);
    border-top: 2px solid var(--fp-primary);
    border-bottom: 1px solid var(--fp-border);
    padding: 30px 0;
    margin: 0;
}

.fp-section--foryou .fp-section__header {
    margin-bottom: 5px;
}

.fp-section--foryou .fp-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-section--foryou .fp-section__title-icon {
    font-size: 1.3rem;
}

.fp-section--foryou .fp-section__subtitle {
    margin: 0 0 20px 0;
    font-size: 0.85rem;
    color: var(--fp-text-muted);
    opacity: 0.8;
}

/* =========================================
   Sign-in Prompt Section (for non-logged-in users)
   ========================================= */
.fp-section--signin-prompt {
    background: linear-gradient(135deg, rgba(98, 176, 186, 0.06) 0%, rgba(98, 176, 186, 0.02) 100%);
    border-top: 1px solid var(--fp-border);
    border-bottom: 1px solid var(--fp-border);
    padding: 20px 0;
    margin: 0;
}

.fp-signin-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.fp-signin-prompt__icon {
    font-size: 1.5rem;
}

.fp-signin-prompt__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--fp-text);
}

.fp-signin-prompt .fp-btn--small {
    padding: 8px 18px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .fp-section--signin-prompt {
        padding: 15px 0;
    }

    .fp-signin-prompt {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .fp-signin-prompt__text {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .fp-section--foryou {
        padding: 20px 0;
    }

    .fp-section--foryou .fp-section__title-icon {
        font-size: 1.1rem;
    }
}

/* =========================================
   Editor's Pick Section
   ========================================= */
.fp-editors-pick {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 0;
    margin: 20px 0;
}

.fp-editors-pick__wrapper {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: start;
}

.fp-editors-pick__poster {
    position: relative;
    border-radius: var(--fp-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.fp-editors-pick__poster img {
    width: 100%;
    height: auto;
    display: block;
}

.fp-editors-pick__play {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fp-editors-pick__play svg {
    width: 24px;
    height: 24px;
}

.fp-editors-pick__play:hover {
    background: var(--fp-primary);
    transform: scale(1.1);
}

.fp-editors-pick__content {
    color: white;
    padding-top: 10px;
}

.fp-editors-pick__label {
    display: inline-block;
    background: linear-gradient(135deg, #f1633b 0%, #d94e28 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.fp-editors-pick__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.fp-editors-pick__title a {
    color: white;
    text-decoration: none;
}

.fp-editors-pick__title a:hover {
    color: var(--fp-primary);
}

.fp-editors-pick__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.fp-editors-pick__year {
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.fp-editors-pick__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e8e8e8;
    color: #222;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}

.fp-editors-pick__rating img {
    height: 14px;
    width: auto;
}

.fp-editors-pick__genres {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.fp-editors-pick__plot {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin: 0 0 20px 0;
    max-width: 600px;
}

.fp-editors-pick__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.fp-editors-pick__actions .fp-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.fp-editors-pick__actions .fp-btn--outline {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.fp-editors-pick__actions .fp-btn--outline:hover {
    border-color: var(--fp-primary);
    color: var(--fp-primary);
}

@media (max-width: 768px) {
    .fp-editors-pick {
        padding: 25px 0;
        margin: 15px 0;
    }

    .fp-editors-pick__wrapper {
        grid-template-columns: 140px 1fr;
        gap: 20px;
    }

    .fp-editors-pick__title {
        font-size: 1.3rem;
    }

    .fp-editors-pick__label {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .fp-editors-pick__plot {
        display: none;
    }

    .fp-editors-pick__play {
        width: 40px;
        height: 40px;
    }

    .fp-editors-pick__play svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .fp-editors-pick__wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .fp-editors-pick__poster {
        max-width: 180px;
        margin: 0 auto;
    }

    .fp-editors-pick__meta {
        justify-content: center;
    }

    .fp-editors-pick__actions {
        justify-content: center;
    }
}

/* =========================================
   Onboarding Game (Rate movies to get recommendations)
   ========================================= */
.fp-section--onboarding-game {
    background: linear-gradient(180deg, rgba(98, 176, 186, 0.12) 0%, rgba(98, 176, 186, 0.02) 100%);
    border-top: 3px solid #62b0ba;
    border-bottom: 1px solid var(--fp-border);
    padding: 30px 0 40px;
    margin: 0;
}

.fp-game {
    max-width: 700px;
    margin: 0 auto;
}

.fp-game__header {
    text-align: center;
    margin-bottom: 20px;
}

.fp-game__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
}

.fp-game__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--fp-text);
}

.fp-game__subtitle {
    font-size: 0.9rem;
    color: var(--fp-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Progress Dots */
.fp-game__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.fp-game__progress-dots {
    display: flex;
    gap: 5px;
}

.fp-game__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(98, 176, 186, 0.3);
    transition: all 0.3s ease;
}

.fp-game__dot--filled {
    background: #62b0ba;
    transform: scale(1.1);
}

.fp-game__progress-text {
    font-size: 0.85rem;
    color: var(--fp-text-muted);
    font-weight: 600;
}

/* Card Stack */
.fp-game__stack {
    position: relative;
}

.fp-game__card {
    background: var(--fp-bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: none;
}

.fp-game__card--active {
    display: block;
}

.fp-game__card--exit {
    display: block;
    animation: cardExit 0.3s ease forwards;
}

@keyframes cardExit {
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.fp-game__card--rated {
    pointer-events: none;
}

/* Desktop: Horizontal layout - content left, poster right */
.fp-game__card-inner {
    display: flex;
    flex-direction: row;
}

/* Left side: Content */
.fp-game__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px 30px;
    min-width: 0;
}

/* Right side: Poster */
.fp-game__poster {
    width: 200px;
    flex-shrink: 0;
    background: #1a1a1a;
}

.fp-game__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info */
.fp-game__info {
    margin-bottom: 20px;
}

.fp-game__movie-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--fp-text);
    line-height: 1.3;
}

.fp-game__movie-year {
    font-size: 0.9rem;
    color: var(--fp-text-muted);
    font-weight: 500;
}

/* Star Rating */
.fp-game__rating {
    margin-bottom: 20px;
}

.fp-game__rating-label {
    font-size: 0.75rem;
    color: var(--fp-text-muted);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fp-game__stars {
    display: flex;
    gap: 2px;
}

.fp-game__star {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #d0d0d0;
    transition: all 0.15s ease;
}

.fp-game__star svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.fp-game__star:hover,
.fp-game__star--hover {
    color: #f5c518;
    transform: scale(1.1);
}

.fp-game__star--filled {
    color: #f5c518;
}

.fp-game__star--filled svg {
    fill: #f5c518;
    stroke: #f5c518;
}

/* Skip Button */
.fp-game__skip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--fp-border);
    border-radius: 6px;
    color: var(--fp-text-muted);
    padding: 10px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
}

.fp-game__skip:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--fp-text);
    border-color: var(--fp-text-muted);
}

.fp-game__skip svg {
    transition: transform 0.2s ease;
}

.fp-game__skip:hover svg {
    transform: translateX(3px);
}

/* Complete State */
.fp-game__complete {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.fp-game__complete-inner {
    text-align: center;
    padding: 30px 40px;
    background: var(--fp-bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.fp-game__complete-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.fp-game__complete-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--fp-text);
}

.fp-game__complete-text {
    font-size: 0.9rem;
    color: var(--fp-text-muted);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.fp-game__complete-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #62b0ba 0%, #4a9aa5 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(98, 176, 186, 0.3);
}

.fp-game__complete-btn:hover {
    background: linear-gradient(135deg, #4a9aa5 0%, #3d8a94 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(98, 176, 186, 0.4);
}

.fp-game__complete-btn svg {
    transition: transform 0.2s ease;
}

.fp-game__complete-btn:hover svg {
    transform: translateX(3px);
}

/* Responsive - Tablet and below: Stack layout */
@media (max-width: 768px) {
    .fp-section--onboarding-game {
        padding: 25px 0 30px;
    }

    .fp-game {
        max-width: 340px;
    }

    .fp-game__title {
        font-size: 1.2rem;
    }

    .fp-game__card-inner {
        flex-direction: column-reverse;
    }

    .fp-game__poster {
        width: 100%;
        height: 180px;
    }

    .fp-game__content {
        padding: 16px 20px;
        text-align: center;
    }

    .fp-game__info {
        margin-bottom: 15px;
    }

    .fp-game__movie-title {
        font-size: 1.1rem;
    }

    .fp-game__rating {
        margin-bottom: 15px;
    }

    .fp-game__stars {
        justify-content: center;
    }

    .fp-game__star svg {
        width: 22px;
        height: 22px;
    }

    .fp-game__skip {
        width: 100%;
        justify-content: center;
    }

    .fp-game__dot {
        width: 8px;
        height: 8px;
    }

    .fp-game__progress-dots {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .fp-game {
        max-width: 300px;
    }

    .fp-game__poster {
        height: 160px;
    }

    .fp-game__movie-title {
        font-size: 1rem;
    }

    .fp-game__star svg {
        width: 20px;
        height: 20px;
    }

    .fp-game__star {
        padding: 1px;
    }

    .fp-game__dot {
        width: 7px;
        height: 7px;
    }

    .fp-game__progress-dots {
        gap: 3px;
    }
}
