
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

.hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border-radius: 24px;
    padding: 42px 32px;
    margin-bottom: 28px;
    position:relative;
    overflow:hidden;
    padding-right:420px;
}

.hero h1 {
    margin: 0;
    font-size: 42px;
    letter-spacing: -1px;
}

.hero h2 {
    margin: 12px 0 8px;
    font-size: 28px;
    font-weight: 600;
}

.hero p {
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: 18px;
}

.hero a {
    display: inline-block;
    background: #22c55e;
    color: #06220f;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
}

.intro-box {
    background: white;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 22px;
    border: 1px solid #e5e7eb;
}

.intro-box strong {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

.layout {
    display: grid;
    grid-template-columns: 1.35fr .75fr;
    gap: 22px;
    align-items: start;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #e5e7eb;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 22px;
}

#sportup-detail {
    min-height: 40px;
}

.empty-detail {
    color: #64748b;
    line-height: 1.5;
}

.note {
    margin-top: 24px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

@media (max-width: 850px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero h2 {
        font-size: 22px;
    }
}


.standings-panel {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.standings-panel h3 {
    margin: 0 0 12px;
}



.su-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #27292d;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.su-tabs a {
    color: #20d4c7;
    text-align: center;
    padding: 10px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.su-tabs a.active {
    background: #20c9bc;
    color: #071314;
}

.su-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    background: #2b2d31;
    color: #fff;
    border: 1px solid #555;
}

.su-list {
    background: #2b2d31;
    color: white;
    max-height: 820px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
}

.su-league-head {
    cursor: pointer;
    list-style: none;
    color:#fff;
    padding:10px 14px;
    font-weight:700;
    border-top:1px solid #50545d;
    border-left:4px solid #2ec9c3;
    background:#35373c;

}

.su-league-head::-webkit-details-marker {
    display: none;
}

.su-league-head::before {
    content: "▾";
    margin-right: 8px;
    color: #20d4c7;
}

.su-league-block:not([open]) .su-league-head::before {
    content: "▸";
}

.su-league-block:not([open]) .su-league-head {
    padding: 8px 10px;
    opacity: .82;
}

.su-league-head span{

    background:#2ec9c3;
    color:#07131d;
    padding:2px 8px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}

.su-league-block[open] .su-league-head{
    background:#444850;
}

.su-match {
    display: grid;
    grid-template-columns: 24px 45px 1fr 60px 1fr 50px;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border-top: 1px solid #444;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all .18s ease;
    line-height: 1.25;
    min-height: 30px;
}

.su-match.active {
    background: linear-gradient(
        90deg,
        rgba(32,212,199,.18),
        rgba(32,212,199,.05)
        );
    background:#18454a !important;
    border-left:4px solid #26d6d1;
    box-shadow:
        inset 0 0 0 1px rgba(32,212,199,.20);
    transform: translateX(2px);
}

.su-match:hover {
    background: rgba(32,212,199,.08);
}

.su-status {
    color: #22c55e;
    font-weight: 700;
}

.su-score {
    text-align: center;
    font-weight: 700;
}

.su-time {
    text-align: right;
    color: #cbd5e1;
}

.away {
    text-align: right;
}

#sportup-team{
    display:flex;
    gap:12px;
}


#sportup-team api-sports-widget{
    flex:1;
    min-width:220px;
}


.standings-title{
    font-size:14px;
    color:#64748b;
    margin-bottom:8px;
}

.su-standing-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.su-standing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.su-standing-table th {
    background: #202226;
    color: white;
    text-align: left;
    padding: 7px;
}

.su-standing-table td {
    padding: 7px;
    border-bottom: 1px solid #e5e7eb;
}

.su-standing-table .home-row {
    background: #dcfce7;
    font-weight: 700;
}

.su-standing-table .away-row {
    background: #ffe4e6;
    font-weight: 700;
}


.teams-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

@media (max-width: 900px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }
}




#sportup-standings{
    background:#f8fafc;
    padding:10px;
    border-radius:14px;
}



.jupiter-title{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:20px;
    font-size:56px;
    font-weight:900;
    line-height:1;
    letter-spacing:-2px;
}

.jupiter-title .planet{
    font-size:44px;
    transform:rotate(-12deg);
    display:inline-block;
}

.brand{
    font-size:58px;
    font-weight:900;
    color:white;
}

.sport-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;

    width: 100%;
    max-width: 100%;

    margin-top: 12px;
    margin-left: 6px;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;

    scrollbar-width: none;
}

.sport-tabs::-webkit-scrollbar {
    display: none;
}

.sport-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 16px;
min-height: 36px;
font-size: 14px;
border-radius: 8px;
}


.date-nav-mini strong{
    min-width:100px;
    text-align:center;
    display:inline-block;
}

.date-nav-mini a:hover{
    background:#eef2f7;
}


.team-card-custom{
    background:#2b2d31;
    color:white;
    border-radius:8px;
    padding:12px;
    min-height:150px;
    display:flex;
    gap:12px;
    align-items:flex-start;
}

.team-logo-custom{
    width:74px;
    height:74px;
    object-fit:contain;
    background:#3a3b3f;
    border-radius:10px;
    padding:8px;
}

.team-info-custom{
    font-size:13px;
    line-height:1.45;
}

.team-info-custom strong{
    display:block;
    font-size:16px;
    margin-bottom:6px;
}

.competitor-panel {
    margin-top: 0;
    padding-top: 0;
}

.analysis-panel{
    margin-top:18px;
    background:#2f3136;
    border-radius:12px;
    padding:18px;
}

.analysis-panel h3{
    margin:0 0 14px;
    color:#fff;
    font-size:18px;
}

.analysis-empty{
    color:#b9bec7;
    font-size:14px;
}


.right-tabs{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:6px;
    margin:18px 0 14px;
}

.right-tabs button{
    border:0;
    border-radius:8px;
    padding:9px 6px;
    background:#2b2d31;
    color:#20d4c7;
    font-weight:700;
    font-size:12px;
    cursor:pointer;
}

.right-tabs button.active{
    background:#20c9bc;
    color:#071314;
}

.tab-panel{
    display:none;
}

.tab-panel.active{
    display:block;
}


.analysis-box{
    background:#2f3136;
    color:white;
    border-radius:12px;
    padding:16px;
}

.analysis-box h3{
    margin:0 0 16px;
    font-size:18px;
}

.analysis-section{
    border-top:1px solid #444851;
    padding-top:14px;
    margin-top:14px;
}

.analysis-section:first-of-type{
    border-top:0;
    margin-top:0;
    padding-top:0;
}

.analysis-title{
    color:#20d4c7;
    font-weight:800;
    font-size:13px;
    text-transform:uppercase;
    margin-bottom:10px;
}

.analysis-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.analysis-card{
    background:#24262b;
    border-radius:10px;
    padding:12px;
    border-left:4px solid #64748b;
}

.analysis-card.good{
    border-left-color:#22c55e;
}

.analysis-card.warn{
    border-left-color:#f59e0b;
}

.analysis-card strong{
    display:block;
    font-size:15px;
}

.analysis-card span{
    display:block;
    color:#cbd5e1;
    font-size:13px;
    margin:4px 0 8px;
}

.form-line{
    letter-spacing:2px;
    font-weight:800;
    color:#fff;
}

.analysis-list div,
.analysis-notes p{
    margin:8px 0;
    color:#e5e7eb;
    font-size:14px;
}

.h2h-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.h2h-row div{
    background:#24262b;
    border-radius:10px;
    padding:12px;
    text-align:center;
}

.h2h-row strong{
    display:block;
    font-size:24px;
    color:#20d4c7;
}

.h2h-row span{
    font-size:12px;
    color:#cbd5e1;
}

.jupiter-index{
    margin-top:18px;
    background:#202226;
    border-radius:12px;
    padding:14px;
}

.jupiter-index span{
    display:block;
    font-size:13px;
    color:#cbd5e1;
    margin-bottom:8px;
}

.index-bar{
    height:10px;
    background:#3a3d44;
    border-radius:999px;
    overflow:hidden;
    margin-bottom:8px;
}

.index-bar div{
    height:100%;
    background:#20d4c7;
}

.jupiter-index strong{
    font-size:18px;
}

@media(max-width:600px){
    .analysis-grid{
        grid-template-columns:1fr;
    }
}

.market-panel{
    background:#2f3136;
    color:white;
    border-radius:12px;
    padding:16px;
}

.market-panel h3{
    margin:0 0 16px;
    font-size:18px;
}

.market-odds-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.market-odd-card{
    background:#24262b;
    border-radius:10px;
    padding:14px 10px;
    text-align:center;
    border-top:4px solid #64748b;
}

.market-odd-card.home{
    border-top-color:#22c55e;
}

.market-odd-card.draw{
    border-top-color:#f59e0b;
}

.market-odd-card.away{
    border-top-color:#ef4444;
}

.market-odd-card span{
    display:block;
    color:#cbd5e1;
    font-size:12px;
    margin-bottom:6px;
    text-transform:uppercase;
    font-weight:700;
}

.market-odd-card strong{
    font-size:24px;
}

.market-reading{
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid #444851;
}

.market-title{
    color:#20d4c7;
    font-weight:800;
    font-size:13px;
    text-transform:uppercase;
    margin-bottom:10px;
}

.market-reading p{
    margin:8px 0;
    color:#e5e7eb;
    font-size:14px;
}

.market-balance{
    margin-top:16px;
    background:#202226;
    border-radius:12px;
    padding:14px;
}

.market-balance span{
    display:block;
    font-size:13px;
    color:#cbd5e1;
    margin-bottom:8px;
}

.market-bar{
    height:10px;
    background:#3a3d44;
    border-radius:999px;
    overflow:hidden;
    margin-bottom:8px;
}

.market-bar div{
    height:100%;
    background:#20d4c7;
}

.market-balance strong{
    font-size:18px;
}

@media(max-width:900px){
    .market-odds-grid{
        grid-template-columns:1fr;
    }
}

.su-standing-table .home-row{
    background:#c8f7d3 !important;
    border-left:5px solid #21d07a;
    font-weight:800;
}

.su-standing-table .away-row{
    background:#ffd4d4 !important;
    border-left:5px solid #ff6b6b;
    font-weight:800;
}


.market-extra{
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid #444851;
}

.market-mini{
    background:#202226;
    border-radius:10px;
    padding:10px;
    margin-top:10px;
}

.market-mini strong{
    display:block;
    color:white;
    margin-bottom:8px;
    font-size:13px;
}

.market-mini span{
    display:inline-block;
    background:#2f3136;
    color:#e5e7eb;
    border-radius:999px;
    padding:5px 8px;
    font-size:12px;
    margin:3px 4px 3px 0;
}

.date-nav-mini{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
    margin:8px 0;
}

.date-nav-mini a{
    color:#35d6d0;
    font-weight:700;
    text-decoration:none;
    font-size:16px;
}

.date-nav-mini strong{
    color:#fff;
    background:#2d3036;
    padding:4px 16px;
    border-radius:20px;
    font-size:14px;
    letter-spacing:.5px;
}



.competitor-head{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:24px;
    margin-bottom:10px;
    font-size:13px;
    font-weight:700;
    letter-spacing:1px;
}

.competitor-head .home{
    color:#22c55e;
}

.competitor-head .vs{
    color:#9ca3af;
}

.competitor-head .away{
    color:#ff5b5b;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}

.hero-btn{
    background:#2d3748;
    color:#fff;
    padding:10px 18px;
    border-radius:999px;
    text-decoration:none;
    font-weight:600;
    transition:.2s;
}

.hero-btn:hover{
    background:#14c8c4;
    color:#111;
}


.market-table {
    padding: 12px;
}

.market-table > strong {
    display: block;
    margin-bottom: 10px;
    color: #fff;
}

.market-table-row {
    display: grid;
    gap: 8px;
}

.market-table-row.three {
    grid-template-columns: repeat(3, 1fr);
}

.market-table-row.two {
    grid-template-columns: repeat(2, 1fr);
}

.market-table-row div {
    background: #2b2f38;
    border-radius: 10px;
    padding: 9px 6px;
    text-align: center;
}

.market-table-row span {
    display: block;
    font-size: 10px;
    color: #30d5c8;
    font-weight: 800;
    margin-bottom: 4px;
}

.market-table-row b {
    display: block;
    font-size: 16px;
    color: #fff;
}

.football-summary{
    margin:6px 0 12px;
    font-size:13px;
    color:#7f8c9d;
    font-weight:600;
}


.watch-btn{
    width:10px;
    height:10px;
    border-radius:50%;
    border:1px solid #6b7280;
    background:transparent;
    cursor:pointer;
    padding:0;
    margin:auto;
    display:block;
    transition:all .15s ease;
}

.watch-btn:hover{
    transform:scale(1.25);
}

.watch-btn.is-watched{
    background:#ffc107;
    box-shadow:0 0 4px rgba(255,193,7,.45);
    border-color:#f6c343;
}


.hero-btn-secondary{
    width:auto;
    display:inline-flex;
}

/*--------------------------------------------------
  HERO ACTIONS
--------------------------------------------------*/

.hero-home-btn,
.hero-lang-btn,
.hero-user-btn{
    width:40px;
    height:40px;

    margin-left:12px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    border:1px solid rgba(255,255,255,.15);
    border-radius:50%;

    background:transparent;
    color:#d7dde6;

    font-size:18px;
    cursor:pointer;

    transition:all .18s ease;
}

.hero-home-btn:hover,
.hero-lang-btn:hover,
.hero-user-btn:hover{
    background:rgba(255,255,255,.08);
    border-color:rgba(255,255,255,.30);
    color:#ffffff;

    transform:translateY(-1px);
}


.hero-home-btn{
    margin-left:28px;
}

.hero-lang-btn,
.hero-user-btn{
    margin-left:8px;
}



.jupiter-title-button {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 28px;
    flex-shrink: 0;
}

.hero-icon-btn {
    width: 46px;
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;

    background: transparent;
    color: #fff;

    font-size: 20px;
    line-height: 1;
    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.hero-icon-btn:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .32);
    transform: translateY(-1px);
}


.jupiter-title-row {
    display: flex;
    align-items: center;
}


@media (max-width: 700px) {

    .jupiter-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .jupiter-title-button {
        margin-left: 0;
        margin-top: 14px;
        gap: 10px;
    }

    .hero-icon-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}


@media (max-width:700px){

    .hero-actions{
        gap:10px;
    }

    .hero-btn{
        padding:16px 22px;
        font-size:14px;
    }

}



.hero-player{
    position:absolute;
    right:-20px;
    bottom:-10px;

    width:min(38vw, 600px);
    max-height:95%;
    object-fit:contain;

    pointer-events:none;
    user-select:none;

    z-index:1;
}

@media (max-width:1000px){

    .hero{
        padding-right:40px;
    }

    .hero-player{
        width:340px;
        right:-70px;
        opacity:.28;
    }
}


@media (max-width:700px){

    .hero{
        padding-right:28px;
    }

    .hero-player{
        width:300px;
        right:-110px;
        bottom:20px;
        opacity:.16;
    }
}


.user-level {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0.8;
}



.intro-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.intro-title strong {
    margin: 0;
}

.context-help-button {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #eef1f5;
    color: #152238;

    cursor: pointer;

    font-size: 14px;
    font-weight: 700;
}

.context-help-button:hover {
    background: #dfe4eb;
}



.hero-btn-disabled{

    opacity:.45;

    pointer-events:none;

    cursor:default;

    filter:grayscale(.25);

}


.su-match[hidden] {
    display: none !important;
}



.jupiter-footer {
    margin-top: 32px;
    padding: 24px 0px;
    border-top: 1px solid #d8dee8;
    color: #526078;
    font-size: 13px;
}

.jupiter-footer-main {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}

.jupiter-footer-brand {
    max-width: 560px;
}

.jupiter-footer-brand strong {
    display: block;
    margin-bottom: 8px;
    color: #162238;
    font-size: 16px;
}

.jupiter-footer-brand p {
    margin: 0;
    line-height: 1.6;
}

.jupiter-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.jupiter-footer-links a,
.jupiter-footer-links button {
    padding: 0;
    border: 0;
    background: none;
    color: #435675;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.jupiter-footer-links a:hover,
.jupiter-footer-links button:hover {
    text-decoration: underline;
}

.jupiter-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e5e9f0;
    font-size: 12px;
}

.jupiter-footer-container{
    width:100%;
    max-width:1200px;      /* stessa larghezza della dashboard */
    margin:0 auto;
    padding:0 28px;
    box-sizing:border-box;
}


@media (max-width: 700px) {
    .jupiter-footer-main,
    .jupiter-footer-bottom {
        flex-direction: column;
    }

    .jupiter-footer-links {
        gap: 12px;
    }
}


.hero p.hero-young {
    margin-top: -16px;
    margin-bottom: 16px;

    font-size: 13px;
    line-height: 1.4;
    font-style: italic;
    font-weight: 400;

    color: rgba(203, 213, 225, 0.72);
}


.user-plan{
    display:block;
    margin-top:2px;
    font-size:12px;
    font-weight:600;
    opacity:.8;
}


/*--------------------------------------------------
  MOBILE - CRITERI HERO A SCORRIMENTO ORIZZONTALE
--------------------------------------------------*/

@media (max-width: 700px) {

    .hero-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;

        width: 100%;
        max-width: 100%;

        overflow-x: auto;
        overflow-y: hidden;

        padding-bottom: 6px;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hero-actions::-webkit-scrollbar {
        display: none;
    }

    .hero-actions .hero-btn {
        flex: 0 0 auto;
        white-space: nowrap;

        padding: 12px 18px;
        font-size: 14px;
    }
}


@media (max-width:700px){

    .intro-box{
        padding:16px;
    }

    .intro-box strong{
        font-size:18px;
    }

    .intro-box p{
        font-size:13px;
        line-height:1.45;
        color:#5b6778;
    }

}


/*--------------------------------------------------
  MOBILE - TESTATA FOOTBALL PIÙ COMPATTA
--------------------------------------------------*/

@media (max-width:700px){

    .card{
        padding:12px;
    }

    .card h3{
        font-size:18px;
        margin-bottom:4px;
    }

    .football-summary{
        font-size:11px;
        line-height:1.25;
        margin:0 0 5px;
    }

    .date-nav-mini{
        margin:3px 0 5px;
        gap:10px;
    }

    .date-nav-mini strong{
        min-width:82px;
        font-size:11px;
        padding:3px 10px;
    }

    .date-nav-mini a{
        font-size:14px;
    }

    .su-tabs a{
        font-size:11px;
        padding:7px 4px;
    }

    .su-search input{
        font-size:11px;
        padding:7px 10px;
    }

}


@media (max-width:700px){

    .hero-player{
        display:none;
    }

}


/*--------------------------------------------------
  MOBILE - LISTA CAMPIONATI PIÙ COMPATTA
--------------------------------------------------*/

@media (max-width:700px){

    .su-league-head{
        padding:8px 10px;
        font-size:13px;
        line-height:1.25;
    }

    .su-league-block:not([open]) .su-league-head{
        padding:7px 9px;
    }

    .su-league-head::before{
        margin-right:6px;
        font-size:11px;
    }

    .su-league-head span{
        padding:2px 7px;
        font-size:11px;
    }

}