/*!
 * Sønderjyske Damehåndbold Widgets
 * (c) Hellodigital
 */
.sdhb-module-title{margin:0 0 18px;font-size:28px;line-height:1.15;font-weight:800;color:#2f2f2f}
.sdhb-emptybox{padding:12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff}
.sdhb-slider{position:relative;border-radius:14px;overflow:hidden}
.sdhb-slides{display:flex;transition:transform .35s ease}
.sdhb-slide{min-width:100%;box-sizing:border-box;padding:14px;background:#fff;border:1px solid #eef2f7;border-radius:14px}
.sdhb-dots{display:flex;gap:8px;justify-content:center;margin-top:10px}
.sdhb-dots button{width:10px;height:10px;border-radius:999px;border:0;background:#cbd5e1;cursor:pointer}
.sdhb-dots button[aria-current="true"]{background:#0f172a}

/* standings */
.sdhb-standings{max-width:1170px}
.sdhb-standings-title{margin:0 0 26px;font-size:28px;line-height:1.15;font-weight:800;color:#2f2f2f}
.sdhb-standings-head,.sdhb-standings-row{display:grid;grid-template-columns:54px minmax(320px,1.8fr) 88px 120px 88px 110px;align-items:center;column-gap:16px}
.sdhb-standings-head{padding:0 14px 16px;border-bottom:1px solid #cfd4da;color:#323232;font-size:13px;font-weight:700;text-transform:uppercase}
.sdhb-standings-mobilehead{display:none;grid-template-columns:88px 120px 88px 110px;column-gap:16px;padding:8px 14px 14px 124px;color:#555;font-size:12px;font-weight:700;text-transform:uppercase}
.sdhb-standings-row{padding:12px 14px;border-bottom:1px solid #d7dce1;min-height:68px}
.sdhb-rank{width:40px;height:40px;border-radius:6px;background:#0b4a86;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:24px}
.sdhb-club{display:flex;align-items:center;gap:16px;min-width:0}
.sdhb-club-logo{width:40px;height:40px;object-fit:contain;flex:0 0 40px}
.sdhb-club-name{font-size:17px;line-height:1.25;color:#313131}
.sdhb-kampe,.sdhb-mal,.sdhb-point{font-size:17px;color:#313131;text-align:left}
.sdhb-point{font-weight:700}
.sdhb-form{display:flex;gap:8px;justify-content:flex-start}
.sdhb-form-box{width:20px;height:20px;display:inline-block}
.sdhb-form-win{background:#74c322}
.sdhb-form-lose{background:#d61f39}
.sdhb-form-draw{background:#f2b233}

/* players */
.sdhb-player-table{border:1px solid #eef2f7;border-radius:14px;background:#fff;overflow:hidden}
.sdhb-player-head,.sdhb-playerrow{display:grid;grid-template-columns:70px 1fr 90px;align-items:center;column-gap:12px}
.sdhb-player-head{padding:12px 16px;border-bottom:1px solid #eef2f7;font-weight:700;color:#475569}
.sdhb-playerrow{padding:12px 16px;border-bottom:1px solid #f1f5f9}
.sdhb-playerrow:last-child{border-bottom:0}
.sdhb-playernumber{font-weight:800}
.sdhb-playergoals{font-weight:900;text-align:right}

/* upcoming cards */
.sdhb-kamp-list{display:flex;flex-direction:column;gap:18px}
.sdhb-kamp-card{padding:18px;background:#fff;border:1px solid #dbe3ec;border-radius:18px}
.sdhb-kamp-top{text-align:center}
.sdhb-kamp-tag{font-weight:900;text-transform:uppercase;letter-spacing:.03em;color:#0f172a}
.sdhb-kamp-tour{color:#64748b;margin-top:2px}
.sdhb-kamp-time{margin-top:6px;font-weight:700}
.sdhb-kamp-side{margin-top:6px;color:#166534;font-weight:800}
.sdhb-kamp-mid{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin-top:14px}
.sdhb-kamp-team{display:flex;align-items:center;gap:10px;justify-content:center}
.sdhb-kamp-name{font-weight:800;line-height:1.2;text-align:center}
.sdhb-kamp-logo{width:58px;height:58px;object-fit:contain}
.sdhb-kamp-vs{font-weight:900;color:#334155}
.sdhb-kamp-score{font-size:26px;font-weight:900;display:flex;gap:10px;justify-content:center}
.sdhb-kamp-opponent{text-align:center;margin-top:10px;color:#334155}
.sdhb-kamp-btm{text-align:center;margin-top:14px}
.sdhb-btn{display:inline-block;padding:10px 14px;border-radius:12px;background:#223763;color:#ffffff;text-decoration:none;font-weight:900}
.sdhb-btn:hover{background:#9CCBEE;color:#ffffff}

/* home news */
.sdhb-home-slide{text-decoration:none;color:inherit;display:block}
.sdhb-home-bg{position:relative;min-height:240px;background-size:cover;background-position:center;border-radius:14px;overflow:hidden}
.sdhb-home-ov{position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.05))}
.sdhb-home-txt{position:absolute;left:14px;right:14px;bottom:14px;color:#fff}
.sdhb-home-title{font-size:18px;font-weight:900}
.sdhb-home-more{margin-top:6px;font-weight:800;opacity:.95}

/* recent 10 */
.sdhb-winbox{padding:12px;border:1px solid #eef2f7;border-radius:14px;background:#fff}
.sdhb-winlist{display:grid;grid-template-columns:1fr;gap:8px}
@media (min-width:700px){.sdhb-winlist{grid-template-columns:1fr 1fr}}
.sdhb-winrow{display:grid;grid-template-columns:90px 40px 1fr 40px;gap:8px;align-items:center;padding:10px;border:1px solid #eef2f7;border-radius:12px}
.sdhb-windate{font-size:12px;color:#64748b}
.sdhb-winscore{text-align:center;font-weight:900}
.sdhb-winmeta{font-size:11px;color:#64748b;font-weight:600;margin-top:3px}
.sdhb-winteam img{width:28px;height:28px;object-fit:contain}
.sdhb-bar{display:flex;height:14px;border-radius:999px;overflow:hidden;background:#e2e8f0;margin-top:12px}
.sdhb-bar-win{background:#22c55e;color:#052e16;font-weight:900;font-size:12px;display:flex;align-items:center;justify-content:center}
.sdhb-bar-draw{background:#f59e0b;color:#3b2f06;font-weight:900;font-size:12px;display:flex;align-items:center;justify-content:center}
.sdhb-bar-lose{background:#ef4444;color:#3b0a0a;font-weight:900;font-size:12px;display:flex;align-items:center;justify-content:center}

/* countdown */
.sdhb-countdown{padding:14px 16px;border:1px dashed #cbd5e1;border-radius:12px;color:#0f172a;font-weight:800;background:#fff}

@media (max-width:900px){
  .sdhb-module-title,.sdhb-standings-title{font-size:24px}
  .sdhb-standings-head,.sdhb-standings-row{grid-template-columns:48px minmax(180px,1fr) 70px 92px 70px 86px;column-gap:10px}
  .sdhb-club-name{font-size:15px}
  .sdhb-kampe,.sdhb-mal,.sdhb-point{font-size:15px}
  .sdhb-form-box{width:16px;height:16px}
}
@media (max-width:640px){
  .sdhb-standings-head{grid-template-columns:48px minmax(140px,1fr) 70px 92px 70px 0}
  .sdhb-col-form{display:none}
  .sdhb-standings-mobilehead{display:grid}
  .sdhb-standings-row{grid-template-columns:48px minmax(140px,1fr) 70px 92px 70px 86px;align-items:flex-start}
  .sdhb-club{gap:10px}
  .sdhb-club-logo{width:34px;height:34px;flex-basis:34px}
  .sdhb-club-name{font-size:14px}
  .sdhb-rank{width:34px;height:34px;font-size:18px}
  .sdhb-kampe,.sdhb-mal,.sdhb-point{font-size:14px}
  .sdhb-form{gap:6px}
  .sdhb-form-box{width:14px;height:14px}
  .sdhb-kamp-mid{grid-template-columns:1fr;gap:12px}
  .sdhb-kamp-vs{display:none}
  .sdhb-player-head,.sdhb-playerrow{grid-template-columns:56px 1fr 70px}
}


/* v1.0.6 adjustments */
.sdhb-standings-head,.sdhb-standings-row{grid-template-columns:74px minmax(320px,1.8fr) 88px 120px 88px 110px}
.sdhb-standings-head .sdhb-col-pos{text-transform:uppercase}
.sdhb-player-head > :last-child,
.sdhb-playergoals{text-align:right}
.sdhb-player-head{grid-template-columns:70px 1fr 90px}
.sdhb-btn{background:#223763;color:#ffffff}
.sdhb-btn:hover{background:#9CCBEE;color:#ffffff;filter:none}
.sdhb-next-countdown{margin-top:14px;text-align:center;font-weight:700;color:#223763}
.sdhb-kamp-list-next .sdhb-kamp-card{margin-bottom:0}
@media (max-width:900px){
  .sdhb-standings-head,.sdhb-standings-row{grid-template-columns:64px minmax(180px,1fr) 70px 92px 70px 86px}
}
@media (max-width:640px){
  .sdhb-standings-head{grid-template-columns:64px minmax(140px,1fr) 70px 92px 70px 0}
  .sdhb-standings-mobilehead{padding-left:138px}
  .sdhb-kamp-mid{grid-template-columns:1fr;gap:12px}
  .sdhb-kamp-vs{order:2}
  .sdhb-kamp-team{justify-content:center}
  .sdhb-kamp-name{max-width:100%;font-size:16px}
  .sdhb-kamp-logo{width:52px;height:52px}
  .sdhb-kamp-card{padding:16px}
  .sdhb-player-head,.sdhb-playerrow{grid-template-columns:54px 1fr 72px;column-gap:10px}
}


/* v1.0.7 */
@media (max-width:640px){
  .sdhb-kamp-mid{
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:stretch;
  }
  .sdhb-kamp-team{
    display:grid;
    grid-template-columns:44px 1fr;
    gap:10px;
    align-items:center;
    justify-content:flex-start;
  }
  .sdhb-kamp-team:first-child .sdhb-kamp-logo{grid-column:1;grid-row:1}
  .sdhb-kamp-team:first-child .sdhb-kamp-name{grid-column:2;grid-row:1;text-align:left}
  .sdhb-kamp-team:last-child .sdhb-kamp-logo{grid-column:1;grid-row:1}
  .sdhb-kamp-team:last-child .sdhb-kamp-name{grid-column:2;grid-row:1;text-align:left}
  .sdhb-kamp-vs{
    display:block;
    text-align:center;
    font-size:18px;
    margin:2px 0;
  }

  .sdhb-standings-head{
    display:none;
  }
  .sdhb-standings-mobilehead{
    display:grid;
    grid-template-columns:minmax(120px,1fr) 44px 66px 52px;
    column-gap:8px;
    padding:6px 8px 10px 86px;
    align-items:end;
  }
  .sdhb-standings-mobilehead div:first-child{
    visibility:hidden;
  }
  .sdhb-standings-row{
    grid-template-columns:44px minmax(120px,1fr) 44px 66px 52px;
    column-gap:8px;
    padding:10px 8px;
    min-height:58px;
  }
  .sdhb-rank{
    width:32px;
    height:32px;
    font-size:18px;
  }
  .sdhb-club{
    gap:8px;
  }
  .sdhb-club-logo{
    width:28px;
    height:28px;
    flex:0 0 28px;
  }
  .sdhb-club-name{
    font-size:13px;
    line-height:1.2;
  }
  .sdhb-kampe,.sdhb-mal,.sdhb-point{
    font-size:13px;
    text-align:right;
  }
  .sdhb-form{
    display:none;
  }
}


/* v1.0.8 */
@media (max-width:640px){
  .sdhb-kamp-card .sdhb-kamp-mid{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:10px;
  }
  .sdhb-kamp-card .sdhb-kamp-team{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:8px;
  }
  .sdhb-kamp-card .sdhb-kamp-vs{
    display:flex;
    align-items:center;
    justify-content:center;
    align-self:center;
    margin:0;
  }
  .sdhb-kamp-card .sdhb-kamp-name{
    text-align:center;
    font-size:15px;
    max-width:110px;
  }
  .sdhb-kamp-card .sdhb-kamp-logo{
    width:48px;
    height:48px;
  }

  .sdhb-standings{
    max-width:100%;
  }
  .sdhb-standings-title{
    font-size:20px;
    margin-bottom:14px;
  }
  .sdhb-standings-mobilehead{
    display:grid;
    grid-template-columns:1fr 34px 34px 34px 34px 40px;
    padding:0 6px 8px 56px;
    column-gap:6px;
    font-size:11px;
  }
  .sdhb-standings-mobilehead div:first-child{
    visibility:hidden;
  }
  .sdhb-standings-row{
    grid-template-columns:36px minmax(130px,1fr) 34px 34px 34px 34px 40px;
    padding:10px 6px;
    column-gap:6px;
    min-height:auto;
    align-items:center;
  }
  .sdhb-rank{
    width:28px;
    height:28px;
    font-size:15px;
    border-radius:4px;
  }
  .sdhb-club{
    gap:8px;
    min-width:0;
  }
  .sdhb-club-logo{
    width:24px;
    height:24px;
    flex:0 0 24px;
  }
  .sdhb-club-name{
    font-size:14px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .sdhb-kampe,.sdhb-mal,.sdhb-point{
    font-size:13px;
    text-align:right;
  }
  .sdhb-kampe::before{content:''}
  .sdhb-form{display:none !important;}
  .sdhb-standings-head{display:none !important;}
}


/* v1.0.9 */
.sdhb-standings-head,
.sdhb-standings-row{
  grid-template-columns:74px minmax(320px,1.8fr) 88px 120px 88px;
}
.sdhb-col-form,.sdhb-form{display:none !important;}

@media (max-width: 900px){
  .sdhb-standings-head,
  .sdhb-standings-row{
    grid-template-columns:64px minmax(180px,1fr) 70px 92px 70px;
  }
}

@media (max-width: 640px){
  .sdhb-standings{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  .sdhb-standings-title{
    font-size:18px;
    margin-bottom:12px;
  }
  .sdhb-standings-mobilehead{
    display:grid;
    grid-template-columns:minmax(110px,1fr) 32px 58px 40px;
    column-gap:4px;
    padding:0 4px 8px 52px;
    align-items:end;
    width:100%;
    box-sizing:border-box;
  }
  .sdhb-standings-mobilehead div:first-child{
    visibility:hidden;
  }
  .sdhb-standings-row{
    width:100%;
    box-sizing:border-box;
    grid-template-columns:34px minmax(110px,1fr) 32px 58px 40px;
    column-gap:4px;
    padding:10px 4px;
    align-items:center;
  }
  .sdhb-rank{
    width:28px;
    height:28px;
    font-size:14px;
  }
  .sdhb-club{
    min-width:0;
    gap:6px;
  }
  .sdhb-club-logo{
    width:22px;
    height:22px;
    flex:0 0 22px;
  }
  .sdhb-club-name{
    font-size:13px;
    line-height:1.15;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .sdhb-kampe,.sdhb-mal,.sdhb-point{
    font-size:12px;
    text-align:right;
  }

  .sdhb-kamp-card .sdhb-kamp-mid{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    column-gap:10px;
    align-items:center;
    justify-items:center;
  }
  .sdhb-kamp-card .sdhb-kamp-team{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    max-width:120px;
    text-align:center;
  }
  .sdhb-kamp-card .sdhb-kamp-team[data-side="home"] .sdhb-kamp-logo,
  .sdhb-kamp-card .sdhb-kamp-team[data-side="away"] .sdhb-kamp-logo{
    order:1;
  }
  .sdhb-kamp-card .sdhb-kamp-team[data-side="home"] .sdhb-kamp-name,
  .sdhb-kamp-card .sdhb-kamp-team[data-side="away"] .sdhb-kamp-name{
    order:2;
    text-align:center;
  }
  .sdhb-kamp-card .sdhb-kamp-vs{
    display:flex;
    align-items:center;
    justify-content:center;
    width:auto;
    min-width:22px;
    font-size:18px;
    font-weight:900;
    margin:0;
  }
  .sdhb-kamp-card .sdhb-kamp-logo{
    width:48px;
    height:48px;
  }
  .sdhb-kamp-card .sdhb-kamp-name{
    max-width:120px;
    font-size:15px;
    line-height:1.2;
    text-align:center;
    word-break:normal;
  }
}

/* v1.0.10 VS centering fix */
@media (max-width:480px){

  .sdhb-kamp-card .sdhb-kamp-mid{
    display:grid;
    grid-template-columns:1fr 40px 1fr;
    align-items:center;
    justify-items:center;
    column-gap:6px;
  }

  .sdhb-kamp-card .sdhb-kamp-team{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:6px;
  }

  .sdhb-kamp-card .sdhb-kamp-vs{
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:18px;
    width:40px;
    text-align:center;
    margin:0;
  }

}


/* v1.1.0 mobile separator + cleanup */
.sdhb-vs-mobile{display:none}
.sdhb-vs-desktop{display:inline}
@media (max-width:640px){
  .sdhb-vs-desktop{display:none}
  .sdhb-vs-mobile{display:inline}
  .sdhb-kamp-card .sdhb-kamp-mid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);
    align-items:center;
    justify-items:center;
    column-gap:6px;
  }
  .sdhb-kamp-card .sdhb-kamp-vs{
    width:18px;
    min-width:18px;
    font-size:20px;
    line-height:1;
  }
  .sdhb-kamp-card .sdhb-kamp-team{
    max-width:none;
    width:100%;
    min-width:0;
  }
  .sdhb-kamp-card .sdhb-kamp-name{
    max-width:100%;
    font-size:14px;
    line-height:1.15;
  }
}
@media (max-width:480px){
  .sdhb-kamp-card .sdhb-kamp-mid{
    grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr);
    column-gap:4px;
  }
  .sdhb-kamp-card .sdhb-kamp-vs{
    width:14px;
    min-width:14px;
    font-size:18px;
  }
  .sdhb-kamp-card .sdhb-kamp-logo{
    width:44px;
    height:44px;
  }
  .sdhb-kamp-card .sdhb-kamp-name{
    font-size:13px;
  }
}


/* v1.1.2 mobile match cards: 2 columns, no VS */
@media (max-width: 640px){
  .sdhb-kamp-card .sdhb-kamp-mid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    column-gap:12px !important;
    row-gap:0 !important;
    align-items:start !important;
    justify-items:center !important;
  }

  .sdhb-kamp-card .sdhb-kamp-vs{
    display:none !important;
  }

  .sdhb-kamp-card .sdhb-kamp-team{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    text-align:center !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    gap:8px !important;
  }

  .sdhb-kamp-card .sdhb-kamp-logo{
    width:52px !important;
    height:52px !important;
    max-width:52px !important;
    max-height:52px !important;
    object-fit:contain !important;
    display:block;
    margin:0 auto;
  }

  .sdhb-kamp-card .sdhb-kamp-name{
    width:100% !important;
    max-width:100% !important;
    font-size:14px !important;
    line-height:1.2 !important;
    text-align:center !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
  }
}

@media (max-width: 400px){
  .sdhb-kamp-card .sdhb-kamp-mid{
    column-gap:8px !important;
  }

  .sdhb-kamp-card .sdhb-kamp-logo{
    width:46px !important;
    height:46px !important;
    max-width:46px !important;
    max-height:46px !important;
  }

  .sdhb-kamp-card .sdhb-kamp-name{
    font-size:13px !important;
  }
}
