:root {
  --blue: rgb(84, 177, 229);
  --ink: #000;
  --paper: #fff;
  --soft: #f2f4f6;
  --mute: #5c6670;
  --gap: 1.6vh;}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 1.85vh;
  background: var(--paper);
  color: var(--ink);
}

body {
  height: 100vh;
  overflow: hidden;
  cursor: none;
  display: flex;
  flex-direction: column;
  font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
}

h2, .club strong, .clock, .slide h3 {
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

/* header */
.top {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.2vh 2.2vw;
  border-bottom: .6vh solid var(--blue);
}
.logo { height: 8vh; }
.club { display: flex; flex-direction: column; line-height: 1; }
.club strong { font-size: 3.4rem; font-weight: 800; letter-spacing: .02em; }
.club span { font-size: 1.1rem; color: var(--mute); margin-top: .3rem; }
.clock { margin-left: auto; text-align: right; line-height: 1; display: flex; flex-direction: column; }
#time { font-size: 3.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
#date { font-size: 1.1rem; color: var(--mute); margin-top: .3rem; font-family: Barlow, Arial, sans-serif; }
#date::first-letter { text-transform: uppercase; }

/* layout */
.grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 31vw 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: var(--gap);
  padding: var(--gap) 2.2vw;
}
.col { display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
.panel, .show { flex: 1; }
.insta { height: 24vh; flex: none; }

/* match panels */
.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--soft);
}
.panel h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .45rem .9rem;
  border-left: .5rem solid var(--blue);
}
.stamp { font-size: .8rem; font-weight: 600; color: #9aa4ad; letter-spacing: 0; text-transform: none; font-family: Barlow, Arial, sans-serif; }
.scroll { flex: 1; overflow: hidden; position: relative; }
.list { will-change: transform; transition: opacity .6s; padding-bottom: .6rem; }
.list.fade { opacity: 0; }

.day {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mute);
  padding: .8rem .9rem .3rem;
}
.match {
  display: grid;
  grid-template-columns: 3.6rem 1fr auto;
  align-items: center;
  gap: .7rem;
  background: var(--paper);
  margin: 0 .6rem .35rem;
  padding: .45rem .7rem;
  font-size: 1.05rem;
}
.match .t { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--mute); }
.match .teams, .match .score { display: flex; flex-direction: column; line-height: 1.3; }
.match .teams span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match .ours { font-weight: 700; }
.match .score {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  min-width: 2rem;
  font-variant-numeric: tabular-nums;
}
.match .score .win { color: var(--blue); }
.tag {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .15rem .45rem;
  border: 2px solid var(--ink);
}
.tag.home { background: var(--blue); border-color: var(--blue); }
.tag.off { border-color: #c33; color: #c33; }
.empty { padding: 1.2rem .9rem; color: var(--mute); }

/* slideshow */
.show { position: relative; overflow: hidden; background: var(--ink); }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide.on { opacity: 1; }
.slide .pic {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.slide.on .pic { animation: drift 20s linear forwards; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.slide .cap {
  position: absolute;
  left: 0;
  bottom: 2.4rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 600;
  padding: .6rem 1.2rem .6rem 1.6rem;
  border-left: .6rem solid var(--blue);
}
.slide.text {
  background: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6%;
}
.slide.text h3::after {
  content: "";
  display: block;
  width: 5rem;
  height: .5rem;
  background: var(--ink);
  margin-top: 1.6rem;
}
.slide h3 { font-size: 5.4rem; font-weight: 800; line-height: .95; text-transform: uppercase; max-width: 75%; }
.slide p { font-size: 2rem; margin-top: 1.4rem; max-width: 65%; line-height: 1.25; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: .5vh; background: rgba(255,255,255,.35); z-index: 2; }
.bar i { display: block; height: 100%; width: 0; background: var(--paper); }

/* instagram */
.insta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); min-height: 0; }
.ig { position: relative; overflow: hidden; background: var(--ink); }
.ig img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
}
.ig img.on { opacity: 1; }
.ig .handle {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  background: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  padding: .3rem .7rem;
  border-left: .4rem solid var(--blue);
}
.ig.none {
  background: var(--soft);
  border-left: .5rem solid var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1rem;
}
.ig.none strong { font-family: "Barlow Condensed", Arial, sans-serif; font-size: 1.6rem; font-weight: 700; overflow-wrap: anywhere; }
.ig.none span { font-size: 1rem; margin-top: .2rem; color: var(--mute); }

.demo {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: #c33;
  color: #fff;
  font-weight: 600;
  padding: .2rem .6rem;
  z-index: 9;
}
