/* ===================== playofftree.php ("plt-" prefix) =====================
   Moved out of playofftree.php's inline <style> block 2026-08-11 (continuing the page-by-page
   cleanup, see css/dyne.css's own header for the project). All static, no PHP-variable
   interpolation, so this is a clean 1:1 move. Includes a bare `body {}` font-family reset —
   safe here since this file is only ever linked from playofftree.php, unlike dyne.css which
   loads on every page (a bare tag-selector rule there would leak everywhere). */

body {font-family: 'Poppins', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0;}

.plt-page {max-width: 1360px; margin: 0 auto; padding: 22px 24px 40px; color: #1b2733;}
@media (max-width: 900px) {.plt-page {padding: 16px 16px 28px;}}
/* Im iframe-Embed (z.B. Community-Dashboard-Widget) kein Aussenabstand - .plt-in-iframe wird
   per JS (window.self !== window.top) auf <html> gesetzt, siehe Script oben im <body>. */
.plt-in-iframe .plt-page {padding: 0 !important;}

/* Ziel-Seitenverhaeltnis des Seiteninhalts ~250:175 (~1.43:1, eher breit als hoch). Auf Desktop:
   Box wird so breit wie der komplette Baum von Natur aus ist (kein Scroll noetig, volle Breite
   sichtbar) und die Hoehe waechst im selben Verhaeltnis mit (aspect-ratio) - nicht umgekehrt. */
.plt-shell {background: #fff; border: 1px solid #e2e4e7; border-radius: 10px; box-shadow: 0 1px 3px rgba(20,30,40,.08); padding: 20px 22px 26px;}
@media (min-width: 768px) {
  .plt-shell {width: fit-content; max-width: 100%; margin: 0 auto; aspect-ratio: 230 / 180; display: flex; flex-direction: column; justify-content: center;}
}
@media (max-width: 900px) {.plt-shell {padding: 16px 14px 20px; border-radius: 8px;}}

.plt-headrow {display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;}
.plt-title {font-size: 20px; font-weight: 800; color: #2c3e50; margin: 0;}
.plt-season-select {position: relative;}
.plt-season-select summary {list-style: none; cursor: pointer; font-size: 12px; color: #66707c; font-weight: 600; display: flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid #ccd3da; border-radius: 6px;}
.plt-season-select summary::-webkit-details-marker {display: none;}
.plt-season-select summary::after {content: "\25BE"; font-size: 9px; color: #8b95a1;}
.plt-season-select[open] summary {background: #f4f6f8; border-color: #2c3e50; color: #2c3e50;}
.plt-season-select ul {position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid #e2e4e7; border-radius: 8px; box-shadow: 0 4px 14px rgba(20,30,40,.14); list-style: none; margin: 0; padding: 4px; max-height: 240px; overflow-y: auto; z-index: 20; min-width: 120px;}
.plt-season-select li a {display: block; padding: 6px 10px; font-size: 12px; color: #1b2733; text-decoration: none; border-radius: 5px; white-space: nowrap;}
.plt-season-select li a:hover {background: #eaf1f8;}
.plt-season-select li.active a {background: #2c3e50; color: #fff; font-weight: 700;}

/* ---- shared matchup-card building block, reused by desktop mini-cards, mobile cards and the finals card ---- */
.plt-mcard {border: 1px solid #e2e4e7; border-radius: 8px; overflow: hidden; background: #fff;}
.plt-mcard.plt-matchup-card {cursor: pointer;}
.plt-mcard.plt-matchup-card:hover {box-shadow: 0 2px 6px rgba(20,30,40,.12);}
.plt-mrow {display: flex; align-items: center; gap: 8px; padding: 8px 10px;}
.plt-mrow + .plt-mrow {border-top: 1px solid #e2e4e7;}
.plt-mrow.leader {background: #e8f8ec;}
.plt-mrow.leader .plt-mname, .plt-mrow.leader .plt-mscore {color: #1a7a1a; font-weight: 700;}
.plt-mrow img {object-fit: contain; flex: none; display: block;}
.plt-mseed {font-size: 10px; color: #8b95a1; flex: none; text-align: right; font-variant-numeric: tabular-nums;}
.plt-mname {flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1b2733;}
.plt-mrow.leader .plt-mname {color: #1a7a1a;}
.plt-mscore {font-weight: 700; color: #2c3e50; font-variant-numeric: tabular-nums;}
.plt-mrow.plt-tbd .plt-mname {color: #c3c9cf; font-style: italic;}

/* ================= DESKTOP BRACKET ================= */
.plt-desktop {display: block;}
.plt-bracket-scroll {overflow-x: auto; padding-bottom: 8px;}
.plt-bracket {display: flex; align-items: center; gap: 30px; min-width: 900px; justify-content: center; padding: 12px 4px 24px;}
.plt-conf-col {display: flex; flex-direction: column; gap: 10px;}
.plt-conf-title {text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #2c3e50; margin-bottom: 2px;}
.plt-round-cols {display: flex; gap: 20px;}
.plt-round-block {display: flex; flex-direction: column; gap: 8px;}
.plt-round-heading {font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8b95a1; text-align: center;}
.plt-round-col {display: flex; flex-direction: column; justify-content: space-around; gap: 16px; flex: 1; opacity: .5; transition: opacity .2s;}
.plt-round-col.plt-current {opacity: 1;}
.plt-desktop .plt-mcard {width: 100px; font-size: 11.5px;}
.plt-desktop .plt-mrow {padding: 6px 8px; gap: 7px; justify-content: space-between;}
.plt-desktop .plt-mrow img {width: 32px; height: 32px;}
.plt-desktop .plt-mseed {width: 11px; font-size: 9px;}
.plt-desktop .plt-mscore {font-size: 13px;}

.plt-champ-col {display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 10px; text-align: center;}
.plt-trophy {font-size: 24px; line-height: 1;}
.plt-champ-label {font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #66707c;}
.plt-desktop .plt-champ-card {width: 116px;}
.plt-champ-card {border-color: #ecd27a; background: #fdf3c7;}
.plt-champ-card .plt-mrow {background: transparent; padding: 7px 6px;}
.plt-champ-card .plt-mrow + .plt-mrow {border-top: 1px dashed #ecd27a;}
.plt-champ-card .plt-mname, .plt-champ-card .plt-mscore {color: #7a5d00;}
.plt-champ-card .plt-mrow.leader {background: transparent;}
.plt-champ-card .plt-mrow.leader .plt-mname, .plt-champ-card .plt-mrow.leader .plt-mscore {font-weight: 800;}
.plt-desktop .plt-champ-card img {width: 38px !important; height: 38px !important;}
.plt-champ-banner {margin-top: 8px;}
.plt-champ-banner img {width: 120px; display: block;}
.plt-playin-toggle {display: inline-block; margin: 2px 0; padding: 4px 12px; background: #2c3e50; color: #fff; border-radius: 5px; cursor: pointer; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; user-select: none; border: none; font-family: inherit;}
.plt-playin-toggle:hover {background: #1a2733;}

/* ================= MOBILE ================= */
.plt-mobile {display: none;}
.plt-tabs {display: flex; gap: 4px; overflow-x: auto; background: #1a2733; border-radius: 9px; padding: 4px; margin-bottom: 10px; -webkit-overflow-scrolling: touch;}
.plt-tabs::-webkit-scrollbar {display: none;}
.plt-tab {flex: none; font-family: inherit; font-size: 11.5px; font-weight: 600; color: #fff; opacity: .65; background: transparent; border: none; padding: 7px 13px; border-radius: 6px; white-space: nowrap; cursor: pointer;}
.plt-tab.active {background: #2c3e50; opacity: 1;}
.plt-subtabs {display: flex; gap: 8px; margin-bottom: 12px;}
.plt-subtab {flex: 1; text-align: center; font-family: inherit; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 7px 0; border-radius: 6px; border: 1px solid #ccd3da; background: #fff; color: #66707c; cursor: pointer;}
.plt-subtab.active {background: #2c3e50; border-color: #2c3e50; color: #fff;}
.plt-round-label {font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8b95a1; padding: 10px 2px 6px;}
.plt-matches {display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px;}
.plt-mobile .plt-mcard {width: 100%; font-size: 13px;}
.plt-mobile .plt-mrow {padding: 9px 12px; justify-content: space-between;}
.plt-mobile .plt-mrow img {width: 40px; height: 40px;}
.plt-mobile .plt-mseed {width: 16px; font-size: 11px;}
.plt-mobile .plt-mscore {font-size: 16px;}
.plt-playin-arrow {font-size: 10.5px; color: #8b95a1; text-align: center; margin: -2px 0 2px;}

.plt-champ-block {margin: 6px 0 18px; border: 1px solid #ecd27a; background: #fdf3c7; border-radius: 10px; padding: 18px 14px; text-align: center;}
.plt-champ-block.plt-matchup-card {cursor: pointer;}
.plt-champ-block .plt-trophy {margin-bottom: 4px;}
.plt-champ-cap {font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #7a5d00; opacity: .8; margin-bottom: 14px;}
.plt-champ-teams {display: flex; align-items: center; justify-content: center; gap: 18px;}
.plt-champ-team {display: flex; flex-direction: column; align-items: center; gap: 6px;}
.plt-champ-team img {width: 64px !important; height: 64px !important;}
.plt-champ-name {font-size: 12px; font-weight: 700; color: #7a5d00;}
.plt-champ-vs {font-size: 11px; color: #7a5d00; opacity: .7; font-weight: 700;}
.plt-champ-score {font-size: 20px; font-weight: 800; color: #7a5d00; font-variant-numeric: tabular-nums;}
.plt-champ-block .plt-champ-banner {margin-top: 14px;}
.plt-champ-block .plt-champ-banner img {width: 110px; margin: 0 auto;}

@media (max-width: 767px) {
  .plt-desktop {display: none;}
  .plt-mobile {display: block;}
}
