@import url("https://fonts.googleapis.com/css2?family=Geologica:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #160706;
  --bg-soft: #2b100b;
  --card: #ffffff;
  --card-dark: #2b100b;
  --primary: #982815;
  --primary-light: #c24a35;
  --accent: #d86a3a;
  --primary-soft: #fbe9e4;
  --primary-border: #efc0b4;
  --primary-text: #6f1d0f;
  --bs-primary: #982815;
  --bs-primary-rgb: 152, 40, 21;
  --bs-link-color: #982815;
  --bs-link-hover-color: #6f1d0f;
  --text: #101828;
  --text-light: #f8fafc;
  --muted: #64748b;
  --border: #e5e7eb;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .18);
  --soft-shadow: 0 16px 35px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

.text-bg-primary,
.bg-primary {
  background-color: var(--primary) !important;
  color: #fff !important;
}

.text-primary {
  color: var(--primary) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

.link-primary {
  color: var(--primary) !important;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Geologica", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .94rem;
  background:
    radial-gradient(circle at top right, rgba(152, 40, 21, .12), transparent 30rem),
    linear-gradient(180deg, #fbf4f2 0, #f7eeeb 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app > main {
  flex: 1 0 auto;
}

.app > footer {
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--primary); }

.site-nav,
.admin-nav {
  background:
    radial-gradient(circle at top right, rgba(216, 106, 58, .28), transparent 35%),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  border: 0;
  box-shadow: 0 20px 50px rgba(7, 17, 31, .25);
}

.site-nav {
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  margin-bottom: 22px;
}

.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.05rem;
  letter-spacing: .02em;
}

.brand-rotator {
  display: grid;
  align-items: center;
  min-width: min(360px, 62vw);
}

.brand-face {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px) rotateX(-12deg);
  pointer-events: none;
}

.brand-face-kadmos {
  animation: brandKadmosCycle 8s ease-in-out infinite;
}

.brand-face-sponsor {
  color: #fff;
  animation: brandSponsorCycle 8s ease-in-out infinite;
}

.navbar-dark .navbar-nav .nav-link {
  color: #f8d5cc;
  font-size: .86rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .55rem .8rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--text-light);
  background: rgba(255, 255, 255, .08);
}

.navbar-toggler {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, .18);
  box-shadow: none !important;
}

.burger-icon {
  position: relative;
  width: 22px;
  height: 16px;
  display: block;
  margin: 0 auto;
}

.burger-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}

.burger-icon span:nth-child(1) { top: 0; }
.burger-icon span:nth-child(2) { top: 7px; }
.burger-icon span:nth-child(3) { top: 14px; }

.navbar-toggler[aria-expanded="true"] .burger-icon span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .burger-icon span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .burger-icon span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-right: .65rem;
  background: #fff;
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 12px 30px rgba(152, 40, 21, .2);
}

.brand-logo-sponsor {
  width: 168px;
  height: 42px;
  background: #fff;
  border-radius: 12px;
  padding: 5px 8px;
  box-shadow: 0 12px 30px rgba(245, 180, 39, .18);
}

@keyframes brandKadmosCycle {
  0%, 44% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    pointer-events: auto;
  }

  50%, 94% {
    opacity: 0;
    transform: translateY(-8px) rotateX(12deg);
    pointer-events: none;
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    pointer-events: auto;
  }
}

@keyframes brandSponsorCycle {
  0%, 44% {
    opacity: 0;
    transform: translateY(8px) rotateX(-12deg);
    pointer-events: none;
  }

  50%, 94% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    pointer-events: auto;
  }

  100% {
    opacity: 0;
    transform: translateY(8px) rotateX(-12deg);
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-face {
    animation: none;
    transform: none;
  }

  .brand-face-kadmos {
    opacity: 1;
  }

  .brand-face-sponsor {
    opacity: 0;
  }
}

.gold-sponsor-strip {
  position: relative;
  z-index: 2;
  margin: -8px 16px 18px;
  color: var(--primary);
}

.gold-sponsor-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 72px;
  padding: .8rem 1.15rem;
  border: 1px solid rgba(152, 40, 21, .16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0, rgba(245, 180, 39, .18), transparent 28rem),
    linear-gradient(135deg, #fffaf2, #fff);
  box-shadow:
    0 18px 42px rgba(22, 7, 6, .08),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

.gold-sponsor-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gold-sponsor-label::before,
.gold-sponsor-label::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(152, 40, 21, .22);
}

.gold-sponsor-logo {
  display: block;
  width: auto;
  max-width: min(460px, 58vw);
  height: 54px;
  object-fit: contain;
}

.hero {
  color: var(--text-light);
  background:
    radial-gradient(circle at top right, rgba(216, 106, 58, .25), transparent 35%),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  margin-top: 0;
  margin-left: 16px;
  margin-right: 16px;
  padding: 4.5rem 0 5.5rem;
  border-radius: 34px;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: .98;
  letter-spacing: -0.045em;
}

.hero p {
  color: #cbd5e1;
  font-size: .98rem;
  line-height: 1.65;
}

.hero-logo {
  width: 132px;
  height: 132px;
  object-fit: contain;
  background: #fff;
  border-radius: 28px;
  padding: .8rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.main,
main > .container.py-5 {
  position: relative;
}

.section-title {
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
}

h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.55rem; }
h3, .h3 { font-size: 1.28rem; }
h4, .h4 { font-size: 1.08rem; }
h5, .h5 { font-size: .98rem; }

.sports-card,
.admin-panel,
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.sports-card,
.admin-panel {
  overflow: hidden;
}

.sports-card:hover {
  box-shadow: 0 22px 55px rgba(15, 23, 42, .11);
}

.panel-header {
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-size: .98rem;
  font-weight: 700;
}

.tag,
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .42rem .72rem;
  background: #f8e1dc !important;
  color: #982815 !important;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 0;
}

.match-meta-strong {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin-top: .65rem;
  color: var(--text);
  font-size: .82rem;
  font-weight: 750;
}

.match-meta-strong .date,
.match-meta-strong .time {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .34rem .62rem;
  background: #fff1ed;
  color: #7f1d12;
  border: 1px solid #efb0a2;
}

.match-meta-strong .venue {
  color: var(--muted);
  font-weight: 650;
}

.league-tabs {
  gap: .55rem;
  padding: .35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
  width: fit-content;
  max-width: 100%;
}

.league-tabs .nav-link {
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
  padding: .58rem 1rem;
}

.league-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 22px rgba(152, 40, 21, .22);
}

@media (max-width: 560px) {
  .league-tabs {
    width: 100%;
    border-radius: 18px;
  }

  .league-tabs .nav-item,
  .league-tabs .nav-link {
    width: 100%;
  }
}

.match-row {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.match-row:last-child { border-bottom: 0; }

.schedule-day {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 1.35rem 0 .55rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.schedule-day:first-child {
  margin-top: 0;
}

.schedule-day::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(152, 40, 21, .28), rgba(229, 231, 235, 0));
}

.schedule-day span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .5rem .82rem;
  color: #7f1d12;
  background: linear-gradient(135deg, #fff1ed, #fff7ed);
  border: 1px solid #efb0a2;
}

.schedule-match-row {
  margin-bottom: .6rem;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 18px;
  padding: .92rem 1rem;
  background: linear-gradient(135deg, #ffffff, #fffaf8);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.schedule-match-row:last-child {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(226, 232, 240, .92);
}

.schedule-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #f8fafc;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  text-align: center;
  padding: 1.5rem;
}

.fixture-card {
  display: grid;
  gap: .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
}

.match-line {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  min-width: 0;
  font-size: .92rem;
  font-weight: 650;
  color: var(--text);
}

.team-chip span {
  overflow-wrap: anywhere;
}

.team-logo,
.team-logo-sm,
.player-photo {
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.team-logo {
  width: 70px;
  height: 70px;
  border-radius: 18px;
}

.team-cover {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
  background: var(--card-dark);
  aspect-ratio: 21 / 8;
}

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

.team-logo-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.team-color-mark {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.team-color-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .62),
    inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.player-photo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.vs-pill {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.score-box {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 999px;
  padding: .38rem .78rem;
  font-size: .9rem;
  font-weight: 750;
  box-shadow: 0 14px 34px rgba(152, 40, 21, .28);
}

.team-match-line {
  width: 100%;
}

.score-box-spaced {
  margin-left: auto;
  min-width: 92px;
  padding-inline: 1rem;
  font-size: .95rem;
}

.score-big {
  font-size: clamp(2.15rem, 6vw, 3.8rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.06em;
  color: var(--text-light);
}

.hero-score-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-score-card .team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 1rem;
  color: var(--text-light);
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg);
  aspect-ratio: 9 / 16;
  max-height: 640px;
  margin-inline: auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.match-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.match-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #f8fafc;
  aspect-ratio: 4 / 3;
}

.match-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}

.match-gallery a:hover img {
  transform: scale(1.04);
}

.is-hidden-photo {
  display: none !important;
}

.media-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .55rem;
}

.media-pill {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  border-radius: 999px;
  padding: .34rem .66rem;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(152, 40, 21, .16);
  background: #fff1ed;
  color: #982815;
}

.media-pill:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.media-pill-video {
  background: #fff1f2;
  color: #b91c1c;
}

.media-pill-photos {
  background: #fff7ed;
  color: #982815;
}

.media-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.media-icon-play {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 8px 18px rgba(239, 68, 68, .28);
}

.media-icon-play::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #fff;
}

.media-icon-camera {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: currentColor;
  box-shadow: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 7.5A2.5 2.5 0 0 1 6.5 5H9l1.2-1.6A2 2 0 0 1 11.8 2.6h.4a2 2 0 0 1 1.6.8L15 5h2.5A2.5 2.5 0 0 1 20 7.5v9A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-9Zm8 9a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm0-2a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 7.5A2.5 2.5 0 0 1 6.5 5H9l1.2-1.6A2 2 0 0 1 11.8 2.6h.4a2 2 0 0 1 1.6.8L15 5h2.5A2.5 2.5 0 0 1 20 7.5v9A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-9Zm8 9a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm0-2a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.has-media-modal {
  overflow: hidden;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.media-modal.is-open {
  display: flex;
}

.media-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, .78);
  backdrop-filter: blur(10px);
}

.media-modal__dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: min(92vh, 860px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(152, 40, 21, .14), transparent 34%),
    #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .35);
}

.media-modal__close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 14px 34px rgba(152, 40, 21, .28);
}

.media-modal__header {
  padding: 1.25rem 4.5rem 1rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.media-modal__eyebrow {
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.media-modal__title {
  margin: .2rem 0 0;
  font-size: 1.25rem;
  font-weight: 750;
}

.media-modal__date {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
}

.media-modal__body {
  overflow: auto;
  padding: 1.25rem;
}

.media-modal__video {
  width: min(100%, calc((92vh - 150px) * 9 / 16), 440px);
  height: min(calc(92vh - 150px), 680px);
  max-width: 440px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 24px;
  background: var(--bg);
}

.media-modal__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.media-modal__empty {
  padding: 3rem 1rem;
  color: var(--muted);
  text-align: center;
  font-weight: 650;
}

.media-carousel__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
}

.media-carousel__stage img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
}

.media-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  font-size: 2rem;
  line-height: 1;
}

.media-carousel__nav--prev {
  left: 1rem;
}

.media-carousel__nav--next {
  right: 1rem;
}

.media-carousel__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: .8rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
}

.stat-card {
  position: relative;
  isolation: isolate;
  background: var(--card);
  border-radius: var(--radius);
  min-height: 128px;
  padding: 1.15rem;
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .18s ease, box-shadow .18s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 92% 12%, rgba(152, 40, 21, .16), transparent 34%),
    linear-gradient(135deg, rgba(152, 40, 21, .08), transparent 45%);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -28px;
  width: 112px;
  height: 112px;
  z-index: -1;
  border-radius: 50%;
  border: 18px solid rgba(152, 40, 21, .08);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
}

.stat-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  font-size: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 34px rgba(152, 40, 21, .25);
}

.stat-icon::before,
.stat-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
}

.stat-icon::before {
  width: 18px;
  height: 6px;
  left: 13px;
  top: 14px;
}

.stat-icon::after {
  width: 11px;
  height: 11px;
  left: 16px;
  top: 23px;
}

.stat-number {
  margin-top: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.stat-label {
  color: var(--muted);
  font-size: .82rem;
  margin-top: .45rem;
  font-weight: 650;
  letter-spacing: .01em;
}

.table {
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: .82rem .9rem;
  border-bottom-color: var(--border);
}

.table thead th {
  background: #f8fafc;
  color: var(--muted);
  border-color: var(--border);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.table tbody tr:nth-child(even) > * {
  background: #fffaf8;
}

.table tbody tr:hover > * {
  background: #fff1ed;
}

.standings-table {
  min-width: 720px;
}

.standings-table th,
.standings-table td {
  white-space: nowrap;
}

.standings-table .team-chip {
  flex-wrap: nowrap;
  min-width: 220px;
  max-width: 280px;
}

.standings-table .team-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .table tbody tr.is-editing-row > * {
  background:
    linear-gradient(90deg, rgba(152, 40, 21, .13), rgba(216, 106, 58, .06)) !important;
  box-shadow: inset 0 1px 0 rgba(152, 40, 21, .12), inset 0 -1px 0 rgba(152, 40, 21, .12);
}

.admin-body .table tbody tr.is-editing-row > *:first-child {
  box-shadow:
    inset 4px 0 0 var(--primary),
    inset 0 1px 0 rgba(152, 40, 21, .12),
    inset 0 -1px 0 rgba(152, 40, 21, .12);
}

.positive {
  color: var(--success);
  font-weight: 700;
}

.negative {
  color: var(--danger);
  font-weight: 700;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  padding: .62rem 1rem;
  border-width: 0;
}

.btn-sm {
  padding: .45rem .82rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 0;
  box-shadow: 0 14px 34px rgba(152, 40, 21, .28);
}

.btn-primary:hover {
  filter: brightness(.96);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary,
.text-bg-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-light {
  border-width: 1px;
  background: #fff;
}

.admin-nav .btn-outline-light {
  color: var(--bg) !important;
  border-color: rgba(255, 255, 255, .35);
  background: #fff;
}

.form-control,
.form-select {
  border-radius: 14px;
  border-color: var(--border);
  padding: .72rem .9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 .25rem rgba(152, 40, 21, .12);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 .25rem rgba(152, 40, 21, .12);
}

.form-label,
.form-check-label {
  color: #334155;
  font-size: .86rem;
  font-weight: 600;
}

.admin-body {
  background:
    radial-gradient(circle at top right, rgba(152, 40, 21, .08), transparent 30rem),
    #fbf4f2;
  font-size: .8rem;
}

.admin-body main.container-fluid {
  max-width: 1440px;
}

.admin-body .admin-panel {
  padding: .85rem;
}

.admin-body h1,
.admin-body .h1 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.admin-body h2,
.admin-body .h2,
.admin-body .h3,
.admin-body .h4,
.admin-body .h5 {
  line-height: 1.25;
}

.admin-body .h4 {
  font-size: 1.05rem;
}

.admin-body .h5 {
  font-size: .92rem;
}

.admin-body .form-label,
.admin-body .form-check-label {
  font-size: .74rem;
  line-height: 1.25;
  margin-bottom: .42rem;
}

.admin-body .form-control,
.admin-body .form-select {
  min-height: 38px;
  font-size: .78rem;
  line-height: 1.35;
  padding: .48rem .62rem;
  border-radius: 11px;
}

.admin-body textarea.form-control {
  min-height: 96px;
}

.admin-body input[type="file"].form-control {
  padding: .36rem;
  font-size: .72rem;
}

.admin-body .btn {
  font-size: .76rem;
  padding: .46rem .76rem;
  white-space: nowrap;
}

.admin-body .btn-sm {
  font-size: .7rem;
  padding: .32rem .54rem;
}

.admin-body .table {
  font-size: .78rem;
}

.admin-body .table > :not(caption) > * > * {
  padding: .58rem .62rem;
  vertical-align: middle;
}

.admin-stats-table {
  min-width: 1180px;
}

.admin-stats-table th {
  white-space: nowrap;
}

.admin-stats-table .form-control {
  min-width: 64px;
  text-align: center;
}

.admin-body .team-chip {
  font-size: .76rem;
  gap: .42rem;
}

.admin-body .team-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.admin-body .team-logo-sm {
  width: 28px;
  height: 28px;
}

.admin-body .row.g-4 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.admin-body td.text-end {
  min-width: 145px;
}

.admin-body td.text-end .btn,
.admin-body td.text-end form {
  margin-top: .15rem;
  margin-bottom: .15rem;
}

.admin-body td.text-end {
  white-space: nowrap;
}

.admin-body td.text-end .btn-sm {
  min-width: 0;
  padding: .26rem .44rem;
  font-size: .66rem;
  line-height: 1.1;
  border-radius: 999px;
}

.admin-body .navbar-brand {
  font-size: .92rem;
}

.admin-body .brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

.admin-body .navbar-dark .navbar-nav .nav-link {
  font-size: .76rem;
  padding: .42rem .56rem;
}

.admin-body .badge-status,
.admin-body .tag {
  font-size: .64rem;
  padding: .32rem .52rem;
}

.admin-body .match-line {
  gap: .45rem;
}

.admin-body .vs-pill {
  font-size: .66rem;
}

.admin-body .score-box {
  min-width: 58px;
  padding: .28rem .58rem;
  font-size: .72rem;
}

.admin-body .match-cell {
  min-width: 340px;
  max-width: 440px;
}

.admin-body .admin-match-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

.admin-body .admin-match-line .team-chip {
  flex: 0 1 auto;
  min-width: 0;
}

.admin-body .admin-match-line .team-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .admin-match-line .vs-pill {
  flex: 0 0 auto;
}

.admin-body .venue-line {
  display: block;
  margin-top: .25rem;
  font-size: .72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edit-context-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: .9rem;
  background:
    radial-gradient(circle at top right, rgba(152, 40, 21, .12), transparent 45%),
    #fffaf8;
}

.edit-context-card .score-box {
  min-width: 76px;
  padding: .28rem .7rem;
  font-size: .78rem;
}

.admin-list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-search-wrap {
  min-width: min(340px, 100%);
  flex: 0 1 360px;
}

.admin-team-tools {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(135px, .8fr) minmax(120px, .7fr) minmax(190px, 1fr) auto;
  gap: .55rem;
  align-items: center;
  flex: 1 1 100%;
}

.admin-team-tools .form-control,
.admin-team-tools .form-select,
.admin-team-tools .btn {
  min-height: 40px;
  font-size: .82rem;
}

@media (max-width: 992px) {
  .admin-team-tools {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .admin-team-tools {
    grid-template-columns: 1fr;
  }
}

.admin-nav {
  border-radius: 0 0 28px 28px;
}

.site-footer {
  background: linear-gradient(135deg, var(--bg), var(--bg-soft));
  color: var(--text-light);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  font-size: .96rem;
}

.admin-footer .container-fluid {
  max-width: 1440px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
}

.footer-layout > :first-child {
  justify-self: start;
}

.footer-kadmos-logo {
  display: block;
  width: auto;
  height: 78px;
  object-fit: contain;
  justify-self: center;
  background: #fff;
  border-radius: 16px;
  padding: .35rem;
}

.footer-meta,
.powered-by {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}

.powered-by {
  gap: .5rem;
  color: rgba(248, 250, 252, .58);
  font-size: .82rem;
  font-weight: 500;
}

.powered-by img {
  display: block;
  width: auto;
  height: 36px;
  object-fit: contain;
}

.footer-meta {
  justify-self: end;
}

.page-hero {
  background:
    radial-gradient(circle at top right, rgba(152, 40, 21, .16), transparent 34%),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  color: var(--text-light);
  border-radius: 0 0 34px 34px;
  padding: 2.75rem 0 4.5rem;
  margin-bottom: -2.4rem;
}

.page-hero .section-title {
  color: var(--text-light);
  margin: 0;
}

.page-hero p {
  color: #cbd5e1;
}

.content-lift {
  position: relative;
  z-index: 2;
}

.article-body {
  color: #26364d;
  line-height: 1.8;
}

.home-sections > .row {
  row-gap: 2.6rem;
}

.home-section {
  margin-bottom: 2.2rem !important;
}

.home-announcements-section {
  margin-top: 1rem;
  max-height: 85vh;
}

.home-announcements-section .section-title {
  font-size: 3.1rem;
  line-height: 1;
}

.announcement-feature-card,
.announcement-card,
.announcement-detail {
  background: var(--card);
  border: 1px solid rgba(152, 40, 21, .12);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.announcement-feature-card {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(0, 1.35fr);
  min-height: 320px;
  color: var(--text);
}

.announcement-feature-card-home {
  min-height: 260px;
}

.announcement-feature-card:hover,
.announcement-card:hover {
  color: var(--text);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .14);
  transform: translateY(-2px);
}

.announcement-feature-media,
.announcement-card-image {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(216, 106, 58, .18), transparent 20rem),
    linear-gradient(135deg, #fff8f3, #fff);
}

.announcement-feature-media img,
.announcement-card-image img {
  display: block;
  width: min(82%, 520px);
  height: auto;
  object-fit: contain;
}

.announcement-feature-body,
.announcement-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .8rem;
}

.announcement-feature-body {
  justify-content: center;
  padding: 2rem;
}

.announcement-date {
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.announcement-feature-title,
.announcement-card-title {
  color: var(--text);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.announcement-feature-title {
  font-size: clamp(1.65rem, 4vw, 3rem);
}

.announcement-excerpt {
  color: #475569;
  line-height: 1.75;
}

.announcement-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease;
}

.announcement-card-home {
  height: min(640px, calc(85vh - 120px));
  min-height: 0;
}

.announcement-card-placeholder {
  height: min(640px, calc(85vh - 120px));
  min-height: 0;
  visibility: hidden;
}

.announcement-card-image {
  aspect-ratio: 1 / 1;
  padding: 1.25rem;
}

.announcement-card-home .announcement-card-image {
  width: min(100%, calc(85vh - 330px));
  min-width: 220px;
  min-height: 0;
  align-self: center;
}

.announcement-card-body {
  padding: 1.35rem;
  flex: 1;
  min-height: 0;
}

.announcement-card-title {
  font-size: 1.35rem;
}

.announcement-card-home .announcement-card-body {
  overflow: hidden;
}

.announcement-card-home .announcement-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.announcement-detail {
  max-width: 980px;
}

.announcement-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(circle at top right, rgba(216, 106, 58, .16), transparent 24rem),
    linear-gradient(135deg, #fff8f3, #fff);
  border-bottom: 1px solid var(--border);
}

.announcement-detail-title {
  margin-top: .85rem;
  margin-bottom: 0;
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  line-height: .98;
}

.announcement-detail-logo {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: contain;
}

.announcement-detail-body {
  padding: clamp(1.35rem, 4vw, 3rem);
  color: #26364d;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.9;
  white-space: pre-wrap;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .navbar-brand {
    font-size: .92rem;
  }

  .brand-rotator {
    min-width: 300px;
  }

  .brand-logo-sponsor {
    width: 140px;
  }

  .navbar-dark .navbar-nav .nav-link {
    font-size: .78rem;
    padding: .48rem .54rem;
  }
}

@media (max-width: 991px) {
  .site-nav,
  .admin-nav {
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
  }

  .navbar-collapse {
    padding-top: .65rem;
  }

  .navbar-collapse .navbar-nav {
    align-items: center;
    gap: .18rem;
    text-align: center;
  }

  .navbar-dark .navbar-nav .nav-link {
    font-size: .98rem;
    padding: .42rem .9rem;
  }

  .hero {
    margin-top: 14px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 3rem 0 4.5rem;
    border-radius: 26px;
  }
}

@media (max-width: 767px) {
  .announcement-feature-card,
  .announcement-detail-hero {
    grid-template-columns: 1fr;
  }

  .home-sections > .row {
    row-gap: 2rem;
  }

  .home-announcements-section .section-title {
    font-size: 2rem;
  }

  .announcement-feature-card,
  .announcement-feature-card-home {
    min-height: 0;
  }

  .announcement-feature-media {
    min-height: 190px;
    padding: 1rem;
  }

  .announcement-feature-body,
  .announcement-card-body {
    padding: 1.15rem;
  }

  .announcement-card-home {
    height: auto;
    min-height: 0;
  }

  .home-announcements-section {
    max-height: none;
  }

  .announcement-card-home .announcement-card-image {
    width: 100%;
    min-width: 0;
  }

  .announcement-card-placeholder {
    display: none;
  }

  .announcement-feature-title {
    font-size: 1.55rem;
  }

  .announcement-detail-hero {
    gap: 1rem;
  }

  .announcement-detail-logo {
    max-height: 120px;
  }

  .announcement-detail-title {
    font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  }

  .brand-rotator {
    min-width: min(285px, 72vw);
  }

  .brand-face {
    font-size: .82rem;
  }

  .brand-logo-sponsor {
    width: 132px;
    height: 34px;
  }

  .gold-sponsor-strip {
    margin: -4px 10px 16px;
  }

  .gold-sponsor-inner {
    flex-direction: column;
    gap: .55rem;
    min-height: 0;
    padding: .85rem;
    border-radius: 20px;
  }

  .gold-sponsor-logo {
    max-width: 100%;
    height: 44px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-layout > :first-child,
  .footer-meta {
    justify-self: center;
  }

  .hero h1 {
    letter-spacing: -0.03em;
  }

  .hero-logo {
    width: 94px;
    height: 94px;
    border-radius: 22px;
  }

  .sports-card,
  .admin-panel {
    border-radius: 16px;
  }

  .table-responsive {
    font-size: .9rem;
  }

  .match-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .match-row {
    gap: .85rem;
  }

  .match-row .d-flex {
    width: 100%;
    align-items: flex-start !important;
  }

  .score-box {
    min-width: 64px;
  }

  .score-box-spaced {
    margin-left: 0;
    margin-top: .45rem;
  }

  .team-cover {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .match-gallery {
    grid-template-columns: 1fr;
  }

  .media-pill-row {
    width: 100%;
    margin-top: .75rem;
    gap: .5rem;
  }

  .media-pill {
    flex: 1 1 auto;
    min-height: 38px;
    padding: .5rem .78rem;
    font-size: .76rem;
    justify-content: center;
  }

  .match-row .score-box {
    margin-top: .25rem;
  }

  .media-icon-play {
    width: 18px;
    height: 18px;
  }

  .media-icon-play::before {
    left: 7px;
    top: 5px;
  }

  .media-icon-camera {
    width: 20px;
    height: 20px;
  }

  .media-modal {
    padding: .7rem;
  }

  .media-modal__dialog {
    max-height: 85vh;
    border-radius: 22px;
  }

  .media-modal__header {
    padding: 1rem 3.7rem .85rem 1rem;
  }

  .media-modal__title {
    font-size: 1rem;
  }

  .media-modal__body {
    padding: .9rem;
  }

  .media-modal__video {
    width: min(100%, calc((85vh - 132px) * 9 / 16));
    height: min(calc(85vh - 132px), 620px);
    max-width: none;
    border-radius: 18px;
  }

  .media-modal__close {
    width: 36px;
    height: 36px;
    font-size: 1.45rem;
  }

  .media-carousel__stage {
    min-height: 280px;
    border-radius: 18px;
  }

  .media-carousel__nav {
    width: 40px;
    height: 40px;
  }

  .admin-body .media-pill-row {
    margin-top: .45rem;
  }

  .admin-body .media-pill {
    min-height: 30px;
    padding: .36rem .56rem;
    font-size: .66rem;
  }

  .admin-body main.container-fluid {
    padding-left: .85rem;
    padding-right: .85rem;
  }
}
