
:root {
    --tm-bg: #030b18;
    --tm-panel: #081426;
    --tm-panel-2: #0c1a2f;
    --tm-border: rgba(144, 174, 216, .22);
    --tm-text: #ffffff;
    --tm-muted: #aab8ca;
    --tm-red: #ff1838;
    --tm-blue: #1598ff;
}

.tm-live-page {
    min-height: 100vh;
    padding: 32px 0 52px;
    color: var(--tm-text);
    background:
        radial-gradient(circle at 30% 10%, rgba(9, 62, 115, .16), transparent 33%),
        linear-gradient(180deg, #030a15 0%, var(--tm-bg) 100%);
}

.tm-live-container {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

.tm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--tm-muted);
    font-size: 14px;
}

.tm-breadcrumb a {
    color: #eaf2ff;
    text-decoration: none;
}

.tm-live-heading {
    margin-bottom: 16px;
}

.tm-live-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -.03em;
}

.tm-live-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 4px;
    color: var(--tm-red);
    font-size: 16px;
}

.tm-status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--tm-red);
    box-shadow: 0 0 0 0 rgba(255, 24, 56, .65);
    animation: tm-pulse 1.8s infinite;
}

.tm-live-subtitle {
    margin: 0;
    color: var(--tm-muted);
}

.tm-live-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

.tm-player-card,
.tm-schedule-card,
.tm-feature-grid {
    border: 1px solid var(--tm-border);
    background: linear-gradient(180deg, rgba(12, 26, 47, .96), rgba(4, 14, 29, .98));
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

.tm-player-card,
.tm-schedule-card {
    border-radius: 18px;
    overflow: hidden;
}

.tm-player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.tm-live-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.tm-live-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    left: auto;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 7px;
    color: white;
    background: var(--tm-red);
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 7px 24px rgba(255, 24, 56, .38);
    pointer-events: none;
}

.tm-live-badge span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

.tm-player-message {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    background: rgba(1, 6, 14, .88);
}

.tm-player-message[hidden] {
    display: none;
}

.tm-player-message span {
    color: var(--tm-muted);
}

.tm-player-message button {
    margin-top: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 9px;
    color: white;
    background: rgba(255,255,255,.08);
    cursor: pointer;
}

.tm-now-playing {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
}

.tm-now-icon {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    height: 58px;
    border-radius: 14px;
    color: var(--tm-red);
    background: rgba(255, 24, 56, .08);
    font-size: 30px;
}

.tm-now-copy {
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

.tm-now-copy span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.tm-now-copy strong {
    margin: 3px 0;
    font-size: 18px;
}

.tm-now-copy small {
    color: var(--tm-muted);
}

.tm-now-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.tm-action-button,
.tm-guide-button {
    min-height: 46px;
    border: 1px solid rgba(180, 199, 225, .3);
    border-radius: 10px;
    color: white;
    background: rgba(255, 255, 255, .035);
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.tm-action-button {
    padding: 0 15px;
}

.tm-action-button:hover,
.tm-action-button:focus-visible,
.tm-guide-button:hover,
.tm-guide-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(21, 152, 255, .75);
    background: rgba(21, 152, 255, .10);
    outline: none;
}

.tm-schedule-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid var(--tm-border);
}

.tm-schedule-header h2 {
    margin: 0;
    font-size: 17px;
    text-transform: uppercase;
}

.tm-schedule-list {
    padding: 12px 14px 0;
}

.tm-schedule-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    align-items: center;
    min-height: 70px;
    padding: 12px 14px;
    border: 1px solid rgba(144, 174, 216, .12);
    border-radius: 10px;
    margin-bottom: 9px;
}

.tm-schedule-item time {
    color: var(--tm-muted);
}

.tm-schedule-item.is-live {
    position: relative;
    border-color: var(--tm-red);
    background: linear-gradient(90deg, rgba(255, 24, 56, .12), rgba(255, 24, 56, .025));
}

.tm-schedule-item.is-live::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--tm-red);
    box-shadow: 0 0 15px rgba(255, 24, 56, .7);
}

.tm-schedule-item div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tm-schedule-item span {
    color: var(--tm-red);
    font-size: 12px;
    font-weight: 800;
}

.tm-schedule-item span i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--tm-red);
}

.tm-guide-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 14px;
    padding: 0 16px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
}

.tm-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
}

.tm-feature-grid article {
    display: flex;
    gap: 14px;
    min-height: 110px;
    padding: 22px;
    border-right: 1px solid var(--tm-border);
}

.tm-feature-grid article:last-child {
    border-right: 0;
}

.tm-feature-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    height: 48px;
    border: 1px solid rgba(21, 152, 255, .25);
    border-radius: 12px;
    color: var(--tm-blue);
    background: rgba(21, 152, 255, .08);
    font-weight: 800;
    font-size: 18px;
}

.tm-feature-grid strong {
    display: block;
    margin: 4px 0 6px;
    text-transform: uppercase;
    font-size: 13px;
}

.tm-feature-grid p {
    margin: 0;
    color: var(--tm-muted);
    font-size: 14px;
    line-height: 1.45;
}

@keyframes tm-pulse {
    70% { box-shadow: 0 0 0 10px rgba(255, 24, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 24, 56, 0); }
}

@media (max-width: 1100px) {
    .tm-live-layout {
        grid-template-columns: 1fr;
    }

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

    .tm-feature-grid article:nth-child(2) {
        border-right: 0;
    }

    .tm-feature-grid article:nth-child(-n+2) {
        border-bottom: 1px solid var(--tm-border);
    }
}

@media (max-width: 760px) {
    .tm-live-page {
        padding-top: 18px;
    }

    .tm-live-container {
        width: min(100% - 22px, 1440px);
    }

    .tm-now-playing {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .tm-now-actions {
        width: 100%;
        justify-content: stretch;
        margin-left: 0;
    }

    .tm-action-button {
        flex: 1 1 150px;
    }

    .tm-feature-grid {
        grid-template-columns: 1fr;
    }

    .tm-feature-grid article,
    .tm-feature-grid article:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--tm-border);
    }

    .tm-feature-grid article:last-child {
        border-bottom: 0;
    }

    .tm-live-badge {
        top: 10px;
        right: 10px;
        left: auto;
        padding: 6px 9px;
        font-size: 14px;
    }
}

/* ==========================================================
   ANS TV PLAY — I VOLTI DEL CANALE IN TELEVISORI MODERNI
   Le classi vengono applicate automaticamente da
   telemessina-live.js alla sezione "Conduttori e giornalisti".
   ========================================================== */

.anstv-people-section {
    --anstv-tv-blue: #1598ff;
    --anstv-tv-gold: #b99a43;
    padding-bottom: 48px;
}

.anstv-people-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: clamp(18px, 2vw, 30px) !important;
    align-items: start !important;
    width: 100% !important;
}

.anstv-person-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-width: 0 !important;
    width: 100% !important;
    text-align: center !important;
}

.anstv-tv-frame {
    position: relative;
    width: 100% !important;
    max-width: 270px !important;
    aspect-ratio: 1.16 / 1 !important;
    margin: 54px auto 22px !important;
    padding: 12px 46px 12px 12px !important;
    border: 2px solid rgba(122, 180, 255, .9) !important;
    border-radius: 28px !important;
    background:
        linear-gradient(145deg, #111c2d 0%, #020814 58%, #0c1828 100%) !important;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, .07),
        0 0 24px rgba(21, 152, 255, .30),
        0 18px 34px rgba(0, 0, 0, .38) !important;
    box-sizing: border-box !important;
}

.anstv-tv-frame::before,
.anstv-tv-frame::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: -65px;
    width: 3px;
    height: 70px;
    border-radius: 999px;
    background: linear-gradient(#dce9f7, #586578 72%, #141c28);
    box-shadow: 0 0 4px rgba(255,255,255,.35);
    transform-origin: bottom center;
}

.anstv-tv-frame::before {
    left: 46%;
    transform: rotate(-40deg);
}

.anstv-tv-frame::after {
    right: 46%;
    transform: rotate(40deg);
}

.anstv-tv-screen {
    position: relative;
    z-index: 2;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    border: 2px solid rgba(205, 225, 250, .38) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 50% 35%, #13233a, #050b15 72%) !important;
    box-shadow:
        inset 0 0 22px rgba(0, 0, 0, .7),
        0 0 0 2px rgba(0,0,0,.65) !important;
}

.anstv-tv-screen img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center 25% !important;
    box-shadow: none !important;
}

.anstv-tv-placeholder {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
    background:
        radial-gradient(circle at 50% 40%, #172943, #07101f 72%) !important;
    font-size: clamp(48px, 5vw, 78px) !important;
    font-weight: 400 !important;
}

.anstv-tv-controls {
    position: absolute;
    z-index: 3;
    top: 20%;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    width: 22px;
}

.anstv-tv-controls i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--anstv-tv-blue);
    box-shadow: 0 0 9px rgba(21, 152, 255, .9);
}

.anstv-tv-controls b {
    display: block;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border: 2px solid #7d91ac;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #73839b, #172333 44%, #03070d 70%);
    box-shadow: inset 0 0 0 2px #03070d;
}

.anstv-tv-frame .anstv-tv-foot {
    position: absolute;
    bottom: -14px;
    width: 40px;
    height: 17px;
    border-radius: 0 0 7px 7px;
    background: linear-gradient(#172235, #050912);
}

.anstv-tv-frame .anstv-tv-foot-left {
    left: 30px;
    transform: skew(-16deg);
}

.anstv-tv-frame .anstv-tv-foot-right {
    right: 30px;
    transform: skew(16deg);
}

.anstv-person-card h3 {
    width: 100% !important;
    min-height: 2.6em !important;
    margin: 0 0 7px !important;
    color: #fff !important;
    font-size: clamp(16px, 1.25vw, 21px) !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.anstv-person-card h3 + p,
.anstv-person-card .anstv-person-role {
    margin: 0 !important;
    color: #b9c6da !important;
    font-size: clamp(13px, 1vw, 16px) !important;
    text-align: center !important;
}

@media (max-width: 1180px) {
    .anstv-people-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .anstv-people-grid {
        display: flex !important;
        gap: 18px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding: 0 4px 18px !important;
        scrollbar-width: thin;
    }

    .anstv-person-card {
        flex: 0 0 min(78vw, 285px) !important;
        scroll-snap-align: center;
    }

    .anstv-tv-frame {
        max-width: 265px !important;
    }
}

