html,body{background:#070b12!important;color:#f5f7fb!important}
.speedy-app{min-height:100vh;display:flex;background:#070b12}
.speedy-sidebar{width:245px;min-width:245px;height:100vh;position:sticky;top:0;padding:25px 15px;box-sizing:border-box;background:#080c13;border-right:1px solid #202938;z-index:50}
.sidebar-brand{padding:4px 12px 30px}
.sidebar-brand img{width:170px;display:block}
.sidebar-nav{display:flex;flex-direction:column;gap:7px}
.sidebar-nav a{display:flex;align-items:center;gap:15px;padding:13px 15px;border-radius:13px;color:#929db0;text-decoration:none;font-size:14px;font-weight:600}
.sidebar-nav a:hover,.sidebar-nav a.active{color:#fff;background:linear-gradient(100deg,rgba(0,217,255,.16),rgba(118,87,255,.18))}
.nav-icon{width:23px;text-align:center;color:#00d9ff;font-size:18px}
.sidebar-bottom{margin-top:auto;padding:18px 12px 4px}
.speedy-main{flex:1;min-width:0}
.speedy-topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 35px;box-sizing:border-box;background:#090e17;border-bottom:1px solid #202938}
.topbar-title{font-size:18px;font-weight:700}
.topbar-user{display:flex;align-items:center;gap:10px;color:#aeb8c8;font-size:13px}
.user-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#00d9ff,#7657ff)}
.speedy-content{width:min(1450px,calc(100% - 70px));margin:auto;padding:32px 0 70px}
.mobile-menu{display:none}
.hero-card{position:relative;overflow:hidden;min-height:450px;border-radius:24px;border:1px solid rgba(255,255,255,.08);background:#0b111b;box-shadow:0 25px 70px rgba(0,0,0,.35)}
.hero-image{width:100%;height:450px;object-fit:cover;object-position:center;display:block;opacity:.72}
.hero-overlay{position:absolute;inset:0;padding:55px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(90deg,rgba(5,9,15,.98),rgba(5,9,15,.72) 38%,rgba(5,9,15,.08) 78%,transparent)}
.hero-kicker,.section-kicker{color:#00d9ff;font-size:11px;font-weight:800;letter-spacing:2px}
.hero-overlay h1{max-width:650px;margin:12px 0;font-size:clamp(38px,5vw,68px);line-height:.98;letter-spacing:-2px}
.hero-overlay p{color:#aab5c6;font-size:16px;margin:5px 0 25px}
.hero-button{width:max-content;display:inline-flex;align-items:center;gap:10px;padding:13px 21px;border-radius:10px;background:linear-gradient(100deg,#00d9ff,#7657ff);color:#fff;text-decoration:none;font-size:12px;font-weight:800;box-shadow:0 12px 30px rgba(0,217,255,.18)}
.hero-button:hover{transform:translateY(-2px)}
.section-block{margin-top:42px}
.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px}
.section-heading h2{margin:5px 0 0;font-size:24px;letter-spacing:-.7px}
.section-link{color:#00d9ff;text-decoration:none;font-size:12px;font-weight:700}
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.quick-card{min-height:95px;display:flex;align-items:center;gap:15px;padding:20px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.015));text-decoration:none;color:#fff}
.quick-card:hover{border-color:rgba(0,217,255,.3);transform:translateY(-3px)}
.quick-icon{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:14px;color:#00d9ff;background:rgba(0,217,255,.09);font-size:20px}
.quick-card strong,.quick-card small{display:block}
.quick-card strong{font-size:14px}
.quick-card small{color:#8995a8;margin-top:4px;font-size:11px}
.channel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}
.channel-card{overflow:hidden;border:1px solid rgba(255,255,255,.08);border-radius:17px;background:#0d131d;color:#fff;text-decoration:none}
.channel-card:hover{transform:translateY(-4px);border-color:rgba(0,217,255,.28);box-shadow:0 18px 45px rgba(0,0,0,.25)}
.channel-image{height:155px;position:relative;background:#080c13;overflow:hidden}
.channel-image img{width:100%;height:100%;object-fit:cover}
.live-badge{position:absolute;top:12px;left:12px;padding:5px 8px;border-radius:5px;background:#e93650;color:#fff;font-size:9px;font-weight:900;letter-spacing:.7px}
.channel-card-info{padding:13px 15px 15px}
.channel-card-info strong,.channel-card-info span{display:block}
.channel-card-info strong{font-size:14px}
.channel-card-info span{color:#8995a8;font-size:11px;margin-top:5px}
.live-header{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px}
.live-header h1,.page-hero-small h1{margin:5px 0;font-size:34px;letter-spacing:-1px}
.live-header p,.page-hero-small p{margin:0;color:#8995a8;font-size:13px}
.live-status{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid rgba(46,230,138,.2);border-radius:8px;color:#2ee68a;font-size:10px;font-weight:800}
.category-tabs{display:flex;gap:8px;overflow-x:auto;margin-bottom:17px;padding-bottom:4px}
.category-tabs a{white-space:nowrap;padding:9px 15px;border-radius:9px;border:1px solid rgba(255,255,255,.08);color:#8e9bad;background:rgba(255,255,255,.025);text-decoration:none;font-size:11px;font-weight:700}
.category-tabs a.active,.category-tabs a:hover{color:#fff;border-color:rgba(0,217,255,.35);background:rgba(0,217,255,.09)}
.live-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:18px}
.live-channel-panel,.live-player-panel{min-width:0;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(13,19,29,.9);overflow:hidden}
.panel-heading{height:55px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid rgba(255,255,255,.08);font-size:12px;font-weight:800}
.channel-count{min-width:23px;height:23px;display:grid;place-items:center;border-radius:50%;color:#00d9ff;background:rgba(0,217,255,.1);font-size:10px}
.live-channel-list{max-height:620px;overflow-y:auto;padding:8px}
.live-channel{display:flex;align-items:center;gap:11px;padding:10px;border-radius:11px;color:#fff;text-decoration:none}
.live-channel:hover{background:rgba(255,255,255,.045)}
.live-channel.active{background:linear-gradient(90deg,rgba(0,217,255,.13),rgba(118,87,255,.1));box-shadow:inset 2px 0 0 #00d9ff}
.live-channel img{width:49px;height:38px;object-fit:cover;border-radius:7px;background:#080c12}
.live-channel-text{flex:1;min-width:0}
.live-channel-text strong,.live-channel-text small{display:block}
.live-channel-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.live-channel-text small{color:#8995a8;margin-top:4px;font-size:9px}
.live-dot{width:5px;height:5px;display:inline-block;border-radius:50%;background:#2ee68a;margin-right:4px}
.channel-play{color:#69768a;font-size:12px}
.live-channel.active .channel-play{color:#00d9ff}
.player-container{background:#05070b}
.player-topline{min-height:55px;display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid rgba(255,255,255,.06)}
.player-topline strong,.player-topline span{display:block}
.player-topline strong{margin-top:4px;font-size:13px}
.player-live{color:#ff5366;font-size:9px;font-weight:900}
#speedy-player{display:block;width:100%;min-height:430px;max-height:70vh;background:#000}
.player-status{padding:9px 14px;color:#667286;font-size:10px;text-align:center;background:#080b11}
.player-empty{min-height:500px;position:relative;overflow:hidden;background:#05070b}
.player-empty img{width:100%;height:100%;min-height:500px;object-fit:cover;opacity:.35}
.player-empty-overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:rgba(4,7,12,.45)}
.player-empty-icon{width:65px;height:65px;display:grid;place-items:center;border-radius:50%;color:#fff;background:linear-gradient(135deg,#00d9ff,#7657ff);font-size:22px;margin-bottom:18px}
.player-empty-overlay h2{margin:0;font-size:22px}
.player-empty-overlay p{color:#8995a8;font-size:12px}
.page-hero-small{padding:25px 0 28px}
.empty-state{min-height:300px;display:flex;align-items:center;justify-content:center;gap:25px;padding:40px;border:1px solid rgba(255,255,255,.08);border-radius:20px;background:#0d131d}
.empty-state img{width:170px;border-radius:15px;opacity:.55}
.empty-state h2,.empty-state h3{margin:0 0 8px}
.empty-state p{margin:0;color:#8995a8;font-size:12px}
.empty-icon,.empty-big-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:16px;color:#00d9ff;background:rgba(0,217,255,.08);font-size:22px}
.profile-card{max-width:700px;display:grid;grid-template-columns:90px 1fr 1fr;align-items:center;gap:25px;padding:30px;border:1px solid rgba(255,255,255,.08);border-radius:20px;background:#0d131d}
.profile-avatar{width:76px;height:76px;display:grid;place-items:center;border-radius:50%;color:#fff;font-size:28px;font-weight:800;background:linear-gradient(135deg,#00d9ff,#7657ff)}
.profile-info span{display:block;color:#657286;font-size:9px;letter-spacing:1.4px;font-weight:800}
.profile-info strong{display:block;margin-top:6px;font-size:14px}
.profile-logout{grid-column:1/-1;color:#ff6271;text-decoration:none;font-size:12px}
.mobile-nav{display:none}

@media(max-width:1000px){
 .quick-grid{grid-template-columns:repeat(2,1fr)}
 .channel-grid{grid-template-columns:repeat(2,1fr)}
 .live-layout{grid-template-columns:260px minmax(0,1fr)}
}

@media(max-width:760px){
 .speedy-sidebar{position:fixed;left:-270px;transition:left .25s ease;box-shadow:20px 0 50px rgba(0,0,0,.35)}
 .speedy-sidebar.mobile-open{left:0}
 .mobile-menu{display:block;color:#fff;border:0;background:transparent;font-size:23px}
 .speedy-topbar{height:62px;padding:0 17px}
 .topbar-user span{display:none}
 .speedy-content{width:calc(100% - 28px);padding:18px 0 95px}
 .hero-card{min-height:400px;border-radius:18px}
 .hero-image{height:400px}
 .hero-overlay{padding:25px;justify-content:end;background:linear-gradient(0deg,rgba(5,9,15,.98),rgba(5,9,15,.38))}
 .hero-overlay h1{font-size:38px;letter-spacing:-1px}
 .hero-overlay p{font-size:13px}
 .quick-grid{grid-template-columns:1fr}
 .channel-grid{grid-template-columns:1fr 1fr;gap:10px}
 .channel-image{height:110px}
 .channel-card-info{padding:10px}
 .live-header{align-items:start;gap:15px}
 .live-header h1,.page-hero-small h1{font-size:28px}
 .live-layout{grid-template-columns:1fr}
 .live-channel-list{max-height:280px}
 #speedy-player{min-height:220px}
 .player-empty,.player-empty img{min-height:300px}
 .empty-state{flex-direction:column;text-align:center}
 .empty-state img{max-width:190px}
 .profile-card{grid-template-columns:70px 1fr}
 .profile-avatar{width:62px;height:62px;font-size:22px}
 .profile-info:nth-of-type(2),.profile-info:nth-of-type(3){grid-column:1/-1}
 .mobile-nav{position:fixed;left:10px;right:10px;bottom:10px;height:66px;display:flex;align-items:stretch;justify-content:space-around;z-index:100;border:1px solid rgba(255,255,255,.09);border-radius:17px;background:rgba(9,14,22,.94);box-shadow:0 15px 45px rgba(0,0,0,.45)}
 .mobile-nav a{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;color:#707c90;text-decoration:none;font-size:16px}
 .mobile-nav small{font-size:8px;font-weight:700}
 .mobile-nav a.active{color:#00d9ff}
}
.login-page{min-height:100vh;display:grid;place-items:center;position:relative;overflow:hidden;background:#060a11}
.login-background{position:absolute;inset:0;background:url("/assets/speedy-hero.svg") center/cover;opacity:.18}
.login-card{width:min(420px,calc(100% - 35px));position:relative;z-index:2;padding:40px;border:1px solid rgba(255,255,255,.09);border-radius:24px;background:rgba(10,15,23,.94);box-shadow:0 35px 90px rgba(0,0,0,.55);box-sizing:border-box}
.login-logo{display:block;width:220px;margin:0 auto 28px}
.login-title{text-align:center;font-size:24px;font-weight:800}
.login-subtitle{margin:7px 0 27px;text-align:center;color:#8995a8;font-size:12px}
.login-form{display:flex;flex-direction:column;gap:12px}
.login-form input{width:100%;box-sizing:border-box;padding:14px 15px;border:1px solid rgba(255,255,255,.09);border-radius:10px;outline:none;background:#080d15;color:#fff;font-size:13px}
.login-form input:focus{border-color:rgba(0,217,255,.5)}
.primary-button{margin-top:7px;padding:14px;border:0;border-radius:10px;color:#fff;background:linear-gradient(100deg,#00d9ff,#7657ff);font-weight:800;cursor:pointer}
.login-error{margin-bottom:15px;padding:10px;border:1px solid rgba(255,80,100,.2);border-radius:8px;color:#ff7180;background:rgba(255,70,90,.06);font-size:11px}
.login-footer{margin-top:25px;text-align:center;color:#515d70;font-size:9px}

/* Speedy TV - correzione finale del banner Home */
.hero-card {
    min-height: 410px;
}

.hero-image {
    height: 410px;
}

.hero-overlay {
    box-sizing: border-box;
    justify-content: center;
    align-items: flex-start;
    padding: 42px 50px;
    background: linear-gradient(
        90deg,
        rgba(5, 9, 15, .96) 0%,
        rgba(5, 9, 15, .78) 42%,
        rgba(5, 9, 15, .12) 78%,
        transparent 100%
    );
}

.hero-overlay h1 {
    max-width: 590px;
    font-size: clamp(36px, 4.1vw, 58px);
    line-height: 1.04;
    letter-spacing: -1.5px;
}

.hero-overlay p {
    max-width: 460px;
    margin: 8px 0 22px;
}

.hero-button {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 44px;
    box-sizing: border-box;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 760px) {
    .hero-card {
        min-height: 400px;
    }

    .hero-image {
        height: 400px;
    }

    .hero-overlay {
        padding: 24px;
    }

    .hero-overlay h1 {
        max-width: 100%;
        font-size: 36px;
    }
}

/* Speedy TV - stile applicato al markup Live esistente */
.category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
}

.category-bar a {
    display: inline-flex;
    align-items: center;
    padding: 10px 17px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: #101722;
    color: #b9c5d6;
    text-decoration: none;
    font-size: 13px;
    transition: background .2s, border-color .2s, color .2s;
}

.category-bar a:hover,
.category-bar a.active {
    background: rgba(0,217,255,.12);
    border-color: rgba(0,217,255,.55);
    color: #fff;
}

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

.live-sidebar,
.player-box {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    background: linear-gradient(145deg, #101722, #0a0f17);
}

.live-sidebar {
    padding: 17px;
}

.live-sidebar h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 620px;
    overflow-y: auto;
}

.channel {
    display: block;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    color: #f3f6fb;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s;
}

.channel:hover {
    transform: translateX(2px);
    background: rgba(0,217,255,.06);
    border-color: rgba(0,217,255,.22);
}

.channel.active {
    background: linear-gradient(100deg, rgba(0,217,255,.15), rgba(118,87,255,.12));
    border-color: rgba(0,217,255,.48);
}

.channel-name {
    font-size: 14px;
    font-weight: 750;
}

.channel-id {
    margin-top: 5px;
    color: #8997aa;
    font-size: 11px;
}

.channel.active .channel-id {
    color: #64e7ff;
}

.player-box {
    background: #03060b;
}

.player-box video,
#speedy-player {
    display: block;
    width: 100%;
    min-height: 300px;
    max-height: 72vh;
    aspect-ratio: 16 / 9;
    background: #000;
    object-fit: contain;
}

.player-placeholder {
    min-height: 360px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(0,217,255,.09), transparent 60%),
        #050a12;
}

.player-placeholder::before {
    content: "▶";
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 18px;
    padding-left: 4px;
    box-sizing: border-box;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    background: linear-gradient(135deg, #00cfe8, #7657ff);
    box-shadow: 0 0 35px rgba(0,217,255,.15);
}

.player-placeholder h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.player-placeholder p {
    margin: 0;
    color: #929fb2;
    font-size: 13px;
}

.live-layout + h2,
.player-box + h2 {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .live-layout {
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
        gap: 12px;
    }

    .live-sidebar {
        padding: 12px;
    }
}

@media (max-width: 680px) {
    .category-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .category-bar a {
        flex: 0 0 auto;
    }

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

    .channel-list {
        max-height: 280px;
    }

    .player-box video,
    #speedy-player {
        min-height: 220px;
    }

    .player-placeholder {
        min-height: 260px;
    }
}

/* Stato del player Speedy TV */
.player-status-banner {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    background: #0d141e;
    border-bottom: 1px solid rgba(255,255,255,.07);
    color: #aab7c9;
    font-size: 12px;
}

.player-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #f5b942;
    box-shadow: 0 0 12px rgba(245,185,66,.35);
}

.player-status-banner.is-playing {
    color: #e8fbf1;
}

.player-status-banner.is-playing .player-status-dot {
    background: #26df91;
    box-shadow: 0 0 12px rgba(38,223,145,.5);
}

.player-status-banner.is-error {
    color: #ffc4c4;
}

.player-status-banner.is-error .player-status-dot {
    background: #ff5b65;
    box-shadow: 0 0 12px rgba(255,91,101,.4);
}

/* Barra informativa del canale Live */
.player-channel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    background: linear-gradient(110deg, #111b29, #0b111b);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.player-channel-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.player-channel-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #00cfe8, #7657ff);
    font-size: 14px;
}

.player-channel-identity strong,
.player-channel-identity div > span {
    display: block;
}

.player-channel-identity strong {
    color: #f5f8fc;
    font-size: 14px;
}

.player-channel-identity div > span {
    margin-top: 4px;
    color: #8d9bb0;
    font-size: 11px;
}

.player-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(255,80,95,.24);
    border-radius: 7px;
    background: rgba(255,80,95,.09);
    color: #ff9ca5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.player-live-badge > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff5364;
    box-shadow: 0 0 9px rgba(255,83,100,.6);
}

@media (max-width: 600px) {
    .player-channel-bar {
        padding: 12px;
    }
}

/* Badge LIVE verde */
.player-live-badge {
    border-color: rgba(38,223,145,.30);
    background: rgba(38,223,145,.10);
    color: #62f5b0;
}

.player-live-badge > span {
    background: #26df91;
    box-shadow: 0 0 9px rgba(38,223,145,.65);
}

/* Speedy TV - loghi canali e guida XMLTV */
.channel-row{display:flex;align-items:flex-start;gap:11px;min-width:0}
.channel-logo{flex:0 0 48px;width:48px;height:48px;object-fit:contain;padding:4px;box-sizing:border-box;border-radius:9px;background:#080d15;border:1px solid rgba(255,255,255,.08)}
.channel-logo-fallback{display:grid;place-items:center;color:#00d9ff;font-size:12px;font-weight:800}
.channel-details{flex:1;min-width:0}
.channel-epg{display:flex;flex-direction:column;gap:5px;margin-top:8px;font-size:10px;line-height:1.4;color:#9caac0}
.channel-epg .epg-current,.channel-epg .epg-next{display:block;overflow-wrap:anywhere}
.channel-epg .epg-current{color:#d9e4f3}
.channel-epg .epg-time{color:#61e5ff;font-weight:700;white-space:nowrap}
.channel-epg .epg-title{color:inherit}
.channel-epg .epg-next{color:#8795aa}
.channel.active .channel-epg .epg-current{color:#fff}
.epg-page{padding:8px 0 28px}
.epg-page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.epg-page-heading h1{margin:4px 0 8px;font-size:clamp(28px,4vw,42px);color:#f5f8ff}
.epg-page-heading p{margin:0;color:#94a3b8}
.epg-eyebrow{font-size:10px!important;letter-spacing:2px;color:#00d9ff!important;font-weight:800}
.epg-live-indicator{font-size:10px;letter-spacing:.5px;color:#64e7a5;white-space:nowrap}
.epg-guide{display:flex;flex-direction:column;gap:10px}
.epg-guide-row{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);gap:18px;align-items:center;padding:16px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:linear-gradient(120deg,#101722,#0a0f17)}
.epg-guide-channel{display:flex;align-items:center;gap:12px;color:#f5f8ff}
.epg-guide-tv{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#080d15;border:1px solid rgba(0,217,255,.22);color:#00d9ff;font-size:12px;font-weight:800}
.epg-guide-programmes{display:grid;grid-template-columns:1fr 1fr;gap:16px;min-width:0}
.epg-program-current,.epg-program-next{min-width:0;color:#cbd5e1;line-height:1.5;overflow-wrap:anywhere}
.epg-program-current small,.epg-program-next small{display:block;margin-bottom:5px;font-size:9px;letter-spacing:1px;color:#8292a8;font-weight:800}
.epg-program-current .epg-time,.epg-program-next .epg-time{display:block;font-size:11px;color:#61e5ff;font-weight:700}
.epg-program-current .epg-title,.epg-program-next .epg-title{font-size:13px;color:#f1f5f9}
.epg-loading,.epg-error{padding:20px;border-radius:12px;background:#101722;color:#cbd5e1}
.epg-error{color:#ffb4b4}
.epg-unavailable{color:#8292a8;font-size:11px}
.epg-updated{text-align:right;color:#718096;font-size:10px;margin:4px 2px}
@media(max-width:760px){
 .epg-page-heading{align-items:flex-start;flex-direction:column}
 .epg-guide-row{grid-template-columns:1fr;gap:12px;padding:13px}
 .epg-guide-programmes{grid-template-columns:1fr;gap:12px}
 .channel-logo{flex-basis:40px;width:40px;height:40px}
}

/* Guida integrata sotto il player Live */
.live-epg-panel{margin-top:16px;padding:20px;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:linear-gradient(145deg,#101722,#0a0f17)}
.live-epg-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.live-epg-heading h2{margin:4px 0 0;font-size:21px;color:#f5f8ff}
.live-epg-item{display:grid;grid-template-columns:100px minmax(0,1fr) auto;gap:14px;align-items:start;padding:14px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.025)}
.live-epg-item.is-current{border-color:rgba(38,223,145,.35);background:rgba(38,223,145,.055)}
.live-epg-time{padding-top:2px;color:#61e5ff;font-size:12px;font-weight:800;white-space:nowrap}
.live-epg-program{min-width:0}
.live-epg-program small{display:block;margin-bottom:5px;color:#8b9bb0;font-size:9px;font-weight:800;letter-spacing:1px}
.live-epg-item.is-current .live-epg-program small{color:#62f5b0}
.live-epg-program strong{display:block;color:#f1f5f9;font-size:14px}
.live-epg-program p{margin:6px 0 0;color:#9ba9bb;font-size:12px;line-height:1.5}
.live-epg-now{padding:4px 7px;border-radius:6px;background:rgba(38,223,145,.12);color:#62f5b0;font-size:9px;font-weight:900}
@media(max-width:650px){.live-epg-panel{padding:13px}.live-epg-heading{align-items:flex-start;flex-direction:column}.live-epg-item{grid-template-columns:1fr;gap:6px}.live-epg-now{justify-self:start}}


/* Catalogo Film e Serie Speedy TV */
.catalog-page { padding: 8px 0 30px; }
.catalog-heading { display:flex; justify-content:space-between; align-items:end; gap:18px; margin:8px 0 24px; }
.catalog-eyebrow { color:#00d9ff; font-size:10px; font-weight:800; letter-spacing:1.5px; margin:0 0 8px; }
.catalog-heading h1 { margin:0 0 7px; font-size:34px; letter-spacing:-1px; }
.catalog-heading p:not(.catalog-eyebrow) { color:#8995a8; margin:0; font-size:13px; }
.catalog-count { color:#00d9ff; background:rgba(0,217,255,.08); border:1px solid rgba(0,217,255,.2); border-radius:9px; padding:9px 12px; font-size:11px; white-space:nowrap; }
.catalog-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px; }
.catalog-card { min-width:0; overflow:hidden; border:1px solid rgba(255,255,255,.08); border-radius:15px; background:linear-gradient(145deg,#111925,#0b1019); }
.catalog-poster { aspect-ratio:2/3; background:#080d15; overflow:hidden; }
.catalog-poster img { display:block; width:100%; height:100%; object-fit:cover; }
.catalog-no-poster { display:grid; place-items:center; width:100%; height:100%; min-height:150px; color:#00d9ff; font-size:42px; background:radial-gradient(ellipse,rgba(0,217,255,.12),transparent 70%); }
.catalog-card-info { padding:12px; }
.catalog-card-info h2 { margin:0; color:#f5f8ff; font-size:13px; line-height:1.45; }
.catalog-meta { display:flex; flex-wrap:wrap; gap:9px; margin-top:7px; color:#00d9ff; font-size:11px; }
.catalog-card-info p { margin:9px 0 0; color:#8995a8; font-size:11px; line-height:1.5; }
.catalog-message { padding:30px; border:1px solid rgba(0,217,255,.14); border-radius:16px; background:#0d131d; }
.catalog-message h2 { margin:0 0 8px; font-size:19px; }
.catalog-message p { color:#8995a8; margin:0; line-height:1.6; }
@media (max-width:1100px) { .catalog-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:800px) { .catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; } }
@media (max-width:520px) { .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .catalog-heading h1 { font-size:28px; } .catalog-heading { align-items:start; } }

/* Correzione dimensioni locandine catalogo */
.catalog-page .catalog-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px;
    align-items: start;
}

.catalog-page .catalog-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.catalog-page .catalog-poster {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.catalog-page .catalog-poster img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

@media (max-width: 1100px) {
    .catalog-page .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 800px) {
    .catalog-page .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .catalog-page .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }
}

/* Fix mirato: larghezza contenuta delle locandine Film/Serie */
.catalog-page .catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 220px)) !important;
    justify-content: start;
}
.catalog-page .catalog-card {
    width: 100%;
    max-width: 220px;
}
.catalog-page .catalog-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
}
@media (max-width: 1100px) {
    .catalog-page .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 220px)) !important;
    }
}
@media (max-width: 800px) {
    .catalog-page .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 220px)) !important;
    }
}
@media (max-width: 520px) {
    .catalog-page .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .catalog-page .catalog-card {
        max-width: 220px;
    }
}

/* Navigazione categorie compatta: Live, Film e Serie */
.category-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    margin: 0 0 14px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}
.category-current {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f5f8ff;
    font-size: 13px;
    font-weight: 700;
}
.category-arrow {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(0,217,255,.22);
    border-radius: 9px;
    background: rgba(0,217,255,.08);
    color: #00d9ff;
    text-decoration: none;
    font-size: 25px;
    line-height: 1;
}
.category-arrow:hover {
    background: rgba(0,217,255,.18);
    border-color: rgba(0,217,255,.6);
    color: #fff;
}
.catalog-category-switcher {
    max-width: 360px;
    margin: 0 0 22px;
}

/* Correzione selettore categorie: prevale sugli stili globali dei link */
.live-sidebar .category-switcher,
.catalog-page .category-switcher {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 14px !important;
    padding: 8px !important;
}

.live-sidebar .category-switcher .category-arrow,
.catalog-page .category-switcher .category-arrow {
    display: flex !important;
    flex: 0 0 36px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border: 1px solid rgba(0,217,255,.65) !important;
    border-radius: 9px !important;
    background: #0b202b !important;
    color: #00d9ff !important;
    text-decoration: none !important;
    font-size: 25px !important;
    line-height: 1 !important;
    box-shadow: 0 0 10px rgba(0,217,255,.12);
}

.live-sidebar .category-switcher .category-current,
.catalog-page .category-switcher .category-current {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 9px 4px !important;
    overflow: hidden !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #f5f8ff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.catalog-page .catalog-category-switcher {
    max-width: 360px;
}

/* Speedy TV: rifinitura definitiva frecce categorie */
.live-sidebar .category-switcher a.category-arrow,
.catalog-page .category-switcher a.category-arrow {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    border: 1px solid #00d9ff !important;
    border-radius: 10px !important;
    background: #081923 !important;
    color: #00d9ff !important;
    font-family: Arial, sans-serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 0 8px rgba(0,217,255,.12) !important;
}

.live-sidebar .category-switcher a.category-arrow::before,
.live-sidebar .category-switcher a.category-arrow::after,
.catalog-page .category-switcher a.category-arrow::before,
.catalog-page .category-switcher a.category-arrow::after {
    content: none !important;
    display: none !important;
}

.live-sidebar .category-switcher a.category-arrow:hover,
.catalog-page .category-switcher a.category-arrow:hover {
    background: rgba(0,217,255,.16) !important;
    color: #ffffff !important;
}

.live-sidebar .category-switcher .category-current,
.catalog-page .category-switcher .category-current {
    flex: 1 1 auto !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.live-sidebar .category-switcher,
.catalog-page .category-switcher {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

/* Catalogo: barra categorie proporzionata e centrata */
.catalog-page .catalog-category-switcher {
    width: min(100%, 420px) !important;
    max-width: 420px !important;
    box-sizing: border-box;
    margin: 0 0 22px !important;
}

.catalog-page .category-arrow-disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

/* Intestazione e saluto utente Speedy TV */
.sidebar-welcome {
    margin: 24px 8px 18px;
    padding: 14px 12px;
    border: 1px solid rgba(0, 217, 255, .16);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,217,255,.07), rgba(118,87,255,.07));
    overflow-wrap: anywhere;
}
.sidebar-welcome-label {
    display: block;
    margin-bottom: 6px;
    color: #00d9ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
}
.sidebar-welcome strong {
    display: block;
    color: #f5f7fb;
    font-size: 13px;
    font-weight: 700;
}
.speedy-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 30px;
    border-bottom: 1px solid #202938;
    background: rgba(9,14,23,.94);
}
.header-section-title {
    color: #f5f7fb;
    font-size: 17px;
    font-weight: 750;
}
.header-datetime {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #aeb8c8;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.header-clock-separator {
    color: #00d9ff;
}
#speedy-clock {
    color: #00d9ff;
    font-size: 15px;
    font-weight: 800;
}
@media (max-width: 760px) {
    .speedy-header {
        min-height: 62px;
        padding: 12px 16px;
        gap: 10px;
    }
    .header-section-title {
        font-size: 14px;
    }
    .header-datetime {
        gap: 6px;
        font-size: 10px;
    }
    #speedy-clock {
        font-size: 13px;
    }
    .sidebar-welcome {
        margin-top: 18px;
    }
}

/* Icone coerenti per la navigazione Speedy TV */
aside nav a {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .82;
    transition: color .18s ease, opacity .18s ease, transform .18s ease;
}
aside nav a:hover .sidebar-icon {
    opacity: 1;
    transform: translateX(1px);
}
aside nav a.active .sidebar-icon {
    color: #00d9ff;
    opacity: 1;
}

/* SPEEDY TV - VARIANTE 2: icone con sfondo colorato */
aside nav a {
    min-height: 44px;
    box-sizing: border-box;
    gap: 12px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

aside nav a .sidebar-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    padding: 7px;
    box-sizing: content-box;
    border-radius: 10px;
    background: rgba(0, 217, 255, .10);
    color: #22dfff;
    stroke: currentColor;
    opacity: 1;
    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

/* Colori distinti per ogni icona */
aside nav a[href*="section=home"] .sidebar-icon {
    color: #25e5ff;
    background: rgba(0, 217, 255, .14);
}
aside nav a[href*="section=live"] .sidebar-icon {
    color: #38cfff;
    background: rgba(0, 174, 255, .14);
}
aside nav a[href*="section=movies"] .sidebar-icon {
    color: #bd8aff;
    background: rgba(145, 75, 255, .17);
}
aside nav a[href*="section=series"] .sidebar-icon {
    color: #ff83b7;
    background: rgba(255, 70, 145, .15);
}
aside nav a[href*="section=epg"] .sidebar-icon {
    color: #43efd0;
    background: rgba(0, 220, 170, .14);
}
aside nav a[href*="section=profile"] .sidebar-icon {
    color: #ffd16b;
    background: rgba(255, 185, 35, .15);
}

/* Passaggio del mouse */
aside nav a:hover {
    background: rgba(0, 217, 255, .07);
    border-color: rgba(0, 217, 255, .16);
    transform: translateX(2px);
}
aside nav a:hover .sidebar-icon {
    transform: scale(1.06);
    box-shadow: 0 0 13px rgba(0, 217, 255, .12);
}

/* Voce selezionata */
aside nav a.active {
    background: linear-gradient(
        110deg,
        rgba(0, 217, 255, .17),
        rgba(0, 174, 232, .06)
    );
    border-color: rgba(0, 217, 255, .20);
    box-shadow: inset 3px 0 0 #00d9ff;
}
aside nav a.active .sidebar-icon {
    background: linear-gradient(135deg, #00d9ff, #087dce);
    color: #03111d;
    box-shadow: 0 0 16px rgba(0, 217, 255, .18);
}

/* Focus visibile per tastiera e telecomando */
aside nav a:focus-visible,
aside form button:focus-visible {
    outline: 3px solid #00d9ff;
    outline-offset: 3px;
    border-color: #00d9ff;
    box-shadow: 0 0 0 5px rgba(0, 217, 255, .13);
    position: relative;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    aside nav a,
    aside nav a .sidebar-icon {
        transition: none;
    }
}


/* Focus telecomando per le schede Film e Serie */
.catalog-card-link {
    display: block;
    border-radius: 14px;
    outline: none;
    scroll-margin: 24px;
    -webkit-tap-highlight-color: transparent;
}
.catalog-card-link:focus-visible {
    outline: 3px solid #00d9ff;
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(0,217,255,.14),
                0 0 24px rgba(0,217,255,.22);
    position: relative;
    z-index: 3;
}
.catalog-card-link:focus-visible .catalog-card {
    border-color: rgba(0,217,255,.7);
    transform: scale(1.025);
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
@media (prefers-reduced-motion: reduce) {
    .catalog-card-link,
    .catalog-card-link .catalog-card {
        transition: none !important;
    }
}

/* SPEEDY TV - Catalogo Film e Serie: layout rifinito */
.catalog-page .catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 220px));
    justify-content: start;
    align-items: start;
    gap: 22px;
    width: 100%;
}

.catalog-page .catalog-card-link {
    display: block;
    width: 100%;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 15px;
    outline: none;
    scroll-margin: 28px;
}

.catalog-page .catalog-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: linear-gradient(145deg, #111925, #0b1019);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.catalog-page .catalog-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #080d15;
}

.catalog-page .catalog-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #080d15;
}

.catalog-page .catalog-card-info {
    padding: 15px;
}

.catalog-page .catalog-card-info h2 {
    color: #f5f8ff;
    font-size: 15px;
    line-height: 1.45;
    margin: 0;
}

.catalog-page .catalog-card-info p {
    color: #a4b0c3;
    font-size: 12px;
    line-height: 1.55;
}

.catalog-page .catalog-card-link:focus-visible {
    outline: 3px solid #00d9ff;
    outline-offset: 4px;
    box-shadow: 0 0 0 7px rgba(0,217,255,.13),
                0 0 26px rgba(0,217,255,.20);
    position: relative;
    z-index: 3;
}

.catalog-page .catalog-card-link:focus-visible .catalog-card {
    border-color: #00d9ff;
    transform: scale(1.025);
    box-shadow: 0 14px 34px rgba(0,0,0,.35);
}

@media (max-width: 900px) {
    .catalog-page .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .catalog-page .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .catalog-page .catalog-card-info {
        padding: 11px;
    }
    .catalog-page .catalog-card-info h2 {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-page .catalog-card,
    .catalog-page .catalog-card-link {
        transition: none !important;
    }
}


/* SPEEDY TV — Catalogo stile Netflix / Android TV */
.catalog-page .catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
    align-items: start;
    width: 100%;
}

.catalog-page .catalog-card-link {
    display: block;
    min-width: 0;
    width: 100%;
    border-radius: 15px;
    color: inherit;
    text-decoration: none;
    outline: none;
    scroll-margin: 28px;
}

.catalog-page .catalog-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: linear-gradient(155deg, #111925, #090e17);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.catalog-page .catalog-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #080d15;
}

.catalog-page .catalog-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .25s ease;
}

.catalog-page .catalog-no-poster {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: grid;
    place-items: center;
    font-size: 36px;
    background: radial-gradient(ellipse at top right, #12344a, #080d15 70%);
}

.catalog-page .catalog-card-info {
    padding: 15px 16px 17px;
}

.catalog-page .catalog-card-info h2 {
    margin: 0;
    color: #f5f8ff;
    font-size: 16px;
    line-height: 1.4;
}

.catalog-page .catalog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    color: #00d9ff;
    font-size: 12px;
    font-weight: 700;
}

.catalog-page .catalog-card-info p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 10px 0 0;
    color: #a5b1c3;
    font-size: 12px;
    line-height: 1.55;
}

.catalog-page .catalog-card-link:hover .catalog-card,
.catalog-page .catalog-card-link:focus-visible .catalog-card {
    border-color: rgba(0,217,255,.8);
    box-shadow: 0 12px 32px rgba(0,0,0,.38),
                0 0 22px rgba(0,217,255,.14);
}

.catalog-page .catalog-card-link:hover .catalog-poster img,
.catalog-page .catalog-card-link:focus-visible .catalog-poster img {
    transform: scale(1.035);
}

.catalog-page .catalog-card-link:focus-visible {
    outline: 3px solid #00d9ff;
    outline-offset: 4px;
    position: relative;
    z-index: 3;
}

@media (max-width: 900px) {
    .catalog-page .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .catalog-page .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .catalog-page .catalog-card-info {
        padding: 11px;
    }
    .catalog-page .catalog-card-info h2 {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-page .catalog-card,
    .catalog-page .catalog-poster img {
        transition: none !important;
    }
}


/* Rifinitura card panoramiche Speedy TV */
.catalog-page .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 340px));
    justify-content: start;
    gap: 22px;
}

.catalog-page .catalog-poster {
    aspect-ratio: 16 / 9;
    background: #080d15;
}

.catalog-page .catalog-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #080d15;
}

@media (max-width: 700px) {
    .catalog-page .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* SPEEDY TV — catalogo con locandine verticali complete */
.catalog-page .catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 250px));
    justify-content: start;
    align-items: start;
    gap: 22px;
    width: 100%;
}

.catalog-page .catalog-card-link {
    display: block;
    width: 100%;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 15px;
    outline: none;
}

.catalog-page .catalog-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: linear-gradient(155deg, #111925, #090e17);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.catalog-page .catalog-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #080d15;
}

.catalog-page .catalog-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #080d15;
}

.catalog-page .catalog-card-info {
    padding: 14px;
}

.catalog-page .catalog-card-info h2 {
    margin: 0;
    color: #f5f8ff;
    font-size: 15px;
    line-height: 1.45;
}

.catalog-page .catalog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    color: #00d9ff;
    font-size: 12px;
    font-weight: 700;
}

.catalog-page .catalog-card-info p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 9px 0 0;
    color: #a5b1c3;
    font-size: 12px;
    line-height: 1.55;
}

.catalog-page .catalog-card-link:hover .catalog-card,
.catalog-page .catalog-card-link:focus-visible .catalog-card {
    border-color: #00d9ff;
    box-shadow: 0 12px 32px rgba(0,0,0,.38),
                0 0 22px rgba(0,217,255,.14);
}

.catalog-page .catalog-card-link:focus-visible {
    outline: 3px solid #00d9ff;
    outline-offset: 4px;
    position: relative;
    z-index: 3;
}

@media (max-width: 900px) {
    .catalog-page .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .catalog-page .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .catalog-page .catalog-card-info {
        padding: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-page .catalog-card {
        transition: none !important;
    }
}


/* Speedy TV - trama allineata alla colonna del player */
.catalog-detail-main .catalog-detail-plot {
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    margin: 20px 0 0;
}

.catalog-detail-main .catalog-detail-plot p {
    overflow-wrap: anywhere;
    line-height: 1.6;
}


/* Fix larghezza trama nella pagina dettaglio */
.catalog-detail-main {
    width: 100%;
    min-width: 0;
}

.catalog-detail-main .catalog-detail-plot {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
}

.catalog-detail-main .catalog-detail-plot p {
    display: block;
    width: 100%;
    max-width: none;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.6;
}


/* Allineamento finale della trama */
.catalog-detail-main .catalog-detail-plot {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}


/* Speedy TV - allineamento trama con il player */
.catalog-detail-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.catalog-detail-main .catalog-detail-plot {
    position: relative;
    left: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

.catalog-detail-main .catalog-detail-plot h3,
.catalog-detail-main .catalog-detail-plot p {
    margin-left: 0;
    padding-left: 0;
}


/* Speedy TV - selettore stagioni e carosello episodi */
.speedy-series-navigation {
    width: 100%;
    margin: 30px 0 24px;
    color: #f5f8ff;
}
.speedy-season-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 0 auto 20px;
}
.speedy-season-label {
    min-width: 220px;
    text-align: center;
    color: #00d9ff;
    font-size: 19px;
    font-weight: 800;
}
.speedy-carousel-arrow {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0,217,255,.5);
    border-radius: 50%;
    background: rgba(0,217,255,.09);
    color: #00d9ff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.speedy-carousel-arrow:hover,
.speedy-carousel-arrow:focus-visible {
    outline: none;
    background: #00d9ff;
    color: #07101c;
}
.speedy-season-episodes[hidden] {
    display: none !important;
}
.speedy-episode-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.speedy-episode-track {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 14px;
    overflow-x: auto;
    padding: 10px 4px 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #00d9ff rgba(255,255,255,.08);
}
.speedy-episode-card {
    display: flex;
    flex: 0 0 220px;
    min-height: 100px;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    background: linear-gradient(145deg, #172337, #0d1523);
    color: #f5f8ff;
    text-decoration: none;
    transition: border-color .18s, background .18s, transform .18s;
}
.speedy-episode-card:hover,
.speedy-episode-card:focus-visible {
    outline: none;
    border-color: #00d9ff;
    transform: translateY(-2px);
}
.speedy-episode-card.is-selected {
    border: 2px solid #00d9ff;
    background: linear-gradient(145deg, rgba(0,217,255,.22), #102438);
    box-shadow: 0 0 18px rgba(0,217,255,.16);
}
.speedy-episode-number {
    color: #00d9ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}
.speedy-episode-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}
.speedy-episode-playing {
    color: #00d9ff;
    font-size: 10px;
    font-weight: 800;
}
@media (max-width: 600px) {
    .speedy-episode-row { gap: 6px; }
    .speedy-carousel-arrow { flex-basis: 34px; width: 34px; height: 34px; }
    .speedy-season-picker { gap: 12px; }
    .speedy-season-label { min-width: 0; font-size: 16px; }
    .speedy-episode-card { flex-basis: 190px; }
}

/* Speedy TV - allineamento frecce del carosello */
.speedy-episode-row {
    align-items: center !important;
}

.speedy-episode-row > .speedy-carousel-arrow {
    align-self: center !important;
    flex-shrink: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: translateY(-2px);
}

.speedy-episode-track {
    align-items: stretch;
    justify-content: flex-start;
}

.speedy-episode-card {
    align-self: center;
    box-sizing: border-box;
}

.speedy-season-picker > .speedy-carousel-arrow {
    align-self: center;
    margin: 0 !important;
    transform: none;
}

/* Correzione definitiva: frecce vicine alle schede episodi */
.speedy-series-navigation {
    width: min(100%, 1000px);
    margin-left: auto;
    margin-right: auto;
}

.speedy-episode-row {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center !important;
    gap: 14px !important;
    width: min(100%, 900px);
    margin: 0 auto;
}

.speedy-episode-row > .speedy-carousel-arrow {
    position: static !important;
    justify-self: center;
    align-self: center !important;
    margin: 0 !important;
    transform: none !important;
}

.speedy-episode-track {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: flex-start;
}

.speedy-episode-card {
    flex: 0 0 220px;
}

@media (max-width: 600px) {
    .speedy-episode-row {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 6px !important;
    }

    .speedy-episode-card {
        flex-basis: 190px;
    }
}

/* Frecce perfettamente centrate nei cerchi */
.speedy-carousel-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-sizing: border-box;
}

/* Stagioni: frecce più vicine all'etichetta centrale */
.speedy-season-picker {
    gap: 8px !important;
}

/* Episodi: frecce vicine al gruppo di schede */
.speedy-episode-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.speedy-episode-row > .speedy-carousel-arrow {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
}

/* Mostra al massimo cinque schede per volta su desktop */
.speedy-episode-track {
    flex: 0 1 auto !important;
    width: min(100%, 1160px) !important;
    max-width: 1160px !important;
    min-width: 0 !important;
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
}

.speedy-episode-card {
    flex: 0 0 calc((100% - 48px) / 5) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    scroll-snap-align: start;
}

@media (max-width: 900px) {
    .speedy-episode-track {
        max-width: 620px !important;
    }

    .speedy-episode-card {
        flex-basis: 180px !important;
    }
}

@media (max-width: 600px) {
    .speedy-episode-row {
        gap: 5px !important;
    }

    .speedy-episode-row > .speedy-carousel-arrow {
        flex-basis: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }

    .speedy-episode-track {
        max-width: calc(100vw - 110px) !important;
    }

    .speedy-episode-card {
        flex-basis: 160px !important;
    }
}

/* Avvicina le frecce al contenuto del carosello */
.speedy-season-picker {
    gap: 4px !important;
}

.speedy-season-picker > .speedy-carousel-arrow {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
}

.speedy-episode-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.speedy-episode-row > .speedy-carousel-arrow {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
}

.speedy-episode-track {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: min(760px, calc(100% - 78px)) !important;
    gap: 8px !important;
}

.speedy-episode-card {
    flex: 0 0 140px !important;
    min-height: 84px !important;
    padding: 12px !important;
}

/* Selettore stagione: frecce più vicine alla scritta */
.speedy-season-picker {
    display: flex !important;
    width: fit-content !important;
    max-width: 100%;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.speedy-season-picker .speedy-season-label {
    min-width: 0 !important;
    width: auto !important;
    padding: 0 2px !important;
    white-space: nowrap;
    text-align: center;
}

.speedy-season-picker > .speedy-carousel-arrow {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* Speedy TV - profilo account */
.profile-page {
    padding: 24px;
    color: #f4f8fc;
}
.profile-heading {
    padding: 22px 24px;
    margin-bottom: 18px;
    border: 1px solid #123b4b;
    border-radius: 16px;
    background: linear-gradient(120deg, #0a1c29, #07111b);
}
.profile-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
}
.profile-heading p,
.profile-account-info p,
.profile-panel-heading p {
    margin: 0;
    color: #91aabd;
}
.profile-account {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px;
    margin-bottom: 14px;
    border: 1px solid #07506a;
    border-radius: 16px;
    background: linear-gradient(120deg, #071b28, #06111b);
}
.profile-avatar {
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    display: grid;
    place-items: center;
    border: 3px solid #00d9ff;
    border-radius: 50%;
    background: #073244;
}
.profile-avatar svg {
    width: 44px;
    fill: none;
    stroke: #00d9ff;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.profile-account-info h2 {
    margin: 0 0 5px;
    font-size: 25px;
}
.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    padding: 7px 12px;
    border: 1px solid currentColor;
    border-radius: 9px;
    font-weight: 700;
}
.profile-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
}
.profile-status.is-active,
.profile-stat strong.is-active { color: #24e985; }
.profile-status.is-inactive,
.profile-stat strong.is-inactive { color: #ff7272; }
.profile-status.is-unknown { color: #ffca65; }
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.profile-stat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #104256;
    border-radius: 15px;
    background: linear-gradient(145deg, #071a27, #06111b);
}
.profile-stat-icon,
.profile-panel-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #00d9ff;
    background: #073244;
    font-size: 27px;
    font-weight: 700;
}
.profile-stat p {
    margin: 3px 0 8px;
    color: #a8bdcc;
    font-size: 14px;
}
.profile-stat strong {
    display: block;
    overflow-wrap: anywhere;
    color: #00d9ff;
    font-size: 22px;
}
.profile-stat small {
    display: block;
    margin-top: 8px;
    color: #91aabd;
    line-height: 1.4;
}
.profile-panel {
    padding: 20px;
    border: 1px solid #104256;
    border-radius: 16px;
    background: linear-gradient(145deg, #071a27, #06111b);
}
.profile-panel-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.profile-panel-heading h2 {
    margin: 0 0 5px;
    font-size: 20px;
}
.profile-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.profile-detail {
    padding: 14px;
    border-right: 1px solid #123b4b;
    overflow-wrap: anywhere;
}
.profile-detail span {
    display: block;
    margin-bottom: 8px;
    color: #a8bdcc;
    font-size: 14px;
}
.profile-detail strong {
    color: #00d9ff;
}
.profile-note {
    color: #829bad;
    font-size: 12px;
    margin: 14px 2px 0;
}
@media (max-width: 1100px) {
    .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .profile-page { padding: 14px; }
    .profile-account { padding: 16px; gap: 14px; }
    .profile-avatar { width: 62px; height: 62px; flex-basis: 62px; }
    .profile-avatar svg { width: 34px; }
    .profile-account-info h2 { font-size: 20px; }
    .profile-stats, .profile-details { grid-template-columns: 1fr; }
    .profile-detail { border-right: 0; border-bottom: 1px solid #123b4b; }
}

/* Profilo: allineamento verticale del riquadro account */
.profile-account {
    align-items: center;
    padding-top: 26px;
    padding-bottom: 26px;
}


/* Profilo: centratura del contenuto account */
.profile-account {
    display: flex;
    align-items: center;
    padding: 22px 22px 30px !important;
}

.profile-account-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

