:root {
  color-scheme: dark;
  --bg: #040912;
  --bg-soft: #07111f;
  --ink: #f6f8fb;
  --muted: #9aa7ba;
  --dim: #64748b;
  --panel: rgba(8, 18, 32, 0.9);
  --panel-strong: rgba(10, 23, 41, 0.96);
  --line: #213047;
  --line-strong: #334766;
  --red: #ff3047;
  --red-soft: rgba(255, 48, 71, 0.14);
  --green: #29e07a;
  --green-soft: rgba(41, 224, 122, 0.12);
  --blue: #4a8dff;
  --orange: #ff7a1a;
  --pink: #ff3d8b;
  --cyan: #31d7ff;
  --gold: #ffc857;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 84% 10%, rgba(49, 215, 255, 0.16), transparent 26rem),
    radial-gradient(circle at 8% 24%, rgba(255, 48, 71, 0.17), transparent 24rem),
    radial-gradient(circle at 72% 92%, rgba(41, 224, 122, 0.08), transparent 25rem),
    linear-gradient(180deg, #02050b 0%, #07111f 48%, #02050b 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 48, 71, 0.11) 42% 43%, transparent 43% 100%),
    linear-gradient(70deg, transparent 0 62%, rgba(49, 215, 255, 0.09) 62% 63%, transparent 63% 100%);
  opacity: 0.95;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: #4a9cff;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(49, 215, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 48, 71, 0.12), transparent 34%, rgba(49, 215, 255, 0.1)),
    rgba(3, 8, 17, 0.88);
  backdrop-filter: blur(22px);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 48, 71, 0.34), 0 0 44px rgba(49, 215, 255, 0.12);
  font-size: 1.5rem;
  font-weight: 950;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.18);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 1.72rem;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(255, 48, 71, 0.22);
}

.brand-copy strong span {
  color: var(--red);
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.search {
  min-width: 0;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 20px;
  border: 1px solid rgba(74, 141, 255, 0.34);
  border-radius: 12px;
  color: #9eb2cf;
  background: linear-gradient(180deg, rgba(20, 36, 60, 0.9), rgba(7, 16, 30, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 24px rgba(74, 141, 255, 0.08);
}

.search:focus-within {
  border-color: rgba(49, 215, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(49, 215, 255, 0.1), 0 0 28px rgba(49, 215, 255, 0.14);
}

.search::after {
  content: "⌘ K";
  color: #91a1b8;
  border-radius: 7px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 850;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #dce7f7;
  background: transparent;
}

.search input::placeholder {
  color: #95a4bb;
}

.top-actions,
.head-actions,
.row-actions,
.mini-actions,
.dialog-actions,
.category-strip,
.score-actions {
  display: flex;
  align-items: center;
}

.top-actions,
.head-actions,
.dialog-actions {
  gap: 14px;
}

[hidden] {
  display: none !important;
}

.admin-button {
  border-color: rgba(74, 141, 255, 0.42);
}

.is-admin .admin-button {
  color: var(--green);
  border-color: rgba(41, 224, 122, 0.45);
  background: var(--green-soft);
}

.workspace {
  width: min(100%, 1640px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(360px, 410px);
  gap: 20px;
  padding: 26px 18px 22px;
}

.sports-panel,
.directory-panel,
.info-card {
  min-width: 0;
  border: 1px solid rgba(80, 113, 160, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(16, 31, 52, 0.88), rgba(4, 12, 24, 0.92)),
    rgba(8, 18, 32, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.sports-panel {
  align-self: start;
  padding: 22px 14px 14px;
  position: sticky;
  top: 110px;
  overflow: hidden;
}

.sports-panel::after {
  content: "";
  display: block;
  height: 220px;
  margin-top: 28px;
  border-radius: 12px;
  border: 1px solid rgba(74, 141, 255, 0.18);
  background:
    url("./assets/rivastube-thumbnail.png") center / 74% no-repeat,
    radial-gradient(circle at 80% 24%, rgba(255, 48, 71, 0.28), transparent 4rem),
    linear-gradient(145deg, rgba(74, 141, 255, 0.12), transparent 45%),
    linear-gradient(180deg, transparent, rgba(255, 48, 71, 0.1)),
    #07111f;
  opacity: 0.82;
}

.panel-head,
.directory-head,
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-head.compact {
  align-items: center;
}

.section-label {
  margin: 0 0 8px;
  color: #ff4056;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 48, 71, 0.32);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  letter-spacing: 0;
}

h1,
h2 {
  font-size: 1.5rem;
  line-height: 1.12;
}

h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.sport-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.sport-item {
  --sport-accent: var(--red);
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(72, 101, 148, 0.36);
  border-left: 3px solid var(--sport-accent);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--sport-accent) 12%, transparent), transparent 44%),
    linear-gradient(135deg, rgba(14, 29, 50, 0.98), rgba(5, 14, 27, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sport-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%);
  transition: transform 360ms ease;
}

.sport-item.active,
.sport-item:hover {
  border-color: var(--sport-accent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sport-accent) 22%, transparent), transparent 55%),
    linear-gradient(135deg, rgba(13, 28, 48, 0.98), rgba(8, 17, 31, 0.96));
  box-shadow: 0 0 26px color-mix(in srgb, var(--sport-accent) 32%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.sport-item:hover::after,
.sport-item.active::after {
  transform: translateX(120%);
}

.sport-glyph {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--sport-accent);
  font-size: 1.45rem;
}

.sport-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sport-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}

.sport-copy small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.sport-chevron {
  color: #adbbce;
  font-size: 1.9rem;
  line-height: 1;
}

.directory-panel {
  padding: 20px 24px 24px;
  border-color: rgba(49, 215, 255, 0.28);
  box-shadow: var(--shadow), 0 0 0 1px rgba(74, 141, 255, 0.1), 0 0 38px rgba(49, 215, 255, 0.13);
}

.directory-head {
  padding-bottom: 20px;
  border-bottom: 1px solid #1e2c43;
}

#activeSportDescription {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.category-strip {
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.category-pill {
  min-height: 40px;
  border: 1px solid rgba(74, 141, 255, 0.28);
  border-radius: 999px;
  padding: 0 18px;
  color: #c7d3e5;
  background: linear-gradient(180deg, rgba(15, 29, 50, 0.94), rgba(7, 16, 30, 0.94));
  font-weight: 900;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.category-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(49, 215, 255, 0.48);
  box-shadow: 0 0 18px rgba(49, 215, 255, 0.12);
}

.category-pill.active {
  color: #fff;
  border-color: rgba(255, 48, 71, 0.9);
  background: linear-gradient(180deg, #ff3047, #b9152a);
  box-shadow: 0 0 24px rgba(255, 48, 71, 0.32);
}

.category-pill.add {
  color: var(--green);
  border-color: rgba(41, 224, 122, 0.28);
  background: var(--green-soft);
}

.category-pill.manage {
  color: #9ec5ff;
  border-color: rgba(74, 141, 255, 0.3);
}

.category-pill.danger,
.ghost-button.danger {
  color: #ff6676;
  border-color: rgba(255, 48, 71, 0.45);
  background: var(--red-soft);
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: center;
  border: 1px solid rgba(75, 107, 154, 0.36);
  border-radius: 13px;
  padding: 14px;
  background:
    linear-gradient(100deg, rgba(255, 48, 71, 0.08), transparent 22%, rgba(49, 215, 255, 0.07)),
    linear-gradient(180deg, rgba(10, 23, 41, 0.96), rgba(4, 12, 24, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.link-row:hover {
  transform: translateY(-2px);
  border-color: rgba(49, 215, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 24px rgba(49, 215, 255, 0.08);
}

.link-art {
  width: 86px;
  min-height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  background: #f5f5f5;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(255, 48, 71, 0.16);
}

.link-art img {
  width: 100%;
  height: 100%;
  min-height: 86px;
  object-fit: cover;
  display: block;
}

.title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.title-line h3 {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 1.05rem;
  line-height: 1.2;
}

.link-main a,
.toronto-item a {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4aa3ff;
  font-size: 0.88rem;
  font-weight: 850;
}

.link-main p {
  margin: 10px 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.row-actions {
  grid-column: 2;
  align-self: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  max-width: none;
}

.status-badge,
.small-tag,
.score-status,
.toronto-score {
  display: inline-flex;
  width: fit-content;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 950;
}

.status-badge,
.small-tag {
  color: var(--green);
  border: 1px solid rgba(41, 224, 122, 0.28);
  background: var(--green-soft);
  box-shadow: 0 0 18px rgba(41, 224, 122, 0.08);
}

.small-tag.red {
  color: #ff7c8a;
  border-color: rgba(255, 48, 71, 0.22);
  background: var(--red-soft);
}

.info-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.info-card {
  padding: 18px 14px;
}

.info-card:first-child {
  border-color: rgba(255, 48, 71, 0.72);
}

.score-list,
.toronto-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.source-status {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.score-actions {
  gap: 8px;
}

.score-item,
.toronto-item {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(83, 116, 165, 0.38);
  border-radius: 13px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(49, 215, 255, 0.18), transparent 30%),
    linear-gradient(315deg, rgba(255, 48, 71, 0.18), transparent 34%),
    linear-gradient(180deg, #08172a, #040b16);
  position: relative;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.score-item::after {
  content: "";
  position: absolute;
  inset: auto -28px -54px auto;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.score-status {
  justify-self: center;
  color: var(--green);
  border: 1px solid rgba(41, 224, 122, 0.3);
  background: var(--green-soft);
}

.score-status.live {
  color: #fff;
  border-color: rgba(255, 48, 71, 0.6);
  background: linear-gradient(180deg, #ff3047, #b9152a);
}

.score-status.final {
  color: var(--green);
}

.score-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  text-align: center;
}

.score-team {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  font-weight: 900;
}

.team-crest {
  width: 56px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(255, 48, 71, 0.7), rgba(74, 141, 255, 0.42));
  box-shadow: 0 0 24px rgba(74, 141, 255, 0.22), 0 0 18px rgba(255, 48, 71, 0.1);
  font-size: 0.78rem;
}

.team-crest.has-logo {
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
}

.team-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.score-result {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  line-height: 1;
  white-space: nowrap;
}

.score-time {
  justify-self: center;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.score-item small {
  justify-self: center;
  color: var(--muted);
  font-weight: 850;
}

.toronto-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.48;
}

.toronto-score {
  color: #c9d5e8;
  background: rgba(255, 255, 255, 0.05);
}

.mini-actions {
  gap: 7px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.primary-button,
.ghost-button,
.icon-button,
.text-button {
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.primary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  min-height: 44px;
  padding: 0 16px;
  color: var(--green);
  border: 1px solid rgba(41, 224, 122, 0.42);
  background: linear-gradient(180deg, rgba(41, 224, 122, 0.2), rgba(41, 224, 122, 0.08));
  box-shadow: 0 0 22px rgba(41, 224, 122, 0.12);
}

.ghost-button,
.text-button {
  min-height: 40px;
  padding: 0 13px;
  color: #c9d5e8;
  border: 1px solid rgba(74, 141, 255, 0.28);
  background: linear-gradient(180deg, rgba(18, 34, 56, 0.94), rgba(6, 15, 29, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar .ghost-button {
  min-height: 52px;
  min-width: 134px;
}

.text-button.danger {
  color: #ff6676;
  border-color: rgba(255, 48, 71, 0.45);
  background: var(--red-soft);
}

.icon-button {
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, #ff3047, #c70b27);
  box-shadow: 0 0 18px rgba(255, 48, 71, 0.2);
}

.icon-button.light {
  color: #fff;
  border: 1px solid rgba(74, 141, 255, 0.3);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.empty-state {
  margin: 0;
  border: 1px dashed rgba(74, 141, 255, 0.38);
  border-radius: 12px;
  padding: 16px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(49, 215, 255, 0.06), transparent),
    rgba(255, 255, 255, 0.03);
}

.editor-dialog {
  width: min(92vw, 620px);
  border: 1px solid #2a3b56;
  border-radius: 10px;
  padding: 0;
  color: var(--ink);
  background: #07111f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.editor-dialog::backdrop {
  background: rgba(2, 6, 13, 0.68);
}

.editor-form {
  padding: 20px;
}

.fields {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(74, 141, 255, 0.32);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #0b1829;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-mark {
    animation: logoPulse 4.8s ease-in-out infinite;
  }

  .directory-panel {
    animation: panelGlow 5.5s ease-in-out infinite;
  }
}

@keyframes logoPulse {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(255, 48, 71, 0.3), 0 0 44px rgba(49, 215, 255, 0.12);
  }

  50% {
    box-shadow: 0 0 36px rgba(255, 48, 71, 0.44), 0 0 54px rgba(49, 215, 255, 0.2);
  }
}

@keyframes panelGlow {
  0%,
  100% {
    box-shadow: var(--shadow), 0 0 0 1px rgba(74, 141, 255, 0.1), 0 0 38px rgba(49, 215, 255, 0.11);
  }

  50% {
    box-shadow: var(--shadow), 0 0 0 1px rgba(74, 141, 255, 0.14), 0 0 46px rgba(49, 215, 255, 0.18);
  }
}

.field textarea {
  min-height: 98px;
  resize: vertical;
}

.dialog-actions {
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  }

  .info-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 12px 16px;
    min-height: 0;
  }

  .brand {
    justify-content: center;
  }

  .brand-mark {
    width: 46px;
    border-radius: 11px;
  }

  .brand-copy strong {
    font-size: 1.35rem;
  }

  .search {
    height: 50px;
    padding: 0 14px;
  }

  .search::after {
    display: none;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .topbar .ghost-button {
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    font-size: 0.86rem;
  }

  .workspace,
  .info-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
  }

  .sports-panel {
    position: static;
    padding: 14px;
    border-radius: 13px;
  }

  .sports-panel::after {
    display: none;
  }

  .sports-panel .panel-head {
    align-items: center;
    flex-direction: row;
  }

  .sports-panel h1 {
    font-size: 1.15rem;
  }

  .sport-list {
    display: flex;
    gap: 8px;
    margin: 14px -4px 0;
    padding: 0 4px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .sport-item {
    width: 142px;
    min-width: 142px;
    min-height: 70px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 11px;
    scroll-snap-align: start;
  }

  .sport-glyph {
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
  }

  .sport-copy strong {
    font-size: 0.9rem;
  }

  .sport-copy small {
    font-size: 0.72rem;
  }

  .sport-chevron {
    display: none;
  }

  .directory-panel,
  .info-card {
    border-radius: 13px;
  }

  .directory-panel {
    padding: 16px 12px;
  }

  .directory-head,
  .panel-head,
  .dialog-head {
    align-items: stretch;
    flex-direction: column;
  }

  .head-actions,
  .row-actions {
    justify-content: stretch;
  }

  .head-actions,
  .score-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .head-actions > *,
  .row-actions > * {
    flex: 1;
  }

  .category-strip {
    gap: 8px;
    margin: 14px -2px 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 2px 4px;
    -webkit-overflow-scrolling: touch;
  }

  .category-pill {
    min-height: 36px;
    padding: 0 14px;
    flex: 0 0 auto;
    font-size: 0.86rem;
  }

  .link-row {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    align-items: start;
  }

  .link-art {
    width: 68px;
    min-height: 68px;
    border-radius: 11px;
  }

  .link-art img {
    min-height: 68px;
  }

  .title-line {
    align-items: flex-start;
    gap: 6px;
  }

  .title-line h3 {
    flex-basis: 100%;
  }

  .link-main a,
  .toronto-item a {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .link-main p {
    margin: 8px 0 10px;
    font-size: 0.92rem;
  }

  .row-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .row-actions .text-button,
  .mini-actions .text-button {
    width: 100%;
  }

  .info-card {
    padding: 16px 12px;
  }

  .info-card .panel-head.compact {
    flex-direction: row;
    align-items: center;
  }

  .score-actions {
    width: auto;
    grid-template-columns: 44px 44px;
  }

  .source-status {
    font-size: 0.82rem;
  }

  .score-item,
  .toronto-item {
    padding: 12px;
    border-radius: 12px;
  }

  .score-match {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .score-result {
    order: -1;
    font-size: 2rem;
    justify-self: start;
  }

  .score-team {
    grid-template-columns: 42px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .team-crest {
    width: 42px;
    border-radius: 10px;
  }

  .score-time,
  .score-item small,
  .score-status {
    justify-self: start;
  }

  .editor-dialog {
    width: calc(100vw - 20px);
  }

  .editor-form {
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .brand {
    justify-content: flex-start;
  }

  .brand-copy small {
    font-size: 0.76rem;
  }

  .top-actions {
    grid-template-columns: 1fr;
  }

  .link-row {
    grid-template-columns: 1fr;
  }

  .link-art {
    width: 100%;
    min-height: 132px;
  }

  .link-art img {
    min-height: 132px;
  }
}
