/* Additions for the static rebuild of play.calyx.gg. Theme: organizer202.min.css */
html, body.static { overflow-y: auto !important; overflow-x: hidden; height: auto !important; }
body.static { background: #050713; color: #fff; }
body.static a { color: inherit; }
body.static #content { padding-top: 90px; min-height: 60vh; }
body.static a.cta { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
body.static a.cta:hover { text-decoration: none; filter: brightness(1.1); }
body.static #menu-top a.list-group-item { text-decoration: none; }
body.static .connector { display: inline-block; }
body.static .connector svg { width: 18px; height: 18px; fill: #fff; }
body.static #menu-top .menu-logo img { max-height: 60px; }

/* inner-page hero */
.cx-hero { height: auto !important; min-height: 260px; padding: 70px 80px 50px !important; display: flex; align-items: flex-end; }
.cx-hero .top { position: relative; z-index: 2; max-width: 1100px; }
.cx-hero .title { font-size: 2.4rem !important; line-height: 1.15; margin: 8px 0 10px; text-transform: none; }
.cx-hero .description { color: #c9cbe0; font-size: 1rem; }
.cx-hero .bg { opacity: .35; }
.cx-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,19,.2), #050713); z-index: 1; }
.cx-hero-logo { width: 84px; height: 84px; object-fit: contain; border-radius: 10px; background: #101122; padding: 6px; margin-bottom: 6px; }
.cx-home-h1 { font-size: 2.6rem !important; max-width: 900px; }
.cx-crumbs { font-size: .85rem; color: #9aa0c3; }
.cx-crumbs a { color: #c9cbe0 !important; }
.cx-crumbs span { margin: 0 4px; }

.padding-dashboard h2.title-section { margin-bottom: 26px; }
.cx-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0; }
.cx-info > div { background: #101122; border-left: 3px solid #fb2740; padding: 12px 16px; border-radius: 4px; }
.cx-info dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #9aa0c3; font-weight: 500; }
.cx-info dd { margin: 4px 0 0; font-weight: 700; word-break: break-word; }
.cx-info a, .cx-list a, .cx-stats a, .cx-score a, .cx-top a { color: #fff !important; text-decoration: underline; text-decoration-color: #fb2740; text-underline-offset: 3px; }
.cx-flag { width: 20px; height: 14px; object-fit: cover; margin-right: 6px; vertical-align: -1px; border-radius: 2px; }

.cx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.cx-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: #101122; border: 1px solid #23264a; border-radius: 8px; padding: 16px 10px; text-decoration: none !important; transition: border-color .2s, transform .2s; }
.cx-card:hover { border-color: #fb2740; transform: translateY(-2px); }
.cx-card img { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; background: #050713; }
.cx-card-name { font-weight: 700; color: #fff; word-break: break-word; }
.cx-card-sub { font-size: .8rem; color: #9aa0c3; }

.cx-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cx-list li { background: #101122; border-radius: 6px; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.light-bg .cx-list li, .light-bg .cx-round li { background: #050713; }
.cx-list li p { margin: 0; width: 100%; color: #c9cbe0; }
.cx-plain li { display: block; }
.cx-bm-name { font-weight: 700; min-width: 160px; }
.cx-bm-date { color: #9aa0c3; font-size: .85rem; margin-left: auto; }
.cx-score { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-score.big { font-size: 1.4rem; justify-content: center; }
.cx-side b { margin-left: 6px; background: #23264a; padding: 1px 8px; border-radius: 4px; }
.cx-side.win b { background: #fb2740; }
.cx-vs { color: #9aa0c3; font-size: .8em; }

.cx-bracket { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; }
.cx-round { min-width: 280px; flex: 1; }
.cx-round h3 { font-size: 1rem; text-transform: uppercase; color: #fb2740; letter-spacing: .05em; }
.cx-round ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.cx-round li { background: #101122; border-radius: 6px; padding: 10px 12px; display: grid; gap: 6px; }
.cx-round .cx-bm-date { margin-left: 0; }

.cx-table-wrap { overflow-x: auto; }
.cx-stats { color: #fff; min-width: 640px; }
.cx-stats th { color: #9aa0c3; font-weight: 500; border-color: #23264a !important; }
.cx-stats td { border-color: #23264a !important; }
.cx-stats.table-striped tbody tr:nth-of-type(odd) { background: #101122; }
.cx-note { color: #9aa0c3; }
.cx-text { max-width: 860px; color: #dfe1f0; line-height: 1.7; }
.cx-tops { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cx-top { background: #101122; border-radius: 6px; padding: 14px 18px; }
.cx-top h3 { font-size: .95rem; color: #fb2740; text-transform: uppercase; }
.cx-top ol { margin: 0; padding-left: 18px; }
.cx-top b { float: right; }

.cx-article { max-width: 820px; margin: 0 auto; color: #dfe1f0; line-height: 1.75; font-size: 1.05rem; }
.cx-article img { max-width: 100%; height: auto; }
.cx-article a { color: #fff; text-decoration: underline; text-decoration-color: #fb2740; }
.cx-meta { color: #9aa0c3; font-size: .9rem; }
.cx-meta .tag { background: #fb2740; color: #fff; padding: 2px 8px; border-radius: 3px; margin-right: 8px; }
a.cx-news { text-decoration: none !important; color: #fff !important; display: block; }
.cx-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cx-news-grid .news { width: auto !important; margin: 0 !important; }
.cx-news-grid .img-content { height: 200px; background-size: cover; background-position: center; }
.cx-more { text-align: center; margin-top: 24px; }
.twitch-embed iframe { width: 100%; max-width: 960px; aspect-ratio: 16/9; height: auto; display: block; margin: 0 auto 30px; border: 0; }
.cx-game-txt { font-weight: 700; font-size: .75rem; text-transform: uppercase; }
.table-container td.game svg, .table-container td.format svg, .table-container td.restriction svg { width: 26px; height: 26px; fill: #fff; }

@media (max-width: 768px) {
  body.static #content { padding-top: 70px; }
  .cx-hero { padding: 40px 20px 30px !important; min-height: 200px; }
  .cx-hero .title, .cx-home-h1 { font-size: 1.6rem !important; }
  body.static .calyx-menu .calyx-socials { display: none !important; }
  body.static #menu-top .table-of-contents.d-flex { overflow-x: auto; white-space: nowrap; }
}

/* header menu: keep the links in one row like the original */
body.static #menu-top .calyx-menu { display: flex; align-items: center; justify-content: space-between; flex: 1; }
body.static #menu-top .calyx-menu > .table-of-contents { display: flex !important; flex-direction: row; align-items: center; gap: 4px; height: auto; }
body.static #menu-top .calyx-menu > .table-of-contents a.list-group-item { display: inline-flex; width: auto; height: auto; }
body.static #menu-top .calyx-socials { display: flex; gap: 12px; align-items: center; }
.cx-card img.cx-flag { width: 20px; height: 14px; border-radius: 2px; background: none; }

/* mobile header: logo row + scrollable link row */
@media (max-width: 768px) {
  body.static #menu-top { display: block !important; position: fixed; top: 0; left: 0; right: 0; height: auto !important; padding: 6px 12px 0 !important; background: #050713; border-bottom: 3px solid #fb2740; z-index: 101; }
  body.static #menu-top .content-menu { display: flex !important; flex-direction: column; align-items: flex-start; height: auto !important; width: 100%; }
  body.static #menu-top .menu-logo { margin: 0 0 4px; height: auto !important; width: auto !important; }
  body.static #menu-top .menu-logo img { max-height: 34px; width: auto; }
  body.static #menu-top .calyx-menu { width: 100%; }
  body.static #menu-top .calyx-menu > .table-of-contents { width: 100%; overflow-x: auto; gap: 0; }
  body.static #menu-top .calyx-menu > .table-of-contents a.list-group-item { font-size: .9rem !important; padding: 8px 10px !important; height: auto !important; line-height: 1.2; }
  body.static #content { padding-top: 92px; }
  body.static .hero-section .title, body.static .cx-hero .title { line-height: 1.25 !important; }
  body.static .hero-section:not(.cx-hero) { padding-top: 40px !important; }
}
