:root {
    color-scheme: dark;
    --bg-main: #333f66;
    --bg-header: #45577e;
    --bg-medium: #45577e;
    --bg-dark: #1e2848;
    --yellow: #f9f298;
    --yellow-strong: #f9f298;
    --yellow-deep: #e1da74;
    --white: #ffffff;
    --ink: #ffffff;
    --ink-soft: #e3e9f5;
    --muted: rgba(255, 255, 255, 0.78);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --content: 1180px;
    --display-font: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --text-font: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--text-font);
    background: var(--bg-main);
    color: var(--ink);
    letter-spacing: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(255, 212, 0, .86);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 50;
    transform: translateY(-140%);
    background: var(--yellow);
    color: var(--blue-950);
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

.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;
}

.site-shell {
    position: sticky;
    top: 0;
    z-index: 20;
    color: var(--white);
    background: var(--bg-main);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.date-bar {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 14px 5px;
    background: var(--bg-dark);
    color: var(--yellow);
    font-size: 10px;
    font-weight: normal;
    text-transform: uppercase;
}

.date-bar__time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.date-bar__time::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ff2f3f;
    box-shadow: 0 0 0 0 rgba(255, 47, 63, 0.70);
    animation: live-pulse 1.15s ease-in-out infinite;
}

.brand-bar {
    max-width: var(--content);
    min-height: 104px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 25px 14px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0;
    flex: 1 1 auto;
}

.brand-mark img {
    width: clamp(250px, 70vw, 560px);
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-divider {
    width: 1px;
    height: 78px;
    flex: 0 0 1px;
    background: rgba(255, 255, 255, .9);
}

.brand-claim {
    display: grid;
    min-width: 0;
    max-width: 190px;
    color: var(--yellow);
    font-family: var(--display-font);
    font-size: 28px;
    line-height: .92;
    letter-spacing: 0;
    font-weight: 900;
    text-transform: uppercase;
}

.menu-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 6px;
    background: var(--bg-medium);
    color: var(--white);
    cursor: pointer;
}

.menu-button span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
}

.drawer-menu {
    max-width: var(--content);
    margin: 0 auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 0 16px 12px;
}

.drawer-menu.is-open {
    display: grid;
}

.drawer-menu a {
    padding: 12px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,.10);
    font-weight: 800;
}

.page-wrap {
    max-width: var(--content);
    margin: 0 auto;
    padding: 0px 10px 60px;
}

.nav-stack {
    display: grid;
    gap: 8px;
    margin: 0 -10px 10px;
    padding: 12px 10px 11px;
    background: var(--bg-medium);
}

.time-tabs,
.genre-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.time-tabs::-webkit-scrollbar,
.genre-tabs::-webkit-scrollbar {
    display: none;
}

.favorite-filter-container {
    display: flex;
    justify-content: flex-start;
}

.favorite-filter {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--yellow);
    font: inherit;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.favorite-filter[aria-pressed="true"] {
    background: var(--yellow);
    color: var(--bg-dark);
}

.favorite-filter:disabled {
    cursor: default;
    opacity: .55;
}

.time-tab,
.genre-tab {
    flex: 0 0 auto;
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.time-tab {
    padding: 9px 12px;
    background: var(--bg-dark);
    color: var(--white);
}

.time-tab.is-active {
    background: var(--yellow);
    color: var(--bg-dark);
}

.genre-tab {
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.10);
    color: var(--white);
}

.genre-tab.is-active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--bg-dark);
}

.cache-status {
    margin: 10px 0 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    text-align: center;
}

.cache-status.is-warning {
    color: #915d00;
}

.movie-list {
    display: grid;
    gap: 0;
    margin-inline: -10px;
    width: calc(100% + 20px);
    max-width: none;
    overflow: hidden;
    border: 0;
    border-radius: 0;
}

.movie-card {
    position: relative;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    padding: 9px;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.30);
    border-radius: 0;
    background: var(--bg-header);
    color: var(--white);
    overflow: hidden;
    animation: fade-slide .22s ease both;
}

.movie-card:nth-child(even) {
    background: var(--bg-main);
}

.movie-card:last-child {
    border-bottom: 0;
}

.seo-note {
    margin: 18px 0 0;
    padding: 0 4px;
}

.seo-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 1.45;
}

.poster-frame {
    align-self: start;
    width: 150px;
    aspect-ratio: 2 / 3;
    display: block;
}

.movie-poster,
.poster-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 2 / 3;
    display: grid;
    place-items: center;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-dark);
    color: var(--yellow);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
}

.movie-copy {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.broadcast-row {
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.air-time {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--bg-dark);
    color: var(--yellow);
    font-weight: 900;
    font-size: 15px;
}

.air-time.is-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ff2f3f;
    box-shadow: 0 0 0 0 rgba(255, 47, 63, 0.70);
    animation: live-pulse 1.15s ease-in-out infinite;
}

.station {
    position: relative;
    grid-area: station;
    justify-self: end;
    align-self: end;
    min-width: 60px;
    width: auto;
    max-width: 67px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--bg-dark);
}

.station span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.station-logo {
    max-width: 100%;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
    display: block;
}

.station-placeholder {
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--bg-dark);
}

.channel-favorite {
    position: absolute;
    top: -9px;
    left: -9px;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(30, 40, 72, 0.18);
    border-radius: 999px;
    background: var(--yellow);
    color: var(--bg-dark);
    font: inherit;
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.channel-favorite[aria-pressed="true"] {
    background: var(--bg-dark);
    color: var(--yellow);
}

.channel-favorite:disabled {
    cursor: default;
    opacity: .65;
}

.movie-card.hidden-channel {
    display: none;
}

.movie-card h2 {
    margin: 0;
    font-family: var(--display-font);
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: 0;
    color: var(--white);
    font-weight: 900;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    white-space: normal;
}

.movie-card h2 a {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.movie-meta,
.movie-cast {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.3;
}

.movie-cast {
    color: rgba(255,255,255,.9);
    font-weight: 800;
}

.movie-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "plot plot plot"
        "cta . station";
    align-items: end;
    justify-content: flex-start;
    gap: 8px;
}

.plot-button {
    grid-area: plot;
    min-width: 0;
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--yellow);
    font: inherit;
    font-size: 13.5px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    text-align: left;
}

.watch-button {
    grid-area: cta;
    justify-self: start;
    max-width: 100%;
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--white);
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.watch-button img {
    display: block;
    width: 10px;
    height: auto;
    flex: 0 0 auto;
}

@media (max-width: 374px) {
    .page-wrap {
        padding-inline: 8px;
    }

    .movie-card {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 10px;
        padding: 8px;
    }

    .poster-frame,
    .movie-poster,
    .poster-placeholder {
        width: 140px;
    }

    .movie-card h2 {
        font-size: 16px;
    }

    .watch-button {
        min-height: 30px;
        padding: 8px 10px;
    }
}

.watch-button:hover,
.watch-button:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.empty-state {
    margin: 12px 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: var(--bg-medium);
    color: rgba(255, 255, 255, 0.85);
}

.plot-dialog {
    width: min(92vw, 520px);
    border: 0;
    border-radius: 8px;
    padding: 22px;
    color: var(--bg-dark);
    background: var(--white);
}

.plot-dialog::backdrop {
    background: rgba(11, 18, 46, 0.78);
}

.dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: var(--bg-medium);
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
}

.dialog-kicker {
    margin: 0 0 4px;
    color: var(--bg-header);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.plot-dialog h2 {
    margin: 0 34px 10px 0;
    font-family: var(--display-font);
    font-size: 32px;
    line-height: 1;
    text-transform: uppercase;
}

.plot-dialog p:not(.dialog-kicker) {
    line-height: 1.55;
}

.dialog-link {
    display: inline-flex;
    margin-top: 8px;
    color: var(--bg-header);
    font-weight: 900;
}

.bottom-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 18;
    width: 100%;
    min-height: 75px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px max(14px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background: rgba(30, 40, 72, 0.75);
    box-shadow: 0 -12px 28px rgba(6, 11, 28, 0.38);
    backdrop-filter: blur(12px);
}

.bottom-action {
    width: 100%;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--yellow);
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.bottom-action img {
    display: block;
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
}

.bottom-action:hover,
.bottom-action:focus-visible {
    background: rgba(249, 242, 152, 0.10);
    outline: 2px solid rgba(249, 242, 152, 0.40);
    outline-offset: 2px;
}

.bottom-action--placeholder {
    cursor: default;
    pointer-events: none;
}

.bottom-action--disabled {
    cursor: default;
    opacity: .2;
    pointer-events: none;
}

button[aria-label="Gestisci preferenze cookie"],
button[aria-label="Impostazioni cookie"],
.lean-cookie-consent button[aria-label*="cookie" i],
.lean-cookie-consent button[aria-label*="preferenze" i] {
    display: revert !important;
}

@media (max-width: 767px) and (display-mode: standalone), (max-width: 767px) and (display-mode: fullscreen) {
    .page-wrap {
        padding-bottom: 92px;
    }

    .bottom-action-bar {
        display: grid;
    }

    button[aria-label="Gestisci preferenze cookie"],
    button[aria-label="Impostazioni cookie"],
    .lean-cookie-consent button[aria-label*="cookie" i],
    .lean-cookie-consent button[aria-label*="preferenze" i] {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .is-pwa .page-wrap {
        padding-bottom: 92px;
    }

    .is-pwa .bottom-action-bar {
        display: grid;
    }

    .is-pwa button[aria-label="Gestisci preferenze cookie"],
    .is-pwa button[aria-label="Impostazioni cookie"],
    .is-pwa .lean-cookie-consent button[aria-label*="cookie" i],
    .is-pwa .lean-cookie-consent button[aria-label*="preferenze" i] {
        display: none !important;
    }
}

.back-link {
    display: inline-flex;
    margin: 4px 0 14px;
    color: var(--yellow);
    font-weight: 900;
}

.detail-hero,
.detail-section {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    background: var(--bg-header);
    color: var(--white);
}

.detail-hero {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
}

.detail-poster {
    width: 112px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.detail-kicker {
    margin: 0 0 5px;
    color: var(--blue-700);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-copy h1 {
    margin: 0;
    font-family: var(--display-font);
    font-size: 34px;
    line-height: .96;
    text-transform: uppercase;
}

.detail-original,
.detail-caption {
    margin: 7px 0 0;
    color: var(--muted);
}

.detail-caption {
    color: var(--ink);
    font-weight: 800;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 13px;
}

.detail-meta span {
    display: block;
    padding: 9px;
    border-radius: 6px;
    background: var(--blue-100);
    font-size: 13px;
}

.detail-meta strong {
    display: block;
    color: var(--blue-700);
    font-size: 11px;
    text-transform: uppercase;
}

.detail-section {
    margin-top: 12px;
    padding: 14px;
}

.detail-section h2 {
    margin: 0 0 8px;
    font-family: var(--display-font);
    font-size: 28px;
    text-transform: uppercase;
}

.detail-section p {
    line-height: 1.58;
}

.live-page {
    display: grid;
    gap: 12px;
}

.live-intro h1 {
    margin: 0 0 8px;
    font-family: var(--display-font);
    font-size: 36px;
    line-height: 1;
    text-transform: uppercase;
}

.live-intro p {
    margin: 0;
    color: var(--muted);
}

.live-grid {
    display: grid;
    gap: 10px;
}

.live-channel-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    background: var(--bg-header);
}

.live-channel-card:nth-child(even) {
    background: var(--bg-main);
}

.live-channel-logo {
    width: 78px;
    min-height: 48px;
    display: grid;
    place-items: center;
    padding: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--bg-dark);
}

.live-channel-logo img {
    max-width: 100%;
    max-height: 38px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.live-channel-logo--text {
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
}

.live-channel-copy {
    min-width: 0;
}

.live-channel-copy h2 {
    margin: 0;
    font-family: var(--display-font);
    font-size: 22px;
    line-height: 1;
    text-transform: uppercase;
}

.live-channel-category {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.live-channel-now {
    display: block;
    margin-top: 4px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.live-channel-button {
    grid-area: auto;
    white-space: nowrap;
}

.detail-airings {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.detail-airings li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    background: var(--blue-100);
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.actor-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.actor-photo {
    width: 64px;
    height: 84px;
    object-fit: cover;
    border-radius: 5px;
    background: var(--blue-100);
}

.actor-card h2 {
    margin: 0;
    font-size: 16px;
}

.actor-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

@keyframes fade-slide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes live-pulse {
    0%, 100% {
        opacity: .42;
        transform: scale(.82);
        box-shadow: 0 0 0 0 rgba(255, 47, 63, 0.48);
    }
    50% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(255, 47, 63, 0);
    }
}

@media (min-width: 768px) {
    .bottom-action-bar {
        display: none;
    }

    button[aria-label="Gestisci preferenze cookie"],
    button[aria-label="Impostazioni cookie"],
    .lean-cookie-consent button[aria-label*="cookie" i],
    .lean-cookie-consent button[aria-label*="preferenze" i] {
        display: revert !important;
    }

    .brand-mark {
        gap: 0;
    }

    .brand-mark img {
        width: 350px;
    }

    .brand-divider {
        height: 108px;
    }

    .brand-claim {
        max-width: 260px;
        font-size: 42px;
    }

    .brand-bar {
        min-height: 136px;
        padding-inline: 24px;
    }

    .drawer-menu {
        grid-template-columns: repeat(4, auto);
        justify-content: end;
        padding-inline: 24px;
    }

    .page-wrap {
        padding: 0px 24px;
    }

    .nav-stack {
        margin-inline: 0;
        border-radius: 0 0 8px 8px;
        padding: 10px;
    }

    .movie-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-inline: 0;
        width: auto;
        max-width: 100%;
    }

    .movie-actions {
        grid-template-columns: auto minmax(0, 1fr) 58px;
    }

    .watch-button {
        justify-self: end;
    }

    .live-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .movie-card h2 {
        font-size: 27px;
    }

    .detail-copy h1 {
        font-size: 54px;
    }

    .movie-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .live-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .movie-card {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 14px;
        padding: 11px;
    }

    .poster-frame,
    .movie-poster,
    .poster-placeholder {
        width: 132px;
    }

    .detail-hero {
        grid-template-columns: 220px minmax(0, 1fr);
        padding: 18px;
    }

    .detail-poster {
        width: 220px;
    }
}

@media (min-width: 1440px) {
    .movie-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .live-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Social links (chi-siamo / page Contatti) — blocco compatto, niente tracker. */
.social-links {
    list-style: none;
    margin: 12px 0 14px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: var(--text-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.social-link:hover,
.social-link:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

.social-link__icon {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.social-link--facebook .social-link__icon {
    color: #1877F2;
}

.social-link--instagram .social-link__icon {
    color: #dc2743;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 480px) {
    .social-link {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
