/* Keep the original three columns: upcoming left, lineup middle, live match and wallet right. */
.dashboard-grid.home-match-showcase{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(220px,.62fr);grid-template-areas:"upcoming lineup sidebar";gap:10px;padding:0;background:transparent;border:0;border-radius:0;align-items:start;direction:ltr;margin-bottom:18px}
.home-match-showcase>*{min-width:0;box-sizing:border-box;direction:rtl}
.home-match-showcase>.home-upcoming-matches{grid-area:upcoming;align-self:start;padding:14px;background:#fff;border-radius:14px;display:flex;flex-direction:column}
.home-match-showcase>.home-lineup{grid-area:lineup}
.dashboard-grid.home-match-showcase>.home-match-sidebar{grid-area:sidebar;display:flex;flex-direction:column;gap:14px;align-self:start}
.home-match-showcase .light-card-heading{margin:0 0 12px;min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-match-showcase .light-card-heading h2{font-size:20px;line-height:1.6;margin:0}
.home-match-showcase .home-upcoming-grid{flex:none;align-content:start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;border-radius:13px;background:linear-gradient(135deg,#0c2d52,#04172f);grid-auto-rows:1fr}
.home-match-showcase .home-upcoming-item{box-sizing:border-box;height:100%;min-height:0;padding:15px 13px 13px;background:linear-gradient(145deg,#0c2b50,#061b36);border:1px solid #375879;border-radius:11px}
.home-match-showcase .home-upcoming-item h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:19px;line-height:1.5;margin:0 0 4px}
.home-match-showcase .home-upcoming-date{font-size:15px}
.home-match-showcase .home-upcoming-facts{margin:8px 0}
.home-match-showcase .home-upcoming-facts p{font-size:11px;margin:5px 0;line-height:1.7}
.home-match-showcase .home-upcoming-facts svg{width:16px;height:16px}
.home-match-showcase .home-upcoming-actions{gap:6px;margin-top:12px}
.home-match-showcase .home-upcoming-actions .wide{margin-top:0;padding:9px 7px;font-size:12px;border-radius:8px}
.home-match-showcase .live-card{display:flex;flex-direction:column;grid-area:auto;padding:16px;gap:0;align-self:stretch;min-width:0;border:1px solid #274865;border-radius:13px;background:linear-gradient(145deg,#0c2c51,#04162e);color:#fff}
.home-match-showcase .live-heading{direction:rtl;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;padding:0;min-height:30px}
.home-match-showcase .live-heading h2{font-size:20px;line-height:1.6;margin:0;color:#fff}
.featured-live-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:9px;background:#db003b;color:#fff;font-size:11px;font-weight:700;white-space:nowrap}
.featured-live-badge>span{width:8px;height:8px;border-radius:50%;background:#fff}
.home-match-showcase .featured-countdown{display:block;text-align:center;margin:0 0 12px}
.home-match-showcase .featured-countdown-label{display:block;font-size:12px;margin-bottom:7px}
.home-match-showcase .featured-countdown-units{justify-content:center;gap:6px}
.home-match-showcase .featured-countdown-unit{min-width:43px;padding:5px 8px;border-radius:8px}
.home-match-showcase .featured-countdown-unit b{font-size:21px}
.home-match-showcase .live-body{display:flex;flex-direction:column;gap:12px;margin:0;flex:1}
.home-match-showcase .live-body .video-cover{order:-1;position:relative;display:block;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:16/9;flex:none;border-radius:11px;border:1px solid #698097;overflow:hidden;grid-area:auto}
.home-match-showcase .video-cover img{display:block;width:100%;height:100%;object-fit:cover}
.home-match-showcase .video-cover .play-btn{width:54px;height:54px}
.home-match-showcase .public-cover-caption{inset:auto 8px 8px;text-align:center;font-size:11px;padding:5px 8px}
.home-match-showcase .live-body .match-info{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:0;max-height:none;width:100%;gap:7px;text-align:center;grid-area:auto}
.home-match-showcase .featured-match-name{font-size:19px;line-height:1.5;margin:0}
.home-match-showcase .match-details{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 10px;margin:0}
.home-match-showcase .match-details span{display:inline-flex;align-items:center;gap:5px;font-size:11px;line-height:1.8}
.home-match-showcase .teams-score{display:flex;justify-content:center;align-items:center;gap:15px;margin:3px 0 0;width:100%}
.home-match-showcase .team{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:11px;min-width:0}
.home-match-showcase .team .jersey{width:22px;height:26px;margin:0;flex:none}
.home-match-showcase .vs{font-size:11px;color:#aac1da}
.home-match-showcase .live-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
.home-match-showcase .live-actions>.primary{grid-column:1/-1;min-height:44px}
.home-match-showcase .live-actions a,.home-match-showcase .live-actions button{display:flex;justify-content:center;align-items:center;gap:6px;border-radius:8px;padding:10px 6px;font-size:12px;text-decoration:none;line-height:1.7;min-width:0;width:auto;grid-row:auto}
.home-match-showcase .live-actions .outline{border:1px solid #607c99;color:#fff}
.home-match-showcase .featured-broadcast-password{padding:12px 0 0;margin:0;font-size:11px}
.home-match-extras{margin-bottom:18px}

@media(min-width:731px) and (max-width:1120px){.dashboard-grid.home-match-showcase{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);grid-template-areas:"upcoming lineup" "sidebar sidebar"}.dashboard-grid.home-match-showcase>.home-match-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
@media(max-width:730px){.dashboard-grid.home-match-showcase{margin-top:16px;display:flex;flex-direction:column;gap:14px}.home-match-showcase>.home-upcoming-matches{width:100%;order:1}.home-match-showcase>.home-lineup{width:100%;order:2}.dashboard-grid.home-match-showcase>.home-match-sidebar{width:100%;order:0;display:flex}.home-match-showcase .live-card{width:100%;padding:14px}.home-match-showcase .home-upcoming-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;padding:9px;gap:9px}.home-match-showcase .home-upcoming-item{padding:13px 9px}.home-match-showcase .home-upcoming-item h3{font-size:16px}.home-match-showcase .home-upcoming-date{font-size:13px}.home-match-showcase .home-upcoming-actions .wide{font-size:11px;padding:9px 5px}.home-match-showcase .light-card-heading h2{font-size:18px}.home-match-showcase .light-card-heading a{font-size:12px}}
@media(max-width:730px){.dashboard-grid.home-match-showcase>.home-match-sidebar>.live-card{order:-1}.home-match-showcase .home-upcoming-actions{margin-top:12px}}
@media(max-width:480px){.home-match-showcase>.home-upcoming-matches{padding:10px}.home-match-showcase .home-upcoming-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}.home-match-showcase .home-upcoming-item{padding:12px 6px}.home-match-showcase .home-upcoming-item h3{font-size:14px}.home-match-showcase .home-upcoming-date{font-size:12px}.home-match-showcase .home-upcoming-actions .wide{font-size:10px;min-height:40px;padding:8px 4px}}
/* Keep the narrow right column usable at its original desktop width. */
@media(min-width:1121px){.home-match-sidebar .live-card{padding:11px}.home-match-sidebar .live-heading h2{font-size:16px}.home-match-sidebar .live-actions a,.home-match-sidebar .live-actions button{font-size:10px;padding:9px 4px}.home-match-sidebar .featured-countdown-unit{min-width:34px;padding:5px}.home-match-sidebar .featured-countdown-unit b{font-size:18px}.home-match-sidebar .featured-countdown-units{gap:4px}.home-match-sidebar .featured-match-name{font-size:17px}.home-match-sidebar .team{font-size:10px}.home-match-sidebar .teams-score{gap:8px}}

@media(min-width:731px){.home-match-showcase [data-featured-phase="upcoming"] .live-body .video-cover{display:none}}

/* Homepage wallet: card, balance and services stay together and follow the admin palette. */
.home-match-showcase #wallet.wallet-card{display:block;position:relative;overflow:hidden;box-sizing:border-box;width:100%;min-width:0;padding:16px;border:1px solid #ffffff24;border-radius:14px;background:linear-gradient(135deg,var(--wallet-start,#374151),var(--wallet-end,#111827));color:var(--wallet-text,#fff);box-shadow:0 8px 22px #081c3617}
.home-match-showcase #wallet .home-wallet-heading{display:flex;flex-direction:row;align-items:center;gap:12px;min-width:0;text-align:right}
.home-match-showcase #wallet .wallet-icon-box{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border:1px solid #ffffff55;border-radius:13px;background:linear-gradient(135deg,var(--wallet-icon-start,#1275e2),var(--wallet-icon-end,#00427f));color:var(--wallet-text,#fff)}
.home-match-showcase #wallet .wallet-icon-box svg{width:25px;height:25px}
.home-match-showcase #wallet .wallet-copy{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:2px;color:var(--wallet-text,#fff)}
.home-match-showcase #wallet .wallet-copy>b{display:block;margin:0;font-size:14px;font-weight:800;line-height:1.6;color:var(--wallet-text,#fff)}
.home-match-showcase #wallet .wallet-copy .home-wallet-balance-label{display:block;margin:2px 0 0;font-size:10px;line-height:1.5;opacity:.78;color:var(--wallet-text,#fff)}
.home-match-showcase #wallet .wallet-copy strong{display:flex;align-items:baseline;gap:6px;direction:rtl;margin:0;font-size:24px;line-height:1.25;font-weight:800;font-variant-numeric:tabular-nums;color:var(--wallet-text,#fff)}
.home-match-showcase #wallet .wallet-copy strong small{font-size:10px;font-weight:700;color:var(--wallet-text,#fff)}
.home-match-showcase #wallet .wallet-login-hint{display:block;max-width:none;margin:3px 0 0;font-size:11px;line-height:1.7;color:var(--wallet-text,#fff);opacity:.85}
.home-match-showcase #wallet .home-wallet-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:15px 0 0;padding:12px 0 0;border-top:1px solid #ffffff30}
.home-match-showcase #wallet .home-wallet-actions a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:58px;padding:8px 3px;border-radius:9px;color:#fff;font-size:9px;line-height:1.4;text-align:center;text-decoration:none}
.home-match-showcase #wallet .home-wallet-actions svg{width:18px;height:18px;flex:none}
.home-match-showcase #wallet .home-wallet-actions a:first-child{background:var(--wallet-recharge,#009447)}
.home-match-showcase #wallet .home-wallet-actions a:nth-child(2){background:var(--wallet-transfer,#1263bf)}
.home-match-showcase #wallet .home-wallet-actions a:nth-child(3){background:var(--wallet-history,#60758b)}
.home-match-showcase #wallet .home-wallet-actions a:hover,.home-match-showcase #wallet .home-wallet-actions a:focus-visible{background:var(--hover,#f20735)}
.home-match-showcase #wallet .home-wallet-login{display:flex;min-height:42px;margin-top:14px!important;border-radius:9px;text-align:center}
@media(max-width:730px){.home-match-showcase #wallet.wallet-card{padding:16px}.home-match-showcase #wallet .wallet-copy>b{font-size:15px}.home-match-showcase #wallet .home-wallet-actions a{min-height:55px;font-size:11px}}

/* Reclaim the lineup column when no recent lineup is displayed. */
@media(min-width:731px){.dashboard-grid.home-match-showcase.no-lineup{grid-template-columns:minmax(0,1fr) minmax(220px,.36fr);grid-template-areas:"upcoming sidebar"}}
