/* WASABI CONTENT HUB */
.site-header > nav { gap: clamp(16px, 2vw, 30px); }
#matches, #news { scroll-margin-top: 72px; }

.matches-section,
.news-section { padding: 116px 0 126px; }

.matches-section { background: var(--paper); }
.news-section { color: #fff; background: #0d0f0c; border-top: 1px solid #1d2119; }

.content-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: end;
  gap: 60px;
  padding: 58px 0 48px;
}

.content-section-head h2 {
  margin: 0;
  font: 950 clamp(58px, 7.4vw, 118px)/.84 "Arial Narrow", Arial, sans-serif;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.content-section-head h2 span { display: block; color: var(--acid); }
.content-section-head.light h2 span { color: var(--acid-bright); }
.content-section-head p { margin: 0; max-width: 430px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.content-section-head.light p { color: rgba(255,255,255,.48); }

.matches-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.match-column {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(10,11,9,.17);
  background: rgba(255,255,255,.34);
}

.content-column-head {
  min-height: 38px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(10,11,9,.14);
}

.content-column-head h3 { margin: 0; font-size: 12px; letter-spacing: .12em; }
.content-column-head span { color: var(--acid); font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.match-list { display: grid; gap: 10px; padding-top: 12px; }

.match-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(10,11,9,.14);
  background: #fff;
  box-shadow: 0 12px 32px rgba(10,11,9,.035);
}

.match-card.is-live { border-color: var(--acid); box-shadow: inset 3px 0 0 var(--acid-bright); }
.match-card-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.match-date { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.match-status { padding: 5px 7px; color: #fff; background: #171a15; font-size: 7px; font-weight: 950; letter-spacing: .12em; }
.is-win .match-status, .is-live .match-status { color: var(--ink); background: var(--acid-bright); }
.is-loss .match-status { background: #8d4033; }
.is-cancelled .match-status { color: var(--ink); background: #d9d9d2; }
.is-draw .match-status { color: var(--ink); background: #d8d1a8; }

.match-event { min-height: 38px; margin-top: 13px; padding-top: 12px; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(10,11,9,.09); }
.match-event strong { min-width: 0; overflow: hidden; font-size: 10px; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.match-event span { flex: 0 0 auto; color: var(--muted); font-size: 8px; }

.match-versus { margin-top: 14px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; }
.match-team { min-width: 0; display: flex; align-items: center; gap: 10px; }
.match-team.is-opponent { flex-direction: row-reverse; text-align: right; }
.match-team strong { min-width: 0; overflow: hidden; font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.match-logo { width: 38px; height: 38px; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--acid-bright); font-size: 13px; font-weight: 950; }
.match-logo img { width: 100%; height: 100%; object-fit: cover; }
.match-score { min-width: 57px; display: flex; justify-content: center; align-items: center; gap: 5px; font-family: "Arial Narrow", Arial, sans-serif; }
.match-score b { font-size: 25px; line-height: 1; }
.match-score i { color: var(--acid); font-size: 14px; font-style: normal; }
.match-score span { color: var(--acid); font-size: 11px; font-weight: 950; letter-spacing: .12em; }
.match-stream { margin-top: 15px; padding-top: 13px; display: block; border-top: 1px solid rgba(10,11,9,.09); color: var(--acid); font-size: 8px; font-weight: 950; letter-spacing: .11em; }
.match-stream:hover, .match-stream:focus-visible { color: var(--ink); }

.content-empty { min-height: 128px; display: grid; place-items: center; padding: 22px; border: 1px dashed rgba(10,11,9,.2); color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.content-empty.dark { grid-column: 1 / -1; min-height: 210px; border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.42); }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.news-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.13); background: #151713; transition: border-color .2s ease, transform .2s ease; }
.news-card:hover { border-color: rgba(166,211,77,.52); transform: translateY(-3px); }
.news-card-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; color: rgba(166,211,77,.28); background: linear-gradient(135deg, transparent 46%, rgba(166,211,77,.13) 46%, rgba(166,211,77,.13) 49%, transparent 49%), #1b1e18; }
.news-card-image::after { content: ""; position: absolute; width: 36%; aspect-ratio: 1; border: 1px solid rgba(166,211,77,.16); border-radius: 50%; }
.news-card-image span { font: 950 clamp(50px, 6vw, 94px)/1 "Arial Narrow", Arial, sans-serif; }
.news-card-image img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card-copy { flex: 1; display: flex; flex-direction: column; padding: 21px 20px 22px; }
.news-card time { color: var(--acid-bright); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.news-card h3 { margin: 13px 0 0; font-size: clamp(18px, 1.8vw, 27px); line-height: 1.05; letter-spacing: -.035em; }
.news-card p { margin: 13px 0 0; color: rgba(255,255,255,.46); font-size: 12px; line-height: 1.55; }
.news-open { align-self: flex-start; margin-top: auto; padding: 22px 0 0; border: 0; color: var(--acid-bright); background: transparent; cursor: pointer; font: 950 8px/1 Arial, sans-serif; letter-spacing: .12em; }
.news-open:hover, .news-open:focus-visible { color: #fff; }

.news-dialog { width: min(900px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; overflow: auto; border: 1px solid rgba(166,211,77,.42); color: #fff; background: #11130f; box-shadow: 0 35px 110px rgba(0,0,0,.72); }
.news-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(9px); }
.news-dialog article { position: relative; padding: clamp(24px, 4vw, 52px); }
.news-dialog-close { position: sticky; z-index: 2; top: 14px; float: right; width: 44px; height: 44px; margin: 0 0 12px 18px; border: 1px solid rgba(255,255,255,.17); color: #fff; background: rgba(10,11,9,.9); cursor: pointer; font-size: 26px; }
.news-dialog-image { clear: both; aspect-ratio: 16 / 8; margin: 0 0 32px; overflow: hidden; }
.news-dialog-image img { width: 100%; height: 100%; object-fit: cover; }
.news-dialog time { display: block; color: var(--acid-bright); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.news-dialog h2 { margin: 15px 0 0; font: 950 clamp(34px, 6vw, 72px)/.94 "Arial Narrow", Arial, sans-serif; letter-spacing: -.05em; }
.news-dialog-lead { margin: 22px 0 0; color: rgba(255,255,255,.7); font-size: clamp(16px, 2vw, 21px); line-height: 1.5; }
.news-dialog-body { margin-top: 30px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.75; white-space: pre-line; }

/* CONTENT ADMIN */
.admin-tabs { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-tab { min-height: 42px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.55); font-size: 8px; font-weight: 950; letter-spacing: .12em; }
.admin-tab:hover, .admin-tab:focus-visible, .admin-tab.is-active { color: var(--ink); border-color: var(--acid-bright); background: var(--acid-bright); }
.content-admin-shell .admin-title { padding-top: 48px; }
.content-admin-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); align-items: start; gap: 18px; }
.content-admin-list-panel, .content-editor-panel { border: 1px solid rgba(255,255,255,.14); background: #12140f; }
.content-admin-list-panel { min-width: 0; padding: 22px; }
.content-admin-panel-head { min-height: 44px; display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.11); }
.content-admin-panel-head small, .content-editor-head small { color: var(--acid-bright); font-size: 8px; font-weight: 950; letter-spacing: .15em; }
.content-admin-panel-head h2, .content-editor-head h2 { margin: 8px 0 0; font-size: 24px; letter-spacing: -.035em; }
.content-new-button { min-height: 40px; padding: 0 13px; border: 1px solid var(--acid-bright); color: var(--ink); background: var(--acid-bright); cursor: pointer; font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.content-admin-list { display: grid; gap: 8px; padding-top: 12px; }
.content-admin-item { width: 100%; min-width: 0; min-height: 82px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.1); color: #fff; background: #181b15; cursor: pointer; text-align: left; }
.content-admin-item:hover, .content-admin-item:focus-visible, .content-admin-item.is-active { border-color: rgba(166,211,77,.48); background: rgba(166,211,77,.08); }
.content-admin-item strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.content-admin-item small { display: block; margin-top: 7px; color: rgba(255,255,255,.38); font-size: 8px; letter-spacing: .07em; }
.content-admin-item span { padding: 5px 7px; color: var(--ink); background: var(--acid-bright); font-size: 7px; font-weight: 950; letter-spacing: .08em; }
.content-admin-item.is-draft span { color: rgba(255,255,255,.58); background: #2b2e28; }
.content-admin-empty { padding: 34px 18px; color: rgba(255,255,255,.38); font-size: 12px; line-height: 1.5; text-align: center; }

.content-editor-panel { position: sticky; top: 18px; padding: 24px; }
.content-editor-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.11); }
.content-editor-reset { min-height: 38px; padding: 0 11px; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.6); background: transparent; cursor: pointer; font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.content-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px 12px; margin-top: 20px; }
.content-field { min-width: 0; display: block; color: rgba(255,255,255,.52); font-size: 8px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.content-field.is-wide { grid-column: 1 / -1; }
.content-field input, .content-field textarea, .content-field select { width: 100%; margin-top: 7px; padding: 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 0; outline: none; color: #fff; background: #1a1d17; font: 500 13px/1.35 Arial, sans-serif; }
.content-field input, .content-field select { height: 46px; }
.content-field textarea { min-height: 94px; padding-top: 12px; padding-bottom: 12px; resize: vertical; }
.content-field textarea.is-body { min-height: 190px; }
.content-field input:focus, .content-field textarea:focus, .content-field select:focus { border-color: var(--acid-bright); }
.content-field input::placeholder, .content-field textarea::placeholder { color: rgba(255,255,255,.2); }
.content-upload { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; }
.content-upload button { min-height: 46px; padding: 0 14px; border: 1px solid rgba(166,211,77,.4); color: var(--acid-bright); background: transparent; cursor: pointer; font-size: 8px; font-weight: 950; letter-spacing: .09em; }
.content-toggle { grid-column: 1 / -1; min-height: 48px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid rgba(166,211,77,.23); color: rgba(255,255,255,.7); background: rgba(166,211,77,.045); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.content-toggle input { width: 18px; height: 18px; accent-color: var(--acid-bright); }
.content-form-actions { margin-top: 18px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px; }
.content-form-actions button { min-height: 49px; padding: 0 16px; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.66); background: transparent; cursor: pointer; font-size: 8px; font-weight: 950; letter-spacing: .11em; }
.content-form-actions .content-save { color: var(--ink); border-color: var(--acid-bright); background: var(--acid-bright); }
.content-form-actions .content-save { grid-column: 2; }
.content-form-actions .content-delete { color: #e38b78; border-color: rgba(227,139,120,.38); }
.content-form-actions button:disabled, .content-upload button:disabled { cursor: wait; opacity: .58; }

@media (max-width: 1120px) {
  .content-admin-layout { grid-template-columns: minmax(0, .8fr) minmax(360px, 1.2fr); }
  .matches-board { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) {
  .content-section-head { grid-template-columns: 1fr; gap: 22px; }
  .content-section-head p { max-width: 590px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-admin-layout { grid-template-columns: 1fr; }
  .content-editor-panel { position: static; }
}

@media (max-width: 720px) {
  .matches-section, .news-section { padding: 72px 0 78px; }
  .content-section-head { padding: 38px 0 30px; }
  .content-section-head h2 { font-size: clamp(49px, 15vw, 72px); }
  .content-section-head p { font-size: 13px; line-height: 1.5; }
  .match-column { padding: 13px; }
  .match-card { padding: 14px 12px; }
  .match-date { max-width: 65%; line-height: 1.4; }
  .match-versus { gap: 7px; }
  .match-team { flex-direction: column; gap: 6px; text-align: center; }
  .match-team.is-opponent { flex-direction: column; text-align: center; }
  .match-team strong { width: 100%; font-size: 9px; }
  .match-logo { width: 42px; height: 42px; }
  .match-score { min-width: 52px; }
  .match-score b { font-size: 23px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { display: grid; grid-template-columns: 118px minmax(0,1fr); }
  .news-card-image { height: 100%; min-height: 170px; aspect-ratio: auto; }
  .news-card-copy { min-height: 170px; padding: 17px 15px; }
  .news-card h3 { margin-top: 10px; font-size: 20px; }
  .news-card p { display: -webkit-box; overflow: hidden; margin-top: 10px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .news-open { padding-top: 16px; }
  .news-dialog { width: 100%; max-width: none; max-height: 94svh; margin: auto 0 0; border-right: 0; border-bottom: 0; border-left: 0; }
  .news-dialog article { padding: 20px 17px 30px; }
  .news-dialog-image { aspect-ratio: 16 / 10; margin-bottom: 24px; }
  .news-dialog h2 { font-size: clamp(34px, 11vw, 52px); }
  .content-admin-shell .admin-title { padding-top: 38px; }
  .admin-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
  .admin-tab { min-width: 0; justify-content: center; padding: 0 6px; font-size: 7px; }
  .content-admin-layout { display: flex; flex-direction: column; }
  .content-editor-panel { order: -1; width: 100%; padding: 18px 15px; }
  .content-admin-list-panel { width: 100%; padding: 16px 13px; }
  .content-form-grid { grid-template-columns: 1fr; }
  .content-field.is-wide, .content-upload, .content-toggle { grid-column: 1; }
  .content-field input, .content-field select { height: 49px; font-size: 16px; }
  .content-field textarea { font-size: 16px; }
  .content-upload { grid-template-columns: 1fr; }
  .content-upload button { min-height: 48px; }
  .content-form-actions { grid-template-columns: 1fr; }
  .content-form-actions .content-save { grid-column: 1; grid-row: 1; }
}

@media (max-width: 420px) {
  .news-card { grid-template-columns: 104px minmax(0,1fr); }
  .news-card-image, .news-card-copy { min-height: 158px; }
  .news-card-copy { padding: 15px 12px; }
  .news-card p { font-size: 11px; -webkit-line-clamp: 2; }
  .news-open { font-size: 7px; }
  .content-admin-panel-head { align-items: center; }
  .content-new-button { padding: 0 10px; }
}
