/* =========================================================================
   FINAL PRESENTATION POLISH V11
   A visual-only pass: sharper hierarchy, more colour, cleaner surfaces.
   ========================================================================= */
:root{
    --unr-bg:#060817;
    --unr-panel:rgba(12,18,39,.78);
    --unr-panel-2:rgba(16,24,49,.68);
    --unr-border:rgba(116,137,190,.18);
    --unr-border-bright:rgba(129,140,248,.38);
    --unr-text:#f4f7ff;
    --unr-muted:#8491ad;
    --unr-indigo:#6366f1;
    --unr-blue:#38bdf8;
    --unr-cyan:#22d3ee;
    --unr-radius:18px;
    --unr-shadow:0 22px 70px -46px rgba(0,0,0,.95);
}
html{scroll-behavior:smooth}
body{
    background:
      radial-gradient(circle at 18% -10%,rgba(79,70,229,.24),transparent 34%),
      radial-gradient(circle at 82% 7%,rgba(14,165,233,.13),transparent 28%),
      linear-gradient(180deg,#070918 0%,#060817 46%,#050612 100%) !important;
    color:var(--unr-text);
}
#app{max-width:1180px}
header{
    position:relative;
    border-bottom-color:rgba(99,102,241,.16)!important;
}
header::after{
    content:"";
    position:absolute;
    left:50%;bottom:-1px;
    width:min(420px,70%);
    height:1px;
    transform:translateX(-50%);
    background:linear-gradient(90deg,transparent,rgba(56,189,248,.75),rgba(99,102,241,.75),transparent);
}
header img{filter:drop-shadow(0 0 18px rgba(99,102,241,.24))}
header h1{
    letter-spacing:.07em!important;
    filter:drop-shadow(0 8px 28px rgba(79,70,229,.22));
}
.franchise-shell,
.draft-stage,
.card-presentation{
    animation:unr-page-enter .28s cubic-bezier(.2,.8,.2,1);
}
.franchise-panel,
.franchise-live-score,
.analysis-scorebar,
.analysis-control,
.analysis-coach,
.analysis-table,
.analysis-moments-card,
.franchise-match-feed,
.franchise-news,
.franchise-history-dashboard-shell,
.draft-history-shell{
    border-color:var(--unr-border)!important;
    box-shadow:var(--unr-shadow),inset 0 1px 0 rgba(255,255,255,.025);
    backdrop-filter:blur(12px);
}
.franchise-section-title h2,
.franchise-release-title h2{
    letter-spacing:-.035em;
    text-shadow:0 8px 30px rgba(0,0,0,.24);
}
.franchise-kicker{
    color:#8ab4ff!important;
    letter-spacing:.16em!important;
}
button{
    transition:transform .16s ease,filter .16s ease,border-color .16s ease,background-color .16s ease,box-shadow .16s ease!important;
}
button:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.08)}
button:active:not(:disabled){transform:translateY(0) scale(.985)}
.franchise-primary,
#franchise-entry-button{
    background:linear-gradient(135deg,#4f46e5,#2563eb)!important;
    border-color:rgba(147,197,253,.26)!important;
    box-shadow:0 10px 30px -18px rgba(59,130,246,.8),inset 0 1px 0 rgba(255,255,255,.18)!important;
}
.franchise-primary:hover,
#franchise-entry-button:hover{
    box-shadow:0 14px 34px -17px rgba(59,130,246,.95),inset 0 1px 0 rgba(255,255,255,.22)!important;
}
.franchise-view-controls{
    padding:4px;
    border-radius:13px;
    background:rgba(4,8,22,.62);
    border:1px solid rgba(100,116,139,.38);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.franchise-view-controls button[aria-pressed="true"]{
    background:linear-gradient(135deg,#5548ee,#4338ca)!important;
    border-color:#8b8cff!important;
    box-shadow:0 8px 20px -12px rgba(99,102,241,.9),inset 0 1px 0 rgba(255,255,255,.16);
}
.franchise-match-clock{
    border:1px solid rgba(56,189,248,.27);
    background:linear-gradient(145deg,rgba(14,116,144,.15),rgba(30,41,59,.62));
    color:#9ee8ff!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.franchise-live-score,
.analysis-scorebar{
    background:
      radial-gradient(circle at 50% 0%,rgba(99,102,241,.12),transparent 48%),
      linear-gradient(145deg,rgba(14,23,46,.88),rgba(8,14,31,.78))!important;
}
.franchise-live-numbers,
#analysis-score{
    font-variant-numeric:tabular-nums;
    text-shadow:0 6px 22px rgba(59,130,246,.16);
}
.analysis-read{
    background:linear-gradient(90deg,rgba(49,46,129,.24),rgba(30,64,175,.11),rgba(49,46,129,.17))!important;
    border-color:rgba(99,102,241,.34)!important;
}
.analysis-dual-track{
    height:7px!important;
    box-shadow:inset 0 1px 3px rgba(0,0,0,.55);
}
.analysis-table .match-analysis-row{
    transition:background .14s ease,border-color .14s ease;
}
.analysis-table .match-analysis-row:hover{
    background:rgba(99,102,241,.045);
    border-color:rgba(99,102,241,.22);
}
.analysis-table .match-analysis-row>span{
    color:#7184aa!important;
}
.franchise-news-heading{
    padding-top:18px!important;
}
.franchise-news-heading>div>strong{
    font-size:14px!important;
    letter-spacing:-.01em;
}
.franchise-match-feed-rich{
    gap:8px!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}
.franchise-news-v10 article{
    overflow:hidden;
    border:1px solid rgba(77,94,130,.26)!important;
    border-left:3px solid var(--news-accent,#64748b)!important;
    border-radius:13px;
    background:
      linear-gradient(100deg,color-mix(in srgb,var(--news-accent,#64748b) 8%,transparent),transparent 42%),
      rgba(10,16,34,.68)!important;
    box-shadow:0 12px 30px -26px rgba(0,0,0,.92);
}
.franchise-news-v10 article::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(110deg,transparent 55%,rgba(255,255,255,.018));
}
.franchise-news-v10 article.is-latest{
    border-color:color-mix(in srgb,var(--news-accent,#818cf8) 48%,rgba(77,94,130,.24))!important;
    background:
      linear-gradient(95deg,color-mix(in srgb,var(--news-accent,#818cf8) 13%,transparent),transparent 52%),
      rgba(12,19,41,.84)!important;
    box-shadow:0 14px 36px -27px color-mix(in srgb,var(--news-accent,#818cf8) 65%,black);
}
.franchise-news-v10 article[data-news-tag="SCORE"]{--news-accent:#34d399}
.franchise-news-v10 article[data-news-tag="ATTACK"]{--news-accent:#60a5fa}
.franchise-news-v10 article[data-news-tag="DEFENCE"]{--news-accent:#a78bfa}
.franchise-news-v10 article[data-news-tag="KICKING"]{--news-accent:#22d3ee}
.franchise-news-v10 article[data-news-tag="RESTART"]{--news-accent:#f59e0b}
.franchise-news-v10 article[data-news-tag="INCIDENT"]{--news-accent:#fb7185}
.franchise-news-v10 article[data-news-tag="TURNOVER"]{--news-accent:#f97316}
.franchise-news-v10 article[data-news-tag="SET PIECE"]{--news-accent:#94a3b8}
.franchise-news-v10 .franchise-live-news-title em{
    color:var(--news-accent,#a5b4fc)!important;
    border-color:color-mix(in srgb,var(--news-accent,#818cf8) 34%,transparent)!important;
    background:color-mix(in srgb,var(--news-accent,#818cf8) 10%,transparent)!important;
}
.franchise-news-v10 .franchise-live-news-title b{
    font-size:12.5px!important;
    letter-spacing:-.01em;
}
.franchise-news-v10 article>div>span{
    color:#9eabc3!important;
}
.franchise-news-v10 article>strong:first-child{
    color:#dce8ff;
    font-variant-numeric:tabular-nums;
}
.franchise-card-status{
    border-radius:12px;
    border:1px solid rgba(250,204,21,.26);
    background:rgba(113,63,18,.12);
}
.franchise-card-status span{color:#fde68a}
.franchise-match-lineups{
    border-radius:12px;
    transition:border-color .15s ease,background .15s ease;
}
.franchise-match-lineups:hover{
    border-color:rgba(99,102,241,.25);
    background:rgba(49,46,129,.045);
}
.franchise-actions,
.franchise-match-actions{
    gap:8px!important;
}
.franchise-match-actions button,
.franchise-actions button{
    border-radius:10px!important;
}
.franchise-history-dashboard-shell,
.draft-history-shell{
    background:
      radial-gradient(circle at 8% 0%,rgba(59,130,246,.11),transparent 32%),
      linear-gradient(145deg,rgba(15,23,42,.84),rgba(4,8,20,.7))!important;
}
.franchise-feature-tags span{
    border-color:rgba(99,102,241,.22)!important;
    background:rgba(79,70,229,.075)!important;
    color:#9da8ff!important;
}
footer{
    border-top-color:rgba(99,102,241,.12)!important;
}
@keyframes unr-page-enter{
    from{opacity:.35;transform:translateY(5px)}
    to{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){
    .franchise-shell,.draft-stage,.card-presentation{animation:none!important}
}


/* =========================================================================
   MATCH CENTRE FINAL ALIGNMENT V11.1
   ========================================================================= */
.franchise-halftime-paused{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:0 12px;
    border:1px solid rgba(56,189,248,.28);
    border-radius:9px;
    background:rgba(14,116,144,.10);
    color:#9ee8ff;
    font-size:9px;
    font-weight:900;
    letter-spacing:.13em;
}
.franchise-possession > div:first-child{
    grid-template-columns:minmax(130px,1fr) auto minmax(130px,1fr);
}
.franchise-possession > div:first-child span:first-child{text-align:left}
.franchise-possession > div:first-child span:last-child{text-align:right}
.franchise-possession > div:first-child small{
    color:#7890b7;
    font-weight:900;
    letter-spacing:.11em;
}
.franchise-possession-track{
    height:7px;
    border-radius:999px;
    overflow:hidden;
    background:
        linear-gradient(to right,
            var(--home-col) 0,
            var(--home-col) var(--home-pos),
            var(--away-col) var(--home-pos),
            var(--away-col) 100%);
    box-shadow:inset 0 1px 3px rgba(0,0,0,.58),0 0 18px -11px rgba(56,189,248,.55);
}
.franchise-halftime-v11{
    gap:14px;
}
.franchise-halftime-v11 .franchise-halftime-scorebar{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:18px;
    padding:15px 18px;
    border:1px solid rgba(99,102,241,.24);
    border-radius:15px;
    background:
        radial-gradient(circle at 50% 0%,rgba(99,102,241,.13),transparent 52%),
        rgba(10,17,37,.74);
    box-shadow:0 20px 50px -38px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.03);
}
.franchise-halftime-v11 .franchise-halftime-scorebar>div{
    display:flex;
    align-items:center;
    gap:9px;
}
.franchise-halftime-v11 .franchise-halftime-scorebar>div:last-child{
    justify-content:flex-end;
}
.franchise-halftime-v11 .franchise-halftime-scorebar>strong{
    font-size:24px;
    font-variant-numeric:tabular-nums;
}
.franchise-halftime-v11 .franchise-halftime-summary{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}
.franchise-halftime-v11 .franchise-halftime-summary>div{
    display:grid;
    gap:5px;
    padding:12px 14px;
    border:1px solid rgba(71,85,105,.42);
    border-radius:11px;
    background:rgba(9,15,32,.56);
}
.franchise-halftime-v11 .franchise-halftime-summary span{
    color:#7184aa;
    font-size:8px;
    font-weight:900;
    letter-spacing:.14em;
}
.franchise-halftime-v11 .franchise-halftime-summary strong{
    color:#e7edff;
    font-size:11px;
}
.franchise-halftime-v11 .franchise-halftime-tactics .franchise-tactic-grid button{
    min-height:88px;
}
.franchise-halftime-v11 .franchise-tactic-grid button.is-selected{
    border-color:#818cf8!important;
    background:
        linear-gradient(145deg,rgba(79,70,229,.20),rgba(30,64,175,.09))!important;
    box-shadow:0 12px 28px -22px rgba(99,102,241,.95),inset 0 1px 0 rgba(255,255,255,.05);
}
.franchise-halftime-lineup-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;
    margin-bottom:13px;
}
.franchise-halftime-lineup-head h3{
    margin:4px 0 0;
    font-size:16px;
}
.franchise-halftime-lineup-head>small{
    color:#64748b;
    font-size:8px;
    font-weight:900;
    letter-spacing:.11em;
}
.franchise-halftime-lineup-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
}
.franchise-halftime-player{
    display:grid;
    grid-template-columns:42px minmax(110px,1fr) minmax(150px,1.2fr);
    align-items:center;
    gap:10px;
    min-height:65px;
    padding:9px 10px;
    border:1px solid rgba(71,85,105,.35);
    border-radius:11px;
    background:rgba(7,13,29,.48);
}
.franchise-halftime-player>div:nth-child(2){
    display:grid;
    gap:2px;
}
.franchise-halftime-player>div:nth-child(2)>strong{
    color:#eef2ff;
    font-size:11px;
}
.franchise-halftime-player>div:nth-child(2)>small{
    color:#667795;
    font-size:8px;
}
.franchise-halftime-sub-options{
    display:flex;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:5px;
}
.franchise-halftime-sub-options button{
    display:grid;
    gap:1px;
    padding:6px 8px;
    border:1px solid rgba(56,189,248,.22);
    border-radius:8px;
    background:rgba(14,116,144,.08);
    color:#bdefff;
    font-size:8px;
    font-weight:900;
}
.franchise-halftime-sub-options button small{
    color:#6889a0;
    font-size:7px;
}
.franchise-halftime-no-sub{
    justify-self:end;
    color:#526079;
    font-size:7px;
    font-weight:900;
    letter-spacing:.1em;
}
.franchise-halftime-actions{
    justify-content:flex-end;
}
.franchise-halftime-actions .franchise-primary{
    min-width:210px;
}
@media(max-width:800px){
    .franchise-halftime-lineup-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
    .franchise-halftime-v11 .franchise-halftime-summary{grid-template-columns:1fr}
    .franchise-halftime-player{grid-template-columns:38px 1fr}
    .franchise-halftime-sub-options,.franchise-halftime-no-sub{grid-column:2;justify-self:stretch}
    .franchise-possession > div:first-child{grid-template-columns:1fr auto 1fr}
}


