* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0e;
  color: #f0f0f5;
  line-height: 1.55;
}
a { color: #ff6b6b; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 48px; }
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 1100;
}
.site-masthead {
  border-bottom: 1px solid #252530;
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(8px);
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.mast-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mast-inner .nav-toggle { margin-left: 0; }
.nav-lang {
  margin-left: 4px;
  display: flex;
  align-items: center;
}
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 42px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #3a3a48;
  background: #1c1c26;
  color: #f0f0f5;
  cursor: pointer;
  line-height: 1;
}
.lang-switcher__toggle:hover,
.lang-switcher.is-open .lang-switcher__toggle {
  border-color: #6a6a7a;
  background: #262632;
}
.lang-switcher__flag {
  font-size: 1.2rem;
  line-height: 1;
}
.lang-switcher__chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9a9aaa;
  margin-left: 2px;
}
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 48px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #3a3a48;
  background: #16161e;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.lang-switcher__menu[hidden] {
  display: none !important;
}
.lang-switcher__option-form {
  margin: 0;
  display: block;
}
.lang-switcher__option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: #fff;
}
.lang-switcher__option:hover {
  background: #22222e;
  border-color: #3a3a48;
}
.lang-switcher__option.is-active {
  background: rgba(229, 57, 53, 0.15);
  border-color: rgba(229, 57, 53, 0.4);
}
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.03em; color: #fff; flex-shrink: 0; }
.brand span { color: #e53935; }
.mast-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}
.mast-brand:hover { opacity: 0.92; text-decoration: none; }
.mast-brand:hover .brand { color: #fff; }
.mast-brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #14141c;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-chrome.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-chrome.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-chrome.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { display: none; }
.nav { font-size: 0.92rem; }
.nav-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.nav a { color: #ccc; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.nav-active { color: #fff; font-weight: 700; }
.nav a.btn-primary:hover { color: #fff; }
.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.nav-actions form { margin: 0; display: block; }
.nav-btn { padding: 8px 14px !important; font-size: 0.85rem !important; }
body.nav-menu-open { overflow: hidden; }

@media (max-width: 899px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1202;
  }
  .site-masthead {
    position: relative;
    z-index: 1202;
  }
  body.nav-menu-open .site-chrome {
    z-index: 1300;
  }
  /* Keep the close control above the full-screen sheet; hide duplicate mast brand. */
  body.nav-menu-open .site-masthead {
    z-index: 1320;
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
  }
  body.nav-menu-open .mast-brand {
    visibility: hidden;
    pointer-events: none;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #0a0a0e;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1290;
  }
  body.nav-menu-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-chrome .nav {
    position: fixed;
    inset: 0;
    z-index: 1310;
    display: flex;
    flex-direction: column;
    background: #0a0a0e;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow: hidden;
  }
  body.nav-menu-open .site-chrome .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-panel {
    flex: 1;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 16px 24px 32px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
  }
  .nav-mobile-head {
    order: -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    margin: 0 0 8px;
    padding: 0 52px 16px 0; /* room for the close (X) control on the right */
    border-bottom: 1px solid #252530;
    flex-shrink: 0;
  }
  .nav-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    line-height: 1;
  }
  .nav-mobile-brand:hover { text-decoration: none; opacity: 0.92; }
  .nav-mobile-brand .brand { font-size: 1.05rem; }
  .nav-mobile-brand-logo {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .nav-panel > a,
  .nav-panel .nav-link-item {
    display: block;
    width: 100%;
    padding: 20px 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #e8e8ee;
    border-bottom: 1px solid #252530;
    line-height: 1.3;
  }
  .nav-panel > a.nav-active {
    color: #fff;
    border-bottom-color: #e53935;
  }
  .nav-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    padding: 0;
    border-top: none;
    width: 100%;
  }
  .nav-actions .nav-link-item {
    display: block;
    width: 100%;
    padding: 20px 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #e8e8ee;
    text-align: left;
    border-bottom: 1px solid #252530;
  }
  .nav-actions a.nav-link-item:hover { color: #fff; text-decoration: none; }
  .nav-actions .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px !important;
    font-size: 1.05rem !important;
    border-radius: 10px;
  }
  .nav-lang {
    margin: 0;
    justify-content: flex-end;
    width: auto;
    flex-shrink: 0;
  }
  .nav-lang .lang-switcher__menu {
    /* Keep the list inside the open mobile sheet */
    z-index: 1320;
  }
}

@media (min-width: 900px) {
  .site-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #252530;
  }
  .site-masthead {
    flex: 0 0 auto;
    background: transparent;
    backdrop-filter: none;
    border: none;
  }
  .mast-inner {
    padding: 14px 0;
  }
  .mast-inner.wrap {
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    background: transparent;
    pointer-events: auto;
    overflow: visible;
  }
  .nav-panel {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px 20px;
  }
  .nav-mobile-head {
    display: contents;
  }
  .nav-mobile-brand {
    display: none;
  }
  .nav-lang {
    order: 2;
    margin-left: 2px;
  }
  .nav-actions {
    order: 1;
    flex-wrap: nowrap;
    gap: 8px 12px;
    margin-left: auto;
  }
  .nav-backdrop { display: none !important; }
}
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer; text-decoration: none; }
.btn-primary { background: #e53935; color: #fff; }
.btn-primary:hover { background: #c62828; text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent;
  color: #e53935;
  border: 1px solid #e53935;
}
.btn-outline:hover {
  background: rgba(229, 57, 53, 0.12);
  text-decoration: none;
  color: #fff;
  border-color: #c62828;
}
.btn-secondary { background: #252530; color: #fff; }
.btn-secondary:hover { background: #333; text-decoration: none; color: #fff; }
.form-section-title { font-size: 1.05rem; margin: 0 0 12px; color: #e8e8ee; }
.branding-fields { border: 1px solid #252530; border-radius: 10px; padding: 16px 18px; margin: 16px 0; }
.branding-fields legend { padding: 0 8px; color: #ccc; font-size: 0.9rem; }
.branding-hint { color: #888; font-size: 0.88rem; margin: 0 0 12px; }
.branding-logo-block { margin-bottom: 14px; }
.branding-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  margin: 8px 0 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed #3d3d4a;
  background: #12121a;
}
.branding-logo-preview__img {
  max-width: 96px;
  max-height: 96px;
  border-radius: 10px;
  object-fit: contain;
}
.branding-logo-preview__placeholder { color: #777; font-size: 0.88rem; text-align: center; }
.branding-file-input { margin-bottom: 0 !important; }
.branding-url-input { margin-bottom: 14px; }
.branding-color-row {
  display: grid;
  grid-template-columns: 56px 1fr 36px;
  grid-template-rows: auto auto;
  gap: 8px 10px;
  align-items: center;
  margin-bottom: 6px;
}
.branding-color-picker {
  width: 56px !important;
  height: 44px !important;
  padding: 2px !important;
  margin: 0 !important;
  border: 1px solid #3d3d4a !important;
  border-radius: 8px !important;
  cursor: pointer;
  background: transparent;
}
.branding-hex-input {
  margin: 0 !important;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
}
.branding-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid #555;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}
.branding-color-presets {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.branding-preset {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #444;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
}
.branding-preset:hover {
  transform: scale(1.08);
  border-color: #fff;
}
.branding-live-preview {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #2a2a36;
}
.branding-live-preview__label {
  display: block;
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.branding-live-preview__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--preview-primary, #e53935) 0%, color-mix(in srgb, var(--preview-primary, #e53935) 70%, #000) 100%);
  border: 2px solid var(--preview-secondary, #fff);
}
.branding-live-preview__name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--preview-secondary, #fff);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.branding-live-preview__logo img {
  border-radius: 8px;
  object-fit: contain;
}
.color-swatch { display: inline-block; width: 28px; height: 28px; border-radius: 6px; border: 1px solid #444; vertical-align: middle; }
.team-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* Team profile & organico */
.team-roster-page { padding-top: 20px; }
.team-profile-header {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}
.team-profile-header__photo,
.team-profile-photo-preview {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--card-border, #2a2a36);
}
.team-profile-header__desc { color: #bbb; line-height: 1.55; margin: 8px 0 0; }

.roster-hero {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
  padding: 0;
  overflow: hidden;
}
.roster-hero__intro {
  padding: 22px 22px 18px;
}
.roster-hero__media {
  width: 100%;
  line-height: 0;
  background: #0a0a0e;
  border-top: 1px solid #2a2a36;
}
.roster-hero__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border: none;
  border-radius: 0;
}
.roster-hero__photo--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 180px;
  padding: 28px 20px;
  background: #12121a;
  border-top: 1px solid #2a2a36;
  border-radius: 0;
  color: #777;
  font-size: 0.9rem;
  line-height: 1.4;
}
.roster-hero__club {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.roster-hero__title { margin: 0 0 10px; font-size: 1.75rem; color: #fff; }
.roster-hero__desc { color: #bbb; line-height: 1.55; margin: 0; font-size: 0.95rem; }
.roster-hero__desc--muted { color: #888; }
.roster-hero__desc p { margin: 0 0 8px; }
.team-details-meta {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #999;
  line-height: 1.5;
}
.team-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.team-details-footer {
  margin-top: 28px;
  color: #888;
  font-size: 0.9rem;
}
.team-public-page { padding-top: 20px; padding-bottom: 48px; }
.team-public-hero { margin-bottom: 28px; }
.team-public-meta {
  margin: 0 0 12px;
  color: #aaa;
  font-size: 0.92rem;
}
.team-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.team-public-section { margin-bottom: 32px; }
.team-public-more { margin-top: 16px; }
.team-public-more a { color: #e53935; text-decoration: none; }
.team-public-more a:hover { text-decoration: underline; }
.team-public-roster .roster-section { margin-bottom: 16px; }
.team-public-empty { margin-top: 24px; }
.team-public-empty { margin-top: 24px; }
.team-directory { padding-top: 20px; padding-bottom: 48px; }
.team-directory-filters { margin: 20px 0 16px; }
.team-directory-filters__search { margin-bottom: 16px; }
.team-directory-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-start;
}
.team-directory-filters__field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.team-directory-filters__field--chips {
  flex: 1 1 auto;
}
.team-directory-filters__label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #9a9aaa;
  line-height: 1.2;
  min-height: 1.2em;
}
.team-directory-filters__label--spacer {
  visibility: hidden;
}
.team-directory-filters__select {
  width: 100%;
  max-width: 240px;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #34344a;
  background: #14141c;
  color: #fff;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.team-directory-filters__select:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.25);
}
.team-directory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}
.filter-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  user-select: none;
  margin: 0;
}
.filter-chip__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.filter-chip__face {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #34344a;
  background: #14141c;
  color: #b8b8c8;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.filter-chip:hover .filter-chip__face {
  border-color: #4a4a62;
  color: #eee;
}
.filter-chip__input:focus-visible + .filter-chip__face {
  outline: 2px solid rgba(229, 57, 53, 0.55);
  outline-offset: 2px;
}
.filter-chip.is-active .filter-chip__face,
.filter-chip__input:checked + .filter-chip__face {
  border-color: rgba(229, 57, 53, 0.75);
  background: rgba(229, 57, 53, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(229, 57, 53, 0.2);
}
.filter-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
  flex-shrink: 0;
}
.filter-chip__dot--live {
  background: #e53935;
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.7);
}
.filter-chip.is-active .filter-chip__dot--live,
.filter-chip__input:checked + .filter-chip__face .filter-chip__dot--live {
  animation: filter-chip-pulse 1.4s ease-in-out infinite;
}
.filter-chip__icon {
  font-size: 0.7rem;
  opacity: 0.85;
  line-height: 1;
}
@keyframes filter-chip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.team-directory-filters__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.team-directory-filters__reset {
  height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.team-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.team-directory-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #16161e;
  border: 1px solid #2a2a36;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.team-directory-card:hover {
  border-color: #e53935;
  transform: translateY(-1px);
}
.team-directory-card__media { flex-shrink: 0; }
.team-directory-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.team-directory-card__photo--logo {
  object-fit: contain;
  background: #111;
  padding: 8px;
}
.team-directory-card__photo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f1f28;
  color: #e53935;
  font-weight: 700;
  font-size: 1.25rem;
}
.team-directory-card__body { min-width: 0; }
.team-directory-card__club {
  margin: 0 0 4px;
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.team-directory-card__name {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.25;
}
.team-directory-card__meta {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #999;
}
.team-directory-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.team-directory-footer {
  margin-top: 28px;
  font-size: 0.9rem;
}
.team-directory-footer a { color: #e53935; text-decoration: none; }
.team-directory-footer a:hover { text-decoration: underline; }
.roster-hero__photo--logo { object-fit: contain; background: #111; padding: 16px; }
.team-public-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--club-primary, #e53935);
}
.live-card__team-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(229, 57, 53, 0.45);
  text-underline-offset: 2px;
}
.live-card__team-link:hover { color: #fff; text-decoration-color: #e53935; }
.team-streaming-staff {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #2a2a36;
}
.team-streaming-staff h2 { margin: 24px 0 12px; font-size: 1.1rem; }
.team-streaming-staff__self { margin-bottom: 20px; }
.team-streaming-staff__self h2 { margin-top: 0; font-size: 1.05rem; }
.roster-layout--readonly { grid-template-columns: 1fr; }
.roster-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.roster-stat {
  font-size: 0.8rem;
  color: #aaa;
  background: #12121a;
  border: 1px solid #2a2a36;
  padding: 5px 10px;
  border-radius: 999px;
}
.roster-stat strong { color: #fff; }
.team-dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 0.92rem;
}
.team-dashboard-nav__club {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.team-dashboard-nav__club:hover { color: #e53935; text-decoration: none; }
.team-dashboard-nav__sep { color: #555; }
.team-dashboard-nav a:not(.team-dashboard-nav__club) { color: #aaa; }
.team-dashboard-nav a:not(.team-dashboard-nav__club):hover { color: #fff; }
.team-dashboard-desc { color: #bbb; max-width: 640px; line-height: 1.55; }
.team-dashboard-photo { margin: 12px 0 16px; }
.team-dashboard-photo img { max-height: 200px; }

.roster-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.roster-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.roster-section { padding: 0; overflow: hidden; }
.roster-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #2a2a36;
  background: #14141c;
}
.roster-section__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.roster-section__count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #aaa;
  background: #1c1c26;
  border: 1px solid #333;
  padding: 3px 10px;
  border-radius: 999px;
}
.roster-section__empty {
  margin: 0;
  padding: 20px 18px;
  color: #777;
  font-size: 0.9rem;
  font-style: italic;
}
.roster-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.roster-list .roster-card {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #252530;
  background: transparent;
}
.roster-list .roster-card:last-child { border-bottom: none; }

.roster-sidebar__form { padding: 20px; }
.roster-sidebar__title { margin: 0 0 6px; font-size: 1.1rem; color: #fff; }
.roster-sidebar__lead { margin: 0 0 16px; font-size: 0.85rem; color: #888; line-height: 1.4; }
.roster-sidebar .roster-member-form { position: sticky; top: 16px; }

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.roster-grid--compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.roster-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 16px;
  align-items: center;
  padding: 14px 18px;
}
.roster-card__avatar { flex-shrink: 0; }
.roster-card__body { min-width: 0; text-align: left; }
.roster-card__name {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.roster-card__number {
  font-size: 0.88rem;
  color: var(--avatar-primary, #e53935);
  font-weight: 800;
}
.roster-card__role { margin: 0; font-size: 0.82rem; color: #e53935; font-weight: 600; }
.roster-card__bio {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #999;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.roster-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.roster-card__btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #3d3d4a;
  background: #252530;
  color: #eee;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.roster-card__btn:hover { background: #333; color: #fff; text-decoration: none; }
.roster-card__btn--danger { border-color: #5c2020; color: #ffb4b4; }
.roster-card__btn--danger:hover { background: #3d1b1b; }

.roster-card--compact {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 16px;
  border: 1px solid #2a2a36;
  border-radius: 12px;
  background: #16161e;
}
.roster-card--compact .roster-card__body { text-align: center; }
.roster-card--compact .roster-card__name { justify-content: center; }
.roster-card--compact .roster-card__avatar { display: flex; justify-content: center; }

@media (max-width: 960px) {
  .roster-layout { grid-template-columns: 1fr; }
  .roster-sidebar .roster-member-form { position: static; }
  .roster-sidebar { order: -1; }
}
@media (max-width: 640px) {
  .roster-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .roster-card__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
  }
}

.roster-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--avatar-secondary, #fff);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.roster-avatar--photo { display: block; }
.roster-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: calc(var(--width, 96px) * 0.32);
  color: var(--avatar-secondary, #fff);
  background: linear-gradient(145deg, var(--avatar-primary, #e53935), color-mix(in srgb, var(--avatar-primary, #e53935) 55%, #000));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.04em;
}
.roster-form-photo-preview { margin: 8px 0 12px; }

.club-header { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.club-header-logo { border-radius: 10px; object-fit: contain; }
.club-meta { color: #aaa; margin: 4px 0 0; font-size: 0.92rem; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.flash.notice { background: #1b3d2a; color: #a5f0b8; }
.flash.alert { background: #3d1b1b; color: #ffb4b4; }
.hero-split {
  padding: 40px 0 48px;
  text-align: left;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-app-name {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.2;
}
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid #3a3a48;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}
.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.8);
}
.hero-split h1 {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  margin: 0 0 18px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-accent { color: #e53935; }
.hero-split .tagline {
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  color: #b8b8c4;
  max-width: none;
  margin: 0 0 28px;
  line-height: 1.65;
}
.hero-split .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.hero-features {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 560px;
}
.hero-feature-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 20px;
  box-sizing: border-box;
}
.hero-feature-item:not(.hero-feature-item--last)::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  right: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 12%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.08) 88%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}
.hero-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: #e53935;
  font-size: 1.4rem;
  line-height: 1;
}
.hero-feature-icon i {
  display: block;
}
.hero-feature-label {
  display: block;
  width: 100%;
  max-width: 9.5rem;
  margin: 0 auto;
  text-align: center;
  font-size: 0.82rem;
  color: #ccc;
  line-height: 1.4;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.22) 0%, transparent 68%);
  pointer-events: none;
}
.hero-devices-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

@media (max-width: 899px) {
  .hero-split { padding: 28px 0 36px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-content { max-width: none; }
  .hero-features {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-feature-item {
    padding: 16px 18px;
  }
  .hero-feature-item:not(.hero-feature-item--last)::after {
    display: none;
  }
  .hero-feature-item:nth-child(odd):not(:nth-child(3))::after {
    display: block;
  }
  .hero-feature-item:nth-child(1)::before,
  .hero-feature-item:nth-child(2)::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.08) 12%,
      rgba(255, 255, 255, 0.32) 50%,
      rgba(255, 255, 255, 0.08) 88%,
      rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
  }
  .hero-visual { min-height: 200px; }
  .hero-devices-img { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-split .hero-cta { flex-direction: column; }
  .hero-split .hero-cta .btn { width: 100%; text-align: center; }
}
.section {
  padding-top: 40px;
  padding-bottom: 40px;
}
/* Keep horizontal inset when .section shares a node with .wrap (padding shorthand must not win). */
.section.wrap {
  padding-left: 20px;
  padding-right: 20px;
}
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
}
.section h2 { font-size: 1.6rem; margin: 0 0 20px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { background: #14141c; border: 1px solid #2a2a36; border-radius: 12px; padding: 22px; }
.step--visual { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.step--visual .step-num,
.step--visual h3,
.step--visual p { padding-left: 22px; padding-right: 22px; }
.step--visual .step-num { padding-top: 18px; margin: 0; }
.step--visual h3 { margin: 8px 0 0; padding-bottom: 0; }
.step--visual p { margin: 8px 0 0; padding-bottom: 22px; color: #aaa; font-size: 0.92rem; }
.step-visual {
  width: 100%;
  background: #0a0a0e;
  border-bottom: 1px solid #2a2a36;
  line-height: 0;
}
.step-visual-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.step-num { color: #e53935; font-weight: 800; font-size: 0.85rem; }
.plans-teaser { text-align: center; }
.plans-teaser-lead {
  color: #aaa;
  max-width: 520px;
  margin: 0 auto 28px;
}
.plans-teaser-visual {
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 0;
}
.plans-teaser-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
  align-items: stretch;
}
.plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #14141c;
  border: 1px solid #2a2a36;
  border-radius: 14px;
  padding: 24px;
  box-sizing: border-box;
}
.plan-card h3,
.plan-card__title {
  margin: 0 0 8px;
}
.plan-card__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.15rem;
}
.plan-card__title i {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
  color: #e53935;
}
.plan-card__title i.fa-seedling {
  color: #81c784;
}
.plan-card__title i.fa-rocket {
  color: #64b5f6;
}
.plan-card__title i.fa-crown {
  color: #ffb74d;
}
.plan-price { font-size: 1.8rem; font-weight: 800; margin: 12px 0; }
.plan-card ul {
  flex: 1 1 auto;
  padding-left: 18px;
  color: #bbb;
  margin: 0 0 20px;
}
.plan-card > .btn,
.plan-card > .plan-action-hint,
.plan-card > .plan-interval-actions {
  margin-top: auto;
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature-card { background: #14141c; border-radius: 12px; padding: 20px; border: 1px solid #2a2a36; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.stripe-secure {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 0;
  padding: 14px 16px;
  background: #14141c;
  border: 1px solid #2a2a36;
  border-radius: 10px;
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.5;
}
.stripe-secure i {
  color: #635bff;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.stripe-secure p { margin: 0; }
.stripe-secure strong { color: #ddd; }
.stripe-secure--compact {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 0.85rem;
}
.stripe-secure--compact i { font-size: 0.95rem; color: #888; }
.site-footer { border-top: 1px solid #252530; padding: 32px 0; margin-top: 40px; color: #888; font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer__legal { flex: 1 1 100%; margin-top: 4px; }
.site-footer__legal p { margin: 0 0 6px; line-height: 1.45; }
.site-footer__legal p:last-child { margin-bottom: 0; }
.compare-table { width: 100%; min-width: 520px; border-collapse: collapse; margin-top: 0; font-size: 0.9rem; }
.compare-table th, .compare-table td { padding: 10px 12px; border-bottom: 1px solid #2a2a36; text-align: left; }
.compare-table th { color: #aaa; font-weight: 600; }
.billing-documents h2 { margin-top: 0; }
.billing-table { font-size: 0.9rem; }
.billing-table a { white-space: nowrap; }
.card { background: #14141c; border: 1px solid #2a2a36; border-radius: 12px; padding: 20px; margin-bottom: 16px; }

.seo-prose { max-width: 720px; margin: 0 auto; color: #bbb; line-height: 1.65; }
.seo-prose h2 { color: #fff; font-size: 1.25rem; margin: 28px 0 12px; text-align: left; }
.seo-prose h2:first-child { margin-top: 0; }
.seo-prose p { margin: 0 0 14px; }
.seo-prose ul { margin: 0 0 16px; padding-left: 1.25rem; }
.seo-prose a { color: #e53935; }
@media (max-width: 899px) {
  .seo-prose h2 { font-size: 1.15rem; line-height: 1.35; }
}
.seo-page .seo-lead { color: #aaa; max-width: 640px; line-height: 1.55; margin-bottom: 28px; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: #14141c;
  border: 1px solid #2a2a36;
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 0 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  padding: 16px 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: #e53935;
  font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: #aaa; margin: 0 0 16px; line-height: 1.55; font-size: 0.95rem; }

.legal-doc { max-width: 760px; padding-top: 24px; padding-bottom: 48px; color: #bbb; line-height: 1.65; font-size: 0.95rem; }
.legal-doc h1 { color: #fff; font-size: 1.6rem; margin-bottom: 8px; }
.legal-doc h2 { color: #fff; font-size: 1.1rem; margin: 28px 0 10px; }
.legal-doc h3 { color: #ddd; font-size: 1rem; margin: 20px 0 8px; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 14px; padding-left: 1.25rem; }
.legal-doc a { color: #e53935; }
.legal-meta { color: #888; font-size: 0.88rem; margin-bottom: 24px; }
.legal-back { margin-top: 32px; }
.legal-doc .table-scroll { margin: 12px 0 16px; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0; font-size: 0.88rem; }
.legal-table th, .legal-table td { border: 1px solid #2a2a36; padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-table th { background: #14141c; color: #ccc; }
.legal-accept {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0 10px;
  font-size: 0.9rem;
  color: #c8c8d4;
  line-height: 1.5;
  cursor: pointer;
}
.legal-accept input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: #e53935;
  cursor: pointer;
}
.legal-accept-text { flex: 1; min-width: 0; }
.legal-accept-text a { color: #e53935; text-decoration: underline; }
.legal-accept-hint {
  font-size: 0.82rem;
  color: #9a9aaa;
  margin: 0 0 18px;
  line-height: 1.5;
  padding-left: 30px;
}
.auth-forgot { margin: 4px 0 14px; font-size: 0.88rem; text-align: right; }
.auth-forgot a { color: #e53935; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 8px; border-bottom: 1px solid #2a2a36; text-align: left; }
/* Wide roster/match tables: scroll inside the card instead of expanding the page. */
@media (max-width: 899px) {
  .card:has(table.data),
  .team-streaming-staff:has(table.data),
  .billing-documents:has(table.data) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  table.data {
    min-width: 520px;
  }
}
input, select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #3d3d4a;
  background: #1c1c26;
  color: #fff;
  font-size: 1rem;
}
input:focus, select:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.25);
}
input::placeholder { color: #666; }
label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: #c8c8d4; font-weight: 500; }
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 48px 20px 64px;
  text-align: center;
}
.auth-page h1 { margin: 0 0 8px; color: #fff; }
.auth-page .auth-lead { color: #b8b8c4; margin: 0 0 24px; max-width: 480px; line-height: 1.5; }
.auth-page .card {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 28px 26px;
  text-align: left;
  background: #16161e;
  border: 1px solid #3a3a48;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.auth-page .card form .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 1rem;
}
.auth-page .card-wide { max-width: 480px; }
.auth-page .auth-footer { margin-top: 20px; font-size: 0.92rem; color: #aaa; text-align: center; }

.input-toggle { margin-bottom: 14px; }
.input-toggle__field { position: relative; }
.input-toggle__input {
  width: 100%;
  padding: 10px 44px 10px 12px;
  margin-bottom: 0;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0f0f12;
  color: #fff;
  font-size: 1rem;
}
.input-toggle__input:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.25);
}
.input-toggle--plain .input-toggle__input--plain {
  padding-right: 12px;
  margin-bottom: 0;
}
.input-toggle__btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #9a9aaa;
  cursor: pointer;
}
.input-toggle__btn:hover,
.input-toggle__btn:focus-visible {
  color: #e53935;
  outline: none;
}
.input-toggle__btn i { font-size: 1.05rem; pointer-events: none; }
.auth-page .auth-forgot { margin: -4px 0 16px; font-size: 0.88rem; }

.plan-price-alt {
  color: #aaa;
  font-size: 0.9rem;
  margin: -8px 0 12px;
}
.plan-interval-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.plan-interval-btn {
  width: 100%;
  text-align: center;
  font-size: 0.92rem;
  padding: 12px 10px;
  box-sizing: border-box;
}
.plan-action-hint {
  color: #888;
  font-size: 0.85rem;
  margin: 8px 0 0;
}
.plan-change-info-wrap {
  margin-top: 16px;
}
.plan-change-info {
  display: inline-block;
}
.plan-change-info__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: #888;
  list-style: none;
  user-select: none;
}
.plan-change-info__trigger:hover {
  background: #1e1e28;
}
.plan-change-info__trigger::-webkit-details-marker {
  display: none;
}
.plan-change-info__trigger i {
  color: #635bff;
  font-size: 1.1rem;
}
.plan-change-info[open] .plan-change-info__trigger {
  color: #ddd;
  background: #1e1e28;
}
.plan-change-info__box {
  margin-top: 12px;
  max-width: 640px;
  padding: 14px 16px;
  background: #14141c;
  border: 1px solid #2a2a36;
  border-radius: 10px;
  color: #aaa;
  font-size: 0.88rem;
  line-height: 1.55;
}
.plan-change-info__title {
  margin: 0 0 10px;
  color: #ddd;
  font-weight: 600;
  font-size: 0.92rem;
}
.plan-change-info__box ul {
  margin: 0;
  padding-left: 1.2rem;
}
.plan-change-info__box li + li {
  margin-top: 8px;
}

/* Cookie banner (GDPR / ePrivacy) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 16px;
  background: rgba(10, 10, 14, 0.96);
  border-top: 1px solid #2a2a36;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  flex: 1 1 280px;
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.cookie-banner__desc {
  margin: 0;
  color: #aaa;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-banner__link {
  color: #e53935;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  white-space: nowrap;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #ff6b6b;
  cursor: pointer;
  text-decoration: none;
}

.footer-link-btn:hover {
  color: #e53935;
  text-decoration: underline;
}

body.cookie-banner-visible {
  padding-bottom: 120px;
}

/* —— Archivio replay società —— */
.replay-archive__card {
  padding: 0;
  overflow: hidden;
}

.replay-archive-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.replay-archive-table th,
.replay-archive-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #2a2a36;
  vertical-align: middle;
}

.replay-archive-table th {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9a9aaa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.replay-archive-table__col-thumb {
  width: 92px;
}

.replay-archive-table__col-match {
  width: 22%;
}

.replay-archive-table__col-details {
  width: 30%;
}

.replay-archive-table__col-status {
  width: 14%;
}

.replay-archive-table__col-actions {
  width: 16%;
}

.replay-archive__detail-line {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #e8e8f0;
}

.replay-archive__meta-line {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #9a9aaa;
}

.replay-archive-table__col-status .replay-archive__status {
  margin-bottom: 0;
}

.replay-archive__thumb {
  position: relative;
  display: block;
  width: 80px;
  height: 45px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f0f14;
  border: 1px solid #3a3a48;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

a.replay-archive__thumb:hover {
  border-color: #e53935;
  transform: scale(1.03);
}

.replay-archive__thumb--static {
  cursor: default;
  opacity: 0.72;
}

.replay-archive__thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.replay-archive__thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.25rem;
  color: #555;
}

.replay-archive__play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.95);
  color: #fff;
  font-size: 0.75rem;
  line-height: 32px;
  text-align: center;
  padding-left: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.replay-archive__title-form,
.replay-archive__privacy-form,
.replay-archive__action-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.replay-archive__title-form {
  display: block;
  width: 100%;
}

.replay-archive__title-input {
  width: 100%;
  margin: 0;
  padding: 7px 8px;
  font-size: 0.88rem;
}

.replay-archive__privacy-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #3a3a48;
  background: #1c1c26;
  color: #c8c8d4;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.replay-archive__privacy-toggle:hover {
  border-color: #6a6a7a;
  background: #262632;
  color: #fff;
}
.replay-archive__privacy-toggle--public {
  color: #81c784;
  border-color: rgba(129, 199, 132, 0.35);
  background: rgba(76, 175, 80, 0.12);
}
.replay-archive__privacy-toggle--public:hover {
  border-color: #81c784;
  background: rgba(76, 175, 80, 0.2);
  color: #a5d6a7;
}
.replay-archive__privacy-toggle--unlisted {
  color: #ffca28;
  border-color: rgba(255, 202, 40, 0.35);
  background: rgba(255, 193, 7, 0.1);
}
.replay-archive__privacy-toggle--unlisted:hover {
  border-color: #ffca28;
  background: rgba(255, 193, 7, 0.18);
  color: #ffe082;
}
.replay-archive__privacy-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.replay-archive__status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.replay-archive__status--ready {
  background: rgba(76, 175, 80, 0.18);
  color: #81c784;
}

.replay-archive__status--processing {
  background: rgba(255, 193, 7, 0.15);
  color: #ffca28;
}

.replay-archive__status--failed,
.replay-archive__status--expired {
  background: rgba(229, 57, 53, 0.15);
  color: #ef9a9a;
}

.replay-archive__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.replay-archive__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 30px;
  min-width: 30px;
  padding: 0 7px;
  border-radius: 8px;
  border: 1px solid #3d3d4a;
  background: #1c1c26;
  color: #e8e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.replay-archive__action:hover {
  background: #262632;
  border-color: #5a5a68;
  color: #fff;
}

.replay-archive__action--secondary {
  font-size: 0.72rem;
  padding: 0 6px;
}

.replay-archive__action--danger {
  border-color: rgba(229, 57, 53, 0.45);
  color: #ef9a9a;
}

.replay-archive__action--danger:hover {
  background: rgba(229, 57, 53, 0.15);
  border-color: #e53935;
  color: #ffcdd2;
}

.replay-archive .replay-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.replay-archive .replay-filter-form label {
  margin: 0 0 4px;
}

.replay-archive .replay-filter-form .input {
  width: auto;
  min-width: 10rem;
  margin: 0;
}

.replay-archive__expiry-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.replay-archive__expiry-input {
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid #444;
  background: #1a1a1a;
  color: #eee;
}

.replay-archive__expiry-save {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #2a2a2a;
  color: #ddd;
  cursor: pointer;
}

.replay-archive__expiry-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.replay-archive__expiry-extend {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #444;
  background: #222;
  color: #aaa;
  cursor: pointer;
}

.replay-archive__expiry-extend:hover {
  color: #fff;
  border-color: #666;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .replay-archive-table thead {
    display: none;
  }

  .replay-archive-table,
  .replay-archive-table tbody,
  .replay-archive-table tr,
  .replay-archive-table td {
    display: block;
    width: 100%;
  }

  .replay-archive-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid #2a2a36;
  }

  .replay-archive-table td {
    padding: 4px 0;
    border: none;
  }

  .replay-archive-table__col-thumb {
    margin-bottom: 8px;
  }

  .replay-archive-table__col-actions .replay-archive__actions {
    justify-content: flex-start;
    margin-top: 8px;
  }
}
