/* Tournaments page. Cards, headings and buttons come from ptl-discover.css;
   this file only lays out the page-specific rows (My Tournaments, Results). */
body.th-page .th-head { margin: 18px auto 10px; }
body.th-page .th-title { margin: 0; font: 700 28px/1.15 Saira, Inter, system-ui, sans-serif; letter-spacing: .02em; color: #F4F6FA; }
body.th-page .th-sub { margin: 6px 0 0; color: #9AA3AD; font-size: 14px; line-height: 1.5; max-width: 640px; }
body.th-page .th-sec__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.th-page .th-sec__note { margin: -2px 0 10px; color: #9AA3AD; font-size: 13px; line-height: 1.45; }
body.th-page .th-my, body.th-page .th-results { margin: 8px auto 18px; }
body.th-page .th-feat { margin: 4px auto 18px; }
body.th-page .th-market { margin-bottom: 18px; }

body.th-page .th-my__list, body.th-page .th-res__list { list-style: none; margin: 0; padding: 0; border: 1px solid #24303c; border-radius: 8px; background: #0d1117; }
body.th-page .th-my__row, body.th-page .th-res__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid #1c242e; }
body.th-page .th-my__row:first-child, body.th-page .th-res__row:first-child { border-top: 0; }
body.th-page .th-my__empty { padding: 14px; color: #9AA3AD; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
body.th-page .th-my__main, body.th-page .th-res__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
body.th-page .th-my__st { font: 700 11px/1 Saira, Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #9AA3AD; }
body.th-page .th-my__row--racing .th-my__st { color: #E3263B; }
body.th-page .th-my__row--upcoming .th-my__st, body.th-page .th-my__row--waiting .th-my__st { color: #C6A15B; }
body.th-page .th-my__name, body.th-page .th-res__name { color: #F4F6FA; font-weight: 700; font-size: 15px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.th-page .th-my__name:hover, body.th-page .th-res__name:hover { text-decoration: underline; text-underline-offset: 3px; }
body.th-page .th-my__meta, body.th-page .th-res__meta { color: #9AA3AD; font-size: 13px; font-variant-numeric: tabular-nums; }
body.th-page .th-my__remline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: #AEB6C2; }
body.th-page .th-my__remline .ptl-btn--text { min-height: 32px; padding: 0 4px; font-size: 12px; }
body.th-page .th-my__act { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
body.th-page .th-my__manage { position: relative; }
body.th-page .th-my__manage summary { cursor: pointer; color: #AEB6C2; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; list-style: none; min-height: 44px; display: flex; align-items: center; padding: 0 6px; }
body.th-page .th-my__manage summary::-webkit-details-marker { display: none; }
body.th-page .th-my__manage[open] > p { margin: 0 0 6px; font-size: 13px; color: #AEB6C2; max-width: 320px; }
body.th-page .th-my__manage[open] { flex-basis: 100%; }

body.th-page .th-res__pod { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; color: #D5DAE1; }
body.th-page .th-res__pod b { color: #C6A15B; margin-right: 3px; }
body.th-page .th-res__pod span { color: #9AA3AD; }

body.th-page .th-rem { max-width: 420px; width: calc(100% - 32px); border: 1px solid #24303c; border-radius: 10px; background: #0d1117; color: #F4F6FA; padding: 18px; }
body.th-page .th-rem::backdrop { background: rgba(0,0,0,.6); }
body.th-page .th-rem h3 { margin: 0 0 8px; font: 700 16px/1.2 Saira, Inter, sans-serif; letter-spacing: .04em; }
body.th-page .th-rem__ev { margin: 0 0 10px; color: #AEB6C2; font-size: 13px; }
body.th-page .th-rem__opt { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; }
body.th-page .th-rem__opt input:disabled + * , body.th-page .th-rem__opt:has(input:disabled) { color: #6f7885; }
body.th-page .th-rem__note { margin: 8px 0 0; font-size: 12.5px; color: #9AA3AD; }
body.th-page .th-rem__note a { color: #F4F6FA; }
body.th-page .th-rem__msg { min-height: 1em; margin: 8px 0 0; font-size: 13px; color: #ffb0b0; }
body.th-page .th-rem__act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

@media (max-width: 640px) {
  body.th-page .th-title { font-size: 24px; }
  body.th-page .th-my__row, body.th-page .th-res__row { flex-direction: column; align-items: stretch; }
  body.th-page .th-my__act { justify-content: flex-start; }
  body.th-page .th-my__act > .ptl-btn--secondary { flex: 1 1 auto; text-align: center; }
}

/* Tournaments shows the sponsor creative inline (below Results) at every width, never in a fixed rail beside entry buttons.
   Sized to the creative: no wide container, understated Ad label. */
html[data-rails="inline"] body.th-page .ptl-rail-inline:not([hidden]) { display: flex; justify-content: center; width: fit-content; max-width: 100%; height: auto; max-height: none; margin: 4px auto 20px; padding: 0; border: 0; background: transparent; box-sizing: border-box; }
html[data-rails="inline"] body.th-page .ptl-rail-inline__link { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; color: inherit; text-decoration: none; }
html[data-rails="inline"] body.th-page .ptl-rail-inline .ptl-rail__eyebrow { font: 500 11px/1.3 Inter, system-ui, sans-serif; letter-spacing: .02em; text-transform: none; color: #9AA3AD; padding: 0; margin: 0; }
html[data-rails="inline"] body.th-page .ptl-rail-inline .ptl-rail__art { display: block; width: calc(200px * 440 / 1100); height: 200px; background: transparent; overflow: hidden; }
html[data-rails="inline"] body.th-page .ptl-rail-inline .ptl-rail__art img { display: block; width: 100%; height: 100%; object-fit: contain; }
html[data-rails="inline"] body.th-page .th-adgap:not(:has(.lp-ad:not([hidden]))) { display: none; }

/* Results empty state: one compact line, no empty list panel. */
body.th-page .th-res__list:empty { display: none; }
body.th-page .th-results { margin-bottom: 12px; }
body.th-page #th-results-empty:not([hidden]) { display: block; margin: 0; padding: 10px 14px; border: 1px solid #24303c; border-radius: 8px; background: #0d1117; color: #9AA3AD; font-size: 13px; }
